feige
2025-04-15 02950a964bb0dcc202bd1f4ddd6c6fc4a92c8048
修改了bug
3个文件已修改
17 ■■■■ 已修改文件
ruoyi-ui/src/layout/components/Navbar.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/store/modules/user.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/clanManager/commonUser/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/layout/components/Navbar.vue
@@ -176,20 +176,23 @@
      setGreeting() {
        const currentTime = new Date();
        const currentHour = currentTime.getHours();
        console.log(this.$store.state.user)
        let name = this.$store.state.user.name
        //alert(this.$store.state.user.userName)
        let userName = this.$store.state.user.userName
        let lnm = this.getLastName(name)
        if(this.xm[lnm]!=null)
            this.ximg = require("@/assets/images/"+this.xm[lnm])
        else
            this.ximg = require("@/assets/images/login_logo.png")
        if (currentHour < 12) {
          this.greeting = "早上好,"+name;
          this.greeting = "早上好,"+userName;
        } else if (currentHour < 14) {
          this.greeting = "中午好,"+name;
          this.greeting = "中午好,"+userName;
        } else if (currentHour < 18) {
          this.greeting = "下午好,"+name;
          this.greeting = "下午好,"+userName;
        } else {
          this.greeting = "晚上好,"+name;
          this.greeting = "晚上好,"+userName;
        }
      },
    toggleSideBar() {
ruoyi-ui/src/store/modules/user.js
@@ -19,6 +19,9 @@
    SET_NAME: (state, name) => {
      state.name = name
    },
    SET_USERNAME: (state, uname) => {
      state.userName = uname
    },
    SET_AVATAR: (state, avatar) => {
      state.avatar = avatar
    },
@@ -81,6 +84,7 @@
          commit('SET_USERID', res.user.userId)
              commit('SET_CLANID', res.user.clanId)
          commit('SET_NAME', user.userName)
          commit('SET_USERNAME', user.nickName)
          commit('SET_AVATAR', avatar)
          resolve(res)
        }).catch(error => {
ruoyi-ui/src/views/clanManager/commonUser/index.vue
@@ -109,7 +109,7 @@
          <el-table-column label="用户姓名" align="center" key="userName" prop="userName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
          <el-table-column label="性别" align="center" key="sex" prop="sex" v-if="columns[2].visible" :show-overflow-tooltip="true" >
   <template slot-scope="scope">{{scope.row.sex==0? '男': '女'}}</template>
   <template slot-scope="scope">{{scope.row.sex===0? '男': '女'}}</template>
          </el-table-column>
<!--          <el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" width="120" /> -->