{"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\\EquipmentExtendDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\EquipmentExtendDialog.vue","mtime":1687946823184},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 EquipmentExtendInfoDialog from '@/views/Device/deviceManage/components/EquipmentExtendInfoDialog';\nimport resourceManage from '@/api/device/resourceManage.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'EquipmentExtendDialog',\n components: {\n EquipmentExtendInfoDialog: EquipmentExtendInfoDialog\n },\n mixins: [TableMixin],\n props: {\n showExtend: {\n type: Boolean,\n default: false\n },\n parameter: {\n type: Object,\n default: function _default() {}\n }\n },\n data: function data() {\n return {\n visible: false,\n url: {\n delete: '/device/params/conf/'\n },\n params: {\n ctlType: null\n },\n sortList: {},\n kjlxList: [],\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'deviceId',\n relation: 'AND',\n value: this.parameter.id\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'ctlType',\n relation: 'AND',\n value: ''\n }]\n };\n },\n created: function created() {\n this.kjlxList = dictUtils.getDictItemsFromCache('kjlx');\n },\n mounted: function mounted() {},\n methods: {\n clearQuerys: function clearQuerys() {\n this.querys[1].value = '';\n this.querys[2].value = '';\n },\n insort: function insort(val) {\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n },\n savePropertyf: function savePropertyf() {\n var _this = this;\n\n resourceManage.saveProperty(this.sortList, function (res) {\n if (res.state) {\n _this.$notify({\n type: 'success',\n message: res.message,\n duration: 2000\n });\n\n _this.loadData();\n } else {\n _this.$message.warning(res.message);\n }\n });\n },\n handleAdd: function handleAdd() {\n this.$refs.formModal.add(this.parameter);\n },\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n resourceManage.loadExtend(this.queryParam, function (res) {\n res.rows.sort(function (a, b) {\n return a.sn - b.sn;\n });\n _this2.tableData = res.rows;\n _this2.total = res.total;\n\n if (_this2.tableData.length > 0) {\n _this2.tableData.forEach(function (e) {\n if (e.ctlType) {\n _this2.kjlxList.forEach(function (k) {\n if (e.ctlType == k.value) {\n e.ctlTypeName = k.name;\n }\n });\n }\n });\n }\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n },\n handleClose: function handleClose() {\n this.visible = false;\n this.$emit('closeExtend');\n this.$emit('reload');\n }\n }\n};",null]}