Commit 84f5101f by 张杰

1111

1 parent 008df76a
...@@ -314,17 +314,18 @@ export default { ...@@ -314,17 +314,18 @@ export default {
oParams.serviceType = "IS"; oParams.serviceType = "IS";
oParams.vehicles = m; oParams.vehicles = m;
oParams.shopAddress = '店面默认地址' oParams.shopAddress = "店面默认地址";
return oParams; return oParams;
}, },
// 返回上一页 // 返回上一页
goBack() { goBack() {
this.addForm = {}; this.addForm = {needInstall:'Y'};
this.tableData = [] this.tableData = [];
this.$refs.addForm.clearValidate(); this.$refs.addForm.clearValidate();
this.$router.go(-1); //this.$router.go(-1);
history.pushState({ refresh: true }, "工单列表", "system#/work/order?refresh=true");
}, },
// 编辑车辆信息 // 编辑车辆信息
......
...@@ -222,6 +222,17 @@ export default { ...@@ -222,6 +222,17 @@ export default {
}, },
}; };
}, },
watch: {
$route: {
handler: function (n, o) {
console.log(n)
if (n.query&&n.query.refresh) {
this.getList();
}
},
immediate: true,
},
},
created() { created() {
let token = localStorage.getItem("token"); let token = localStorage.getItem("token");
this.uploadHeaders = { Authorization: token }; this.uploadHeaders = { Authorization: token };
...@@ -420,7 +431,7 @@ export default { ...@@ -420,7 +431,7 @@ export default {
this.aloading = false; this.aloading = false;
if (e) { if (e) {
this.getList(); this.getList();
this.closeDetailDialog() this.closeDetailDialog();
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!