Files
laws-sinotruk-client/src/enums/commonEnums.js
T

37 lines
1.4 KiB
JavaScript

import EsEnums from './EsEnum'
export const YesOrNoEnum = new EsEnums({
NO: { name: '否', index: 0 },
YES: { name: '是', index: 1 }
})
// 既可以使用EsEnums 也可以单独写明
export const FieldType = {
TREE: { text: '树形结构', value: '0' },
TEXT_STRING: { text: '输入框(字符串)', value: '1' },
TEXT_NUMBER: { text: '输入框(数字)', value: '2' },
PULL_SINGLE: { text: '单选下拉框', value: '3' },
PULL_MORE: { text: '多选下拉框', value: '4' },
DATE_SINGLE: { text: '单日期选择', value: '5' },
DATE_MORE: { text: '多日期选择', value: '6' },
FILE: { text: '文件', value: '7' },
TEXT: { text: '文本框', value: '8' },
PERSON: { text: '人员选择', value: '9' },
STANDARD: { text: '标准选择', value: '10' },
TEXT_LINK: { text: '输入框(链接)', value: '11' }
}
export const TagsTypeEnums = new EsEnums({
DOMESTIC_LIST: { text: '国内法规', langKey: 'system.tag.domesticLaws', value: 1 },
FOREIGN_LIST: { text: '海外标准', langKey: 'system.tag.foreignStandards', value: 2 },
ENTERPRISE_LIST: { text: '企业标准', langKey: 'system.tag.enterpriseStandards', value: 3 },
CLAUSE_SPLITTING_LIST: { text: '条款拆分', langKey: 'system.tag.clauseSplitting', value: 4 }
})
// 标签类型
export const TagsAttributeTypeEnums = {
SELECT: { text: '下拉选择', langKey: 'system.tag.select', value: 1 },
TREE: { text: '树形结构', langKey: 'system.tag.tree', value: 2 }
}