课程组织修改

This commit is contained in:
nisen
2023-08-08 16:05:17 +08:00
parent 06713a6905
commit 9db5e79e93
4 changed files with 7 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
export const BASE = window.location.protocol + '//u-pre.boe.com' export const BASE = window.location.protocol + '//u-pre.boe.com'
export const GET_USER_LIST = `/admin/CheckUser/userInfo` export const GET_USER_LIST = `/admin/CheckUser/userInfo`
export const GET_USER_INFO = `/admin/thirdApi/user/searchList` export const GET_USER_INFO = `/admin/thirdApi/user/searchList`
export const GET_USER_INFO_OLDURL = `/userbasic/user/getUserBaseInfoById`

View File

@@ -1,6 +1,6 @@
import {watch, ref} from "vue"; import {watch, ref} from "vue";
import {boeRequest,request} from "@/api/request"; import {boeRequest,request} from "@/api/request";
import {BASE, GET_USER_LIST} from "@/api/ThirdApi"; import {BASE, GET_USER_LIST,GET_USER_INFO_OLDURL} from "@/api/ThirdApi";
export function useImage(src) { export function useImage(src) {
return new URL(`../assets/image/${src}`, import.meta.url).href return new URL(`../assets/image/${src}`, import.meta.url).href
@@ -23,8 +23,8 @@ export function delCookie(name){
export function useUserInfo(id) { export function useUserInfo(id) {
const userInfo = ref({}) const userInfo = ref({})
watch(id, () => { watch(id, () => {
id.value && request(GET_USER_LIST, {id: id.value}).then(res => { id.value && boeRequest(GET_USER_INFO_OLDURL, {userId: id.value}).then(res => {
userInfo.value = res.data userInfo.value = res.result
userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png' userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
}) })
}) })

View File

@@ -449,7 +449,7 @@ function toExamItem(obj) {
.bascinfo { .bascinfo {
width: 100%; width: 100%;
height: 180px; height: 80px;
border-radius: 8px; border-radius: 8px;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
margin-top: 37px; margin-top: 37px;

View File

@@ -212,7 +212,7 @@ const signClick = () => {
.bascinfo { .bascinfo {
width: 100%; width: 100%;
height: 180px; height: 80px;
border-radius: 8px; border-radius: 8px;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
margin-top: 37px; margin-top: 37px;