projects/mesxc-lb #205

Merged
gtz217 merged 38 commits from projects/mesxc-lb into projects/mesxc-test 2024-02-26 02:14:07 +08:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit ca2774ca28 - Show all commits

View File

@ -26,6 +26,13 @@ export function getUser(userId) {
})
}
export function getUserSimple(userId) {
return request({
url: '/system/user/getSimple?id=' + praseStrEmpty(userId),
method: 'get'
})
}
// 新增用户
export function addUser(data) {
return request({

View File

@ -26,7 +26,7 @@
</template>
<script>
import moment from 'moment'
import { getUser } from "@/api/system/user.js";
import { getUserSimple } from "@/api/system/user.js";
import {getPath} from "@/utils/ruoyi";
export default {
name: 'navRight',
@ -67,8 +67,8 @@ export default {
},
getUserMsg() {
let id = this.$store.getters.userId
getUser(id).then(res => {
this.dept = res.data.dept ? res.data.dept.name : ''
getUserSimple(id).then(res => {
this.dept = res.data.deptName ? res.data.dept.deptName : '---'
})
},
async logout() {