From ed837240f8d93432f1da05a4332658a90ceb117c Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 24 Oct 2022 11:09:45 +0800
Subject: [PATCH] 农资管理打开窗口表单重置;用户管理打开窗口移除验证
---
src/views/system/user.vue | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 63e6c14..a14cc6a 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -225,7 +225,6 @@
import {dateNow} from "@/util/date";
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
-
export default {
data() {
const validatePass = (rule, value, callback) => {
@@ -898,6 +897,10 @@
});
},
update(row){
+ this.dialogVisible = true
+ this.$nextTick(()=>{
+ this.$refs.form.clearValidate()
+ })
this.form = {
id:row.id,
account:row.account,
@@ -914,7 +917,6 @@
var password2Column = this.findObject(this.option.group,"password2")
passwordColumn.display = false;
password2Column.display = false;
- this.dialogVisible = true
},
submitUpdate(row, done, loading){
this.form['deptId'] = this.userInfo.dept_id;
--
Gitblit v1.9.3