a0431deb4d557cd50d304df885a275edf1390f56..578644547dc77428f88ddbacc26dab111a32fe0c
2025-01-16 田源
首页添加时间样式
578644 对比 | 目录
2025-01-16 田源
修改个人信息
39269c 对比 | 目录
已修改3个文件
17 ■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/page/login/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/system/userInfo/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/system/userInfo/userAvatar.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/page/login/index.vue
@@ -2,7 +2,11 @@
  <div class="login-container"
       ref="login"
       @keyup.enter.native="handleLogin">
    <top-color v-show="false"></top-color>
    <div class="login-time">
      {{time}}
    </div>
    <top-color v-show="false">
    </top-color>
    <div class="login-weaper animated bounceInDown">
      <div class="login-border">
        <div class="login-main">
Source/plt-web/plt-web-ui/src/views/system/userInfo/index.vue
@@ -55,6 +55,7 @@
import userAvatar from "./userAvatar";
import {resetRouter} from '../../../router/router'
import {mapGetters} from "vuex";
import {setStore} from "@/util/store";
export default {
  components: {userAvatar,},
@@ -91,6 +92,7 @@
  methods: {
    handleWitch() {
      if (this.index === '0') {
        console.log('this.userInfo',this.userInfo)
        const {avatar, userId, userName, email, personName} = this.userInfo;
        this.userForm = {avatar, userId, userName, email, personName};
      } else {
@@ -107,7 +109,7 @@
      this.$refs.userForm.validate((valid) => {
        if (valid) {
          const params = {
            id: this.userInfo.userId,
            oid: this.userInfo.userOid,
            name: this.userForm.userName,
            email: this.userForm.email
          }
@@ -117,13 +119,17 @@
                type: "success",
                message: "修改信息成功!"
              });
              // 更新缓存
              this.userInfo.userName = this.userForm.userName;
              this.userInfo.email = this.userForm.email;
              setStore({ name: 'userInfo', content: this.userInfo });
              this.handleWitch();
            } else {
              this.$message({
                type: "error",
                message: res.data.msg
              });
            }
            done();
          })
        } else {
          return false;
Source/plt-web/plt-web-ui/src/views/system/userInfo/userAvatar.vue
@@ -176,7 +176,6 @@
        const reader = new FileReader();
        reader.onloadend = (result) => {
          this.userInfo.avatar = reader.result; // 存储 Base64 字符串
          setStore({ name: 'userInfo', content:  this.userInfo });
        };
        reader.readAsDataURL(res.data); // 调用reader方法