Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/b42b4494e696247a17f3f7846270e371.json
2024-12-05 09:33:18 +08:00

1 line
4.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"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\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\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//\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 crudDevice from '@/api/acs/device/device'\r\nimport CRUD, { crud, form, header, presenter } from '@crud/crud'\r\nimport rrOperation from '@crud/RR.operation'\r\nimport crudOperation from '@crud/CRUD.operation'\r\nimport udOperation from '@crud/UD.operation'\r\nimport pagination from '@crud/Pagination'\r\nimport { get } from '@/views/system/dict/dictDetail'\r\nimport UploadDialog from '@/views/acs/device/UploadDialog'\r\nimport i18n from '@/i18n'\r\n\r\nconst defaultForm = {\r\n manufacturer: null,\r\n manufacturer_phone: null,\r\n opc_server_id: null,\r\n opc_plc_id: 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 device_id: null,\r\n device_code: null,\r\n device_name: null,\r\n device_type: null,\r\n region: null,\r\n is_config: null,\r\n remark: null,\r\n zh_device_name: null,\r\n en_device_name: null,\r\n in_device_name: null\r\n}\r\nexport default {\r\n name: 'Device',\r\n components: { pagination, crudOperation, rrOperation, udOperation, UploadDialog },\r\n mixins: [presenter(), header(), form(defaultForm), crud()],\r\n cruds() {\r\n return CRUD({\r\n title: i18n.t('device.title'),\r\n url: 'api/device',\r\n idField: 'device_id',\r\n sort: 'device_id,desc',\r\n crudMethod: { ...crudDevice }\r\n })\r\n },\r\n data() {\r\n return {\r\n permission: {\r\n add: ['admin', 'device:add'],\r\n edit: ['admin', 'device:edit'],\r\n del: ['admin', 'device:del']\r\n },\r\n device_types: [],\r\n uploadShow: false,\r\n regions: [],\r\n is_configs: [],\r\n rules: {\r\n device_code: [\r\n { required: true, message: '设备编码不能为空', trigger: 'blur' }\r\n ],\r\n device_name: [\r\n { required: true, message: '设备名字不能为空', trigger: 'blur' }\r\n ],\r\n device_type: [\r\n { required: true, message: '设备类型不能为空', trigger: 'blur' }\r\n ]\r\n }\r\n }\r\n },\r\n created() {\r\n this.$nextTick(() => {\r\n // 获取设备类型字典\r\n get('device_type').then(data => {\r\n this.device_types = data.content\r\n })\r\n // 获取区域类型\r\n get('region_type').then(data => {\r\n this.regions = data.content\r\n })\r\n // 是否\r\n get('TrueOrFalse').then(data => {\r\n this.is_configs = data.content\r\n })\r\n })\r\n },\r\n methods: {\r\n // 钩子在获取表格数据之前执行false 则代表不获取数据\r\n [CRUD.HOOK.beforeRefresh]() {\r\n return true\r\n },\r\n tableChanged3() {\r\n this.crud.toQuery()\r\n },\r\n reload() {\r\n crudDevice.reload().then(res => {\r\n this.crud.toQuery()\r\n }).catch(err => {\r\n console.log(err.response.data.message)\r\n })\r\n }\r\n }\r\n}\r\n",null]}