cuiqian2004
2024-06-24 dc4e312fde92237060bc23c35016f4d6b7a9187e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
var classUtils = {
 
 
    attrTypeIsString: function(type) {
        if (type == '字符串' || type == '可变长字符串' || type == 'char' || type == 'varchar') {
            return false
        }
        return true
    },
    attrTypeIsNumber: function(type) {
        if (type == '整数' || type == '浮点数' || type == 'int' || type == 'float') {
            return false
        }
        return true
    },
    attrTypeIsDict: function(type) {
        if (type == '字典' || type == '字典-字符串' || type == '字典-整数' || type == 'dict' || type == 'dict-char' ||
            type == 'dict-int') {
            return false
        }
        return true
    },
    attrTypeIsDate: function(type) {
        if (type == '日期' || type == '时间' || type == 'date' || type == 'datetime') {
            return false
        }
        return true
    },
    attrTypeIsObjRefMulti: function(type) {
        if (type == '引用对象(多个)' || type == 'obj-ref-multi') {
            return false
        }
        return true
    },
    attrTypeIsRegion: function(type) {
        if (type == '省市区' || type == 'region') {
            return false
        }
        return true
    },
    attrTypeIsBool: function(type) {
        if (type == '布尔值' || type == 'bool') {
            return false
        }
        return true
    },
 
    attrTypeIsUser: function(type) {
        if (type == '引用人员' || type == 'user') {
            return false
        }
        return true
    },
    attrTypeIsProject: function(type) {
        if (type == '引用项目' || type == 'project') {
            return false
        }
        return true
    },
 
}
export default {
    classUtils,
}