From cbf6a875ede774c577c3ab21aa0a1cd9faa63a59 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期五, 20 五月 2022 17:44:07 +0800 Subject: [PATCH] 'lct' --- src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue | 46 +++++++++++++++++++++++++++++++++++++--------- 1 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue index f9b28b2..fc79069 100644 --- a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue +++ b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/components/detail.vue @@ -84,6 +84,20 @@ <div v-if="ifNormal"> <el-row> <el-col :span="24"> + <el-form-item label="异常通知部门" prop="execDepartment"> + <el-select v-model="inspectionRecordDetailForm.noticeDepId" filterable clearable class="analyseUnit_input" @change="changeExec"> + <el-option + v-for="item in departmentList" + :key="item.id" + :value="item.id" + :label="item.department" + ></el-option> + </el-select> + </el-form-item> + </el-col> + </el-row> + <el-row> + <el-col :span="24"> <el-form-item label="异常通知人员" prop="noticeUid"> <el-select v-model="inspectionRecordDetailForm.noticeUid" clearable filterable :disabled="ifShow" class="input"> <el-option @@ -100,6 +114,20 @@ <el-col :span="24"> <el-form-item label="整改时间" prop="fixTime"> <el-date-picker placeholder="选择时间" v-model="inspectionRecordDetailForm.fixTime" class="input" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" :disabled="ifShow"></el-date-picker> + </el-form-item> + </el-col> + </el-row> + <el-row> + <el-col :span="24"> + <el-form-item label="异常整改部门" prop="execDepartment"> + <el-select v-model="inspectionRecordDetailForm.fixDepId" filterable clearable class="analyseUnit_input" @change="changeExec"> + <el-option + v-for="item in departmentList" + :key="item.id" + :value="item.id" + :label="item.department" + ></el-option> + </el-select> </el-form-item> </el-col> </el-row> @@ -136,8 +164,8 @@ :headers="header" :data="uploadForm" list-type="picture-card" - :file-list="fileList" - v-model="inspectionRecordDetailForm.img" + :file-list="inspectionRecordDetailForm.imgInfoList" + v-model="inspectionRecordDetailForm.imgInfoList" :on-change="handleChangeFile" :on-success="onFileSuccess" :multiple="false" @@ -212,12 +240,14 @@ execUid: null, fixTime: null, fixUid: null, - img: null, + imgInfoList: [], info: null, noticeUid: null, result: 1, taskId: null, - unitId: null + unitId: null, + fixDepId:null, + noticeDepId:null, }, inspectionRecordDetailFormRules:{ img: [{ required: true, validator: validateImg, trigger: 'blur' }], @@ -279,7 +309,7 @@ this.inspectionRecordDetailForm.fixTime = null this.inspectionRecordDetailForm.fixUid = null this.inspectionRecordDetailForm.info = null - this.inspectionRecordDetailForm.img = null + this.inspectionRecordDetailForm.img = [] } this.$refs["inspectionRecordDetailForm"].validate((valid) =>{ if(valid){ @@ -314,8 +344,7 @@ }, onFileSuccess(response){ if(response.code === '200'){ - this.inspectionRecordDetailForm.img = response.result.path - this.fileList.push({url:process.env.IMG_API + response.result.path}) + this.inspectionRecordDetailForm.img.push({url:process.env.IMG_API + response.result.path}) this.$notify({ type:'success', duration:2000, @@ -339,8 +368,7 @@ cancelButtonText:'取消', type:'warning', }).then(()=> { - this.inspectionRecordDetailForm.img = null - this.fileList = [] + }) }, } -- Gitblit v1.9.2