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

修改bug

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