1 line
7.0 KiB
JSON
1 line
7.0 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\\acs\\device\\opc\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\opc\\index.vue","mtime":1732871026604},{"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//\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 crudOpc from '@/api/acs/device/opc'\r\nimport CRUD, { crud, form, header, presenter } from '@crud/crud'\r\nimport crudOperation from '@crud/CRUD.operation'\r\nimport pagination from '@crud/Pagination'\r\nimport rrOperation from '@crud/RR.operation'\r\nimport i18n from '@/i18n'\r\n\r\nconst defaultForm = {\r\n type: null,\r\n opc_id: null,\r\n opc_code: null,\r\n opc_name: null,\r\n opc_host: null,\r\n user: null,\r\n password: null,\r\n prog_id: null,\r\n cls_id: null,\r\n domain: null,\r\n remark: null,\r\n is_active: null,\r\n is_delete: null,\r\n create_by: null,\r\n create_time: null,\r\n update_by: null,\r\n update_time: null,\r\n plc_code: null,\r\n plc_name: null,\r\n plc_host: null,\r\n opc_server_id: null,\r\n plc_opc_name: null\r\n}\r\nexport default {\r\n name: 'Opc',\r\n components: { pagination, crudOperation, rrOperation },\r\n mixins: [presenter(), header(), form(defaultForm), crud()],\r\n cruds() {\r\n return CRUD({\r\n title: i18n.t('opc.title'), url: 'api/opc', idField: 'opc_id', sort: 'opc_id,desc', crudMethod: { ...crudOpc },\r\n optShow: {\r\n add: true,\r\n edit: false,\r\n del: false,\r\n download: false\r\n }\r\n })\r\n },\r\n data() {\r\n return {\r\n dialogPlcFormVisible: false,\r\n operateFlag: null,\r\n permission: {\r\n add: ['admin', 'opc:add'],\r\n edit: ['admin', 'opc:edit'],\r\n del: ['admin', 'opc:del']\r\n },\r\n rules: {\r\n opc_id: [\r\n { required: true, message: 'OPC标识不能为空', trigger: 'blur' }\r\n ],\r\n opc_code: [\r\n { required: true, message: 'OPC编码不能为空', trigger: 'blur' }\r\n ],\r\n opc_name: [\r\n { required: true, message: 'OPC名称不能为空', trigger: 'blur' }\r\n ],\r\n password: [\r\n { required: true, message: '密码不能为空', trigger: 'blur' }\r\n ],\r\n is_active: [\r\n { required: true, message: '是否启用不能为空', trigger: 'blur' }\r\n ],\r\n is_delete: [\r\n { required: true, message: '是否删除不能为空', trigger: 'blur' }\r\n ],\r\n create_by: [\r\n { required: true, message: '创建者不能为空', trigger: 'blur' }\r\n ],\r\n create_time: [\r\n { required: true, message: '创建时间不能为空', trigger: 'blur' }\r\n ]\r\n }\r\n }\r\n },\r\n\r\n methods: {\r\n // 钩子:在获取表格数据之前执行,false 则代表不获取数据\r\n [CRUD.HOOK.beforeRefresh
|