优化
This commit is contained in:
parent
812f4cc511
commit
8a2f6171fb
@ -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 || ''
|
||||
}
|
||||
|
||||
@ -200,6 +200,7 @@ export default {
|
||||
{
|
||||
name: '催办',
|
||||
plain: true,
|
||||
isManage: true,
|
||||
type: 'primary',
|
||||
info: !this.info,
|
||||
permis: 'toFast',
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user