| | |
| | | <el-table-column label="运维结果" align="center" prop="ywResult" /> |
| | | <el-table-column label="运维情况" align="center" prop="ywCondition" width="150"/> |
| | | <el-table-column label="运维检测结果" align="center" prop="ywCheckResult" width="230"/> |
| | | |
| | | <el-table-column label="创建时间" align="center" prop="createTime" width="180"/> |
| | | |
| | | <el-table-column label="操作" fixed="right" width="150" align="center" class-name="small-padding fixed-width"> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="运维人员" prop="ywPeopleName"> |
| | | <el-input v-model="ywConditionForm.ywPeopleName" disabled /> |
| | | </el-form-item> |
| | | <el-form-item label="现场图片" prop="picture"> |
| | | <el-upload |
| | | class="avatar-uploader" |
| | | action="/dev-api/common/upload" |
| | | name="file" |
| | | :headers="{'Authorization': 'Bearer ' + getToken()}" |
| | | :on-success="pictureUploadSuccess" |
| | | :on-remove="pictureRemove" |
| | | :file-list="pictureList" |
| | | list-type="picture"> |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item label="佐证材料" prop="certificates"> |
| | | <el-upload |
| | | class="avatar-uploader" |
| | | action="/dev-api/common/upload" |
| | | name="file" |
| | | :headers="{'Authorization': 'Bearer ' + getToken()}" |
| | | :on-success="certificateUploadSuccess" |
| | | :on-remove="certificateRemove" |
| | | :file-list="certificateList" |
| | | list-type="picture"> |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item label="运维情况" prop="ywCondition"> |
| | | <el-input v-model="ywConditionForm.ywCondition" type="textarea" maxlength="150" show-word-limit/> |
| | |
| | | name: "Work-order", |
| | | data() { |
| | | return { |
| | | certificateList:[], |
| | | pictureList: [], |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | |
| | | this.auditingForm = {}; |
| | | this.auditingOpen = false; |
| | | }, |
| | | pictureRemove(file, fileList) { |
| | | this.form.picture = null, |
| | | |
| | | this.pictureList = this.pictureList.filter(item => item.name !== file.name) |
| | | }, |
| | | certificateRemove(file, fileList) { |
| | | this.form.certificate = null, |
| | | |
| | | this.certificateList = this.certificateList.filter(item => item.name !== file.name) |
| | | }, |
| | | pictureUploadSuccess(response, file, fileList) { |
| | | this.form.picture = response.fileName, |
| | | this.pictureList.push({ |
| | | name: response.originalFilename, |
| | | url: response.url, |
| | | fileName: response.fileName |
| | | }) |
| | | }, |
| | | certificateUploadSuccess(response, file, fileList) { |
| | | this.form.certificate = response.fileName, |
| | | this.certificateList.push({ |
| | | name: response.originalFilename, |
| | | url: response.url, |
| | | fileName: response.fileName |
| | | }) |
| | | }, |
| | | // 提交运维情况 |
| | | submitYwCondition() { |
| | | this.$refs["ywConditionForm"].validate(valid => { |
| | |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改运维工单"; |
| | | this.pictureList = JSON.parse(response.data.picture).map(item => { |
| | | return { |
| | | name: item, |
| | | url: process.env.VUE_APP_FILE_API + '/' + item, |
| | | fileName: item |
| | | } |
| | | }) |
| | | this.certificateList = JSON.parse(row.certificate).map(item => { |
| | | return { |
| | | name: item, |
| | | url: process.env.VUE_APP_FILE_API + '/' + item, |
| | | fileName: item |
| | | } |
| | | }) |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |