cropAreaId
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<u-icon name="close-circle" color="#666" size="34" style="margin-left: 4px" v-else @click="clearDate" />
|
<u-icon name="close-circle" color="#666" size="34" style="margin-left: 4px" v-else @click="clearDate" />
|
||||||
</div>
|
</div>
|
||||||
<div class="area-select">
|
<div class="area-select">
|
||||||
<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 v-if="areaName" class="area-name">{{ areaName }}</span>
|
<span v-if="areaName" class="area-name">{{ 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" />
|
||||||
@@ -86,6 +86,7 @@ export default {
|
|||||||
backVal: 0,
|
backVal: 0,
|
||||||
pointVal: 0,
|
pointVal: 0,
|
||||||
firstGet: true, //第一次请求
|
firstGet: true, //第一次请求
|
||||||
|
cropAreaId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
@@ -93,11 +94,18 @@ export default {
|
|||||||
document.title = '排查统计'
|
document.title = '排查统计'
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.areaId = this.user.areaId
|
this.getCropAreaId()
|
||||||
this.areaName = this.user.areaName
|
|
||||||
this.getData()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getCropAreaId() {
|
||||||
|
this.$http.post(`/app/appdvcpconfig/getCorpArea`).then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.areaId = res.data
|
||||||
|
this.cropAreaId = res.data
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
areaSelect(e) {
|
areaSelect(e) {
|
||||||
this.areaId = e
|
this.areaId = e
|
||||||
this.getData()
|
this.getData()
|
||||||
|
|||||||
@@ -99,8 +99,8 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
currentTabs: 0,
|
currentTabs: 0,
|
||||||
userList: [],
|
totalInfo: {},
|
||||||
data: [{name: '123'}],
|
data: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -110,13 +110,13 @@ export default {
|
|||||||
onLoad() {
|
onLoad() {
|
||||||
this.areaId = this.user.areaId
|
this.areaId = this.user.areaId
|
||||||
this.areaName = this.user.areaName
|
this.areaName = this.user.areaName
|
||||||
// this.getList()
|
this.getList()
|
||||||
// this.getUserList()
|
this.getTotal()
|
||||||
|
|
||||||
uni.$on('updateLists', () => {
|
uni.$on('updateLists', () => {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getUserList()
|
this.getTotal()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -125,7 +125,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
this.$http
|
this.$http
|
||||||
.post('/app/appepidemicreportmember/list', null, {
|
.post('/app/appepidemicpreventionhealthreportinfo/list', null, {
|
||||||
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
|
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -142,10 +142,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getUserList() {
|
getTotal() {
|
||||||
this.$http.post(`/app/appepidemicreportmember/statistic?areaId=${this.areaId}`).then((res) => {
|
this.$http.post(`/app/appepidemicpreventionhealthreportinfo/listStatistics?areaId=${this.areaId}`).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.userList = res.data
|
// this.userList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -159,7 +159,7 @@ export default {
|
|||||||
areaSelect(e) {
|
areaSelect(e) {
|
||||||
this.areaId = e
|
this.areaId = e
|
||||||
this.getList()
|
this.getList()
|
||||||
this.getUserList()
|
this.getTotal()
|
||||||
},
|
},
|
||||||
|
|
||||||
change(index) {
|
change(index) {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
<div class="value">{{$dict.getLabel('EP_registerPersonType', info.type)}}</div>
|
<div class="value">{{$dict.getLabel('EP_registerPersonType', info.type)}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="line-bg"></div>
|
||||||
<div class="info" v-if="info.riskDisposalList.length">
|
<div class="info" v-if="info.riskDisposalList.length">
|
||||||
<div class="title">异常情况记录</div>
|
<div class="title">异常情况记录</div>
|
||||||
<div class="error-list">
|
<div class="error-list">
|
||||||
@@ -303,5 +304,10 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.line-bg{
|
||||||
|
width: 100%;
|
||||||
|
height: 24px;
|
||||||
|
background-color: #F3F6F9;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user