{"remainingRequest":"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\\EquipmentAlarm.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\components\\modle\\EquipmentAlarm.vue","mtime":1686877672995},{"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\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport equipmentManage from '@/api/device/equipmentManage.js'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport EquipmentAlarmDialog from './EquipmentAlarmDialog.vue'\nexport default {\n\tprops: {\n\t\tparameter: {\n\t\t\ttype: Object,\n\t\t\tdefault: function() {\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t},\n\tmixins: [TableMixin],\n\tcomponents: {\n\t\tEquipmentAlarmDialog\n\t},\n\tdata() {\n\t\treturn {\n\t\t\turl: {\n\t\t\t\tdelete: '/device/warn/conf/'\n\t\t\t},\n\t\t\tproductIds: '',\n\t\t\ttypeList: [], //事件等级\n\t\t\toutDataFormartList: [], //参数格式\n\t\t\toutDataTypeList: [], //参数类型\n\t\t\tsortList: {}\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.productIds = this.parameter.productId\n\t},\n\tmethods: {\n\t\tAddAttribute() {\n\t\t\tthis.$refs.formModal.add()\n\t\t},\n\t\tloadData(page) {\n\t\t\tthis.loading = true\n\t\t\tthis.queryParam.querys = [{\n\t\t\t\tgroup: 'main',\n\t\t\t\toperation: 'LIKE',\n\t\t\t\tparentGroup: '',\n\t\t\t\tproperty: 'deviceId',\n\t\t\t\trelation: 'AND',\n\t\t\t\tvalue: this.parameter.id\n\t\t\t}]\n\t\t\tequipmentManage.loadAlerts(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\t// this.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\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\t\t},\n\t\thandleChange(val) {\n\t\t\tconsole.log(val)\n\t\t\tlet title\n\t\t\ttitle = val.status == 1 ? '启用' : '禁用'\n\t\t\tequipmentManage.modifyEnabled(val, res => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tthis.$message({\n\t\t\t\t\t\tmessage: title + '成功',\n\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t})\n\t\t\t\t\tthis.loadData()\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t}\n}\n",null]}