mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
头像问题,课程审核时,如果第一次拒绝了,再审核下一门课的时候,发现默认选项变成拒绝了,数据未重置问题
This commit is contained in:
@@ -48,11 +48,11 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.userName=this.name;
|
this.userName=this.name;
|
||||||
if(this.avatar && this.avatar!=''){
|
if(this.avatar){
|
||||||
this.userAvatar=this.avatar;
|
this.userAvatar=this.avatar;
|
||||||
|
|
||||||
}
|
}
|
||||||
this.usersex = this.sex;
|
this.usersex = this.sex;
|
||||||
|
console.log(this.userAvatar,"this.userAvatar newVal");
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
toHome() {
|
toHome() {
|
||||||
@@ -65,6 +65,7 @@
|
|||||||
this.userName=newVal;
|
this.userName=newVal;
|
||||||
},
|
},
|
||||||
avatar(newVal,oldVal){
|
avatar(newVal,oldVal){
|
||||||
|
console.log(newVal,"this.userAvatar newVal");
|
||||||
if(newVal){
|
if(newVal){
|
||||||
if(newVal.startsWith('http')){
|
if(newVal.startsWith('http')){
|
||||||
this.userAvatar=newVal;
|
this.userAvatar=newVal;
|
||||||
@@ -74,13 +75,13 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
aid(newVal,oldVal){
|
||||||
|
this.aid=newVal
|
||||||
|
},
|
||||||
sex(newVal,oldVal){
|
sex(newVal,oldVal){
|
||||||
this.usersex=newVal;
|
this.usersex=newVal;
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
computed:{
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { userAvatarText } from "@/utils/tools.js";
|
|
||||||
export default {
|
export default {
|
||||||
props:{
|
props:{
|
||||||
avatar:{
|
avatar:{
|
||||||
@@ -101,22 +101,7 @@ import { userAvatarText } from "@/utils/tools.js";
|
|||||||
info(newVal,oldVal){
|
info(newVal,oldVal){
|
||||||
this.userInfo=newVal;
|
this.userInfo=newVal;
|
||||||
}
|
}
|
||||||
},
|
|
||||||
computed:{
|
|
||||||
avatarText(){
|
|
||||||
return userAvatarText(this.userName);
|
|
||||||
}
|
}
|
||||||
},
|
|
||||||
// computed:{
|
|
||||||
// headImag(){
|
|
||||||
// if(this.avatar || this.avatar==null || this.avatar==''){
|
|
||||||
// return require("@/assets/images/user/default.png");
|
|
||||||
// }else{
|
|
||||||
// return this.baseUrl+this.avatar;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -526,6 +526,7 @@ export default {
|
|||||||
this.examin.examineId = row.id;
|
this.examin.examineId = row.id;
|
||||||
this.examin.examineName = row.name;
|
this.examin.examineName = row.name;
|
||||||
this.auditInfo.remark = '';
|
this.auditInfo.remark = '';
|
||||||
|
this.auditInfo.pass=true;//审核状态重置回true
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
enSure() {
|
enSure() {
|
||||||
|
|||||||
@@ -31,9 +31,8 @@
|
|||||||
<p class="ach-title">可能感兴趣</p>
|
<p class="ach-title">可能感兴趣</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="ava-info" v-for="ava in interestedList" :key="ava.aid">
|
<li class="ava-info" v-for="ava in interestedList" :key="ava.aid">
|
||||||
<!-- <img :src="baseUrl + ava.avatar" /> -->
|
<!-- <img :src="baseUrl + ava.avatar" style="width: 48px;height: 480x;border-radius: 50%;" /> -->
|
||||||
<author-img width="48px" height="48px" :avatar="ava.avatar" :aid="ava.aid" :sex="ava.sex"></author-img>
|
<author v-if="ava.aid" :avatar="ava.avatar" :aid="ava.aid" :sex="ava.sex"></author>
|
||||||
<!-- <medal-img style="width:48px;height:48px" :item="ava"></medal-img> -->
|
|
||||||
<div class="ava-text">
|
<div class="ava-text">
|
||||||
<p style="color: #333333;">{{ava.name}}</p>
|
<p style="color: #333333;">{{ava.name}}</p>
|
||||||
<p style="color: #666666;">{{ava.sign}}</p>
|
<p style="color: #666666;">{{ava.sign}}</p>
|
||||||
@@ -54,11 +53,11 @@
|
|||||||
import apiUserhobby from '@/api/phase2/userhobby.js';
|
import apiUserhobby from '@/api/phase2/userhobby.js';
|
||||||
import apiUser from "@/api/system/user.js";
|
import apiUser from "@/api/system/user.js";
|
||||||
import apiFollow from "@/api/phase2/userfollow.js";
|
import apiFollow from "@/api/phase2/userfollow.js";
|
||||||
import authorImg from '@/components/Portal/authorImg.vue';
|
import author from '@/components/Portal/authorImg.vue';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default{
|
export default{
|
||||||
components:{top,UcHeader,MedalImg,authorImg},
|
components:{top,UcHeader,MedalImg,author},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
baseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
baseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||||
@@ -74,12 +73,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.pageId = this.$route.query.id;
|
||||||
if(!this.$route.query.id){
|
if(!this.$route.query.id){
|
||||||
this.$router.push({path:'/404'})
|
this.$router.push({path:'/404'})
|
||||||
}else{
|
}else{
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
this.pageId = this.$route.query.id;
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
apiUser.getByIds(noReapetIds).then(res => {
|
apiUser.getByIds(noReapetIds).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.interestedList = res.result;
|
this.interestedList = res.result;
|
||||||
console.log(this.interestedList,'interestedList');
|
//console.log(this.interestedList,'interestedList');
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
<div class="answer" v-for="(item, index) of answerList" :key="item.id" :style="index === answerList.length - 1 ? 'border-bottom:none;' : ''">
|
<div class="answer" v-for="(item, index) of answerList" :key="item.id" :style="index === answerList.length - 1 ? 'border-bottom:none;' : ''">
|
||||||
<div class="answer-top">
|
<div class="answer-top">
|
||||||
<div>
|
<div>
|
||||||
<author :avatar="item.avatar" :name="item.sysCreateBy" :info="item.orgInfo" :sex="item.sex"></author>
|
<author :aid="item.sysCreateAid" :avatar="item.avatar" :name="item.sysCreateBy" :info="item.orgInfo" :sex="item.sex"></author>
|
||||||
<div class="sign">{{item.sign}}</div>
|
<div class="sign">{{item.sign}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
:class="i === item.answers.length - 1 ? 'comment-last' : ''">
|
:class="i === item.answers.length - 1 ? 'comment-last' : ''">
|
||||||
<div class="comment-top">
|
<div class="comment-top">
|
||||||
<div class="comment-author">
|
<div class="comment-author">
|
||||||
<author :avatar="con.avatar" :name="con.sysCreateBy" :sex="con.sex"></author>
|
<author :aid="con.sysCreateAid" :avatar="con.avatar" :name="con.sysCreateBy" :sex="con.sex"></author>
|
||||||
<span class="comment-author-text">回复</span>
|
<span class="comment-author-text">回复</span>
|
||||||
<span style="margin-left: 10px; font-size:14px">{{ con.replayName }}</span>
|
<span style="margin-left: 10px; font-size:14px">{{ con.replayName }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
:class="rowIdx === con.answers.length - 1 ? 'comment-last' : ''">
|
:class="rowIdx === con.answers.length - 1 ? 'comment-last' : ''">
|
||||||
<div class="comment-top">
|
<div class="comment-top">
|
||||||
<div class="comment-author">
|
<div class="comment-author">
|
||||||
<author :avatar="row.avatar" :name="row.sysCreateBy" :sex="row.sex"></author>
|
<author :aid="row.sysCreateAid" :avatar="row.avatar" :name="row.sysCreateBy" :sex="row.sex"></author>
|
||||||
<span class="comment-author-text">回复</span>
|
<span class="comment-author-text">回复</span>
|
||||||
<span style="margin-left: 10px; font-size:14px">{{ row.replayName }}</span>
|
<span style="margin-left: 10px; font-size:14px">{{ row.replayName }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user