|
|
@@ -11,6 +11,9 @@ import Right11 from './comps/right/top/1/index.vue'; |
|
|
|
import Right21 from './comps/right/middle/1/index.vue'; |
|
|
|
import Right31 from './comps/right/bottom/1/index.vue'; |
|
|
|
import Bottom1 from './comps/buttom/1/index.vue'; |
|
|
|
import Bottom2 from './comps/buttom/2/index.vue'; |
|
|
|
|
|
|
|
import Popover from './popover/index.vue'; |
|
|
|
import MainGis from './main-gis/index.vue'; |
|
|
|
|
|
|
|
import { comps } from './data.js' |
|
|
@@ -32,6 +35,8 @@ export default { |
|
|
|
Right11, |
|
|
|
Right21, |
|
|
|
Right31, |
|
|
|
Popover, |
|
|
|
Bottom2, |
|
|
|
Bottom1 |
|
|
|
}, |
|
|
|
data () { |
|
|
@@ -47,55 +52,66 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
created () { |
|
|
|
this.currentComp.right[0].data = []; |
|
|
|
this.currentComp.right[1].data = []; |
|
|
|
this.currentComp.right[2].data = []; |
|
|
|
|
|
|
|
this.currentComp.left[0].data = []; |
|
|
|
this.currentComp.left[1].data = []; |
|
|
|
this.currentComp.left[2].data = []; |
|
|
|
getInfo().then(res => { |
|
|
|
getStatistic({ deptId: res.user.deptId }).then((response) => { |
|
|
|
response.data.jtzyzcDeptList.map(rr => { |
|
|
|
this.currentComp.left[0].data.push({ |
|
|
|
this.currentComp.right[0].data.push({ |
|
|
|
name: rr.deptName, |
|
|
|
value: rr.ydmj |
|
|
|
}) |
|
|
|
}) |
|
|
|
response.data.nysssbDeptList.map(rr => { |
|
|
|
this.currentComp.left[1].data.push({ |
|
|
|
this.currentComp.right[1].data.push({ |
|
|
|
name: rr.deptName, |
|
|
|
value: rr.ydmj |
|
|
|
}) |
|
|
|
}) |
|
|
|
response.data.nhzcDeptList.map(rr => { |
|
|
|
this.currentComp.left[2].data.push({ |
|
|
|
this.currentComp.right[2].data.push({ |
|
|
|
name: rr.deptName, |
|
|
|
value: rr.ydmj |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
response.data.jtzyzcTypeList.map(rr => { |
|
|
|
this.currentComp.right[0].data.push({ |
|
|
|
this.currentComp.left[0].data.push({ |
|
|
|
name: rr.threeDetailType, |
|
|
|
value: rr.ydmj |
|
|
|
}) |
|
|
|
}) |
|
|
|
response.data.nysssbTypeList.map(rr => { |
|
|
|
this.currentComp.right[1].data.push({ |
|
|
|
this.currentComp.left[1].data.push({ |
|
|
|
name: rr.threeDetailType, |
|
|
|
value: rr.ydmj |
|
|
|
}) |
|
|
|
}) |
|
|
|
response.data.nhzcTypeList.map(rr => { |
|
|
|
this.currentComp.right[2].data.push({ |
|
|
|
this.currentComp.left[2].data.push({ |
|
|
|
name: rr.threeDetailType, |
|
|
|
value: rr.ydmj |
|
|
|
value: rr.ydmj, |
|
|
|
unit: '万元' |
|
|
|
}) |
|
|
|
this.currentComp.left[2].countNum += rr.ydmj; |
|
|
|
}) |
|
|
|
|
|
|
|
this.currentComp.buttom[0].data = { |
|
|
|
jtzyzc: response.data.jtzyzc,//集体资源资产 |
|
|
|
nysssb: response.data.nysssb,//农业设施设备 |
|
|
|
nhzc: response.data.nhzc, |
|
|
|
} |
|
|
|
|
|
|
|
this.currentComp.buttom[1].data = { |
|
|
|
xy23: response.data.xy23, |
|
|
|
xy24: response.data.xy24 |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.currentComp) |
|
|
|
this.allData = response.data; |
|
|
|
}); |
|
|
|