头像问题,课程审核时,如果第一次拒绝了,再审核下一门课的时候,发现默认选项变成拒绝了,数据未重置问题

This commit is contained in:
daihh
2022-10-14 17:13:25 +08:00
parent 42ccaaef03
commit 0c28670d2b
5 changed files with 24 additions and 37 deletions

View File

@@ -48,11 +48,11 @@
},
mounted() {
this.userName=this.name;
if(this.avatar && this.avatar!=''){
if(this.avatar){
this.userAvatar=this.avatar;
}
this.usersex = this.sex;
console.log(this.userAvatar,"this.userAvatar newVal");
},
methods:{
toHome() {
@@ -65,6 +65,7 @@
this.userName=newVal;
},
avatar(newVal,oldVal){
console.log(newVal,"this.userAvatar newVal");
if(newVal){
if(newVal.startsWith('http')){
this.userAvatar=newVal;
@@ -74,13 +75,13 @@
}
},
aid(newVal,oldVal){
this.aid=newVal
},
sex(newVal,oldVal){
this.usersex=newVal;
},
},
computed:{
},
}
}
</script>

View File

@@ -19,7 +19,7 @@
</div>
</template>
<script>
import { userAvatarText } from "@/utils/tools.js";
export default {
props:{
avatar:{
@@ -101,22 +101,7 @@ import { userAvatarText } from "@/utils/tools.js";
info(newVal,oldVal){
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>

View File

@@ -28,7 +28,7 @@
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
</el-col>
</el-row>
</div>
<!-- <div style="padding-left">
@@ -526,6 +526,7 @@ export default {
this.examin.examineId = row.id;
this.examin.examineName = row.name;
this.auditInfo.remark = '';
this.auditInfo.pass=true;//审核状态重置回true
this.dialogVisible = true;
},
enSure() {

View File

@@ -31,9 +31,8 @@
<p class="ach-title">可能感兴趣</p>
<ul>
<li class="ava-info" v-for="ava in interestedList" :key="ava.aid">
<!-- <img :src="baseUrl + ava.avatar" /> -->
<author-img width="48px" height="48px" :avatar="ava.avatar" :aid="ava.aid" :sex="ava.sex"></author-img>
<!-- <medal-img style="width:48px;height:48px" :item="ava"></medal-img> -->
<!-- <img :src="baseUrl + ava.avatar" style="width: 48px;height: 480x;border-radius: 50%;" /> -->
<author v-if="ava.aid" :avatar="ava.avatar" :aid="ava.aid" :sex="ava.sex"></author>
<div class="ava-text">
<p style="color: #333333;">{{ava.name}}</p>
<p style="color: #666666;">{{ava.sign}}</p>
@@ -54,11 +53,11 @@
import apiUserhobby from '@/api/phase2/userhobby.js';
import apiUser from "@/api/system/user.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';
export default{
components:{top,UcHeader,MedalImg,authorImg},
components:{top,UcHeader,MedalImg,author},
data(){
return{
baseUrl:process.env.VUE_APP_FILE_BASE_URL,
@@ -74,12 +73,13 @@
}
},
created() {
if(!this.$route.query.id){
this.pageId = this.$route.query.id;
if(!this.$route.query.id){
this.$router.push({path:'/404'})
}else{
}else{
this.init();
}
this.pageId = this.$route.query.id;
}
},
mounted() {
@@ -106,7 +106,7 @@
apiUser.getByIds(noReapetIds).then(res => {
if (res.status == 200) {
this.interestedList = res.result;
console.log(this.interestedList,'interestedList');
//console.log(this.interestedList,'interestedList');
} else {
this.$message.error(res.message);
}

View File

@@ -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-top">
<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>
<div>
@@ -123,7 +123,7 @@
:class="i === item.answers.length - 1 ? 'comment-last' : ''">
<div class="comment-top">
<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 style="margin-left: 10px; font-size:14px">{{ con.replayName }}</span>
</div>
@@ -166,7 +166,7 @@
:class="rowIdx === con.answers.length - 1 ? 'comment-last' : ''">
<div class="comment-top">
<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 style="margin-left: 10px; font-size:14px">{{ row.replayName }}</span>
</div>