卡口登记
This commit is contained in:
@@ -3,44 +3,58 @@
|
||||
<AiTopFixed>
|
||||
<div class="header">
|
||||
<div class="tab-item">
|
||||
<h2 style="color:#5AAD6A;">{{totalInfo.today}}</h2>
|
||||
<h2 style="color:#5AAD6A;">{{totalInfo['今日登记']}}</h2>
|
||||
<p>今日返乡</p>
|
||||
</div>
|
||||
<div class="tab-item">
|
||||
<h2 style="color:#F5A319;">{{totalInfo.todayUnusual}}</h2>
|
||||
<h2 style="color:#F5A319;">{{totalInfo['今日风险']}}</h2>
|
||||
<p>今日风险</p>
|
||||
</div>
|
||||
<div class="tab-item">
|
||||
<h2 style="color:#CD413A;border-right:0;">{{totalInfo.release}}</h2>
|
||||
<h2 style="color:#CD413A;border-right:0;">{{totalInfo['风险处理']}}</h2>
|
||||
<p>风险处理</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search">
|
||||
<div class="left">
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @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>
|
||||
<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" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
<u-search v-model="name" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5" search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="name='',getListInit"></u-search>
|
||||
</div>
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="!tabIndex ? 'active' : ''" @click="tabClick(0)">返乡人员<span></span></div>
|
||||
<div class="item" :class="tabIndex ? 'active' : ''" @click="tabClick(1)">异常人员<span></span></div>
|
||||
</div>
|
||||
<div class="top-search">
|
||||
<u-search v-model="keyword" :clearabled="true" placeholder="请输入姓名" :show-action="false" bg-color="#F5F5F5"
|
||||
search-icon-color="#999" color="#333" height="58" @search="getListInit" @clear="getListInit">
|
||||
</u-search>
|
||||
</div>
|
||||
<div class="top-select">
|
||||
<div class="item">
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @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" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span @click="showGateSelect=true">{{gatewayName || '卡口选择'}}</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||
</div>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="user-list">
|
||||
<div class="item" @click="toUser(item)" v-for="(item,index) in list" :key="index">
|
||||
<h2 class="name">{{item.name}}<span class="status" v-if="item.status == 0">有异常</span></h2>
|
||||
<p class="color-999">{{item.idNumber}}</p>
|
||||
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{item.startAreaName}}</span></p>
|
||||
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{item.arriveAreaName}}</span></p>
|
||||
<p><img src="./components/img/time-icon.png" alt="">{{item.arriveTime}}</p>
|
||||
<div class="top">
|
||||
<h2 class="name">{{item.name}}<span class="status" :class="'status'+item.riskLevel">{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}</span></h2>
|
||||
<p class="color-999">{{item.idNumber}}</p>
|
||||
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{item.startAreaName}}</span></p>
|
||||
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{item.arriveAreaName}}</span></p>
|
||||
<p><img src="./components/img/time-icon.png" alt="">{{item.arriveTime}}</p>
|
||||
<img :src="statusImgList[item.handleType]" alt="" class="status-img">
|
||||
</div>
|
||||
<div class="bottom" v-if="item.handleType>0">
|
||||
<div class="text">管控人:<span>{{item.handleUserName}}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||
<u-select v-model="showGateSelect" :list="gateList" label-name="name" value-name="id" @confirm="gatewayconfirm"></u-select>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -57,24 +71,70 @@ export default {
|
||||
tabIndex: 0,
|
||||
current: 1,
|
||||
list: [],
|
||||
name: '',
|
||||
totalInfo: {}
|
||||
totalInfo: {},
|
||||
keyword: '',
|
||||
gatewayId: '',
|
||||
gatewayName: '',
|
||||
showGateSelect: false,
|
||||
gateList: [],
|
||||
statusImgList: [
|
||||
require('./components/img/status0.png'),
|
||||
require('./components/img/status1.png'),
|
||||
require('./components/img/status2.png'),
|
||||
require('./components/img/status3.png'),
|
||||
require('./components/img/status4.png'),
|
||||
require('./components/img/status5.png'),
|
||||
require('./components/img/status6.png'),
|
||||
]
|
||||
}
|
||||
},
|
||||
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.getGatewayList()
|
||||
this.$dict.load(['EP_handleType', 'EP_riskLevel']).then(() => {
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
document.title = '卡口登记'
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
uni.$on('updateList', () => {
|
||||
this.getListInit()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getListInit() {
|
||||
this.current = 1
|
||||
this.list = []
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
this.$http.post(`/app/appepidemicpreventionregisterinfo/list?infoType=0¤t=${this.current}&size=10&listType=${this.tabIndex}&gatewayId=${this.gatewayId}&name=${this.keyword}&startAreaId=${this.areaId}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map((item) => {
|
||||
item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
getTotal() {
|
||||
this.$http.post(`/app/appepidemicpreventionregisterinfo/listStatistics?areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.totalInfo = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
getGatewayList() {
|
||||
this.$http.post(`/app/appepidemicpreventiongateway/list?size=300&status=0`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.gateList = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
areaSelect(e) {
|
||||
this.areaId =e
|
||||
this.$nextTick(() => {
|
||||
@@ -86,36 +146,14 @@ export default {
|
||||
this.tabIndex = index
|
||||
this.getListInit()
|
||||
},
|
||||
getListInit() {
|
||||
this.current = 1
|
||||
this.list = []
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
var status = ''
|
||||
if(this.tabIndex == 1) {
|
||||
status = 0
|
||||
}
|
||||
this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveAreaId=${this.areaId}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map((item) => {
|
||||
item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
getTotal() {
|
||||
this.$http.post(`/app/appepidemicbackhomerecord/statistic?areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.totalInfo = res.data
|
||||
}
|
||||
})
|
||||
gatewayconfirm(e) {
|
||||
this.gatewayName = e[0].label
|
||||
this.gatewayId = e[0].value
|
||||
this.getListInit()
|
||||
},
|
||||
toUser(row) {
|
||||
uni.navigateTo({url: `./UserInfo?id=${row.id}`})
|
||||
}
|
||||
},
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current ++
|
||||
@@ -196,47 +234,106 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.user-list{
|
||||
background-color: #f5f5f5;
|
||||
.item{
|
||||
padding: 32px 64px 24px;
|
||||
background-color: #fff;
|
||||
margin-bottom: 8px;
|
||||
.name{
|
||||
font-size: 36px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
.top-search {
|
||||
padding: 20px 32px;
|
||||
background-color: #fff;
|
||||
}
|
||||
.top-select {
|
||||
display: flex;
|
||||
padding: 28px 0;
|
||||
background-color: #fff;
|
||||
.item {
|
||||
flex: 1;
|
||||
padding: 0 8px;
|
||||
text-align: center;
|
||||
span {
|
||||
display: inline-block;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 50px;
|
||||
margin-bottom: 8px;
|
||||
.status{
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
color: #666;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.user-list{
|
||||
background-color: #F3F6F9;
|
||||
padding: 32px 32px 0;
|
||||
.item{
|
||||
background-color: #fff;
|
||||
margin-bottom: 24px;
|
||||
border-radius: 16px;
|
||||
.top {
|
||||
padding: 32px 32px 24px;
|
||||
position: relative;
|
||||
.status-img{
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
.name{
|
||||
font-size: 36px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 50px;
|
||||
margin-bottom: 8px;
|
||||
.status{
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
line-height: 40px;
|
||||
}
|
||||
.status0 {
|
||||
color: #00D25D;
|
||||
}
|
||||
.status1 {
|
||||
color: #FF6300;
|
||||
}
|
||||
.status2 {
|
||||
color: #f46;
|
||||
}
|
||||
}
|
||||
p{
|
||||
width: calc(100% - 200px);
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #FF4466;
|
||||
color: #333;
|
||||
line-height: 40px;
|
||||
margin-bottom: 8px;
|
||||
img{
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-right: 18px;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
.start-name{
|
||||
display: inline-block;
|
||||
width: calc(100% - 50px);
|
||||
}
|
||||
.color-999{
|
||||
margin-bottom: 24px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
p{
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #333;
|
||||
line-height: 40px;
|
||||
margin-bottom: 8px;
|
||||
img{
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-right: 18px;
|
||||
vertical-align: top;
|
||||
.bottom {
|
||||
border-top: 2px solid #D8DDE6;
|
||||
padding: 32px;
|
||||
.text {
|
||||
line-height: 40px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-size: 28px;
|
||||
color: #666;
|
||||
letter-spacing: 0.58px;
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
color: #3975C6;
|
||||
margin-right: 32px;
|
||||
}
|
||||
}
|
||||
.start-name{
|
||||
display: inline-block;
|
||||
width: calc(100% - 50px);
|
||||
}
|
||||
.color-999{
|
||||
margin-bottom: 24px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user