|
@@ -26,7 +26,15 @@
|
|
|
<basic-container>
|
|
<basic-container>
|
|
|
<div class='flex '>
|
|
<div class='flex '>
|
|
|
<div class='flex-child-average full-width flex flex-col flex-justify-start'>
|
|
<div class='flex-child-average full-width flex flex-col flex-justify-start'>
|
|
|
- <span class='font-16 bold full-width text-left '>投资数据统计 单位(亿元)</span>
|
|
|
|
|
|
|
+ <div class="flex flex-center flex-justify-between">
|
|
|
|
|
+ <span class='font-16 bold full-width text-left '>投资数据统计 单位(亿元)</span>
|
|
|
|
|
+ <div v-if="isAverage === false" class="flex flex-center red">
|
|
|
|
|
+ <el-icon>
|
|
|
|
|
+ <Warning/>
|
|
|
|
|
+ </el-icon>
|
|
|
|
|
+ <span class='full-width text-right ml-5 nowrap mr-20'>上月未完成平均投资指标</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<div class='full-width mt-10' style='background-color: #F7FAFD'>
|
|
<div class='full-width mt-10' style='background-color: #F7FAFD'>
|
|
|
<chart :dept-id='dept' :quarter='yearType.value === 0 ? "":yearType ' :year="year"/>
|
|
<chart :dept-id='dept' :quarter='yearType.value === 0 ? "":yearType ' :year="year"/>
|
|
|
</div>
|
|
</div>
|
|
@@ -64,16 +72,16 @@ import amount from '@/views/invest/components/amount.vue'
|
|
|
import chart from '@/views/invest/components/chart.vue'
|
|
import chart from '@/views/invest/components/chart.vue'
|
|
|
import chart2 from '@/views/invest/components/chart2.vue'
|
|
import chart2 from '@/views/invest/components/chart2.vue'
|
|
|
import complete from '@/views/invest/components/complete.vue'
|
|
import complete from '@/views/invest/components/complete.vue'
|
|
|
-import { useStore } from '@/store/user.js'
|
|
|
|
|
|
|
+import {useStore} from '@/store/user.js'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'index',
|
|
name: 'index',
|
|
|
- components: { BasicContainer, left, years, amount, chart, chart2, complete },
|
|
|
|
|
- setup () {
|
|
|
|
|
|
|
+ components: {BasicContainer, left, years, amount, chart, chart2, complete},
|
|
|
|
|
+ setup() {
|
|
|
const user = useStore()
|
|
const user = useStore()
|
|
|
- return { user }
|
|
|
|
|
|
|
+ return {user}
|
|
|
},
|
|
},
|
|
|
- data () {
|
|
|
|
|
|
|
+ data() {
|
|
|
return {
|
|
return {
|
|
|
yearType: {
|
|
yearType: {
|
|
|
value: 0
|
|
value: 0
|
|
@@ -102,26 +110,35 @@ export default {
|
|
|
{
|
|
{
|
|
|
value: 2017
|
|
value: 2017
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ isAverage: true
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created () {
|
|
|
|
|
|
|
+ created() {
|
|
|
this.year = new Date().getFullYear()
|
|
this.year = new Date().getFullYear()
|
|
|
|
|
+ this.isBelowAverage()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- changeDept (res) {
|
|
|
|
|
|
|
+ changeDept(res) {
|
|
|
if (res === null) {
|
|
if (res === null) {
|
|
|
this.dept = null
|
|
this.dept = null
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.dept = res.id
|
|
this.dept = res.id
|
|
|
},
|
|
},
|
|
|
- change (index) {
|
|
|
|
|
|
|
+ change(index) {
|
|
|
this.yearType = index
|
|
this.yearType = index
|
|
|
},
|
|
},
|
|
|
- yearSelect (res) {
|
|
|
|
|
|
|
+ yearSelect(res) {
|
|
|
this.year = res
|
|
this.year = res
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ isBelowAverage() {
|
|
|
|
|
+ this.$api.invest.belowAverage().then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.isAverage = res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|