From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 03 四月 2025 14:35:02 +0800
Subject: [PATCH] 添加非密字段显示

---
 Source/UBCS-WEB/src/page/login/userlogin.vue |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/Source/UBCS-WEB/src/page/login/userlogin.vue b/Source/UBCS-WEB/src/page/login/userlogin.vue
index 2bb86b9..f379bce 100644
--- a/Source/UBCS-WEB/src/page/login/userlogin.vue
+++ b/Source/UBCS-WEB/src/page/login/userlogin.vue
@@ -52,13 +52,13 @@
                @closed="closehandle">
       <el-form :model="form" :rules="rules">
         <el-form-item :label-width="formLabelWidth" label="鍘熷瘑鐮�" prop="oldPassword">
-          <el-input v-model="form.oldPassword" autocomplete="off"></el-input>
+          <el-input v-model="form.oldPassword" autocomplete="off" type="password"></el-input>
         </el-form-item>
         <el-form-item :label-width="formLabelWidth" label="鏂板瘑鐮�" prop="newPassword">
-          <el-input v-model="form.newPassword" autocomplete="off"></el-input>
+          <el-input v-model="form.newPassword" autocomplete="off" type="password"></el-input>
         </el-form-item>
         <el-form-item :label-width="formLabelWidth" label="纭瀵嗙爜" prop="newPassword1">
-          <el-input v-model="form.newPassword1" autocomplete="off"></el-input>
+          <el-input v-model="form.newPassword1" autocomplete="off" type="password"></el-input>
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -67,14 +67,13 @@
       </div>
     </el-dialog>
   </div>
-
 </template>
 
 <script>
 import {mapGetters} from "vuex";
 import {info} from "@/api/system/tenant";
 import {getTopUrl} from "@/util/util";
-import { updatePassword} from "@/api/system/user.js"
+import {updatePassword} from "@/api/system/user.js"
 import {removeToken} from "@/util/auth";
 import md5 from "js-md5";
 
@@ -264,7 +263,6 @@
     //     "client_view": true
     //   }, "datetime": 1678352291697
     // }))
-  
   },
   mounted() {
     this.$axios.get('/api/ubcs-system/tenant/tenant-map').then(res => {
@@ -301,7 +299,7 @@
   methods: {
     //鍗曠偣鐧诲綍璺宠浆
     ChandleLogin() {
-      this.$router.push({ path: '/sso' });
+      this.$router.push({path: '/sso'});
     },
     closehandle() {
       removeToken()
@@ -315,7 +313,7 @@
     addHandler() {
       this.dialogFormVisible = false
       updatePassword(md5(this.form.oldPassword), this.form.newPassword, this.form.newPassword1).then(res => {
-        console.log(res)
+        //console.log(res)
         if (res.data.code == 200) {
           this.$message({
             type: "success",

--
Gitblit v1.9.3