From 4bb2097e5ca479d36e0983575029eb84f4005c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Fri, 20 Sep 2024 10:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/project/projectChecking/index.vue | 4 +- .../projectChecking/projectCheckingDrawer.vue | 3 +- .../emergencyDrill/emergencyDrillDrawer.vue | 11 +- .../src/views/work/emergencyDrill/index.vue | 313 ++++++++++++++---- ruoyi-ui/src/views/work/workTrain/index.vue | 3 +- .../views/work/workTrain/workTrainDrawer.vue | 3 +- 6 files changed, 253 insertions(+), 84 deletions(-) diff --git a/ruoyi-ui/src/views/project/projectChecking/index.vue b/ruoyi-ui/src/views/project/projectChecking/index.vue index e8ce9e2d..f1183a4e 100644 --- a/ruoyi-ui/src/views/project/projectChecking/index.vue +++ b/ruoyi-ui/src/views/project/projectChecking/index.vue @@ -275,9 +275,7 @@ - - + - - + diff --git a/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue b/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue index 2f209ff0..fe183c7d 100644 --- a/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue +++ b/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue @@ -10,7 +10,8 @@ - - + placeholder="选择演练日期" + style="width: 100%" + value-format="yyyy-MM-dd" + >
- + - - + + - + - - + + - + - - + + - + - + - 搜索 + 搜索 重置 @@ -84,35 +147,74 @@ --> - + - + - - + + @@ -129,56 +231,123 @@ - + - + - + - - + + - + - - + - + - - + + @@ -244,8 +413,8 @@ export default { pageNum: 1, pageSize: 10, projectName: "", - projectId:null, - trainDeptIds:null, + projectId: null, + trainDeptIds: null, trainType: 1, dataType: null, isDel: null, @@ -275,8 +444,8 @@ export default { }, previewList: [], files: [], - projectOptions:[], - depts:[], + projectOptions: [], + depts: [], }; }, created() { @@ -285,37 +454,39 @@ export default { // this.depts = d?.data || []; // }); this.$api.publics.getMyProjectList({}).then((response) => { - this.projectOptions = response.rows; - }); + this.projectOptions = response.rows; + }); }, methods: { doQuerySub() { - let prjId=this.queryParams.projectId; + let prjId = this.queryParams.projectId; let tmps = this.prjDept2 && this.prjDept2[prjId] ? this.prjDept2[prjId] || [] : []; if (tmps.length > 0 || !prjId) { if (tmps.length == 1) { this.queryParams.trainDeptIds = tmps[0].deptId; } else { - this.queryParams.trainDeptIds = ''; + this.queryParams.trainDeptIds = ""; } return; } - this.$api.publics.queryUnitList({ - projectId: prjId, - unitTypes: "2".split(","), - }).then((d) => { - let objs = d.rows || []; - if (!this.prjDept2) { - this.prjDept2 = {}; - } - this.prjDept2[prjId] = objs; - this.depts = objs; - if (objs.length == 1) { - this.queryParams.trainDeptIds = objs[0].deptId; - } else { - this.queryParams.trainDeptIds = ''; - } - }); + this.$api.publics + .queryUnitList({ + projectId: prjId, + unitTypes: "2".split(","), + }) + .then((d) => { + let objs = d.rows || []; + if (!this.prjDept2) { + this.prjDept2 = {}; + } + this.prjDept2[prjId] = objs; + this.depts = objs; + if (objs.length == 1) { + this.queryParams.trainDeptIds = objs[0].deptId; + } else { + this.queryParams.trainDeptIds = ""; + } + }); }, setDataType(rowid, val) { updateWorkTrainDataType({ id: rowid, dataType: val }); @@ -472,7 +643,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => { }); + .catch(() => {}); }, /** 演练演练协同部门序号 */ rowWorkTrainDeptIndex({ row, rowIndex }) { diff --git a/ruoyi-ui/src/views/work/workTrain/index.vue b/ruoyi-ui/src/views/work/workTrain/index.vue index 4589583f..c6b9b16d 100644 --- a/ruoyi-ui/src/views/work/workTrain/index.vue +++ b/ruoyi-ui/src/views/work/workTrain/index.vue @@ -164,8 +164,7 @@ - - + diff --git a/ruoyi-ui/src/views/work/workTrain/workTrainDrawer.vue b/ruoyi-ui/src/views/work/workTrain/workTrainDrawer.vue index 732b3827..9869ec6b 100644 --- a/ruoyi-ui/src/views/work/workTrain/workTrainDrawer.vue +++ b/ruoyi-ui/src/views/work/workTrain/workTrainDrawer.vue @@ -208,10 +208,11 @@