From ad4692ea799e439ff70c38806a01d89c121e6681 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, 22 Mar 2024 01:09:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/work/emergencyDrill/emergencyDrillDrawer.vue | 7 ++++--- .../src/main/resources/mapper/work/WorkTrainMapper.xml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue b/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue index 6bf4661b..01260aef 100644 --- a/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue +++ b/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue @@ -481,13 +481,14 @@ export default { this.deptOptions = response.data; this.open = true; }); + let that = this; getWorkTrain(id).then((response) => { - this.form = response.data; + that.form = response.data; let depts = []; - this.form.workTrainDeptList.forEach((item) => { + that.form.workTrainDeptList.forEach((item) => { depts.push(item.deptId); }); - this.form.workTrainDeptList = depts; + that.form.workTrainDeptList = depts; if (that.form.trainFile) { that.files = that.form.trainFile.split(","); } diff --git a/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml b/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml index d93b5939..fe5b82dd 100644 --- a/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml @@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"