{"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\\CmgtSaftyDangerCheckplanManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyDanger\\CmgtSaftyDangerCheckplanManage.vue","mtime":1686910374768},{"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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport CmgtSaftyDangerCheckplanApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckplanApi';\nimport CmgtSaftyDangerCheckplanFormDialog from '@/views/Manage/saftyDanger/components/CmgtSaftyDangerCheckplanFormDialog'; // import CmgtSaftyDangerCheckPlanRecordFormDialog from '@/views/Manage/saftyDanger/components/CmgtSaftyDangerCheckPlanRecordFormDialog'\n// import CmgtSaftyDangerCheckrecordFormDialog from '@/views/Manage/saftyDanger/components/CmgtSaftyDangerCheckrecordFormDialog'\n\nimport CmgtSaftyDangerCheckrecordApi from '@/views/Manage/saftyDanger/api/CmgtSaftyDangerCheckrecordApi';\nexport default {\n name: 'CmgtSaftyDangerCheckplanManage',\n components: {\n CmgtSaftyDangerCheckplanFormDialog: CmgtSaftyDangerCheckplanFormDialog // CmgtSaftyDangerCheckPlanRecordFormDialog,\n // CmgtSaftyDangerCheckrecordFormDialog\n\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n activeName: 'record',\n url: {\n delete: '/manager/cmgtSaftyDangerCheckplan/delete'\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'checkName',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'checkType',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'checkYearMonth',\n relation: 'AND',\n value: ''\n }],\n sorter: [{\n direction: 'DESC',\n property: 'checkYearMonth'\n }],\n recordTableData: [],\n StshowFormDias: false,\n pcfsList: [],\n units: [],\n searchRow: null\n };\n },\n created: function created() {\n this.pcfsList = dictContracts.getDictItemsFromCache('pclb'); // CmgtSaftyDangerCheckplanApi.loadAllUnit(res => {\n // \tthis.units = res\n // })\n },\n mounted: function mounted() {},\n methods: {\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].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 CmgtSaftyDangerCheckplanApi.loadCmgtSaftyDangerCheckplan(this.queryParam, function (res) {\n // console.log(res, 'res')\n _this.total = res.total;\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (item) {\n _this.pcfsList.forEach(function (val) {\n if (item.checkType == val.value) {\n item['checkTypeName'] = val.name;\n }\n });\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n searchRecord: function searchRecord(row, column, event) {\n var _this2 = this;\n\n var queryParam = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'checkplan_id_',\n relation: 'AND',\n value: row.id\n }];\n this.searchRow = row;\n CmgtSaftyDangerCheckrecordApi.loadCmgtSaftyDangerCheckrecord({\n querys: queryParam\n }, function (res) {\n _this2.recordTableData = res.rows;\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 formatUnitName: function formatUnitName(row, column, cellValue, index) {\n var obj = this.units.find(function (item) {\n if (item.id === row.recipient) {\n //\n return item;\n }\n });\n\n if (obj !== undefined) {\n return obj.unitName;\n } else {\n return '';\n }\n },\n addRecord: function addRecord(row) {\n var dw = this.units.find(function (item) {\n if (item.id === row.recipient) {\n //\n return item;\n }\n });\n this.$refs.recordFormModal.addRecord(row, dw);\n },\n updateRecord: function updateRecord(row, status) {\n this.$refs.recordFormModal.Update(row, status);\n },\n delRecord: function delRecord(row) {\n var _this3 = this;\n\n var ids = [];\n ids.push(row.id);\n CmgtSaftyDangerCheckrecordApi.deleteCmgtSaftyDangerCheckrecord(ids, function (res) {\n _this3.$message.success('删除成功!');\n\n _this3.searchRecord(_this3.searchRow, null, null);\n });\n }\n }\n};",null]}