diff --git a/src/views/modules/visual/basicinfo/personCategory/index.vue b/src/views/modules/visual/basicinfo/personCategory/index.vue index 22c2d485..6ae43934 100644 --- a/src/views/modules/visual/basicinfo/personCategory/index.vue +++ b/src/views/modules/visual/basicinfo/personCategory/index.vue @@ -49,14 +49,20 @@
较上月
-
{{ "+"+ item.immigration }}
+
+ {{ "+" }} + {{ item.immigration }} +
{{" "}}
-
{{ "-"+ item.emigration}}
+
+ {{ "-" }} + {{ item.emigration }} +
@@ -214,7 +220,7 @@ export default { const { data, code, msg } = await requestPost(url, params); if (code === 0) { this.categoryList = data; - if (this.categoryList.length > 0) { + if (!this.categoryKey && this.categoryList.length > 0) { this.categoryKey = this.categoryList[0].categoryKey } @@ -228,8 +234,11 @@ export default { }, async handleChangeAgency (value) { - this.agencyName = this.$refs["myCascader"].getCheckedNodes()[0].label - this.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '' + let selAgency = this.$refs["myCascader"].getCheckedNodes()[0].data + // this.agencyName = this.$refs["myCascader"].getCheckedNodes()[0].label + this.agencyName = selAgency.name + this.agencyId = selAgency.agencyId + this.level = selAgency.level === 'grid' ? 'grid' : 'agency' this.getApiData() },