cropAreaId
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<div class="top-select">
|
||||
<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 v-else>地区选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user