cropAreaId
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="top-select">
|
<div class="top-select">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
<AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||||
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||||
<span v-else>地区选择</span>
|
<span v-else>地区选择</span>
|
||||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||||
@@ -72,6 +72,7 @@ export default {
|
|||||||
appName: '卡口登记',
|
appName: '卡口登记',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
cropAreaId: '',
|
||||||
areaId: '',
|
areaId: '',
|
||||||
areaName: '',
|
areaName: '',
|
||||||
tabIndex: 0,
|
tabIndex: 0,
|
||||||
@@ -105,8 +106,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
created() {
|
created() {
|
||||||
this.areaId = this.user.areaId
|
// this.areaId = this.user.areaId
|
||||||
this.areaName = this.user.areaName
|
// this.areaName = this.user.areaName
|
||||||
|
this.getCropAreaId()
|
||||||
this.getGatewayList()
|
this.getGatewayList()
|
||||||
this.$dict.load(['EP_handleType', 'EP_riskLevel']).then(() => {
|
this.$dict.load(['EP_handleType', 'EP_riskLevel']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
@@ -120,6 +122,14 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getCropAreaId() {
|
||||||
|
this.$http.post(`app/appdvcpconfig/getCorpArea`).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.areaId = res.data
|
||||||
|
this.cropAreaId = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getListInit() {
|
getListInit() {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.list = []
|
this.list = []
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="top-select">
|
<div class="top-select">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
<AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||||
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||||
<span v-else style="color:#999;">地区选择</span>
|
<span v-else style="color:#999;">地区选择</span>
|
||||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||||
@@ -88,15 +88,16 @@ export default {
|
|||||||
'font-weight' : '400',
|
'font-weight' : '400',
|
||||||
},
|
},
|
||||||
list: [],
|
list: [],
|
||||||
registerTypeList: []
|
registerTypeList: [],
|
||||||
|
cropAreaId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.areaId = this.user.areaId
|
// this.areaId = this.user.areaId
|
||||||
this.areaName = this.user.areaName
|
// this.areaName = this.user.areaName
|
||||||
this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => {
|
this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => {
|
||||||
this.registerTypeList = this.$dict.getDict('EP_registerInfoType')
|
this.registerTypeList = this.$dict.getDict('EP_registerInfoType')
|
||||||
this.registerTypeList.unshift({dictValue: '', dictName: '全部'})
|
this.registerTypeList.unshift({dictValue: '', dictName: '全部'})
|
||||||
@@ -105,11 +106,20 @@ export default {
|
|||||||
uni.$on('updateList', () => {
|
uni.$on('updateList', () => {
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
})
|
})
|
||||||
|
this.getCropAreaId()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '社区管理'
|
document.title = '社区管理'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getCropAreaId() {
|
||||||
|
this.$http.post(`app/appdvcpconfig/getCorpArea`).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.areaId = res.data
|
||||||
|
this.cropAreaId = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getListInit() {
|
getListInit() {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.list = []
|
this.list = []
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</u-tabs>
|
</u-tabs>
|
||||||
<div class="top-search">
|
<div class="top-search">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
<AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||||
<u-icon name="map-fill" color="#3192F4" size="20px" style="vertical-align: text-bottom"></u-icon>
|
<u-icon name="map-fill" color="#3192F4" size="20px" style="vertical-align: text-bottom"></u-icon>
|
||||||
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||||
<span v-else>请选择</span>
|
<span v-else>请选择</span>
|
||||||
@@ -71,26 +71,36 @@ export default {
|
|||||||
activeStyle: {
|
activeStyle: {
|
||||||
'font-weight' : '400',
|
'font-weight' : '400',
|
||||||
},
|
},
|
||||||
list: []
|
list: [],
|
||||||
|
cropAreaId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.areaId = this.user.areaId
|
// this.areaId = this.user.areaId
|
||||||
this.areaName = this.user.areaName
|
// this.areaName = this.user.areaName
|
||||||
this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => {
|
this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => {
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
})
|
})
|
||||||
uni.$on('updateList', () => {
|
uni.$on('updateList', () => {
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
})
|
})
|
||||||
|
this.getCropAreaId()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '核酸采样'
|
document.title = '核酸采样'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getCropAreaId() {
|
||||||
|
this.$http.post(`app/appdvcpconfig/getCorpArea`).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.areaId = res.data
|
||||||
|
this.cropAreaId = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getListInit() {
|
getListInit() {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.list = []
|
this.list = []
|
||||||
|
|||||||
Reference in New Issue
Block a user