BUG 31127

This commit is contained in:
aixianling
2022-10-26 09:09:14 +08:00
parent c63a28e21c
commit 87d9b929d9

View File

@@ -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++