From 3457bf08eae9d9453c88dd62991c3e286eb1df4b Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 26 十二月 2024 10:53:52 +0800
Subject: [PATCH] 个人信息页面&&管理功能模块图标更改

---
 Source/plt-web/plt-web-ui/src/page/index/top/index.vue |  129 +++++++------------------------------------
 1 files changed, 21 insertions(+), 108 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/page/index/top/index.vue b/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
index 4f38b79..7d9e532 100644
--- a/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
+++ b/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
@@ -78,27 +78,30 @@
       </el-tooltip>
       <img :src="userInfo.avatar"
            class="top-bar__img">
-      <el-dropdown>
+      <div>
+        <el-dropdown style="height: 40px">
         <span class="el-dropdown-link">
           {{ userInfo.userName }}
           <i class="el-icon-arrow-down el-icon--right"></i>
         </span>
-        <el-dropdown-menu slot="dropdown">
-          <el-dropdown-item>
-            <router-link to="/">{{ $t('navbar.dashboard') }}</router-link>
-          </el-dropdown-item>
-          <el-dropdown-item @click.native="changePasswordHandler">
-            <!--            <router-link to="/info/index">{{ $t('navbar.userinfo') }}</router-link>-->
-            淇敼瀵嗙爜
-          </el-dropdown-item>
-          <el-dropdown-item v-if="this.website.switchMode" @click.native="switchDept"
-          >{{ $t('navbar.switchDept') }}
-          </el-dropdown-item>
-          <el-dropdown-item divided
-                            @click.native="logout">{{ $t('navbar.logOut') }}
-          </el-dropdown-item>
-        </el-dropdown-menu>
-      </el-dropdown>
+          <el-dropdown-menu slot="dropdown">
+            <el-dropdown-item>
+              <router-link to="/">{{ $t('navbar.dashboard') }}</router-link>
+            </el-dropdown-item>
+            <el-dropdown-item>
+              <router-link to="/info/index">{{ $t('navbar.userinfo') }}</router-link>
+              <!--            淇敼瀵嗙爜-->
+            </el-dropdown-item>
+            <el-dropdown-item v-if="this.website.switchMode" @click.native="switchDept"
+            >{{ $t('navbar.switchDept') }}
+            </el-dropdown-item>
+            <el-dropdown-item divided
+                              @click.native="logout">{{ $t('navbar.logOut') }}
+            </el-dropdown-item>
+          </el-dropdown-menu>
+        </el-dropdown>
+      </div>
+
       <el-dialog :visible.sync="userBox"
                  append-to-body
                  title="鐢ㄦ埛淇℃伅閫夋嫨"
@@ -106,23 +109,11 @@
         <avue-form ref="form" v-model="userForm" :option="userOption" @submit="submitSwitch"/>
       </el-dialog>
 
-      <!-- 淇敼瀵嗙爜瀵硅瘽妗�     -->
-      <el-dialog
-        v-dialogDrag
-        :visible.sync="passwordVisible"
-        append-to-body="true"
-        class="avue-dialog"
-        style="margin-top: -15vh"
-        title="淇敼瀵嗙爜"
-        width="50%"
-        @close="passwordClose">
-        <avue-form ref="form" v-model="passwordForm" :option="passwordOption" @submit="submitSwitch"/>
-      </el-dialog>
     </div>
   </div>
 </template>
 <script>
-import {resetRouter} from '@/router/router'
+import {resetRouter} from '../../../router/router'
 import {mapGetters, mapState} from "vuex";
 import {fullscreenToggel, listenfullscreen} from "@/util/util";
 import topLock from "./top-lock";
@@ -133,8 +124,6 @@
 import topColor from "./top-color";
 import topNotice from './top-notice'
 import topLang from "./top-lang";
-import {changePassword} from "@/api/user"
-import func from "@/util/func";
 
 export default {
   components: {
@@ -150,55 +139,6 @@
   name: "top",
   data() {
     return {
-      passwordVisible: false,
-      passwordForm: {},
-      passwordOption: {
-        submitText: '淇濆瓨',
-        column: [
-          {
-            label: '鐧婚檰瀵嗙爜',
-            prop: 'oldPassword',
-            span: 24,
-            labelWidth: "15%",
-            type: 'password',
-            rules: [
-              {
-                required: true,
-                message: '璇疯緭鍏ョ櫥闄嗗瘑鐮�',
-                trigger: 'blur'
-              }
-            ]
-          },
-          {
-            label: '鏂扮櫥闄嗗瘑鐮�',
-            prop: 'password',
-            span: 24,
-            labelWidth: "15%",
-            type: 'password',
-            rules: [
-              {
-                required: true,
-                message: '璇疯緭鍏ユ柊鐧婚檰瀵嗙爜',
-                trigger: 'blur'
-              }
-            ]
-          },
-          {
-            label: '鏂板瘑鐮佺櫥闄嗙‘璁�',
-            prop: 'confirmPassword',
-            span: 24,
-            labelWidth: "15%",
-            type: 'password',
-            rules: [
-              {
-                required: true,
-                message: '璇风‘璁ょ櫥闄嗗瘑鐮�',
-                trigger: 'blur'
-              }
-            ]
-          }
-        ]
-      },
       userBox: false,
       userForm: {
         deptId: '',
@@ -277,10 +217,6 @@
     ])
   },
   methods: {
-    // 淇敼瀵嗙爜
-    changePasswordHandler() {
-      this.passwordVisible = true;
-    },
     handleScreen() {
       fullscreenToggel();
     },
@@ -299,29 +235,6 @@
       roleColumn.dicUrl = `/api/blade-system/role/select?userId=${userId}`;
       roleColumn.display = true;
       this.userBox = true;
-    },
-    submitSwitch(form, done) {
-      let userInfo = JSON.parse(localStorage.getItem('saber-userInfo'));
-      let params = {
-        userName: userInfo.content.userId,
-        oldPassword: func.encryptData(form.oldPassword, 'daliantan0v0vcip'),
-        password: func.encryptData(form.password, 'daliantan0v0vcip'),
-        confirmPassword: func.encryptData(form.confirmPassword, 'daliantan0v0vcip'),
-
-      }
-      changePassword(params).then(res => {
-        if (res.data.code === 200) {
-          this.$message.success(res.data.msg);
-          this.passwordVisible = false;
-          this.$store.dispatch("LogOut").then(() => {
-            resetRouter();
-            this.$router.push({path: "/login"});
-          });
-        }
-      }).catch(err => {
-        console.log(err);
-      })
-      done();
     },
 
     // 鍏抽棴淇敼瀵嗙爜瀵硅瘽妗�

--
Gitblit v1.9.3