This commit is contained in:
parent
b97fb716cd
commit
cb89daa7d1
|
|
@ -32,7 +32,6 @@ export default {
|
||||||
}
|
}
|
||||||
data[saveField] = parseInt(value); // 转换为整数
|
data[saveField] = parseInt(value); // 转换为整数
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (rule.dataRule.type == "number" || rule.dataRule.type == "float") { // 如果是整数
|
else if (rule.dataRule.type == "number" || rule.dataRule.type == "float") { // 如果是整数
|
||||||
if(value == null){
|
if(value == null){
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,12 @@ export default {
|
||||||
data[rule.field] = new Date(value * 1000);
|
data[rule.field] = new Date(value * 1000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(rule.dataRule.isSelect){
|
||||||
|
if(value == 0){
|
||||||
|
data[rule.field] =null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -288,6 +288,13 @@ export default {
|
||||||
this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_scheme_components || []));
|
this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_scheme_components || []));
|
||||||
this.detailsData2 = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_scheme_processes || []));
|
this.detailsData2 = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_scheme_processes || []));
|
||||||
|
|
||||||
|
this.detailsData.forEach(item=>{
|
||||||
|
|
||||||
|
if(item.production_type === 0){
|
||||||
|
item.production_type = null;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.detailsData = JSON.parse(JSON.stringify(this.detailsData))
|
||||||
|
|
||||||
|
|
||||||
this.detailsDataInit();
|
this.detailsDataInit();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue