Commit 84f5101f by 张杰

1111

1 parent 008df76a
......@@ -314,17 +314,18 @@ export default {
oParams.serviceType = "IS";
oParams.vehicles = m;
oParams.shopAddress = '店面默认地址'
oParams.shopAddress = "店面默认地址";
return oParams;
},
// 返回上一页
goBack() {
this.addForm = {};
this.tableData = []
this.addForm = {needInstall:'Y'};
this.tableData = [];
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 {
},
};
},
watch: {
$route: {
handler: function (n, o) {
console.log(n)
if (n.query&&n.query.refresh) {
this.getList();
}
},
immediate: true,
},
},
created() {
let token = localStorage.getItem("token");
this.uploadHeaders = { Authorization: token };
......@@ -420,7 +431,7 @@ export default {
this.aloading = false;
if (e) {
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!