2023-03-30 14:28:16 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="AppPointsReview">
|
|
|
|
|
<AiTopFixed>
|
|
|
|
|
<div class="top-search">
|
|
|
|
|
<div class="left">
|
2023-04-06 09:30:26 +08:00
|
|
|
<u-search v-model="search.name" :clearabled="true" placeholder="请输入申请人、审批人" :show-action="false" bg-color="#F5F5F5"
|
2023-03-30 14:28:16 +08:00
|
|
|
search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="getListInit">
|
|
|
|
|
</u-search>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="top-select">
|
2023-03-31 17:09:09 +08:00
|
|
|
<div class="item" @click="showDateSelect=true">
|
|
|
|
|
<span v-if="!search.startTime" style="color:#999;">日期筛选</span>
|
|
|
|
|
<span v-else>{{ search.startTime }}至{{ search.endTime }}</span>
|
2023-04-06 09:30:26 +08:00
|
|
|
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!search.startTime" />
|
|
|
|
|
<img src="./img/del-icon.png" alt="" class="del-icon" v-else @click.stop="clearDate">
|
2023-03-30 14:28:16 +08:00
|
|
|
</div>
|
2023-03-31 17:09:09 +08:00
|
|
|
<div class="item" @click="isShowType=true">
|
|
|
|
|
<span style="color:#999;" v-if="!search.type">事件类型</span>
|
|
|
|
|
<span v-else>{{ search.typeName }}</span>
|
2023-04-06 09:30:26 +08:00
|
|
|
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!search.type"/>
|
|
|
|
|
<img src="./img/del-icon.png" alt="" class="del-icon" v-else @click.stop="clearType">
|
2023-03-30 14:28:16 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</AiTopFixed>
|
|
|
|
|
<div class="list-content">
|
2023-04-03 15:07:27 +08:00
|
|
|
<div class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item.id)">
|
2023-03-30 14:28:16 +08:00
|
|
|
<div class="title-flex">
|
2023-04-03 15:07:27 +08:00
|
|
|
<p class="title">{{item.applyItemName}}</p>
|
2023-04-03 17:59:48 +08:00
|
|
|
<div class="btn" v-if="item.status == 1">
|
2023-04-03 15:07:27 +08:00
|
|
|
<p v-if="item.pushStatus == 1">已推送</p>
|
2023-04-03 17:59:48 +08:00
|
|
|
<div @click.stop="pushNew(item.id)" v-else>推送精选</div>
|
2023-03-30 14:28:16 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-04-03 15:07:27 +08:00
|
|
|
<div class="user-name">{{item.createUserName}}<span>积分+{{item.applyIntegral}}</span></div>
|
2023-03-30 14:28:16 +08:00
|
|
|
<div class="time-flex">
|
2023-04-03 15:07:27 +08:00
|
|
|
<span>{{item.createTime}}</span>
|
|
|
|
|
<span :class="`color-${item.status}`">{{ $dict.getLabel('appIntegralApplyEventStatus', item.status) }}</span>
|
2023-03-30 14:28:16 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-03-31 17:09:09 +08:00
|
|
|
<AiEmpty v-if="!list.length" description="暂无数据"></AiEmpty>
|
2023-04-04 10:16:01 +08:00
|
|
|
<AiEmpty v-if="!isGridMember" no-permit :description="`<p>您不是网格员<br/>无法使用网格员相关功能哦~</p>`"/>
|
2023-03-31 17:09:09 +08:00
|
|
|
|
|
|
|
|
<u-calendar v-model="showDateSelect" mode="range" min-year="2023" @change="dateConfirm"></u-calendar>
|
|
|
|
|
<u-select v-model="isShowType" :list="typeList" value-name="id" label-name="ruleName" @confirm="typeConfirm"></u-select>
|
2023-04-03 15:07:27 +08:00
|
|
|
<u-modal v-model="showPush" :show-cancel-button="true" content="是否将精选内容对全体居民公开,选择否将只对本村/社区公开"
|
2023-04-06 10:06:13 +08:00
|
|
|
confirm-text="是" cancel-text="否" @confirm="pushNewConfirm(1)" @cancel="pushNewConfirm(1)" :mask-close-able="true"></u-modal>
|
|
|
|
|
|
2023-03-30 14:28:16 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-04-03 15:07:27 +08:00
|
|
|
import { mapState } from 'vuex'
|
2023-03-30 14:28:16 +08:00
|
|
|
export default {
|
|
|
|
|
name: "AppPointsReview",
|
|
|
|
|
appName: "积分审核",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
keyword: '',
|
|
|
|
|
areaId: '',
|
|
|
|
|
areaName: '',
|
2023-04-07 09:31:01 +08:00
|
|
|
|
2023-03-31 17:09:09 +08:00
|
|
|
showDateSelect: false,
|
|
|
|
|
search: {
|
|
|
|
|
name: '',
|
|
|
|
|
startTime: '',
|
|
|
|
|
endTime: '',
|
|
|
|
|
type: '',
|
|
|
|
|
typeName: ''
|
|
|
|
|
},
|
|
|
|
|
list: [],
|
|
|
|
|
current: 1,
|
|
|
|
|
pages: 2,
|
|
|
|
|
typeList: [],
|
|
|
|
|
isShowType: false,
|
2023-04-06 10:06:58 +08:00
|
|
|
showPush: false,
|
2023-04-03 15:07:27 +08:00
|
|
|
pushNewId: ''
|
2023-03-30 14:28:16 +08:00
|
|
|
};
|
|
|
|
|
},
|
2023-04-03 15:07:27 +08:00
|
|
|
computed: {
|
|
|
|
|
...mapState(['user']),
|
2023-04-04 10:16:01 +08:00
|
|
|
isGridMember() {
|
|
|
|
|
return this.user.girdCheckType > 0
|
|
|
|
|
},
|
2023-04-03 15:07:27 +08:00
|
|
|
},
|
2023-03-31 17:09:09 +08:00
|
|
|
onLoad() {
|
2023-04-03 15:07:27 +08:00
|
|
|
this.$dict.load('appIntegralApplyEventStatus').then(() => {
|
|
|
|
|
this.getListInit()
|
|
|
|
|
})
|
2023-03-31 17:09:09 +08:00
|
|
|
this.getTypeList()
|
2023-04-06 09:30:26 +08:00
|
|
|
uni.$on('updateList', () => {
|
|
|
|
|
this.getListInit()
|
|
|
|
|
})
|
2023-03-30 14:28:16 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getListInit() {
|
2023-03-31 17:09:09 +08:00
|
|
|
this.current = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
if (this.current > this.pages) return
|
2023-04-03 15:07:27 +08:00
|
|
|
this.$http.post(`/app/appintegraluserapply/listByGridMember`, null, {
|
2023-03-31 17:09:09 +08:00
|
|
|
...this.search,
|
|
|
|
|
current: this.current,
|
2023-04-03 15:07:27 +08:00
|
|
|
size: 10,
|
|
|
|
|
girdId: this.user.girdId,
|
2023-04-07 13:49:41 +08:00
|
|
|
applyItemId: this.search.type,
|
|
|
|
|
createTimeStart: this.search.startTime,
|
|
|
|
|
createTimeEnd: this.search.endTime
|
2023-03-31 17:09:09 +08:00
|
|
|
}).then(res=> {
|
|
|
|
|
if(res?.data) {
|
2023-04-03 15:07:27 +08:00
|
|
|
res.data.records.map((item) => {
|
2023-04-06 09:30:26 +08:00
|
|
|
item.createTime = item.createTime.substring(0, 16)
|
2023-04-03 15:07:27 +08:00
|
|
|
})
|
2023-03-31 17:09:09 +08:00
|
|
|
this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
|
|
|
|
|
this.pages = Math.ceil(res.data.total / 10)
|
|
|
|
|
}
|
|
|
|
|
})
|
2023-03-30 14:28:16 +08:00
|
|
|
},
|
2023-03-31 17:09:09 +08:00
|
|
|
dateConfirm(e) {
|
|
|
|
|
this.search.startTime = e.startDate
|
|
|
|
|
this.search.endTime = e.endDate
|
2023-03-30 14:28:16 +08:00
|
|
|
this.getListInit()
|
|
|
|
|
},
|
2023-04-03 15:07:27 +08:00
|
|
|
toDetail(id) {
|
|
|
|
|
uni.navigateTo({url: `./detail?id=${id}`})
|
2023-03-31 17:09:09 +08:00
|
|
|
},
|
|
|
|
|
getTypeList() {
|
|
|
|
|
this.$http.post(`/app/appintegralrule/listByFD?size=100`).then(res=> {
|
|
|
|
|
if(res?.data) {
|
|
|
|
|
this.typeList = res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
typeConfirm(e) {
|
|
|
|
|
this.search.type = e[0].value
|
|
|
|
|
this.search.typeName = e[0].label
|
|
|
|
|
this.getListInit()
|
|
|
|
|
},
|
|
|
|
|
pushNew(id) {
|
2023-04-03 15:07:27 +08:00
|
|
|
this.pushNewId = id
|
|
|
|
|
this.showPush = true
|
|
|
|
|
},
|
|
|
|
|
pushNewConfirm(status) {
|
|
|
|
|
this.$http.post(`/app/appintegraluserapply/pushById?id=${this.pushNewId}&status=${status}`).then(res=> {
|
2023-04-03 17:59:48 +08:00
|
|
|
if(res.code == 0) {
|
2023-04-03 15:07:27 +08:00
|
|
|
this.$u.toast('推送成功')
|
|
|
|
|
this.getListInit()
|
|
|
|
|
}
|
2023-03-31 17:09:09 +08:00
|
|
|
})
|
2023-04-06 09:30:26 +08:00
|
|
|
},
|
|
|
|
|
clearDate() {
|
|
|
|
|
this.search.startTime = ''
|
|
|
|
|
this.search.endTime = ''
|
|
|
|
|
this.getListInit()
|
|
|
|
|
},
|
|
|
|
|
clearType() {
|
|
|
|
|
this.search.type = ''
|
|
|
|
|
this.search.typeName = ''
|
|
|
|
|
this.getListInit()
|
2023-03-31 11:31:25 +08:00
|
|
|
}
|
2023-03-30 14:28:16 +08:00
|
|
|
},
|
2023-03-31 17:09:09 +08:00
|
|
|
onReachBottom() {
|
|
|
|
|
this.current = this.current + 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
2023-03-30 14:28:16 +08:00
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.AppPointsReview {
|
|
|
|
|
height: 100%;
|
|
|
|
|
::v-deep .AiTopFixed {
|
|
|
|
|
.placeholder {
|
|
|
|
|
.content {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.fixed {
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
.content {
|
|
|
|
|
padding: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.top-search {
|
|
|
|
|
padding: 20px 32px;
|
|
|
|
|
display: flex;
|
|
|
|
|
.left {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.top-select {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 28px 0;
|
|
|
|
|
.item {
|
|
|
|
|
flex: 1;
|
2023-03-31 17:09:09 +08:00
|
|
|
// padding: 0 8px;
|
2023-03-30 14:28:16 +08:00
|
|
|
text-align: center;
|
|
|
|
|
span {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-family: PingFangSC-Medium;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
color: #666;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
}
|
2023-04-06 09:30:26 +08:00
|
|
|
.del-icon {
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
}
|
2023-03-30 14:28:16 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.list-content {
|
|
|
|
|
padding: 32px;
|
|
|
|
|
.item {
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 32px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
.title-flex {
|
|
|
|
|
display: flex;
|
|
|
|
|
.title {
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
text-overflow: -o-ellipsis-lastline;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
line-clamp: 2;
|
2023-03-31 11:31:25 +08:00
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
color: #333;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
line-height: 44px;
|
2023-04-03 15:07:27 +08:00
|
|
|
width: calc(100% - 182px);
|
2023-03-30 14:28:16 +08:00
|
|
|
}
|
|
|
|
|
.btn {
|
2023-04-03 15:07:27 +08:00
|
|
|
width: 182px;
|
2023-03-30 14:28:16 +08:00
|
|
|
text-align: right;
|
|
|
|
|
padding-left: 32px;
|
2023-04-03 15:07:27 +08:00
|
|
|
box-sizing: border-box;
|
2023-03-30 14:28:16 +08:00
|
|
|
div {
|
|
|
|
|
width: 150px;
|
|
|
|
|
text-align: center;
|
2023-03-31 11:31:25 +08:00
|
|
|
border-radius: 8px;
|
2023-03-30 14:28:16 +08:00
|
|
|
line-height: 56px;
|
|
|
|
|
background: #1365DD;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
}
|
|
|
|
|
p {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-31 11:31:25 +08:00
|
|
|
.user-name {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
color: #666;
|
|
|
|
|
line-height: 34px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
span {
|
|
|
|
|
margin-left: 32px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.time-flex {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
color: #999;
|
|
|
|
|
line-height: 34px;
|
|
|
|
|
.color-0{
|
2023-04-03 15:07:27 +08:00
|
|
|
color: #FF9A40;
|
2023-03-31 11:31:25 +08:00
|
|
|
}
|
|
|
|
|
.color-1{
|
2023-04-03 15:07:27 +08:00
|
|
|
color: #42D784;
|
2023-03-31 11:31:25 +08:00
|
|
|
}
|
|
|
|
|
.color-2{
|
2023-04-03 15:07:27 +08:00
|
|
|
color: #cd413aff;
|
2023-03-31 11:31:25 +08:00
|
|
|
}
|
|
|
|
|
}
|
2023-03-30 14:28:16 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|