{"remainingRequest":"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":1687946823200},{"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\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 activityQueryApi from '@/views/Manage/saftyTraining/api/activityQueryApi'\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: 'p.training_type_2',\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: 'p.pxdx_',\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: 'p.training_cycle_',\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: 'p.plan_name_',\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: 'sn'\r\n }\r\n ]\r\n // levels:[]\r\n }\r\n },\r\n created() {\r\n this.trainingType2List = dictUtils.getDictItemsFromCache('pxlx')\r\n this.trainingCycleList = dictUtils.getDictItemsFromCache('pxzq')\r\n this.pxdxList = dictUtils.getDictItemsFromCache('pxdx')\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 activityQueryApi.cmgtSaftyTrainPlanArchives(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.trainingType2List.forEach(val => {\r\n // console.log(val)\r\n if (item.trainingType2 == val.value) {\r\n item.trainingType2 = val.name\r\n }\r\n })\r\n this.trainingCycleList.forEach(val => {\r\n if (item.trainingCycle == val.value) {\r\n item.trainingCycle = val.name\r\n }\r\n })\r\n this.pxdxList.forEach(val => {\r\n if (item.pxdx == val.value) {\r\n item.pxdx = 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.id)\r\n activityQueryApi.cmgtSaftyTrainRecordQuery(\r\n {\r\n groupTree: {},\r\n pageBean: {\r\n page: 1,\r\n pageSize: 10\r\n },\r\n params: {},\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'EQUAL',\r\n parentGroup: '',\r\n property: 'p_plan_id_',\r\n relation: 'AND',\r\n value: row.id\r\n }\r\n ],\r\n sorter: [\r\n {\r\n direction: 'ASC',\r\n property: ''\r\n }\r\n ]\r\n },\r\n res => {\r\n console.log(res.rows)\r\n this.gridData = res.rows\r\n }\r\n )\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]}