Commit 6b32c1f6 authored by 赵啸非's avatar 赵啸非

临时修改设备管理保修期

parent 6d038320
...@@ -266,10 +266,7 @@ export default { ...@@ -266,10 +266,7 @@ export default {
}, },
methods: { methods: {
beforeSubmit(data){
data.defectsLiabilityPeriod = new Date(data.defectsLiabilityPeriod)
return data
},
changeProduct(val) { changeProduct(val) {
this.form.productCode = this.dict.productCode[val]; this.form.productCode = this.dict.productCode[val];
}, },
......
...@@ -470,7 +470,8 @@ export default { ...@@ -470,7 +470,8 @@ export default {
this.info = this.$route.query; this.info = this.$route.query;
this.query = { siteId: this.siteId }; this.query = { siteId: this.siteId };
this.upload.headers.Authorization=window.sessionStorage.getItem("token") || "" this.upload.headers.Authorization=window.sessionStorage.getItem("token") || ""
console.log(this.upload); console.log("upload",this.upload);
console.log("query",this.$route.query);
this.$get("/sitestat/siteInfo", { this.$get("/sitestat/siteInfo", {
siteId: this.siteId, siteId: this.siteId,
}) })
...@@ -555,7 +556,6 @@ export default { ...@@ -555,7 +556,6 @@ export default {
row.siteId = this.siteId; row.siteId = this.siteId;
row.siteName = this.siteName; row.siteName = this.siteName;
row.siteCode = this.siteCode; row.siteCode = this.siteCode;
this.$refs.drawerform.add(row); this.$refs.drawerform.add(row);
}, },
/** 重写编辑方法 */ /** 重写编辑方法 */
......
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