|
|
|
@ -10,93 +10,104 @@
|
|
|
|
|
<u-tabs :list="list1" :scrollable="false" lineWidth="30" @change="utabschange"
|
|
|
|
|
:current='tabscurrent'></u-tabs>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontent-box">
|
|
|
|
|
<scroll-view class="indexcontent-box" @scrolltolower="lowerBottom" scroll-y="true">
|
|
|
|
|
<view class="indexcontent-bottom">
|
|
|
|
|
<u-search placeholder="请输入搜索内容" v-model="searchkeyword" @search="searchSou" @clear="qingkong"
|
|
|
|
|
:showAction="false"></u-search>
|
|
|
|
|
<view class="indexcontentbttom-item" v-for="item in contentList">
|
|
|
|
|
<view class="indexcontentbttom-item-left">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1 indexcontentbttom-item-left-jiti">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-left">
|
|
|
|
|
{{navbarValue}}
|
|
|
|
|
<u-search placeholder="请输入搜索内容" v-model="massEventsObj.title" @search="searchSou" @clear="qingkong"
|
|
|
|
|
showAction animation @custom="searchSou"></u-search>
|
|
|
|
|
<template class="" v-if="contentList.length !=0">
|
|
|
|
|
<view class="indexcontentbttom-item" v-for="item in contentList">
|
|
|
|
|
<view class="indexcontentbttom-item-left">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1 indexcontentbttom-item-left-jiti">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-left">
|
|
|
|
|
{{item.msgTypeName}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-right">
|
|
|
|
|
{{item.title}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-right">
|
|
|
|
|
{{item.title}}
|
|
|
|
|
<view class="indexcontentbttom-item-left-2 indexcontentbttom-item-left-jiti">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-icon">
|
|
|
|
|
<u-icon name="map" size="18" color="#AEBAC8" class="icon"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="smofontsiez">
|
|
|
|
|
{{item.warnFactor}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-left-2 indexcontentbttom-item-left-jiti">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-icon">
|
|
|
|
|
<u-icon name="map" size="18" color="#AEBAC8" class="icon"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="smofontsiez">
|
|
|
|
|
{{item.diqu}}
|
|
|
|
|
<view class="indexcontentbttom-item-left-2 indexcontentbttom-item-left-jiti">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-icon ">
|
|
|
|
|
<u-icon name="clock" size="18" color="#AEBAC8" class="" class="icon"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="smofontsiez">
|
|
|
|
|
{{item.eventTime}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-left-2 indexcontentbttom-item-left-jiti">
|
|
|
|
|
<view class="indexcontentbttom-item-left-1-icon ">
|
|
|
|
|
<u-icon name="clock" size="18" color="#AEBAC8" class="" class="icon"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="smofontsiez">
|
|
|
|
|
{{item.shijian}}
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-rigth" @click="nextblack(item)">
|
|
|
|
|
{{tabscurrent==0?'审核':'查看'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="indexcontentbttom-item-rigth" @click="nextblack(item)">
|
|
|
|
|
审核
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<u-empty mode="list" v-else>
|
|
|
|
|
</u-empty>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<u-tabbar :value="navbarValue" @change="change1" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
|
|
|
|
|
<u-tabbar-item text="群体事件" name="群体事件">
|
|
|
|
|
|
|
|
|
|
<u-tabbar :value="tabValue" @change="change1" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
|
|
|
|
|
<u-tabbar-item text="群体事件" name="群体事件-1">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-0.png">
|
|
|
|
|
</image>
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="inactive-icon"
|
|
|
|
|
src="@/static/images/contimg/icon-0-0.png"></image>
|
|
|
|
|
</u-tabbar-item>
|
|
|
|
|
<u-tabbar-item text="紧急事件" name="紧急事件">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-1.png">
|
|
|
|
|
<u-tabbar-item text="同人同诉" name="同人同诉-2">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-3.png">
|
|
|
|
|
</image>
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="inactive-icon"
|
|
|
|
|
src="@/static/images/contimg/icon-0-1.png"></image>
|
|
|
|
|
src="@/static/images/contimg/icon-0-3.png"></image>
|
|
|
|
|
</u-tabbar-item>
|
|
|
|
|
<u-tabbar-item text="一人多诉" name="一人多诉">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-2.png">
|
|
|
|
|
<u-tabbar-item text="紧急事件" name="紧急事件-3">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-1.png">
|
|
|
|
|
</image>
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="inactive-icon"
|
|
|
|
|
src="@/static/images/contimg/icon-0-2.png"></image>
|
|
|
|
|
src="@/static/images/contimg/icon-0-1.png"></image>
|
|
|
|
|
</u-tabbar-item>
|
|
|
|
|
<u-tabbar-item text="同人同诉" name="同人同诉">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-3.png">
|
|
|
|
|
|
|
|
|
|
<u-tabbar-item text="重点人员" name="重点人员-4">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-4.png">
|
|
|
|
|
</image>
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="inactive-icon"
|
|
|
|
|
src="@/static/images/contimg/icon-0-3.png"></image>
|
|
|
|
|
src="@/static/images/contimg/icon-0-4.png"></image>
|
|
|
|
|
</u-tabbar-item>
|
|
|
|
|
<u-tabbar-item text="重点人员" name="重点人员">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-4.png">
|
|
|
|
|
<u-tabbar-item text="一人多诉" name="一人多诉-5">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-2.png">
|
|
|
|
|
</image>
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="inactive-icon"
|
|
|
|
|
src="@/static/images/contimg/icon-0-4.png"></image>
|
|
|
|
|
src="@/static/images/contimg/icon-0-2.png"></image>
|
|
|
|
|
</u-tabbar-item>
|
|
|
|
|
|
|
|
|
|
</u-tabbar>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
massEventsList,
|
|
|
|
|
eventPageCount
|
|
|
|
|
} from '@/api/system/ApiList.js'
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
searchkeyword: "",
|
|
|
|
|
tabscurrent: 0,
|
|
|
|
|
navbarValue: "群体事件",
|
|
|
|
|
tabValue: "群体事件-1",
|
|
|
|
|
list1: [{
|
|
|
|
|
name: '已退回',
|
|
|
|
|
name: '待审核',
|
|
|
|
|
badge: {
|
|
|
|
|
value: 5,
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
name: '已提级',
|
|
|
|
|
name: '已上报',
|
|
|
|
|
badge: {
|
|
|
|
|
value: 0,
|
|
|
|
|
}
|
|
|
|
@ -108,49 +119,15 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}, ],
|
|
|
|
|
contentList: [
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "太阳山拥堵问题",
|
|
|
|
|
diqu: "高新区何山路124号四季花园小区",
|
|
|
|
|
shijian: "2023-07-30 14:25:3"
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
massEventsObj: {
|
|
|
|
|
msgType: "1", //事件类型编码【群体事件】1【同人同诉】2【紧急事件】3【重点人员】4【一人多诉】5
|
|
|
|
|
isReport: null, //为未通过 2为已办结 3为作废
|
|
|
|
|
size: 10,
|
|
|
|
|
current: 1,
|
|
|
|
|
title: ""
|
|
|
|
|
},
|
|
|
|
|
pagesLogin: "",
|
|
|
|
|
contentList: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -159,29 +136,107 @@
|
|
|
|
|
// 顶部导航栏
|
|
|
|
|
utabschange(e) {
|
|
|
|
|
this.tabscurrent = e.index
|
|
|
|
|
this.massEventsObj.current = 1
|
|
|
|
|
this.massEventsObj.title = ""
|
|
|
|
|
this.getList()
|
|
|
|
|
console.log(e);
|
|
|
|
|
},
|
|
|
|
|
//搜索
|
|
|
|
|
searchSou() {
|
|
|
|
|
console.log(this.searchkeyword);
|
|
|
|
|
this.massEventsObj.current = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
//清空
|
|
|
|
|
qingkong() {},
|
|
|
|
|
qingkong() {
|
|
|
|
|
this.massEventsObj.title = ""
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
// 跳转
|
|
|
|
|
nextblack(item) {
|
|
|
|
|
console.log(item);
|
|
|
|
|
//navbarValue 头部标题
|
|
|
|
|
//tabscurrent 区分待审核0, 已上报1 重训练2
|
|
|
|
|
// item
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:`/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}`
|
|
|
|
|
url: `/views/jiashicangshenhe/jiashicangshenhe?navbarValue=${this.navbarValue}&tabscurrent=${this.tabscurrent}&innerEventId=${item.innerEventId}`
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//切换
|
|
|
|
|
change1(e) {
|
|
|
|
|
this.navbarValue = e
|
|
|
|
|
this.navbarValue = e.split("-")[0]
|
|
|
|
|
// 标题
|
|
|
|
|
this.massEventsObj.title = ""
|
|
|
|
|
// 类型
|
|
|
|
|
this.massEventsObj.msgType = e.split("-")[1]
|
|
|
|
|
// 页码
|
|
|
|
|
this.massEventsObj.current = 1
|
|
|
|
|
// 头部类型
|
|
|
|
|
this.massEventsObj.isReport = null
|
|
|
|
|
// tab
|
|
|
|
|
this.tabValue = e
|
|
|
|
|
// 头部归位
|
|
|
|
|
this.tabscurrent = 0
|
|
|
|
|
console.log(e);
|
|
|
|
|
this.geteventPageCount()
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
// 触底刷新
|
|
|
|
|
//触底加载
|
|
|
|
|
lowerBottom() {
|
|
|
|
|
console.log("触底加载")
|
|
|
|
|
|
|
|
|
|
if (this.massEventsObj.current < this.pagesLogin) {
|
|
|
|
|
++this.massEventsObj.current
|
|
|
|
|
this.getList("触底")
|
|
|
|
|
} else {
|
|
|
|
|
console.log("到底了");
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '暂无更多',
|
|
|
|
|
icon: 'none',
|
|
|
|
|
duration: 1000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//获取list
|
|
|
|
|
getList(type) {
|
|
|
|
|
|
|
|
|
|
if (this.tabscurrent == 0) {
|
|
|
|
|
this.massEventsObj.isReport = null
|
|
|
|
|
this.massEventsObj.toBeReviewed = 0
|
|
|
|
|
} else {
|
|
|
|
|
this.massEventsObj.toBeReviewed = null
|
|
|
|
|
this.massEventsObj.isReport = this.tabscurrent
|
|
|
|
|
}
|
|
|
|
|
massEventsList(this.massEventsObj).then(res => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (type == "触底") {
|
|
|
|
|
this.contentList = this.contentList.concat(res.data.records)
|
|
|
|
|
this.pagesLogin = res.data.pages
|
|
|
|
|
} else {
|
|
|
|
|
this.contentList = res.data.records
|
|
|
|
|
this.pagesLogin = res.data.pages
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 获取待审核数量
|
|
|
|
|
geteventPageCount(){
|
|
|
|
|
eventPageCount({msgType:this.massEventsObj.msgType}).then(res=>{
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.list1[0].badge.value = res.data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onLoad: function() {}
|
|
|
|
|
onLoad: function() {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.geteventPageCount()
|
|
|
|
|
this.$store.dispatch("Deletestate")
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.geteventPageCount()
|
|
|
|
|
this.$store.dispatch("Deletestate")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
@ -264,9 +319,9 @@
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #35393D;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
// overflow: hidden;
|
|
|
|
|
// text-overflow: ellipsis;
|
|
|
|
|
// white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|