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,
|
}
|