积分审核
This commit is contained in:
@@ -22,28 +22,18 @@
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="list-content">
|
||||
<div class="item" @click="toDetail">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item.id)">
|
||||
<div class="title-flex">
|
||||
<p class="title">事件类型事件类型事件类型事件类型事件类型事件类型</p>
|
||||
<p class="title">{{item.applyItemName}}</p>
|
||||
<div class="btn">
|
||||
<div @click.stop="pushNew(1)">推送精选</div>
|
||||
<p>已推送</p>
|
||||
<p v-if="item.pushStatus == 1">已推送</p>
|
||||
<div @click.stop="pushNew(1)" v-else>推送精选</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-name">李进放<span>积分+5</span></div>
|
||||
<div class="user-name">{{item.createUserName}}<span>积分+{{item.applyIntegral}}</span></div>
|
||||
<div class="time-flex">
|
||||
<span>2023-03-30 09:09</span>
|
||||
<span class="color-0">审核通过</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="title-flex">
|
||||
<p class="title">事件类型事件类型事件类型事件类型事件类型事件类型事件类型事件类型型事件类型事件类型事件类型</p>
|
||||
</div>
|
||||
<div class="user-name">李进放<span>积分+5</span></div>
|
||||
<div class="time-flex">
|
||||
<span>2023-03-30 09:09</span>
|
||||
<span class="color-0">审核通过</span>
|
||||
<span>{{item.createTime}}</span>
|
||||
<span :class="`color-${item.status}`">{{ $dict.getLabel('appIntegralApplyEventStatus', item.status) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -51,10 +41,13 @@
|
||||
|
||||
<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>
|
||||
<u-modal v-model="showPush" :show-cancel-button="true" content="是否将精选内容对全体居民公开,选择否将只对本村/社区公开"
|
||||
confirm-text="是" cancel-text="否" @confirm="pushNewConfirm(1)" @cancel="pushNewConfirm(1)"></u-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: "AppPointsReview",
|
||||
appName: "积分审核",
|
||||
@@ -77,14 +70,18 @@ export default {
|
||||
pages: 2,
|
||||
typeList: [],
|
||||
isShowType: false,
|
||||
showPush: false,
|
||||
pushNewId: ''
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.getTypeList()
|
||||
this.getListInit()
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
},
|
||||
onShow() {
|
||||
|
||||
onLoad() {
|
||||
this.$dict.load('appIntegralApplyEventStatus').then(() => {
|
||||
this.getListInit()
|
||||
})
|
||||
this.getTypeList()
|
||||
},
|
||||
methods: {
|
||||
getListInit() {
|
||||
@@ -93,12 +90,17 @@ export default {
|
||||
},
|
||||
getList() {
|
||||
if (this.current > this.pages) return
|
||||
this.$http.post(`/app/appintegraluserapply/list`, null, {
|
||||
this.$http.post(`/app/appintegraluserapply/listByGridMember`, null, {
|
||||
...this.search,
|
||||
current: this.current,
|
||||
size: 10
|
||||
size: 10,
|
||||
girdId: this.user.girdId,
|
||||
applyItemId: this.search.type
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
res.data.records.map((item) => {
|
||||
item.createTime = item.createTime.substring(0, 12)
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
|
||||
this.pages = Math.ceil(res.data.total / 10)
|
||||
}
|
||||
@@ -109,8 +111,8 @@ export default {
|
||||
this.search.endTime = e.endDate
|
||||
this.getListInit()
|
||||
},
|
||||
toDetail() {
|
||||
uni.navigateTo({url: `./detail`})
|
||||
toDetail(id) {
|
||||
uni.navigateTo({url: `./detail?id=${id}`})
|
||||
},
|
||||
getTypeList() {
|
||||
this.$http.post(`/app/appintegralrule/listByFD?size=100`).then(res=> {
|
||||
@@ -125,12 +127,15 @@ export default {
|
||||
this.getListInit()
|
||||
},
|
||||
pushNew(id) {
|
||||
this.$confirm('确定推送该条为精选', '').then(() => {
|
||||
this.$http.post(`/app/appintegraluserapply/pushById?id=${id}`).then(res=> {
|
||||
if(res?.data) {
|
||||
this.getListInit()
|
||||
}
|
||||
})
|
||||
this.pushNewId = id
|
||||
this.showPush = true
|
||||
},
|
||||
pushNewConfirm(status) {
|
||||
this.$http.post(`/app/appintegraluserapply/pushById?id=${this.pushNewId}&status=${status}`).then(res=> {
|
||||
if(res?.data) {
|
||||
this.$u.toast('推送成功')
|
||||
this.getListInit()
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -205,10 +210,13 @@ export default {
|
||||
font-weight: 500;
|
||||
font-family: "PingFang SC";
|
||||
line-height: 44px;
|
||||
width: calc(100% - 182px);
|
||||
}
|
||||
.btn {
|
||||
width: 182px;
|
||||
text-align: right;
|
||||
padding-left: 32px;
|
||||
box-sizing: border-box;
|
||||
div {
|
||||
width: 150px;
|
||||
text-align: center;
|
||||
@@ -240,13 +248,13 @@ export default {
|
||||
color: #999;
|
||||
line-height: 34px;
|
||||
.color-0{
|
||||
color: #42D784;
|
||||
color: #FF9A40;
|
||||
}
|
||||
.color-1{
|
||||
color: #cd413aff;
|
||||
color: #42D784;
|
||||
}
|
||||
.color-2{
|
||||
color: #1365DD;
|
||||
color: #cd413aff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user