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

View File

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

View File

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