增加一个显示名称机构名称的访求 cutOrgNamePath

This commit is contained in:
daihh
2022-10-20 09:36:37 +08:00
parent 362c254668
commit d8e3189103
3 changed files with 42 additions and 16 deletions

View File

@@ -24,7 +24,7 @@
<span class="grade">{{userData.level}}</span>
</p>
<p class="personal-info">{{userInfo.departName}}</p>
<p class="personal-info">{{cutOrgNamePath(userInfo.departFullName)}}</p>
<a href="uc/study/task">
<div class="personal-box">
<span>代办</span>
@@ -195,13 +195,11 @@
<div class="case-inter">
<div class="case-inter-box">
<div class="case-inter-left">
<authorInfo :avatar="ca.authorInfo.avatar" :info="ca.authorInfo.orgInfo" :name="ca.authorInfo.name"
:sex="ca.authorInfo.sex" :aid="userInfo.aid"></authorInfo>
<authorInfo :avatar="ca.authorInfo.avatar" :info="ca.authorInfo.orgInfo" :name="ca.authorInfo.name" :sex="ca.authorInfo.sex" :aid="userInfo.aid"></authorInfo>
</div>
<div class="interact-bar-index"
style="font-size: 12px;color: #6E7B84;display: flex;line-height: 30px;">
<interactBar :type="3" :readonly="true" :comments="false" :praises="false" :favorites="false"
:data="ca" :shares="false" :views="true"></interactBar>人观看
<interactBar :type="3" :readonly="true" :comments="false" :praises="false" :favorites="false" :data="ca" :shares="false" :views="true"></interactBar>人观看
</div>
</div>
@@ -417,7 +415,8 @@
import {
toScore,
cutFullName,
formatUserNumber
formatUserNumber,
cutOrgNamePath
} from '@/utils/tools.js';
import {
swiper,
@@ -456,6 +455,7 @@
totalStudyHour:0
},
formatNum:formatUserNumber,
cutOrgNamePath:cutOrgNamePath,
//userInfo: {},
ankingList: [],
answersList: [],
@@ -516,7 +516,7 @@
},
mounted() {
//this.userInfo = this.$store.getters.userInfo;
// console.log(this.this.userInfo)
//console.log(this.userInfo,'userInfo');
this.getCourseData(1);
this.getCaseData();
this.getArticleData();
@@ -527,6 +527,7 @@
this.getAnkingData();
this.getLevel();
this.getQaAnswers();
},
computed: {
...mapGetters(['userInfo','studyTaskCount']),
@@ -586,7 +587,7 @@
}
})
this.scorelist = res.result;
console.log(this.scorelist,'this.scorelist');
//console.log(this.scorelist,'this.scorelist');
}
});
},
@@ -665,6 +666,8 @@
this.pageIndex = 0;
}
this.isNext = true;
// }
} else {
console.log('加载课程信息失败:' + res.error);
@@ -1241,7 +1244,7 @@
.swiper-container{
// background-color: rgba($color: #000000, $alpha: 0.2);
}
}
}