BUG 31127
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<div class="color-999">截止日期:{{ $dateFormat(detail.endTime, "YYYY-MM-DD HH:mm") }}</div>
|
||||
</AiGroup>
|
||||
<AiGroup title="参评人员" description class="pad-t32">
|
||||
<div flex class="pad-r32 pad-t16 pad-b16" v-for="item in list" :key="item.id" @click="handleScore(item.id,item.templateId,!!item.commitTime)">
|
||||
<div flex class="pad-r32 pad-t16 pad-b16" v-for="item in list" :key="item.id" @click="handleScore(item)">
|
||||
<div flex class="fill">
|
||||
<AiImage class="mar-r32 circle avatar" :src="item.evaluatorsAvatar"/>
|
||||
<div>
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="color-999">{{ item.evaluatorsDepartments }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="result" :class="{finish:!!item.commitTime}">{{ !!item.commitTime ? `${item.totalScore || 0}分` : "去填报" }}</div>
|
||||
<div class="result" :class="{finish:!!item.fillable}" v-text="item.resultLabel"/>
|
||||
</div>
|
||||
<AiEmpty class="pad-b32" v-if="!list.length"/>
|
||||
</AiGroup>
|
||||
@@ -36,7 +36,7 @@ export default {
|
||||
methods: {
|
||||
getDetail() {
|
||||
const {id} = this.$route.query
|
||||
this.$http.post("/app/appassessmentscortask/taskTemplateDetail", null, {
|
||||
return this.$http.post("/app/appassessmentscortask/taskTemplateDetail", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
@@ -53,20 +53,26 @@ export default {
|
||||
params: {id, size: 999, current}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
res.data.records.map(e => {
|
||||
e.fillable = !e.commitTime && this.detail.status == 1
|
||||
e.resultLabel = !!e.commitTime ? `${e.totalScore || 0}分` : e.fillable ? "去填报" : "未填报"
|
||||
})
|
||||
this.list = [this.list, res.data.records].flat().filter(Boolean)
|
||||
this.total = res.data.total
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
handleScore(id, tid, readonly) {
|
||||
uni.navigateTo({url: `/apps/AppAskForm/AppForm?id=${id}&tid=${tid}&from=AppAssessmentScoreTask` + (readonly ? '&result=1' : '')})
|
||||
handleScore(item) {
|
||||
if (item?.fillable) {
|
||||
const {id, templateId: tid} = item
|
||||
uni.navigateTo({url: `/apps/AppAskForm/AppForm?id=${id}&tid=${tid}&from=AppAssessmentScoreTask` + (!item.fillable ? '&result=1' : '')})
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getDetail()
|
||||
this.getList()
|
||||
document.title = this.$options.appName
|
||||
this.getDetail().then(this.getList)
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current++
|
||||
|
||||
Reference in New Issue
Block a user