1 line
4.4 KiB
JSON
1 line
4.4 KiB
JSON
|
|
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\tools\\codeGen\\codeDetail.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\tools\\codeGen\\codeDetail.vue","mtime":1732871026811},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport crudCodeDetail from '@/views/tools/codeGen/codeDetail'\r\nimport CRUD, { presenter, header, form } from '@crud/crud'\r\nimport pagination from '@crud/Pagination'\r\nimport rrOperation from '@crud/RR.operation'\r\nimport udOperation from '@crud/UD.operation'\r\n\r\nconst defaultForm = {\r\n id: null,\r\n type: '01',\r\n init_value: null,\r\n format: null,\r\n step: null,\r\n fillchar: null,\r\n length: null,\r\n sort_num: 0\r\n}\r\n\r\nexport default {\r\n components: { pagination, rrOperation, udOperation },\r\n cruds() {\r\n return [\r\n CRUD({\r\n title: '编码详情', url: 'api/codeDetail', query: { dictName: '' }, sort: ['sort_num,asc'],\r\n crudMethod: { ...crudCodeDetail },\r\n optShow: {\r\n add: true,\r\n edit: true,\r\n del: true,\r\n reset: false\r\n },\r\n queryOnPresenterCreated: false\r\n })\r\n ]\r\n },\r\n mixins: [\r\n presenter(),\r\n header(),\r\n form(function() {\r\n return Object.assign({ code_rule_id: this.dictId }, defaultForm)\r\n })],\r\n data() {\r\n return {\r\n options: [{\r\n value: '01',\r\n label: '固定'\r\n }, {\r\n value: '02',\r\n label: '日期'\r\n }, {\r\n value: '03',\r\n label: '顺序'\r\n }],\r\n value: '',\r\n dictId: null,\r\n rules: {\r\n type: [\r\n { required: true, message: '请输入编码标签', trigger: 'blur' }\r\n ],\r\n init_value: [\r\n { required: true, message: '请输入初始值', trigger: 'blur' }\r\n ],\r\n sort_num: [\r\n { required: true, message: '请输入序号', trigger: 'blur', type: 'number' }\r\n ],\r\n format: [\r\n { required: true, message: '请输入日期格式', trigger: 'blur' }\r\n ],\r\n step: [\r\n { required: true, message: '请输入步长', trigger: 'blur' }\r\n ],\r\n fillchar: [\r\n { required: true, message: '请输入填充值', trigger: 'blur' }\r\n ],\r\n max_value: [\r\n { required: true, message: '请输入最大值', trigger: 'blur' }\r\n ]\r\n },\r\n permission: {\r\n add: ['admin', 'dict:add'],\r\n edit: ['admin', 'dict:edit'],\r\n del: ['admin', 'dict:del']\r\n },\r\n typeFormate(row, index) {\r\n if (row.type === '01') {\r\n return '固定'\r\n } else if (row.type === '02') {\r\n return '时间'\r\n } else if (row.type === '03') {\r\n return '顺序'\r\n }\r\n }\r\n }\r\n },\r\n methods: {\r\n changeType(val) {\r\n // 新增的时<E79A84><E697B6>
|