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