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