mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
更改组织一级显示
This commit is contained in:
@@ -23,7 +23,7 @@ export const cutFullName = (fullName,num) => {
|
||||
};
|
||||
|
||||
/**截取机构名称路径namePath最后两段,不包含第一个 */
|
||||
export const cutOrgNamePath = (namePath,firstOrder = -1) => {
|
||||
export const cutOrgNamePath = (namePath) => {
|
||||
let newName=namePath;
|
||||
//debugger
|
||||
if(newName){
|
||||
@@ -36,9 +36,6 @@ export const cutOrgNamePath = (namePath,firstOrder = -1) => {
|
||||
if(!newName){
|
||||
newName=names[0]
|
||||
}
|
||||
if(firstOrder == 0){
|
||||
newName=names[0]
|
||||
}
|
||||
}
|
||||
|
||||
// if(names.length>1){
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<div class="teacher-info">
|
||||
<div class="teacher-name">{{ item.teacherName }}</div>
|
||||
<!-- <div class="teacher-remark" v-html="item.remark"></div> -->
|
||||
<div class="teacher-remark">{{ cutOrgNamePath(item.orgInfo,0) }} </div>
|
||||
<div class="teacher-remark">{{ cutOrgNamePath(item.orgInfo) }} </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
<!-- <span style="font-size: 12px; color:#666666 ;">( {{cutOrgNamePath(item.authorInfo.orgInfo)}} )</span> -->
|
||||
</div>
|
||||
<!-- <div class="teacher-remark" v-html="item.authorInfo.sign"></div> -->
|
||||
<div class="teacher-remark">{{cutOrgNamePath(item.authorInfo.orgInfo,0)}}</div>
|
||||
<div class="teacher-remark">{{cutOrgNamePath(item.authorInfo.orgInfo)}}</div>
|
||||
</div>
|
||||
<div style="padding-top:15px;width:70px;">
|
||||
<followButton :auto="true" size="small" :aid="item.teacherId"></followButton>
|
||||
|
||||
Reference in New Issue
Block a user