From 59c9fdfeecda48c774660b04fe84f5992caa1893 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 18 十月 2023 11:04:13 +0800
Subject: [PATCH] 编码规则管理-同时只能一条编码规则设置最大流水号

---
 Source/UBCS-WEB/src/views/system/user.vue |   59 +++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 33 insertions(+), 26 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/system/user.vue b/Source/UBCS-WEB/src/views/system/user.vue
index c03acfa..2320aff 100644
--- a/Source/UBCS-WEB/src/views/system/user.vue
+++ b/Source/UBCS-WEB/src/views/system/user.vue
@@ -177,7 +177,7 @@
   resetPassword, unlock
 } from "@/api/system/user";
 import {exportBlob} from "@/api/common";
-import {getDeptTree, getDeptLazyTree} from "@/api/system/dept";
+import {getDeptTree, getDeptLazyTree, updateUserStatus} from "@/api/system/dept";
 import {getRoleTree} from "@/api/system/role";
 import {getPostList} from "@/api/system/post";
 import {mapGetters} from "vuex";
@@ -278,6 +278,7 @@
         tip: false,
         searchShow: true,
         searchMenuSpan: 6,
+        columnBtn:false,
         border: true,
         index: true,
         selection: true,
@@ -345,7 +346,7 @@
               required: true,
               message: "璇烽�夋嫨鐢ㄦ埛骞冲彴",
               trigger: "blur"
-            }]
+            }],
           },
         ],
         group: [
@@ -373,7 +374,7 @@
                   trigger: "click"
                 }],
                 span: 24,
-                value:"211833"
+                value:""
               },
               {
                 label: "鐧诲綍璐﹀彿",
@@ -392,6 +393,7 @@
                   label: "dictValue",
                   value: "dictKey"
                 },
+                value:'1',
                 dataType: "number",
                 slot: true,
                 prop: "userType",
@@ -404,6 +406,7 @@
               {
                 label: '瀵嗙爜',
                 prop: 'password',
+                type: "password",
                 hide: true,
                 editDisplay: false,
                 viewDisplay: false,
@@ -413,6 +416,7 @@
                 label: '纭瀵嗙爜',
                 prop: 'password2',
                 hide: true,
+                type: "password",
                 editDisplay: false,
                 viewDisplay: false,
                 rules: [{required: true, validator: validatePass2, trigger: 'blur'}]
@@ -548,7 +552,7 @@
                   value: "id"
                 },
                 rules: [{
-                  required: true,
+                  required: false,
                   message: "璇烽�夋嫨鎵�灞炲矖浣�",
                   trigger: "click"
                 }],
@@ -738,6 +742,9 @@
     }
   },
   created() {
+    updateUserStatus({userid:'1702600796324032513',status:true}).then(res=>{
+      console.log(res)
+    })
     this.selecload()
     const arr=JSON.parse(localStorage.getItem("updataid"))
     if(arr.user_id != '0' && arr.tenant_id !== '000000'){
@@ -1032,33 +1039,33 @@
       })
     },
     beforeOpen(done, type) {
-      // console.log(type)
+      //console.log(type)
       // console.log('this.tenantId',this.tenantId)
       // const column = this.findObject(this.option.group,'tenantId');
       // column.value=this.tenantId;
       // console.log('column',column)
-      if(this.treeDeptId){
-        if (["edit", "view"].includes(type)) {
-          getUser(this.form.id).then(res => {
-            this.form = res.data.data;
-            if (this.form.hasOwnProperty("deptId")) {
-              this.form.deptId = this.form.deptId.split(",");
-            }
-            if (this.form.hasOwnProperty("roleId")) {
-              this.form.roleId = this.form.roleId.split(",");
-            }
-            if (this.form.hasOwnProperty("postId")) {
-              this.form.postId = this.form.postId.split(",");
-            }
-          });
-        }
-        const prop = this.findObject(this.option.group, 'tenantId');
-        console.log('1',prop)
-        this.initFlag = true;
-        done();
-      }else {
-        this.$message.warning('璇烽�夋嫨涓�鏉℃墍灞炵鎴�')
+      // if(this.treeDeptId){
+      if (["edit", "view"].includes(type)) {
+        getUser(this.form.id).then(res => {
+          this.form = res.data.data;
+          if (this.form.hasOwnProperty("deptId")) {
+            this.form.deptId = this.form.deptId.split(",");
+          }
+          if (this.form.hasOwnProperty("roleId")) {
+            this.form.roleId = this.form.roleId.split(",");
+          }
+          if (this.form.hasOwnProperty("postId")) {
+            this.form.postId = this.form.postId.split(",");
+          }
+        });
       }
+      const prop = this.findObject(this.option.group, 'tenantId');
+      //console.log('1',prop)
+      this.initFlag = true;
+      done();
+      // }else {
+      //   this.$message.warning('璇烽�夋嫨涓�鏉℃墍灞炵鎴�')
+      // }
     },
     currentChange(currentPage) {
       this.page.currentPage = currentPage;

--
Gitblit v1.9.3