Browse Source

Merge branch 'dev-数据统计' into test

test
dai 3 years ago
parent
commit
f1d86c8806
  1. 10
      src/views/modules/renFangTongJi/cpts/shequtongji.vue
  2. 8
      src/views/modules/renFangTongJi/index.vue

10
src/views/modules/renFangTongJi/cpts/shequtongji.vue

@ -20,6 +20,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
orgIds: {
type: String,
default: "",
},
}, },
data() { data() {
@ -28,11 +32,12 @@ export default {
searchParams: [ searchParams: [
{ {
field: "发布范围", field: "选择范围",
keyName: "org", keyName: "org",
type: "cascader", type: "cascader",
value: "", value: "",
optionUrl: "/gov/org/customeragency/agencygridtree", // optionUrl: "/gov/org/customeragency/agencygridtree",
optionUrl: "/gov/org/customeragency/my-subagency-list",
optionUrlParams: { optionUrlParams: {
agencyId: this.$store.state.user.agencyId, agencyId: this.$store.state.user.agencyId,
}, },
@ -88,6 +93,7 @@ export default {
watch: {}, watch: {},
async mounted() { async mounted() {
this.searchParams[0].value = this.orgIds;
this.searchParams[0].supValues[0] = this.orgId; this.searchParams[0].supValues[0] = this.orgId;
if (this.orgId) { if (this.orgId) {
this.searchParams[0].supValues[1] = "agency"; this.searchParams[0].supValues[1] = "agency";

8
src/views/modules/renFangTongJi/index.vue

@ -97,7 +97,11 @@
top="5vh" top="5vh"
@close="displayedDetail = false" @close="displayedDetail = false"
> >
<shequtongji ref="shequtongji" :orgId="detailOrgId" /> <shequtongji
ref="shequtongji"
:orgId="detailOrgId"
:orgIds="[orgId, detailOrgId]"
/>
</el-dialog> </el-dialog>
</el-card> </el-card>
</template> </template>
@ -236,6 +240,8 @@ export default {
if (code === 0) { if (code === 0) {
const { list } = this; const { list } = this;
this.orgId = data.orgId;
this.orgType = data.orgType;
let item1 = list.find((item) => item.name == "人口总数"); let item1 = list.find((item) => item.name == "人口总数");
item1.num = data.userTotal; item1.num = data.userTotal;
item1.variation = parseInt(data.userTotalJSY); item1.variation = parseInt(data.userTotalJSY);

Loading…
Cancel
Save