党员积分

This commit is contained in:
liuye
2022-04-18 16:47:07 +08:00
parent 40700d72c0
commit 133e87ee61
4 changed files with 270 additions and 32 deletions

View File

@@ -1,25 +1,19 @@
<template>
<div class="AppPartyPoints">
<AiTopFixed>
<u-search placeholder="搜索党员" :show-action="false" search-icon-color="#ccc" v-model="search.title"
@search="isMore = false, search.current = 1, getList()"/>
<u-search placeholder="搜索党员" :show-action="false" search-icon-color="#ccc" v-model="partyName"
@search="getListInit()" @clear="getListInit()" />
</AiTopFixed>
<div class="list-content">
<div class="item" >
<div class="list-content" v-if="list.length">
<div class="item" v-for="(item, index) in list" :key="index">
<div class="left">
<p>刘宝华:参与环保宣传</p>
<div>2022-03-18 13:45:36</div>
<p>{{item.partyName}}:{{item.remark}}</p>
<div>{{item.createTime}}</div>
</div>
<div class="right status0">20</div>
</div>
<div class="item" >
<div class="left">
<p>刘宝华:参与环保宣传</p>
<div>2022-03-18 13:45:36</div>
</div>
<div class="right status0">20</div>
<div class="right" :class="'status'+item.integralType">{{item.residualIntegral}}</div>
</div>
</div>
<AiEmpty v-else></AiEmpty>
<div class="height-144"></div>
<div class="footer" @click="toAdd">
<div class="btn">积分调整</div>
@@ -35,25 +29,48 @@ export default {
appName: '党员积分',
data() {
return {
search: {title: ''},
partyName: '',
current: 1,
list: []
}
},
computed: {
...mapState(['user']),
},
created() {
this.$dict.load('appSpecialTypeFive')
this.getList()
},
onShow() {
document.title = '党员积分'
},
methods: {
getList() {
this.$http.post('/app/apppartyintegralinfo/list', null, {
params: {
size: 20,
current: this.current,
partyName: this.partyName
},
})
.then((res) => {
if (res.code == 0) {
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
}
})
},
getListInit() {
this.current = 1
this.datas = []
this.getList()
},
toAdd() {
uni.navigateTo({url: './Add'})
},
},
onReachBottom() {
this.current = this.current + 1
this.getList()
},
}
</script>