BUG 28184
This commit is contained in:
@@ -8,17 +8,20 @@
|
|||||||
<div class="area-select">
|
<div class="area-select">
|
||||||
<div class="select-content">
|
<div class="select-content">
|
||||||
<div class="area-content">
|
<div class="area-content">
|
||||||
<AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">
|
<AiPagePicker type="gird" isMyGird @select="handleGridSelect">
|
||||||
<img src="../img/local-icon.png" alt=""/>
|
<u-icon name="arrow-down" color="#666" size="24" :label="gridName" label-pos="left"/>
|
||||||
<span class="label" v-if="areaName">{{ areaName }}</span>
|
</AiPagePicker>
|
||||||
<span v-else>请选择</span>
|
<!-- <AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">-->
|
||||||
<u-icon name="arrow-down" color="#666" size="24"/>
|
<!-- <img src="../img/local-icon.png" alt=""/>-->
|
||||||
</AiAreaPicker>
|
<!-- <span class="label" v-if="areaName">{{ areaName }}</span>-->
|
||||||
|
<!-- <span v-else>请选择</span>-->
|
||||||
|
<!-- <u-icon name="arrow-down" color="#666" size="24"/>-->
|
||||||
|
<!-- </AiAreaPicker>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="search-input" v-if="tabIndex">
|
<div class="search-input" v-if="tabIndex">
|
||||||
<img src="../img/search-icon.png" alt=""/>
|
<img src="../img/search-icon.png" alt=""/>
|
||||||
<u-input type="text" placeholder="请输入姓名" placeholder-style="color:#999;font-size:13px;" height="18"
|
<u-input type="text" placeholder="请输入姓名" placeholder-style="color:#999;font-size:13px;" height="18"
|
||||||
v-model="name" @confirm="getUserList" :clearable="false" maxlength="6"/>
|
v-model="search.name" @confirm="getUserList" :clearable="false" maxlength="6"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -81,11 +84,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
|
import AiPagePicker from "../../../components/AiPagePicker";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: {AiPagePicker},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
areaId: '',
|
|
||||||
areaName: '',
|
areaName: '',
|
||||||
tabs: ['统计信息', '人员信息'],
|
tabs: ['统计信息', '人员信息'],
|
||||||
tabIndex: 0,
|
tabIndex: 0,
|
||||||
@@ -93,47 +97,46 @@ export default {
|
|||||||
statisticsList: [],
|
statisticsList: [],
|
||||||
statisticsListMon: [],
|
statisticsListMon: [],
|
||||||
userList: [],
|
userList: [],
|
||||||
name: '',
|
gridType: 0,
|
||||||
gridType: 0
|
gridName: "请选择",
|
||||||
|
search: {name: ''}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {...mapState(['user'])},
|
computed: {...mapState(['user'])},
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load('appSpecialTypeFive').then(() => {
|
this.$dict.load('appSpecialTypeFive')
|
||||||
this.areaId = this.user.areaId
|
|
||||||
this.areaName = this.user.areaName
|
|
||||||
this.getStatistic()
|
|
||||||
this.getStatisticMon()
|
|
||||||
this.getUserList()
|
|
||||||
})
|
|
||||||
|
|
||||||
uni.$on('specialPeopleList', () => {
|
|
||||||
this.getStatistic()
|
|
||||||
this.getStatisticMon()
|
|
||||||
this.getUserList()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '特殊人群管理'
|
document.title = '特殊人群管理'
|
||||||
this.$dict.getDict('appSpecialTypeFive')
|
|
||||||
this.isGirdUser()
|
this.isGirdUser()
|
||||||
|
this.getDatas()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
areaSelect(e) {
|
getDatas() {
|
||||||
this.areaId = e
|
|
||||||
this.getStatistic()
|
this.getStatistic()
|
||||||
this.getStatisticMon()
|
this.getStatisticMon()
|
||||||
this.getUserList()
|
this.getUserList()
|
||||||
},
|
},
|
||||||
|
handleGridSelect(e) {
|
||||||
|
this.gridName = e.girdName
|
||||||
|
this.search.girdId = e.id
|
||||||
|
this.getDatas()
|
||||||
|
},
|
||||||
|
areaSelect(e) {
|
||||||
|
this.search.areaId = e
|
||||||
|
this.getDatas()
|
||||||
|
},
|
||||||
tabClick(index) {
|
tabClick(index) {
|
||||||
this.tabIndex = index
|
this.tabIndex = index
|
||||||
},
|
},
|
||||||
getStatistic() {
|
getStatistic() {
|
||||||
this.statisticsList = []
|
this.statisticsList = []
|
||||||
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=0`).then((res) => {
|
this.$http.post(`/app/appapplicationinfo/specialStatistic`, null, {
|
||||||
if (res.code == 0) {
|
params: {...this.search, type: 0, range: 0}
|
||||||
|
}).then((res) => {
|
||||||
|
if (res?.data) {
|
||||||
for (let i in res.data) {
|
for (let i in res.data) {
|
||||||
var obj = {
|
let obj = {
|
||||||
label: i,
|
label: i,
|
||||||
value: res.data[i],
|
value: res.data[i],
|
||||||
}
|
}
|
||||||
@@ -144,10 +147,12 @@ export default {
|
|||||||
},
|
},
|
||||||
getStatisticMon() {
|
getStatisticMon() {
|
||||||
this.statisticsListMon = []
|
this.statisticsListMon = []
|
||||||
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => {
|
this.$http.post(`/app/appapplicationinfo/specialStatistic`, null, {
|
||||||
if (res.code == 0) {
|
params: {...this.search, type: 0, range: 1}
|
||||||
|
}).then((res) => {
|
||||||
|
if (res?.data) {
|
||||||
for (let i in res.data) {
|
for (let i in res.data) {
|
||||||
var obj = {
|
let obj = {
|
||||||
label: i,
|
label: i,
|
||||||
value: res.data[i],
|
value: res.data[i],
|
||||||
}
|
}
|
||||||
@@ -158,10 +163,12 @@ export default {
|
|||||||
},
|
},
|
||||||
getUserList() {
|
getUserList() {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
this.$http.post(`/app/appapplicationinfo/queryPeople?areaId=${this.areaId}&type=0&status=1&name=${this.name}`).then((res) => {
|
this.$http.post(`/app/appapplicationinfo/queryPeople`, null, {
|
||||||
if (res.code == 0) {
|
params: {...this.search, type: 0, status: 1}
|
||||||
|
}).then((res) => {
|
||||||
|
if (res?.data) {
|
||||||
for (let i in res.data) {
|
for (let i in res.data) {
|
||||||
var obj = {
|
let obj = {
|
||||||
label: i,
|
label: i,
|
||||||
value: res.data[i],
|
value: res.data[i],
|
||||||
check: false,
|
check: false,
|
||||||
@@ -220,8 +227,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
showDetail(e){
|
showDetail(e) {
|
||||||
uni.navigateTo({url:`/mods/AppPeopleList/DetailCard?id=${e.id}`})
|
uni.navigateTo({url: `/mods/AppPeopleList/DetailCard?id=${e.id}`})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user