{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceMonitor\\deviceAlarm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceMonitor\\deviceAlarm.vue","mtime":1667545182489},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 {\n\tTableMixin\n} from '@/mixins/tableMixin'\n// import basicExtensionDialog from '@/views/Device/resourceManage/components/basicExtensionDialog'\nimport deviceAlarm from '@/api/device/deviceAlarm.js'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nexport default {\n\tname: 'deviceAlarm',\n\tcomponents: {\n\t\t// basicExtensionDialog,\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\turl: {\n\t\t\t\tdelete: '/deviceWarnConf/v1/',\n\t\t\t},\n\t\t\tparams: {\n\t\t\t\tctlType: null,\n\t\t\t\ttype: null\n\t\t\t},\n\t\t\tsortList: {},\n\t\t\tTypeList: [],\n\t\t\tkjlxList: [],\n\t\t\tcompanyType: [],\n\t\t\tcompanyTypeValue: [],\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'ctlType',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'type',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'name',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t}\n\t\t\t],\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.TypeList = dictUtils.getDictItemsFromCache('pzlx')\n\t\tthis.kjlxList = dictUtils.getDictItemsFromCache('kjlx')\n\t},\n\tmounted() {},\n\tmethods: {\n\t\tclearQuerys() {\n\t\t\tthis.querys[0].value = '';\n\t\t\tthis.querys[1].value = '';\n\t\t\tthis.querys[2].value = '';\n\t\t},\n\t\tinsort(val) {\n\t\t\tlet id = val.id\n\t\t\tlet value = val.sn\n\t\t\tthis.sortList[id] = value\n\n\t\t},\n\t\tsavePropertyf() {\n\t\t\tdeviceAlarm.saveProperty(this.sortList, res => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\tmessage: res.message,\n\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t})\n\t\t\t\t\tthis.loadData()\n\t\t\t\t} else {\n\t\t\t\t\tthis.$message.warning(res.message)\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tloadData(page) {\n\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tif (this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tdeviceAlarm.loadUnit(this.queryParam, (res) => {\n\t\t\t\tres.rows.sort((a, b) => {\n\t\t\t\t\treturn a.sn - b.sn\n\t\t\t\t})\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\tthis.total = res.total\n\t\t\t\tif (this.tableData.length > 0) {\n\t\t\t\t\tthis.tableData.forEach(e => {\n\t\t\t\t\t\tif (e.type) {\n\t\t\t\t\t\t\tthis.TypeList.forEach(t => {\n\t\t\t\t\t\t\t\tif (e.type == t.value) {\n\t\t\t\t\t\t\t\t\te.typeName = t.name\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (e.ctlType) {\n\t\t\t\t\t\t\tthis.kjlxList.forEach(k => {\n\t\t\t\t\t\t\t\tif (e.ctlType == k.value) {\n\t\t\t\t\t\t\t\t\te.ctlTypeName = k.name\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\t},\n}\n",null]}