标准内容自动识别-编辑 新增的时候有数据 编辑 未改写 保存 却提醒不能为空

更改为有数据回显,并且直接保存不会提示为空
This commit is contained in:
yanyizhou
2021-11-08 14:28:31 +08:00
parent 694397d9f9
commit 266f5f4b53
@@ -163,10 +163,17 @@
ref="importFileAboutStand" ref="importFileAboutStand"
> >
<el-button <el-button
v-if="uploadFilesdfEo.fileName === ''"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
>{{ $t("m.upload")+' PDF'}}</el-button >{{ $t("m.upload")+' PDF'}}</el-button>
> <div v-else>
<el-input readonly v-model="uploadFilesdfEo.fileName" class="bead-input" style="width: 62%;margin-right: 14px"></el-input>
<el-button
type="primary"
class="common-button-primary"
>{{ $t("m.upload")+' PDF'}}</el-button>
</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@@ -572,9 +579,11 @@ export default {
}, },
// 编辑 // 编辑
editOcrRecord(row) { editOcrRecord(row) {
console.log('575',row)
this.modalType = "2"; this.modalType = "2";
this.title = "编辑信息"; this.title = "编辑信息";
this.btnName = "保存"; this.btnName = "保存";
this.uploadFilesdfEo.fileName = row.fileName
this.uploadModal = true; this.uploadModal = true;
this.uploadFilesdfEo.standNumber = JSON.parse( this.uploadFilesdfEo.standNumber = JSON.parse(
JSON.stringify(row) JSON.stringify(row)