78 lines
2.9 KiB
Vue
78 lines
2.9 KiB
Vue
<template>
|
|
<view class="min-height bg-main-light p-25">
|
|
<HeaderItem title="人员机构查询"/>
|
|
<TitleItem title="法律服务机构"/>
|
|
<view class="flex justify-start items-center flex-wrap mt-20">
|
|
<view v-for="(item, index) in orgTypeList" :key="index" class="mr-15 mb-15 pos-r"
|
|
style="width: 220rpx; height: 120rpx" @click="$jump(`/lawOrgPages/pages/orgList?type=${item.dictDataCode}`)">
|
|
<view class="pos-a" style="left: 0;top: 0">
|
|
<u-image src="/lawOrgPages/static/ticket.png" width="220rpx" height="120rpx"/>
|
|
</view>
|
|
<view class="flex justify-center items-center flex-col pos-a text-25"
|
|
style="z-index: 1;left: 0;top: 0; width: 220rpx; padding-top: 25rpx">
|
|
<text class="text-20">{{ item.dictDataCode }}</text>
|
|
<text class="text-red mt-30" v-if="orgList && orgList.length">{{ orgList.filter(o => o.type === item.dictDataCode).length }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<TitleItem title="法律服务人员"/>
|
|
<view class="flex justify-start items-center flex-wrap mt-20">
|
|
<view v-for="(item, index) in orgPeopleTypeList" :key="index" class="mr-15 mb-15 pos-r"
|
|
style="width: 220rpx; height: 120rpx" @click="$jump(`/lawOrgPages/pages/peopleList?type=${item.dictDataCode}`)">
|
|
<view class="pos-a" style="left: 0;top: 0">
|
|
<u-image src="/lawOrgPages/static/ticket.png" width="220rpx" height="120rpx"/>
|
|
</view>
|
|
<view class="flex justify-center items-center flex-col pos-a text-25"
|
|
style="z-index: 1;left: 0;top: 0; width: 220rpx; padding-top: 25rpx">
|
|
<text class="text-20">{{ item.dictDataCode }}</text>
|
|
<text class="text-red mt-30">{{ orgPeopleList.filter(o => o.type === item.dictDataCode).length }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import HeaderItem from "@/components/HeaderItem.vue";
|
|
import {dictDataReq} from "@/api/common";
|
|
import {listLawOrgPeopleReq, listLawOrgReq} from "@/api/lawOrg";
|
|
import TitleItem from "@/components/TitleItem.vue";
|
|
|
|
export default {
|
|
name: "index",
|
|
components: {TitleItem, HeaderItem},
|
|
data() {
|
|
return {
|
|
orgTypeList: [],
|
|
orgPeopleTypeList: [],
|
|
orgList: [],
|
|
orgPeopleList: [],
|
|
}
|
|
},
|
|
methods: {
|
|
async getOrgTypeList() {
|
|
const {data} = await dictDataReq({dictId: '161'})
|
|
this.orgTypeList = data
|
|
},
|
|
async getPeopleTypeList() {
|
|
const {data} = await dictDataReq({dictId: '162'})
|
|
this.orgPeopleTypeList = data
|
|
},
|
|
async getOrgList() {
|
|
const {data} = await listLawOrgReq()
|
|
this.orgList = data
|
|
},
|
|
async getPeopleList() {
|
|
const {data} = await listLawOrgPeopleReq()
|
|
this.orgPeopleList = data
|
|
},
|
|
|
|
},
|
|
async onLoad() {
|
|
await this.getOrgTypeList()
|
|
await this.getOrgList()
|
|
await this.getPeopleTypeList()
|
|
await this.getPeopleList()
|
|
},
|
|
}
|
|
</script> |