Commit 2a1526aa authored by 赵啸非's avatar 赵啸非

临时修改设备管理保修期

parent ce4cb858
...@@ -318,6 +318,15 @@ export default { ...@@ -318,6 +318,15 @@ export default {
} }
}, },
beforeSubmit(data) {
if(data.defectsLiabilityPeriod){
const date = new Date(data.defectsLiabilityPeriod)
const time = date.getTime() // 精确到毫秒
data.defectsLiabilityPeriod=time;
}
return data
},
afterSubmit(data) { afterSubmit(data) {
this.open = false; this.open = false;
this.$emit("ok"); this.$emit("ok");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment