mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 05:16:43 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into stat
This commit is contained in:
@@ -79,7 +79,6 @@ export default {
|
|||||||
courseImage
|
courseImage
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.items,'items');
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
coudetail(item) {
|
coudetail(item) {
|
||||||
@@ -104,8 +103,9 @@ export default {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
contentTypeFilter(value) {
|
contentTypeFilter(value) {
|
||||||
|
let val = Number(value);
|
||||||
let obj = {};
|
let obj = {};
|
||||||
switch (value) {
|
switch (val) {
|
||||||
case 10: {
|
case 10: {
|
||||||
obj.class = 'uc-course-type2';
|
obj.class = 'uc-course-type2';
|
||||||
obj.text = '录播';
|
obj.text = '录播';
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<div class="sign-text">{{ item.authorInfo.sign }}</div>
|
<div class="sign-text">{{ item.authorInfo.sign }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="keyword-text clearfix">
|
<div class="keyword-text clearfix">
|
||||||
<div style="color:#2974D6;font-weight: 450;" v-if="item.info.orgDomain">{{ orgDomainTranslate(item.info.orgDomain) }}</div>
|
<div style="color:#2974D6;font-weight: 450;" v-if="orgDomainTranslate(item.info.orgDomain)">{{ orgDomainTranslate(item.info.orgDomain) }}</div>
|
||||||
<div style="color:#2974D6;font-weight: 450;" v-if="item.info.orgDomain == '' && item.info.orgDomainParent">{{ orgDomainTranslate(item.info.orgDomainParent) }}</div>
|
<div style="color:#2974D6;font-weight: 450;" v-if="item.info.orgDomain == '' && item.info.orgDomainParent">{{ orgDomainTranslate(item.info.orgDomainParent) }}</div>
|
||||||
<div style="color:#2974D6;font-weight: 450;" v-for="item,idx in item.info.majorType" :key="idx" >{{ majorTypeTranslate(item) }}</div>
|
<div style="color:#2974D6;font-weight: 450;" v-for="item,idx in item.info.majorType" :key="idx" >{{ majorTypeTranslate(item) }}</div>
|
||||||
<div v-if="item.info.keyword1">{{ item.info.keyword1 }}</div>
|
<div v-if="item.info.keyword1">{{ item.info.keyword1 }}</div>
|
||||||
@@ -119,7 +119,6 @@
|
|||||||
},
|
},
|
||||||
orgDomainTranslate(code){ // 组织领域翻译
|
orgDomainTranslate(code){ // 组织领域翻译
|
||||||
if(code==''){return '';}
|
if(code==''){return '';}
|
||||||
console.log(code,'code');
|
|
||||||
return this.orgDomainMap.get(code);
|
return this.orgDomainMap.get(code);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.userName=this.name;
|
this.userName=this.name;
|
||||||
|
this.usersex = this.sex;
|
||||||
if(this.avatar){
|
if(this.avatar){
|
||||||
if(this.avatar.startsWith('http')){
|
if(this.avatar.startsWith('http')){
|
||||||
this.userAvatar=this.avatar;
|
this.userAvatar=this.avatar;
|
||||||
@@ -59,7 +60,8 @@
|
|||||||
this.userAvatar=this.baseUrl+this.avatar;
|
this.userAvatar=this.baseUrl+this.avatar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.usersex = this.sex;
|
console.log(this.usersex)
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
toHome() {
|
toHome() {
|
||||||
|
|||||||
@@ -15,7 +15,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="personal-panel">
|
<div class="personal-panel">
|
||||||
<div class="personal-img">
|
<div class="personal-img">
|
||||||
<author-img v-if="userInfo.avatar" :avatar="userInfo.avatar" :aid="userInfo.aid" :noJump="false" :sex="userInfo.sex"></author-img>
|
<author-img width="68px" height="68px" :avatar="userInfo.avatar" :aid="userInfo.aid" :noJump="false" :sex="userInfo.sex"></author-img>
|
||||||
|
{{ userInfo.avatar }}
|
||||||
|
|
||||||
<!-- {{ userInfo.avatar }} -->
|
<!-- {{ userInfo.avatar }} -->
|
||||||
</div>
|
</div>
|
||||||
<!-- <img style="width:68px;height:68px" src="/images/Avatarman.png" alt=""> -->
|
<!-- <img style="width:68px;height:68px" src="/images/Avatarman.png" alt=""> -->
|
||||||
|
|||||||
@@ -378,6 +378,9 @@
|
|||||||
res.result.some(con => {
|
res.result.some(con => {
|
||||||
if (con.id == item.contentId) {
|
if (con.id == item.contentId) {
|
||||||
item.info = con;
|
item.info = con;
|
||||||
|
if(typeof item.info.majorType == 'string') {
|
||||||
|
item.info.majorType = item.info.majorType.split(',');
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -562,7 +562,6 @@ export default {
|
|||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
if (res.result.list.length > 0) {
|
if (res.result.list.length > 0) {
|
||||||
this.isSeach = false;
|
this.isSeach = false;
|
||||||
console.log(res.result.list)
|
|
||||||
res.result.list.forEach(item => {
|
res.result.list.forEach(item => {
|
||||||
item.majorType = item.majorType.split(",");
|
item.majorType = item.majorType.split(",");
|
||||||
item.isAll = false;
|
item.isAll = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user