dedsudiyu hace 10 meses
padre
commit
1e20abfc2e
Se han modificado 1 ficheros con 64 adiciones y 31 borrados
  1. 64 31
      pages_safetyExamine/views/examineManage/examineAdd.vue

+ 64 - 31
pages_safetyExamine/views/examineManage/examineAdd.vue

@@ -647,8 +647,8 @@
 					let idList = [];
 					let nameList = [];
 					for (let i = 0; i < data.data.length; i++) {
-						idList.push(data.rows[i].id)
-						nameList.push(data.rows[i].name)
+						idList.push(data.data[i].id)
+						nameList.push(data.data[i].name)
 					}
 					this.$set(this, "buildingList", idList)
 					this.$set(this, "buildingArray", nameList)
@@ -865,35 +865,68 @@
 					infoId: infoId
 				});
 				if (data.code == 200) {
-
-					this.$set(this.form, "subIds", data.data.subId)
-					this.$set(this.form, "subjectName", data.data.subName)
-					this.$set(this.form, "deptId", data.data.deptId)
-					this.$set(this.form, "deptName", data.data.deptName)
-					this.$set(this.form, "collegeName", data.data.deptName)
-					this.$set(this.form, "buildId", data.data.buildId)
-					this.$set(this.form, "buildName", data.data.buildName)
-					this.$set(this.form, "roomNumber", data.data.roomNum)
-					this.$set(this.form, 'title', '');
-					this.$set(this.form, 'id', '');
-					this.$set(this.form, 'checkType', 2);
-					this.$set(this.form, 'checkResult', 1);
-					this.$set(this.form, 'rectifyDeadline', '');
-					this.$set(this, 'informIndex', 0);
-					this.$set(this.form, 'cycleStartTime', '');
-					this.$set(this.form, 'cycleEndTime', '');
-					this.$set(this.form, 'checkHazardDtoList', [{
-						voiceRemark: [], //语音备忘存储
-						hazardLevel: 2, //隐患等级
-						hazardLevelName: '一般隐患', //隐患等级
-						hazardCheckCode: '', //检查项目code序号
-						hazardCheckName: '', //检查项目名称
-						hazardCheckPro: '', //最后一级的id
-						hazardCheckPoint: '', // 检查要点
-						hazardDescribe: '', //隐患描述
-						uploadDtoList: [], //隐患照片
-					}]);
-					this.getCheckPlanBySubId(data.data.subId)
+					this.$set(this,'form',{
+							id: '',
+							checkPlanId: '',
+							manageStatus: '', //保存1  提交2
+							subIds: '', //实验室
+							subjectName: '',
+							title: '', //计划标题
+							deptId: '', //学院
+							collegeName: '',
+							buildId: '', //楼栋
+							buildName: '',
+							roomNumber: '', //房间号
+							checkType: 2, // 检查组织(1校院巡查 2实验室自查)
+							checkResult: 1, // 检查结果 0不符合 1符合
+							rectifyDeadline: '', //整改期限
+							rectifyNotice: '1', //整改通知(1整改告知书 2整改通知书)
+							cycleStartTime: '',
+							cycleEndTime: '',
+							checkCategory: '', //检查类型  1综合检查  2专项检查
+							checkHazardDtoList: [{
+								voiceRemark: [], //语音备忘存储
+								hazardLevel: 2, //隐患等级
+								hazardLevelName: '一般隐患', //隐患等级
+								hazardCheckCode: '', //检查项目code序号
+								hazardCheckName: '', //检查项目名称
+								hazardCheckPro: '', //最后一级的id
+								hazardCheckPoint: '', // 检查要点
+								hazardDescribe: '', //隐患描述
+								uploadDtoList: [], //隐患照片
+							}],
+							checkHazardInfoVoList: [],
+					});
+					this.$nextTick(()=>{
+						this.$set(this.form, "subIds", data.data.subId)
+						this.$set(this.form, "subjectName", data.data.subName)
+						this.$set(this.form, "deptId", data.data.deptId)
+						this.$set(this.form, "deptName", data.data.deptName)
+						this.$set(this.form, "collegeName", data.data.deptName)
+						this.$set(this.form, "buildId", data.data.buildId)
+						this.$set(this.form, "buildName", data.data.buildName)
+						this.$set(this.form, "roomNumber", data.data.roomNum)
+						this.$set(this.form, 'title', '');
+						this.$set(this.form, 'id', '');
+						this.$set(this.form, 'checkType', 2);
+						this.$set(this.form, 'checkResult', 1);
+						this.$set(this.form, 'rectifyDeadline', '');
+						this.$set(this, 'informIndex', 0);
+						this.$set(this.form, 'cycleStartTime', '');
+						this.$set(this.form, 'cycleEndTime', '');
+						this.$set(this.form, 'checkHazardDtoList', [{
+							voiceRemark: [], //语音备忘存储
+							hazardLevel: 2, //隐患等级
+							hazardLevelName: '一般隐患', //隐患等级
+							hazardCheckCode: '', //检查项目code序号
+							hazardCheckName: '', //检查项目名称
+							hazardCheckPro: '', //最后一级的id
+							hazardCheckPoint: '', // 检查要点
+							hazardDescribe: '', //隐患描述
+							uploadDtoList: [], //隐患照片
+						}]);
+						this.getCheckPlanBySubId(data.data.subId)
+					})
 				}
 			},
 			//附件查看