{"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\\CmgtTSaftyWorkSend.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\CmgtTSaftyWorkSend.vue","mtime":1684291058326},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 CmgtTSaftyWorkSendFormDialog from '@/views/Manage/saftyDanger/components/CmgtTSaftyWorkSendFormDialog'\r\n\r\nexport default {\r\n name: 'CmgtSaftyDangerUnitManage',\r\n components: {\r\n CmgtTSaftyWorkSendFormDialog\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n dialogVisible: false,\r\n gridData: [],\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: 'produceType',\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: 'remindType',\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: 'sendStatus',\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: 'workRemindTitle',\r\n relation: 'AND',\r\n value: ''\r\n }\r\n ],\r\n StshowFormDias: false,\r\n sorter: [\r\n {\r\n direction: 'ASC',\r\n property: 'sendTime'\r\n }\r\n ]\r\n // levels:[]\r\n }\r\n },\r\n created() {\r\n this.produceTypeList = dictUtils.getDictItemsFromCache('yjcsfs')\r\n this.sendStatusList = dictUtils.getDictItemsFromCache('yjxxfszt')\r\n this.remindTypeList = dictUtils.getDictItemsFromCache('yjtxfs')\r\n this.remindRangeList = dictUtils.getDictItemsFromCache('tzfw')\r\n console.log(this.produceTypeList)\r\n },\r\n mounted() {},\r\n methods: {\r\n //\r\n ActivateDisable() {},\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.cmgtWorkWarnSendQuery(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.produceTypeList.forEach(val => {\r\n console.log(val)\r\n if (item.produceType == val.value) {\r\n item.produceType = val.name\r\n }\r\n })\r\n this.sendStatusList.forEach(val => {\r\n if (item.sendStatus == val.value) {\r\n item.sendStatus = 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 })\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 detail(row) {\r\n console.log(row)\r\n this.gridData = row.detail\r\n this.gridData.forEach(item => {\r\n // console.log(item)\r\n this.produceTypeList.forEach(val => {\r\n // console.log(val)\r\n if (item.produceType == val.value) {\r\n item.produceType = val.name\r\n }\r\n })\r\n this.sendStatusList.forEach(val => {\r\n if (item.receiveStatus == val.value) {\r\n item.receiveStatus = 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 })\r\n this.dialogVisible = true\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]}