fix:工艺步骤添加图片调整
This commit is contained in:
parent
7394afbdf7
commit
09a9e85bb3
|
|
@ -341,6 +341,7 @@ export default {
|
|||
mgroups: [],
|
||||
options: [],
|
||||
routemats:[],
|
||||
fileurl_form:[],
|
||||
paramsJsonFileurl:[],
|
||||
materialOptions:[],
|
||||
titleMap: { add: "新增", edit: "编辑" },
|
||||
|
|
@ -444,10 +445,11 @@ export default {
|
|||
obj.file = item.file;
|
||||
obj.name = item.name;
|
||||
obj.path = item.path;
|
||||
obj.url = item.path;
|
||||
files.push(obj);
|
||||
})
|
||||
if(that.fileurl.length>0){
|
||||
that.paramsJsonFileurl = files.concat(that.fileurl);
|
||||
if(that.fileurl_form.length>0){
|
||||
that.paramsJsonFileurl = that.fileurl_form.concat(files);
|
||||
}else{
|
||||
that.paramsJsonFileurl = files;
|
||||
}
|
||||
|
|
@ -486,11 +488,12 @@ export default {
|
|||
}
|
||||
if(data.process_name=='排一次棒'){
|
||||
that.params_json=that.form.params_json;
|
||||
if(that.params_json.fileurl){
|
||||
if(that.params_json.fileurl&&that.params_json.fileurl!=="[]"){
|
||||
let fileurl = JSON.parse(that.params_json.fileurl);
|
||||
fileurl.forEach((item)=>{
|
||||
item.url = item.path;
|
||||
that.fileurl.push(item);
|
||||
that.fileurl_form.push(item);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue