|
@@ -39,25 +39,25 @@ export default {
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
type: {
|
|
type: {
|
|
|
- handler(val) {
|
|
|
|
|
|
|
+ handler (val) {
|
|
|
this.initOption(val)
|
|
this.initOption(val)
|
|
|
},
|
|
},
|
|
|
immediate: true
|
|
immediate: true
|
|
|
},
|
|
},
|
|
|
deptId: {
|
|
deptId: {
|
|
|
- handler(val) {
|
|
|
|
|
|
|
+ handler (val) {
|
|
|
this.onLoad()
|
|
this.onLoad()
|
|
|
},
|
|
},
|
|
|
immediate: true
|
|
immediate: true
|
|
|
},
|
|
},
|
|
|
year: {
|
|
year: {
|
|
|
- handler(val) {
|
|
|
|
|
|
|
+ handler (val) {
|
|
|
this.onLoad()
|
|
this.onLoad()
|
|
|
},
|
|
},
|
|
|
immediate: true
|
|
immediate: true
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
month: '',
|
|
month: '',
|
|
|
quarter: '',
|
|
quarter: '',
|
|
@@ -82,12 +82,18 @@ export default {
|
|
|
{
|
|
{
|
|
|
label: '责任目标',
|
|
label: '责任目标',
|
|
|
prop: 'planCompleteAmount',
|
|
prop: 'planCompleteAmount',
|
|
|
- sortable: true
|
|
|
|
|
|
|
+ sortable: true,
|
|
|
|
|
+ formatter: (row, value) => {
|
|
|
|
|
+ return value.toLocaleString()
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '完成投资(万元)',
|
|
label: '完成投资(万元)',
|
|
|
prop: 'totalCompleteAmount',
|
|
prop: 'totalCompleteAmount',
|
|
|
- sortable: true
|
|
|
|
|
|
|
+ sortable: true,
|
|
|
|
|
+ formatter: (row, value) => {
|
|
|
|
|
+ return value.toLocaleString()
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '完成率',
|
|
label: '完成率',
|
|
@@ -105,7 +111,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- onLoad() {
|
|
|
|
|
|
|
+ onLoad () {
|
|
|
this.$api.invest.list({
|
|
this.$api.invest.list({
|
|
|
deptId: this.deptId === null ? '' : this.deptId,
|
|
deptId: this.deptId === null ? '' : this.deptId,
|
|
|
year: this.year === null ? '' : this.year,
|
|
year: this.year === null ? '' : this.year,
|
|
@@ -117,41 +123,41 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- initOption(res) {
|
|
|
|
|
|
|
+ initOption (res) {
|
|
|
this.month = ''
|
|
this.month = ''
|
|
|
this.selectOption.length = 0
|
|
this.selectOption.length = 0
|
|
|
switch (res.value) {
|
|
switch (res.value) {
|
|
|
case 1:
|
|
case 1:
|
|
|
for (let i = 1; i <= 3; i++) {
|
|
for (let i = 1; i <= 3; i++) {
|
|
|
- const item = {label: i + '月', value: i}
|
|
|
|
|
|
|
+ const item = { label: i + '月', value: i }
|
|
|
this.selectOption.push(item)
|
|
this.selectOption.push(item)
|
|
|
}
|
|
}
|
|
|
this.quarter = 1
|
|
this.quarter = 1
|
|
|
break
|
|
break
|
|
|
case 2:
|
|
case 2:
|
|
|
for (let i = 4; i <= 6; i++) {
|
|
for (let i = 4; i <= 6; i++) {
|
|
|
- const item = {label: i + '月', value: i}
|
|
|
|
|
|
|
+ const item = { label: i + '月', value: i }
|
|
|
this.selectOption.push(item)
|
|
this.selectOption.push(item)
|
|
|
}
|
|
}
|
|
|
this.quarter = 2
|
|
this.quarter = 2
|
|
|
break
|
|
break
|
|
|
case 3:
|
|
case 3:
|
|
|
for (let i = 7; i <= 9; i++) {
|
|
for (let i = 7; i <= 9; i++) {
|
|
|
- const item = {label: i + '月', value: i}
|
|
|
|
|
|
|
+ const item = { label: i + '月', value: i }
|
|
|
this.selectOption.push(item)
|
|
this.selectOption.push(item)
|
|
|
}
|
|
}
|
|
|
this.quarter = 3
|
|
this.quarter = 3
|
|
|
break
|
|
break
|
|
|
case 4:
|
|
case 4:
|
|
|
for (let i = 10; i <= 12; i++) {
|
|
for (let i = 10; i <= 12; i++) {
|
|
|
- const item = {label: i + '月', value: i}
|
|
|
|
|
|
|
+ const item = { label: i + '月', value: i }
|
|
|
this.selectOption.push(item)
|
|
this.selectOption.push(item)
|
|
|
}
|
|
}
|
|
|
this.quarter = 4
|
|
this.quarter = 4
|
|
|
break
|
|
break
|
|
|
default:
|
|
default:
|
|
|
for (let i = 1; i <= 12; i++) {
|
|
for (let i = 1; i <= 12; i++) {
|
|
|
- const item = {label: i + '月', value: i}
|
|
|
|
|
|
|
+ const item = { label: i + '月', value: i }
|
|
|
this.selectOption.push(item)
|
|
this.selectOption.push(item)
|
|
|
this.month = ''
|
|
this.month = ''
|
|
|
this.quarter = ''
|
|
this.quarter = ''
|
|
@@ -160,7 +166,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.onLoad()
|
|
this.onLoad()
|
|
|
},
|
|
},
|
|
|
- changeMonth(res) {
|
|
|
|
|
|
|
+ changeMonth (res) {
|
|
|
this.month = res
|
|
this.month = res
|
|
|
this.onLoad()
|
|
this.onLoad()
|
|
|
}
|
|
}
|