积分审核
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,13 +127,16 @@ export default {
|
||||
this.getListInit()
|
||||
},
|
||||
pushNew(id) {
|
||||
this.$confirm('确定推送该条为精选', '').then(() => {
|
||||
this.$http.post(`/app/appintegraluserapply/pushById?id=${id}`).then(res=> {
|
||||
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()
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,33 +2,30 @@
|
||||
<div class="detail">
|
||||
<div class="content">
|
||||
<div class="title-flex">
|
||||
<p>房前屋后卫生房前屋后卫生房前屋后卫生房前屋后卫生房前屋后卫生房前屋后卫生</p>
|
||||
<div class="color-0">未通过过</div>
|
||||
<p>{{info.applyItemName}}</p>
|
||||
<div :class="`color-${info.status}`">{{ $dict.getLabel('appIntegralApplyEventStatus', info.status) }}</div>
|
||||
</div>
|
||||
<div class="user-flex">
|
||||
<div>申请人:张三</div>
|
||||
<div>申请人:{{info.createUserName}}</div>
|
||||
<div>电话号码:15102745934</div>
|
||||
</div>
|
||||
<p class="text">百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年在国务院举办午,庆祝中国共产党成立100周年在国务院举办午,庆祝中…</p>
|
||||
<div class="img-list">
|
||||
<img src="https://t7.baidu.com/it/u=1575628574,1150213623&fm=193&f=GIF" alt="">
|
||||
<img src="https://t7.baidu.com/it/u=1575628574,1150213623&fm=193&f=GIF" alt="">
|
||||
<img src="https://t7.baidu.com/it/u=1575628574,1150213623&fm=193&f=GIF" alt="">
|
||||
<img src="https://t7.baidu.com/it/u=1575628574,1150213623&fm=193&f=GIF" alt="">
|
||||
<p class="text">{{info.content}}</p>
|
||||
<div class="img-list" v-if="info.files && info.files.length">
|
||||
<img :src="item.accessUrl" alt="" v-for="(item, index) in info.files" :key="index">
|
||||
</div>
|
||||
</div>
|
||||
<div class="pass-info">
|
||||
<div class="pass-info" v-if="info.status == 2">
|
||||
<div class="title"><span></span>未通过理由</div>
|
||||
<p>腾讯还联合多方伙伴发起了一项特别行动—“碳寻计划”。这是中国在碳捕集利用与封存(CCUS)领域首个由科技企业发起的大规模资助计划,资金规模在亿元人民币级别</p>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="confirm">通过</div>
|
||||
<div class="cancel" @click="show=true">不通过</div>6+-
|
||||
<div class="confirm" @click="agree()">通过</div>
|
||||
<div class="cancel" @click="show=true">不通过</div>
|
||||
</div>
|
||||
<u-popup v-model="show" mode="bottom">
|
||||
<div class="textarea">
|
||||
<u-input v-model="value" type="textarea" :height="120" :auto-height="true" placeholder="请输入不通过原因" :clearable="false" maxlength="1000" />
|
||||
<p>字数{{ value.length }}/1000</p>
|
||||
<u-input v-model="value" type="textarea" :height="120" :auto-height="true" placeholder="请输入不通过原因" :clearable="false" maxlength="500" />
|
||||
<p>字数{{ value.length }}/500</p>
|
||||
</div>
|
||||
<div class="btn">
|
||||
<span @click="value = ''">清空内容</span>
|
||||
@@ -51,14 +48,16 @@ export default {
|
||||
},
|
||||
onLoad(option) {
|
||||
this.id = option.id
|
||||
this.$dict.load('appIntegralApplyEventStatus').then(() => {
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
|
||||
document.title = '积分详情'
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appintegraluserapply/queryDetailById?id=${id}`).then(res=> {
|
||||
this.$http.post(`/app/appintegraluserapply/queryDetailById?id=${this.id}`).then(res=> {
|
||||
if(res?.data) {
|
||||
this.info = res.data
|
||||
}
|
||||
@@ -79,6 +78,7 @@ export default {
|
||||
this.$http.post(`/app/appintegraluserapply/auditById?id=${this.id}&auditStatus=${status}&auditDesc=${this.value}`).then(res=> {
|
||||
if(res?.data) {
|
||||
this.$u.toast('操作成功')
|
||||
this.show = false
|
||||
this.getDetail()
|
||||
}
|
||||
})
|
||||
@@ -118,13 +118,13 @@ uni-page-body {
|
||||
text-align: right;
|
||||
}
|
||||
.color-0{
|
||||
color: #42D784;
|
||||
color: #FF9A40;
|
||||
}
|
||||
.color-1{
|
||||
color: #cd413aff;
|
||||
color: #42D784;
|
||||
}
|
||||
.color-2{
|
||||
color: #1365DD;
|
||||
color: #cd413aff;
|
||||
}
|
||||
}
|
||||
.user-flex {
|
||||
|
||||
Reference in New Issue
Block a user