diff --git a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue
index e7065465..9f1c9743 100644
--- a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue
+++ b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue
@@ -26,7 +26,7 @@
-
+
{{ areaName }}
地区选择
@@ -72,6 +72,7 @@ export default {
appName: '卡口登记',
data() {
return {
+ cropAreaId: '',
areaId: '',
areaName: '',
tabIndex: 0,
@@ -105,8 +106,9 @@ export default {
},
computed: { ...mapState(['user']) },
created() {
- this.areaId = this.user.areaId
- this.areaName = this.user.areaName
+ // this.areaId = this.user.areaId
+ // this.areaName = this.user.areaName
+ this.getCropAreaId()
this.getGatewayList()
this.$dict.load(['EP_handleType', 'EP_riskLevel']).then(() => {
this.getList()
@@ -120,6 +122,14 @@ export default {
})
},
methods: {
+ getCropAreaId() {
+ this.$http.post(`app/appdvcpconfig/getCorpArea`).then((res) => {
+ if (res.code == 0) {
+ this.areaId = res.data
+ this.cropAreaId = res.data
+ }
+ })
+ },
getListInit() {
this.current = 1
this.list = []
diff --git a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue
index f0b9766b..d2cf92cc 100644
--- a/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue
+++ b/src/project/pingchang/AppCommunityManagement/AppCommunityManagement.vue
@@ -11,7 +11,7 @@
-
+
{{ areaName }}
地区选择
@@ -88,15 +88,16 @@ export default {
'font-weight' : '400',
},
list: [],
- registerTypeList: []
+ registerTypeList: [],
+ cropAreaId: ''
}
},
computed: {
...mapState(['user']),
},
onLoad() {
- this.areaId = this.user.areaId
- this.areaName = this.user.areaName
+ // this.areaId = this.user.areaId
+ // this.areaName = this.user.areaName
this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => {
this.registerTypeList = this.$dict.getDict('EP_registerInfoType')
this.registerTypeList.unshift({dictValue: '', dictName: '全部'})
@@ -105,11 +106,20 @@ export default {
uni.$on('updateList', () => {
this.getListInit()
})
+ this.getCropAreaId()
},
onShow() {
document.title = '社区管理'
},
methods: {
+ getCropAreaId() {
+ this.$http.post(`app/appdvcpconfig/getCorpArea`).then((res) => {
+ if (res.code == 0) {
+ this.areaId = res.data
+ this.cropAreaId = res.data
+ }
+ })
+ },
getListInit() {
this.current = 1
this.list = []
diff --git a/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue b/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue
index bf1209ef..bd2e4bb4 100644
--- a/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue
+++ b/src/project/pingchang/AppNucleicAcidSampling/AppNucleicAcidSampling.vue
@@ -6,7 +6,7 @@
-
+
{{ areaName }}
请选择
@@ -71,26 +71,36 @@ export default {
activeStyle: {
'font-weight' : '400',
},
- list: []
+ list: [],
+ cropAreaId: ''
}
},
computed: {
...mapState(['user']),
},
onLoad() {
- this.areaId = this.user.areaId
- this.areaName = this.user.areaName
+ // this.areaId = this.user.areaId
+ // this.areaName = this.user.areaName
this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => {
this.getListInit()
})
uni.$on('updateList', () => {
this.getListInit()
})
+ this.getCropAreaId()
},
onShow() {
document.title = '核酸采样'
},
methods: {
+ getCropAreaId() {
+ this.$http.post(`app/appdvcpconfig/getCorpArea`).then((res) => {
+ if (res.code == 0) {
+ this.areaId = res.data
+ this.cropAreaId = res.data
+ }
+ })
+ },
getListInit() {
this.current = 1
this.list = []