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