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"