Commit 3e9d3209 by 张杰

修复bug

1 parent 45bc10ac
...@@ -190,10 +190,10 @@ export default { ...@@ -190,10 +190,10 @@ export default {
// 打开弹框 // 打开弹框
openDialog() { openDialog() {
let list = this.tableData; let list = this.tableData;
if(list.length>=100){ if (list.length >= 100) {
showToast({ showToast({
message:'新增车辆已达上限' message: "新增车辆已达上限",
}) });
return false; return false;
} }
this.showDialog = true; this.showDialog = true;
...@@ -328,11 +328,17 @@ export default { ...@@ -328,11 +328,17 @@ export default {
// 返回上一页 // 返回上一页
goBack() { goBack() {
this.addForm = {needInstall:'Y',serviceApm:'上午'}; let _this = this;
this.addForm = { needInstall: "Y", serviceApm: "上午" };
this.tableData = []; this.tableData = [];
this.$refs.addForm.clearValidate(); setTimeout(function () {
//this.$router.go(-1); _this.$refs.addForm.clearValidate();
history.pushState({ refresh: true }, "工单列表", "system#/work/order?refresh=true"); }, 100);
history.pushState(
{ refresh: true },
"工单列表",
"system#/work/order?refresh=true"
);
}, },
// 编辑车辆信息 // 编辑车辆信息
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!