{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\CmgtTSaftyWorkConf.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\CmgtTSaftyWorkConf.vue","mtime":1684722830134},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 {TableMixin} from '@/mixins/tableMixin'\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport dictContracts from '@/components/dict/DictSelectUtils.js'\r\n\r\nimport CmgtTSaftyWorkConfApi from '@/views/Manage/saftyDanger/api/CmgtTSaftyWorkConfApi'\r\nimport CmgtTSaftyWorkConfFormDialog from '@/views/Manage/saftyDanger/components/CmgtTSaftyWorkConfFormDialog'\r\n\r\nexport default {\r\n name: 'CmgtSaftyDangerUnitManage',\r\n components: {\r\n CmgtTSaftyWorkConfFormDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n url: {\r\n delete: '/manager/cmgtSaftyDangerUnit/delete'\r\n },\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'warnBiz',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'msgExigency',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'flag',\r\n relation: 'AND',\r\n value: ''\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'title',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ],\r\n StshowFormDias: false,\r\n types: [],\r\n sorter: [\r\n {\r\n direction: 'ASC',\r\n property: ''\r\n }\r\n ]\r\n // levels:[]\r\n }\r\n },\r\n created() {\r\n this.types = dictContracts.getDictItemsFromCache('cmgt_aqyhpcdwlb')\r\n this.warnBizList = dictUtils.getDictItemsFromCache('yjtxyw')\r\n this.warnBizItemList = dictUtils.getDictItemsFromCache('yjtxx')\r\n this.warnRuleList = dictUtils.getDictItemsFromCache('yjgz')\r\n this.msgExigencyList = dictUtils.getDictItemsFromCache('yjjjcd')\r\n this.remindTypeList = dictUtils.getDictItemsFromCache('yjtxfs')\r\n this.remindRangeList = dictUtils.getDictItemsFromCache('tzfw')\r\n this.flagList = dictUtils.getDictItemsFromCache('yxbz')\r\n // this.levels = dictContracts.getDictItemsFromCache('cmgt_aqyhfxjb')\r\n },\r\n mounted() {},\r\n methods: {\r\n //启用\r\n Activate(row) {\r\n // console.log(row)\r\n CmgtTSaftyWorkConfApi.startUpJob(row.id, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '启用成功',\r\n duration: 2000\r\n })\r\n this.loadData()\r\n }\r\n })\r\n },\r\n //禁用\r\n Disable(row) {\r\n // console.log(row)\r\n CmgtTSaftyWorkConfApi.stopJob(row.id, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '禁用成功',\r\n duration: 2000\r\n })\r\n this.loadData()\r\n }\r\n })\r\n },\r\n // 重置\r\n clearQuerys() {\r\n this.querys[0].value = ''\r\n this.querys[1].value = ''\r\n this.querys[2].value = ''\r\n this.querys[3].value = ''\r\n },\r\n // 获取list\r\n loadData(page) {\r\n if (page) {\r\n this.queryParam.pageBean.page = page\r\n }\r\n this.loading = true\r\n this.tableData = []\r\n this.queryParam.querys = []\r\n this.queryParam.sorter = this.sorter\r\n if (this.querys[0].value) {\r\n this.queryParam.querys.push(this.querys[0])\r\n }\r\n if (this.querys[1].value) {\r\n this.queryParam.querys.push(this.querys[1])\r\n }\r\n if (this.querys[2].value) {\r\n this.queryParam.querys.push(this.querys[2])\r\n }\r\n if (this.querys[3].value) {\r\n this.queryParam.querys.push(this.querys[3])\r\n }\r\n CmgtTSaftyWorkConfApi.cmgtWorkWarnConfQuery(this.queryParam, res => {\r\n console.log(res)\r\n this.total = res.total\r\n this.tableData = res.rows\r\n this.tableData.forEach(item => {\r\n // console.log(item)\r\n this.warnBizList.forEach(val => {\r\n if (item.warnBiz == val.value) {\r\n item.warnBiz = val.name\r\n }\r\n })\r\n this.warnBizItemList.forEach(val => {\r\n if (item.warnBizItem == val.value) {\r\n item.warnBizItem = val.name\r\n }\r\n })\r\n // this.msgExigencyList.forEach(val => {\r\n // if (item.msgExigency == val.value) {\r\n // item.msgExigency = val.name\r\n // }\r\n // })\r\n this.remindTypeList.forEach(val => {\r\n if (item.remindType == val.value) {\r\n item.remindType = val.name\r\n }\r\n })\r\n this.remindRangeList.forEach(val => {\r\n if (item.remindRange == val.value) {\r\n item.remindRange = val.name\r\n }\r\n })\r\n this.flagList.forEach(val => {\r\n if (item.flag == val.value) {\r\n item.flag = val.name\r\n }\r\n })\r\n // item['emphasisTypeName'] = ''\r\n // this.zddwflList.forEach(val => {\r\n // if (item.emphasisType) {\r\n // item.emphasisType.split(',').forEach((e, ei) => {\r\n // if (e == val.value) {\r\n // if (ei + 1 < item.emphasisType.split(',').length) {\r\n // item['emphasisTypeName'] += val.name + ','\r\n // } else {\r\n // item['emphasisTypeName'] += val.name\r\n // }\r\n // }\r\n // })\r\n // }\r\n // })\r\n // this.fxjbList.forEach(val => {\r\n // if (item.riskLevel == val.value) {\r\n // item['riskLevelName'] = val.name\r\n // }\r\n // })\r\n // this.rlzlList.forEach(val => {\r\n // if (item.fuelType == val.value) {\r\n // item['fuelTypeName'] = val.name\r\n // }\r\n // })\r\n })\r\n this.$set(this.tableData)\r\n this.loading = false\r\n })\r\n },\r\n handleDelete() {\r\n // console.log(this.multipleSelection)\r\n CmgtTSaftyWorkConfApi.deleteCmgtSaftyDangerUnit(this.multipleSelection)\r\n .then(res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000\r\n })\r\n this.queryParam.pageBean.page = 1\r\n this.loadData()\r\n }\r\n })\r\n .catch(res => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80\r\n })\r\n })\r\n },\r\n // 修改\r\n handleUpdate(row) {\r\n // console.log(row.id)\r\n this.$refs.formModal.Update(row)\r\n },\r\n closeStshowForm() {\r\n this.StshowFormDias = false\r\n },\r\n formartTyepName(row, column, cellValue, index) {\r\n var obj = this.types.find(function(item) {\r\n if (item.value === row.type) {\r\n //\r\n return item\r\n }\r\n })\r\n if (obj !== undefined) {\r\n return obj.name\r\n } else {\r\n return ''\r\n }\r\n }\r\n }\r\n}\r\n",null]}