新增评语

This commit is contained in:
zhangsir
2024-05-31 17:07:18 +08:00
parent 11eb73c1cc
commit 0e31eb66be

View File

@@ -105,7 +105,7 @@
<u-number-box v-model="score.eight" :disabled="scoreDisabled" min="0" max="5" @change="stepperChange('eight')"></u-number-box> <u-number-box v-model="score.eight" :disabled="scoreDisabled" min="0" max="5" @change="stepperChange('eight')"></u-number-box>
</div> </div>
</div> </div>
<div class="topic" style="border: none;padding-bottom: 100px;margin-bottom: 0px;"> <div class="topic">
<div class="substance"> <div class="substance">
3.普通话标准语言文明健康讲授适度接地气 3.普通话标准语言文明健康讲授适度接地气
<span>5</span> <span>5</span>
@@ -115,6 +115,12 @@
</div> </div>
</div> </div>
</div> </div>
<div class="curriculumDevelopment">
<div class="title">评语</div>
<div class="topic" style="border: none;padding-bottom: 100px;margin-bottom: 0px;">
<u--textarea v-model="remark" placeholder="请输入内容" count maxlength="50" :disabled="scoreDisabled"></u--textarea>
</div>
</div>
<div class="foot" > <div class="foot" >
<view class="fraction">您的评分<span>{{scoreNum}}</span></view> <view class="fraction">您的评分<span>{{scoreNum}}</span></view>
<view class="submit" v-if="!lecturersInfo.scores" @click="showDialog()">提交</view> <view class="submit" v-if="!lecturersInfo.scores" @click="showDialog()">提交</view>
@@ -143,7 +149,8 @@
}, },
scoreDisabled: false, scoreDisabled: false,
scoreNum: 0, scoreNum: 0,
reviewId: '' reviewId: '',
remark: '',
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
@@ -183,6 +190,7 @@
console.log('res::',res) console.log('res::',res)
if (res.code == 200 && res.data) { if (res.code == 200 && res.data) {
this.lecturersInfo = res.data.examineTeacher || {} this.lecturersInfo = res.data.examineTeacher || {}
this.remark = this.lecturersInfo.comment
//this.lecturersInfo.scores="" //"1,2,3,1,2,3,1,2,3" //this.lecturersInfo.scores="" //"1,2,3,1,2,3,1,2,3"
if(this.lecturersInfo.scores&&this.lecturersInfo.scores.length>1){ if(this.lecturersInfo.scores&&this.lecturersInfo.scores.length>1){
this.scoreDisabled = true this.scoreDisabled = true
@@ -210,7 +218,8 @@
apiLecturerCert.lecturerCertificationSave({ apiLecturerCert.lecturerCertificationSave({
teacherId: parseInt(this.teacherId), teacherId: parseInt(this.teacherId),
score: this.scoreNum, score: this.scoreNum,
scores: String(scores) scores: String(scores),
comment: this.remark
}).then(res => { }).then(res => {
// 评分完成回列表 // 评分完成回列表
if (res.code == 200) { if (res.code == 200) {