|
|
@ -54,7 +54,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="inspectResult" label="检查结果" align="center" width="200px"> |
|
|
|
<el-table-column prop="inspectResult" label="检查结果" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select v-if="scope.row.isEdit" v-model="scope.row.inspectResult" placeholder="请选择" class="input-width" size="small" clearable> |
|
|
|
<el-option v-for="subItem in optionResult" :key="subItem.value" :label="subItem.label" :value="subItem.value"></el-option> |
|
|
@ -101,10 +101,11 @@ |
|
|
|
:on-remove="(res) => handleImgRemove(res, scope.row)" |
|
|
|
list-type="picture" |
|
|
|
:before-upload="beforeImgUpload"> |
|
|
|
<i class="el-icon-plus avatar-uploader-icon"></i> 最多三张图片 |
|
|
|
<div v-if="scope.row.imgList.length != 3"><i class="el-icon-plus avatar-uploader-icon"></i> |
|
|
|
最多三张图片</div> |
|
|
|
</el-upload> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div v-else |
|
|
|
class="div-content"> |
|
|
|
<el-image v-if="scope.row.imgList.length > 0" |
|
|
@ -230,7 +231,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
console.log('id', this.id); |
|
|
|
console.log('新的id', this.id); |
|
|
|
this.getOptionStaff(); |
|
|
|
if (this.id) { |
|
|
|
this.getList(); |
|
|
@ -352,7 +353,7 @@ export default { |
|
|
|
|
|
|
|
const item = { |
|
|
|
isEdit: true, |
|
|
|
id: this.id, |
|
|
|
// enterpriseId: this.id, |
|
|
|
inspectTime: '', |
|
|
|
inspectStaffId: '', |
|
|
|
inspectStaffName: '', |
|
|
@ -366,6 +367,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async save(row) { |
|
|
|
|
|
|
|
const params = { |
|
|
|
equipmentId: this.id, |
|
|
|
...row |
|
|
|