Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/6ce264076c6c0fe1c19da467141be08f.json

1 line
9.0 KiB
JSON
Raw Normal View History

2024-12-03 17:40:13 +08:00
{"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\\driver\\one_manipulator\\standard_manipulator.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\device\\driver\\one_manipulator\\standard_manipulator.vue","mtime":1732871026584},{"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\r\nimport {\r\n queryDriverConfig,\r\n updateConfig,\r\n testRead,\r\n testwrite\r\n} from '@/api/acs/device/driverConfig'\r\nimport { selectOpcList } from '@/api/acs/device/opc'\r\nimport { selectPlcList } from '@/api/acs/device/opcPlc'\r\nimport { selectListByOpcID } from '@/api/acs/device/opcPlc'\r\n\r\nimport crud from '@/mixins/crud'\r\nimport deviceCrud from '@/api/acs/device/device'\r\n\r\nexport default {\r\n name: 'StandardManipulator',\r\n mixins: [crud],\r\n props: {\r\n parentForm: {\r\n type: Object,\r\n required: true\r\n }\r\n },\r\n data() {\r\n return {\r\n device_code: '',\r\n device_id: '',\r\n plc_id: '',\r\n plc_code: '',\r\n opc_id: '',\r\n opc_code: '',\r\n address: '',\r\n configLoading: false,\r\n dataOpcservers: [],\r\n dataOpcPlcs: [],\r\n deviceList: [],\r\n data1: [],\r\n data2: [],\r\n form: {\r\n inspect_in_stocck: true,\r\n ignore_pickup_check: true,\r\n ignore_release_check: true,\r\n apply_task: true,\r\n link_three_lamp: '',\r\n link_scanner: '',\r\n manual_create_task: true,\r\n is_pickup: true,\r\n is_release: true,\r\n link_device_code: []\r\n },\r\n rules: {}\r\n }\r\n },\r\n created() {\r\n this.$nextTick(() => {\r\n // 从父表单获取设备编码\r\n this.device_id = this.$props.parentForm.device_id\r\n this.device_code = this.$props.parentForm.device_code\r\n queryDriverConfig(this.device_id, this.$props.parentForm.driver_code).then(data => {\r\n // 给表单赋值,并且属性不能为空\r\n if (data.form) {\r\n const arr = Object.keys(data.form)\r\n // 不为空\r\n if (arr.length > 0) {\r\n this.form = data.form\r\n }\r\n }\r\n\r\n // 给表单赋值,并且属性不能为空\r\n if (data.parentForm) {\r\n const arr = Object.keys(data.parentForm)\r\n // 不为空\r\n if (arr.length > 0) {\r\n this.opc_code = data.parentForm.opc_code\r\n this.plc_code = data.parentForm.plc_code\r\n }\r\n }\r\n this.data1 = data.rs\r\n this.data2 = data.ws\r\n this.sliceItem()\r\n })\r\n selectPlcList().then(data => {\r\n this.dataOpcPlcs = data\r\n this.plc_id = this.$props.parentForm.opc_plc_id\r\n })\r\n selectOpcList().then(data => {\r\n this.dataOpcservers = data\r\n this.opc_id = this.$props.parentForm.opc_server_id\r\n })\r\n deviceCrud.selectDeviceList().then(data => {\r\n thi