弹窗内容清空处理修正

main
yangzhicheng 11 months ago
parent 65bdaef8dd
commit cd2dd19478
  1. 4
      src/views/inspection/inspectionplan.vue
  2. 4
      src/views/inspection/inspectionroute.vue
  3. 6
      src/views/spares/materialDetail.vue

@ -320,7 +320,7 @@
return; return;
} }
this.cancelBox = true; this.cancelBox = true;
this.cancelForm.cancelReason = ''; this.$refs.cancelForm.resetForm();
}, },
handleDetailCancel() { handleDetailCancel() {
this.$confirm("是否将选择数据改为失效状态?", { this.$confirm("是否将选择数据改为失效状态?", {
@ -332,7 +332,7 @@
return lapse(this.ids, this.cancelForm.cancelReason); return lapse(this.ids, this.cancelForm.cancelReason);
}) })
.then(() => { .then(() => {
this.cancelForm.cancelReason = ''; this.$refs.cancelForm.resetForm();
this.cancelBox = false; this.cancelBox = false;
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({

@ -302,7 +302,7 @@
return; return;
} }
this.cancelBox = true; this.cancelBox = true;
this.cancelForm.cancelReason = ''; this.$refs.cancelForm.resetForm();
}, },
handleDetailCancel() { handleDetailCancel() {
this.$confirm("是否将选择数据改为失效状态?", { this.$confirm("是否将选择数据改为失效状态?", {
@ -314,7 +314,7 @@
return lapse(this.ids, this.cancelForm.cancelReason); return lapse(this.ids, this.cancelForm.cancelReason);
}) })
.then(() => { .then(() => {
this.cancelForm.cancelReason = ''; this.$refs.cancelForm.resetForm();
this.cancelBox = false; this.cancelBox = false;
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({

@ -442,8 +442,7 @@
}, },
methods: { methods: {
test(val) { test(val) {
this.diaForm.code = ''; this.$refs.diaForm.resetForm();
this.diaForm.type = '';
this.dialogVisible = true; this.dialogVisible = true;
}, },
handleFormSubmit() { handleFormSubmit() {
@ -632,8 +631,7 @@
if (valid) { if (valid) {
done() done()
codeAdd(this.diaForm).then(() => { codeAdd(this.diaForm).then(() => {
this.diaForm.code = ''; this.$refs.diaForm.resetForm();
this.diaForm.type = '';
this.dialogVisible = false; this.dialogVisible = false;
this.SearchClassCode(); this.SearchClassCode();
this.$message({ this.$message({

Loading…
Cancel
Save