|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
handler (val) {
|
|
|
this.initOption(val)
|
|
|
},
|
|
|
- immediate: true
|
|
|
+ immediate: false
|
|
|
},
|
|
|
deptId: {
|
|
|
handler (val) {
|
|
|
@@ -67,19 +67,19 @@ export default {
|
|
|
column: [
|
|
|
{
|
|
|
label: '项目名称',
|
|
|
- prop: 'deptName'
|
|
|
+ prop: 'projectName'
|
|
|
},
|
|
|
{
|
|
|
label: '计划完成投资(万元)',
|
|
|
- prop: 'planCompleteAmount'
|
|
|
+ prop: 'yearlyPlanCompleteAmount'
|
|
|
},
|
|
|
{
|
|
|
label: '完成投资(万元)',
|
|
|
- prop: 'totalCompleteAmount'
|
|
|
+ prop: 'yearlyCompleteAmount'
|
|
|
},
|
|
|
{
|
|
|
label: '完成率',
|
|
|
- prop: 'completionRate'
|
|
|
+ prop: 'rate'
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
@@ -88,17 +88,19 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
onLoad () {
|
|
|
- this.$api.invest.list({
|
|
|
+ const data = {
|
|
|
deptId: this.deptId === null ? '' : this.deptId,
|
|
|
month: this.month,
|
|
|
quarter: this.quarter
|
|
|
- }).then(res => {
|
|
|
+ }
|
|
|
+ this.$api.invest.list(data).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.data = res.data
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
initOption (res) {
|
|
|
+ console.log('initOption')
|
|
|
this.month = ''
|
|
|
this.selectOption.length = 0
|
|
|
switch (res.value) {
|
|
|
@@ -142,6 +144,7 @@ export default {
|
|
|
this.onLoad()
|
|
|
},
|
|
|
changeMonth (res) {
|
|
|
+ console.log('changeMonth')
|
|
|
this.month = res
|
|
|
this.onLoad()
|
|
|
}
|