田源
2025-03-05 f6b61a485501f326debe52d77ea65d87fb34b37f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 定义枚举类
const CodeSecTypeEnum = {
    STATUS: {
        codefixedsec: '固定码段',
        codevariablesec: '可变码段',
        codedatesec: '日期码段',
        codeclassifysec: '分类码段',
        codeattrsec: '属性码段',
        codeserialsec: '流水码段',
        codelevelsec: '层级码段',
        coderefersec: '引用码段',
    },
    getTextByValue(key) {
        const status = CodeSecTypeEnum.STATUS;
        for (let prop in status) {
            if (status.hasOwnProperty(prop) && prop === key) {
                return status[prop];
            }
        }
    }
  };
  
export default CodeSecTypeEnum;