{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\EquipEventDefinition.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\EquipEventDefinition.vue","mtime":1681208408527},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.array.sort\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport PhysicalModel from '@/api/device/PhysicalModel.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport EquipEventDialog from \"./EquipEventDialog.vue\";\nexport default {\n props: {\n parameter: {\n type: Object,\n default: function _default() {\n return;\n }\n }\n },\n mixins: [TableMixin],\n components: {\n EquipEventDialog: EquipEventDialog\n },\n data: function data() {\n return {\n url: {\n delete: '/device/metadata/events/'\n },\n productIds: '',\n typeList: [],\n //事件等级\n outDataFormartList: [],\n //参数格式\n outDataTypeList: [],\n //参数类型\n dataUnits: [],\n sortList: {}\n };\n },\n created: function created() {\n this.typeList = dictUtils.getDictItemsFromCache('sjdj');\n this.outDataTypeList = dictUtils.getDictItemsFromCache('sxlx'); // 数据单位\n\n this.dataUnits = dictUtils.getDictItemsFromCache('sjdw');\n this.productIds = this.parameter.id;\n },\n methods: {\n AddAttribute: function AddAttribute() {\n this.$refs.formModal.add();\n },\n loadData: function loadData(page) {\n var _this = this;\n\n this.loading = true;\n this.queryParam.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'productId',\n relation: 'AND',\n value: this.parameter.productId\n }];\n PhysicalModel.loadEventDefinition(this.queryParam, function (res) {\n _this.total = res.total;\n res.rows.sort(function (a, b) {\n return a.sn - b.sn;\n });\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (e) {\n _this.typeList.forEach(function (t) {\n if (t.value == e.type) {\n e.typeName = t.name;\n }\n });\n\n _this.dataUnits.forEach(function (f) {\n if (f.value == e.outDataUnit) {\n e.outDataUnitName = f.name;\n }\n });\n\n _this.outDataTypeList.forEach(function (x) {\n if (x.value == e.outDataType) {\n e.outDataTypeName = x.name;\n }\n });\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n insort: function insort(val) {\n console.log(val);\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n },\n savePropertyf: function savePropertyf() {\n var _this2 = this;\n\n PhysicalModel.saveProperty(this.sortList, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: res.message,\n duration: 2000\n });\n\n _this2.loadData();\n } else {\n _this2.$message.warning(res.message);\n }\n });\n },\n handleDeleteone: function handleDeleteone() {\n console.log(1);\n console.log(this.multipleSelection);\n }\n }\n};",null]}