田源
2023-10-17 6657951e23782b3fd90cd283cbb895b8a775353a
整合代码
已修改3个文件
24 ■■■■■ 文件已修改
Source/UBCS-WEB/src/api/system/dept.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/page/index/top/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/system/user.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/system/dept.js
@@ -81,3 +81,13 @@
  })
}
export const updateUserStatus = (params) => {
  return request({
    url: '/api/ubcs-user/user/updateUserStatus ',
    method: 'get',
    params:{
      ...params
    }
  })
}
Source/UBCS-WEB/src/page/index/top/index.vue
@@ -18,7 +18,11 @@
        <top-search></top-search>
      </span>
    </div>
    <div></div>
    <div class="top-bar__right">
      <el-tooltip style="margin-right: 35px">
        <p style="font-size: 20px;line-height: 20px">本系统为非涉密应用系统,禁止处理、存储、传输涉密信息</p>
      </el-tooltip>
      <el-tooltip v-if="showColor"
                  effect="dark"
                  :content="$t('navbar.color')"
@@ -101,6 +105,9 @@
          </el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <el-tooltip effect="dark" style="margin-left: 15px">
        <p style="font-size: 16px">当前登录用户:{{storedUsername}}</p>
      </el-tooltip>
      <el-dialog title="用户信息选择"
                 append-to-body
                 :visible.sync="userBox"
@@ -137,6 +144,7 @@
    name: "top",
    data() {
      return {
        storedUsername: '',
        userBox: false,
        userForm: {
          deptId: '',
@@ -191,6 +199,7 @@
    },
    mounted() {
      listenfullscreen(this.setScreen);
      this.storedUsername = localStorage.getItem('username');
    },
    computed: {
      ...mapState({
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";
@@ -742,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'){