{"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\\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\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 CmgtTSaftyWorkSendFormDialog from '@/views/Manage/saftyDanger/components/CmgtTSaftyWorkSendFormDialog';\nexport default {\n name: 'CmgtSaftyDangerUnitManage',\n components: {\n CmgtTSaftyWorkSendFormDialog: CmgtTSaftyWorkSendFormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n dialogVisible: false,\n gridData: [],\n url: {\n delete: '/manager/cmgtSaftyDangerUnit/delete'\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'produceType',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'remindType',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'sendStatus',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'workRemindTitle',\n relation: 'AND',\n value: ''\n }],\n StshowFormDias: false,\n sorter: [{\n direction: 'ASC',\n property: 'sendTime'\n }] // levels:[]\n\n };\n },\n created: function created() {\n this.produceTypeList = dictUtils.getDictItemsFromCache('yjcsfs');\n this.sendStatusList = dictUtils.getDictItemsFromCache('yjxxfszt');\n this.remindTypeList = dictUtils.getDictItemsFromCache('yjtxfs');\n this.remindRangeList = dictUtils.getDictItemsFromCache('tzfw');\n console.log(this.produceTypeList);\n },\n mounted: function mounted() {},\n methods: {\n //\n ActivateDisable: function ActivateDisable() {},\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 _this = 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.cmgtWorkWarnSendQuery(this.queryParam, function (res) {\n console.log(res);\n _this.total = res.total;\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (item) {\n console.log(item);\n\n _this.produceTypeList.forEach(function (val) {\n console.log(val);\n\n if (item.produceType == val.value) {\n item.produceType = val.name;\n }\n });\n\n _this.sendStatusList.forEach(function (val) {\n if (item.sendStatus == val.value) {\n item.sendStatus = val.name;\n }\n });\n\n _this.remindTypeList.forEach(function (val) {\n if (item.remindType == val.value) {\n item.remindType = val.name;\n }\n });\n\n _this.remindRangeList.forEach(function (val) {\n if (item.remindRange == val.value) {\n item.remindRange = val.name;\n }\n });\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n handleDelete: function handleDelete() {\n var _this2 = this;\n\n // console.log(this.multipleSelection)\n CmgtTSaftyWorkConfApi.deleteCmgtSaftyDangerUnit(this.multipleSelection).then(function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this2.queryParam.pageBean.page = 1;\n\n _this2.loadData();\n }\n }).catch(function (res) {\n _this2.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n });\n },\n // 详情\n detail: function detail(row) {\n var _this3 = this;\n\n console.log(row);\n this.gridData = row.detail;\n this.gridData.forEach(function (item) {\n // console.log(item)\n _this3.produceTypeList.forEach(function (val) {\n // console.log(val)\n if (item.produceType == val.value) {\n item.produceType = val.name;\n }\n });\n\n _this3.sendStatusList.forEach(function (val) {\n if (item.receiveStatus == val.value) {\n item.receiveStatus = val.name;\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 this.dialogVisible = true;\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]}