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