{"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\\saftyTraining\\activityQuery.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\saftyTraining\\activityQuery.vue","mtime":1684394347075},{"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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport activityQueryApi from '@/views/Manage/saftyTraining/api/activityQueryApi';\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: 'p.training_type_2',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'p.pxdx_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'p.training_cycle_',\n relation: 'AND',\n value: ''\n }],\n StshowFormDias: false,\n sorter: [{\n direction: 'ASC',\n property: 'sn'\n }] // levels:[]\n\n };\n },\n created: function created() {\n this.trainingType2List = dictUtils.getDictItemsFromCache('pxlx');\n this.trainingCycleList = dictUtils.getDictItemsFromCache('pxzq');\n this.pxdxList = dictUtils.getDictItemsFromCache('pxdx');\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 },\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 activityQueryApi.cmgtSaftyTrainPlanArchives(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 _this.trainingType2List.forEach(function (val) {\n // console.log(val)\n if (item.trainingType2 == val.value) {\n item.trainingType2 = val.name;\n }\n });\n\n _this.trainingCycleList.forEach(function (val) {\n if (item.trainingCycle == val.value) {\n item.trainingCycle = val.name;\n }\n });\n\n _this.pxdxList.forEach(function (val) {\n if (item.pxdx == val.value) {\n item.pxdx = val.name;\n }\n });\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n // handleDelete() {\n // // console.log(this.multipleSelection)\n // CmgtTSaftyWorkConfApi.deleteCmgtSaftyDangerUnit(this.multipleSelection)\n // .then(res => {\n // if (res.state) {\n // this.$notify({\n // type: 'success',\n // message: '删除成功',\n // duration: 2000\n // })\n // this.queryParam.pageBean.page = 1\n // this.loadData()\n // }\n // })\n // .catch(res => {\n // this.$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 _this2 = this;\n\n console.log(row.id);\n activityQueryApi.cmgtSaftyTrainRecordQuery({\n groupTree: {},\n pageBean: {\n page: 1,\n pageSize: 10\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'p_plan_id_',\n relation: 'AND',\n value: row.id\n }],\n sorter: [{\n direction: 'ASC',\n property: ''\n }]\n }, function (res) {\n console.log(res.rows);\n _this2.gridData = res.rows;\n }); // this.gridData = row.detail\n // this.gridData.forEach(item => {\n // // console.log(item)\n // this.produceTypeList.forEach(val => {\n // // console.log(val)\n // if (item.produceType == val.value) {\n // item.produceType = val.name\n // }\n // })\n // this.sendStatusList.forEach(val => {\n // if (item.receiveStatus == val.value) {\n // item.receiveStatus = val.name\n // }\n // })\n // this.remindTypeList.forEach(val => {\n // if (item.remindType == val.value) {\n // item.remindType = val.name\n // }\n // })\n // this.remindRangeList.forEach(val => {\n // if (item.remindRange == val.value) {\n // item.remindRange = val.name\n // }\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]}