fix:光芯交接记录展示文件
This commit is contained in:
parent
9ce4971ec7
commit
c741ced8ee
|
@ -179,7 +179,9 @@
|
|||
:accept="['.xlsx', '.xls']"
|
||||
@success = "fileUPSuccess"
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-upload"> </el-button>
|
||||
<el-button type="primary" icon="el-icon-upload" v-if="mode!=='show'"> </el-button>
|
||||
<br/>
|
||||
<el-link v-if="mode!=='add'&&form.oinfo_json" :href="form.oinfo_json.test_file" type="primary" target="_blank">{{form.oinfo_json.test_file}}</el-link>
|
||||
</sc-upload-file>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -615,6 +617,12 @@ export default {
|
|||
console.log('交接记录查看',data)
|
||||
let that = this;
|
||||
Object.assign(this.form, data);
|
||||
let obj = {};
|
||||
if(data.oinfo_json&&data.oinfo_json.test_file){
|
||||
obj.name=data.oinfo_json.test_file;
|
||||
obj.url=data.oinfo_json.test_file;
|
||||
this.fileList.push(obj);
|
||||
}
|
||||
that.totalCount = 0;
|
||||
that.form.handoverb = data.handoverb;
|
||||
data.handoverb.forEach(item=>{
|
||||
|
|
Loading…
Reference in New Issue