Commit 3e9d3209 by 张杰

修复bug

1 parent 45bc10ac
......@@ -190,10 +190,10 @@ export default {
// 打开弹框
openDialog() {
let list = this.tableData;
if(list.length>=100){
if (list.length >= 100) {
showToast({
message:'新增车辆已达上限'
})
message: "新增车辆已达上限",
});
return false;
}
this.showDialog = true;
......@@ -328,11 +328,17 @@ export default {
// 返回上一页
goBack() {
this.addForm = {needInstall:'Y',serviceApm:'上午'};
let _this = this;
this.addForm = { needInstall: "Y", serviceApm: "上午" };
this.tableData = [];
this.$refs.addForm.clearValidate();
//this.$router.go(-1);
history.pushState({ refresh: true }, "工单列表", "system#/work/order?refresh=true");
setTimeout(function () {
_this.$refs.addForm.clearValidate();
}, 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!