This commit is contained in:
xiongchengqiang 2020-12-17 14:42:45 +08:00
parent 812f4cc511
commit 8a2f6171fb
3 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<!-- -->
<template>
<div class="smallNav">
<span @click="handleBack" class="smallNav-back a">返回</span>
<span @click="handleBack" v-if="handMore" class="smallNav-back a">返回</span>
<span v-if="showTitle" class="commonFont smallNav-title commonFont">{{title}}</span>
<slot name='content'></slot>
</div>
@ -21,6 +21,9 @@ export default {
}
},
computed: {
handMore () {
return window.history.length !== 1
},
title () {
return this.$route.meta.title || ''
}

View File

@ -200,6 +200,7 @@ export default {
{
name: '催办',
plain: true,
isManage: true,
type: 'primary',
info: !this.info,
permis: 'toFast',

View File

@ -306,15 +306,18 @@ export default {
}
}
},
async mounted () {
async created () {
await this.handleGrt375()
},
async mounted () {
if (this.$route.params.detailId) {
this.handleLookProcess(this.$route.query.detailId)
}
},
methods: {
handleGetDengJi (result) {
return this.scoreList.find(i => i.minScore <= Number(result) && i.maxScore > Number(result)).name || ''
const obj = this.scoreList.find(i => i.minScore <= Number(result) && i.maxScore > Number(result))
return obj ? obj.name : ''
},
//
async handleGetTaskDetail (id = '') {
@ -340,9 +343,10 @@ export default {
result += Number(item.Score)
return result
}, 0)
console.log('this.scoreList: ', this.scoreList)
return {
score: result.toFixed(3),
a: this.scoreList.find(i => i.minScore <= result && i.maxScore > result).name
a: this.handleGetDengJi(result)
}
},
handleGetScorlList (list) {