Commit 859ed8be authored by 王晓旭's avatar 王晓旭

修改bug

parent ce4cb858
...@@ -338,7 +338,7 @@ export default { ...@@ -338,7 +338,7 @@ export default {
} }
}) })
.catch((error) => { .catch((error) => {
this.$message.error(error.message); this.$message.error('同步统计设备中,请稍后再统计!');
}); });
}, },
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
:visible.sync="open" :visible.sync="open"
:direction="direction" :direction="direction"
size="50%" size="50%"
:append-to-body="true"
:modal-append-to-body="false"
> >
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row> <el-row>
......
...@@ -266,6 +266,10 @@ export default { ...@@ -266,6 +266,10 @@ 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];
}, },
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
:direction="direction" :direction="direction"
:destroy-on-close="true" :destroy-on-close="true"
size="80%" size="80%"
:append-to-body="true"
:modal-append-to-body="false"
> >
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-tabs style="margin-left: 10px" v-model="activeName"> <el-tabs style="margin-left: 10px" v-model="activeName">
......
...@@ -279,6 +279,10 @@ export default { ...@@ -279,6 +279,10 @@ export default {
}, },
// 用户导入参数 // 用户导入参数
upload: { upload: {
// 请求头
headers:{
Authorization:''
},
// 是否显示弹出层(设备导入) // 是否显示弹出层(设备导入)
open: false, open: false,
// 弹出层标题(设备导入) // 弹出层标题(设备导入)
...@@ -467,7 +471,8 @@ export default { ...@@ -467,7 +471,8 @@ export default {
this.siteId = this.$route.query.siteId; this.siteId = this.$route.query.siteId;
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") || ""
console.log(this.upload);
this.$get("/sitestat/siteInfo", { this.$get("/sitestat/siteInfo", {
siteId: this.siteId, siteId: this.siteId,
}) })
......
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
val = val + "%"; val = val + "%";
} }
this.query = Object.assign({}, this.query, { deviceName: val }); this.query = Object.assign({}, this.query, { deviceCode: val });
this.getData(); this.getData();
}, },
editSite() { editSite() {
......
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