fix:排一次棒编辑时判断是否有工艺图片
This commit is contained in:
parent
3c96c48d2e
commit
f7fc184630
|
|
@ -474,8 +474,6 @@ export default {
|
||||||
setData(data) {
|
setData(data) {
|
||||||
let that = this;
|
let that = this;
|
||||||
Object.assign(that.form, data);
|
Object.assign(that.form, data);
|
||||||
console.log('that.form',that.form);
|
|
||||||
console.log('that.form.material_in_name',that.form.material_in_name);
|
|
||||||
that.routeId = data.id;
|
that.routeId = data.id;
|
||||||
that.addTemplate.route = data.id;
|
that.addTemplate.route = data.id;
|
||||||
that.params_json=that.form.params_json;
|
that.params_json=that.form.params_json;
|
||||||
|
|
@ -487,11 +485,13 @@ export default {
|
||||||
}
|
}
|
||||||
if(data.process_name=='排一次棒'){
|
if(data.process_name=='排一次棒'){
|
||||||
that.params_json=that.form.params_json;
|
that.params_json=that.form.params_json;
|
||||||
let fileurl = JSON.parse(that.params_json.fileurl);
|
if(that.params_json.fileurl){
|
||||||
fileurl.forEach((item)=>{
|
let fileurl = JSON.parse(that.params_json.fileurl);
|
||||||
item.url = item.path;
|
fileurl.forEach((item)=>{
|
||||||
that.fileurl.push(item);
|
item.url = item.path;
|
||||||
})
|
that.fileurl.push(item);
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.options.forEach((item) => {
|
that.options.forEach((item) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue