diff --git a/src/api/ThirdApi.js b/src/api/ThirdApi.js index 060d116..948e68a 100644 --- a/src/api/ThirdApi.js +++ b/src/api/ThirdApi.js @@ -3,4 +3,5 @@ export const BASE = 'https://u-pre.boe.com' export const GET_USER_LIST = `/manageApi/admin/CheckUser/userInfo` export const GET_USER_INFO = `/manageApi/admin/thirdApi/user/searchList` // export const GET_USER_LIST = `/admin/CheckUser/userInfo` -// export const GET_USER_INFO = `/admin/thirdApi/user/searchList` \ No newline at end of file +// export const GET_USER_INFO = `/admin/thirdApi/user/searchList` +export const GET_USER_INFO_OLDURL = `/userbasic/user/getUserBaseInfoById` \ No newline at end of file diff --git a/src/hooks/useOrgName.js b/src/hooks/useOrgName.js new file mode 100644 index 0000000..8793564 --- /dev/null +++ b/src/hooks/useOrgName.js @@ -0,0 +1,23 @@ +/**截取机构名称路径namePath最后两段,不包含第一个 */ +const useOrgName = (namePath) => { + let newName = namePath; + if (newName) { + let names = newName.split('/'); + let len = names.length; + //使用最后两们 + if (len > 1) { + newName = names[1]; + if (!newName) { + newName = names[0] + } + } + } + return newName; +}; + + + + +export { + useOrgName +} \ No newline at end of file diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index 9fd2f2d..45aed4f 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -108,12 +108,12 @@
面授课讲师
-
- +
+
-
{{ data.planDto?.teacher }}
+
{{ item?.realName }}
- {{ data.planDto?.bandDesc }} + {{ useOrgName(item?.orgNamePath) }}
@@ -346,16 +346,17 @@