更改组织一级显示

This commit is contained in:
nisen
2023-08-04 15:37:27 +08:00
parent c919a62f2b
commit 2a6be30a67
3 changed files with 3 additions and 6 deletions

View File

@@ -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){

View File

@@ -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>

View File

@@ -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>