积分审核
This commit is contained in:
@@ -22,28 +22,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</AiTopFixed>
|
</AiTopFixed>
|
||||||
<div class="list-content">
|
<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">
|
<div class="title-flex">
|
||||||
<p class="title">事件类型事件类型事件类型事件类型事件类型事件类型</p>
|
<p class="title">{{item.applyItemName}}</p>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<div @click.stop="pushNew(1)">推送精选</div>
|
<p v-if="item.pushStatus == 1">已推送</p>
|
||||||
<p>已推送</p>
|
<div @click.stop="pushNew(1)" v-else>推送精选</div>
|
||||||
</div>
|
</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">
|
<div class="time-flex">
|
||||||
<span>2023-03-30 09:09</span>
|
<span>{{item.createTime}}</span>
|
||||||
<span class="color-0">审核通过</span>
|
<span :class="`color-${item.status}`">{{ $dict.getLabel('appIntegralApplyEventStatus', item.status) }}</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>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -51,10 +41,13 @@
|
|||||||
|
|
||||||
<u-calendar v-model="showDateSelect" mode="range" min-year="2023" @change="dateConfirm"></u-calendar>
|
<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-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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "AppPointsReview",
|
name: "AppPointsReview",
|
||||||
appName: "积分审核",
|
appName: "积分审核",
|
||||||
@@ -77,14 +70,18 @@ export default {
|
|||||||
pages: 2,
|
pages: 2,
|
||||||
typeList: [],
|
typeList: [],
|
||||||
isShowType: false,
|
isShowType: false,
|
||||||
|
showPush: false,
|
||||||
|
pushNewId: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
computed: {
|
||||||
this.getTypeList()
|
...mapState(['user']),
|
||||||
this.getListInit()
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
|
this.$dict.load('appIntegralApplyEventStatus').then(() => {
|
||||||
|
this.getListInit()
|
||||||
|
})
|
||||||
|
this.getTypeList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getListInit() {
|
getListInit() {
|
||||||
@@ -93,12 +90,17 @@ export default {
|
|||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
if (this.current > this.pages) return
|
if (this.current > this.pages) return
|
||||||
this.$http.post(`/app/appintegraluserapply/list`, null, {
|
this.$http.post(`/app/appintegraluserapply/listByGridMember`, null, {
|
||||||
...this.search,
|
...this.search,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10
|
size: 10,
|
||||||
|
girdId: this.user.girdId,
|
||||||
|
applyItemId: this.search.type
|
||||||
}).then(res=> {
|
}).then(res=> {
|
||||||
if(res?.data) {
|
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.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
|
||||||
this.pages = Math.ceil(res.data.total / 10)
|
this.pages = Math.ceil(res.data.total / 10)
|
||||||
}
|
}
|
||||||
@@ -109,8 +111,8 @@ export default {
|
|||||||
this.search.endTime = e.endDate
|
this.search.endTime = e.endDate
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
},
|
},
|
||||||
toDetail() {
|
toDetail(id) {
|
||||||
uni.navigateTo({url: `./detail`})
|
uni.navigateTo({url: `./detail?id=${id}`})
|
||||||
},
|
},
|
||||||
getTypeList() {
|
getTypeList() {
|
||||||
this.$http.post(`/app/appintegralrule/listByFD?size=100`).then(res=> {
|
this.$http.post(`/app/appintegralrule/listByFD?size=100`).then(res=> {
|
||||||
@@ -125,12 +127,15 @@ export default {
|
|||||||
this.getListInit()
|
this.getListInit()
|
||||||
},
|
},
|
||||||
pushNew(id) {
|
pushNew(id) {
|
||||||
this.$confirm('确定推送该条为精选', '').then(() => {
|
this.pushNewId = id
|
||||||
this.$http.post(`/app/appintegraluserapply/pushById?id=${id}`).then(res=> {
|
this.showPush = true
|
||||||
if(res?.data) {
|
},
|
||||||
this.getListInit()
|
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-weight: 500;
|
||||||
font-family: "PingFang SC";
|
font-family: "PingFang SC";
|
||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
|
width: calc(100% - 182px);
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
|
width: 182px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-left: 32px;
|
padding-left: 32px;
|
||||||
|
box-sizing: border-box;
|
||||||
div {
|
div {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -240,13 +248,13 @@ export default {
|
|||||||
color: #999;
|
color: #999;
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
.color-0{
|
.color-0{
|
||||||
color: #42D784;
|
color: #FF9A40;
|
||||||
}
|
}
|
||||||
.color-1{
|
.color-1{
|
||||||
color: #cd413aff;
|
color: #42D784;
|
||||||
}
|
}
|
||||||
.color-2{
|
.color-2{
|
||||||
color: #1365DD;
|
color: #cd413aff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,33 +2,30 @@
|
|||||||
<div class="detail">
|
<div class="detail">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title-flex">
|
<div class="title-flex">
|
||||||
<p>房前屋后卫生房前屋后卫生房前屋后卫生房前屋后卫生房前屋后卫生房前屋后卫生</p>
|
<p>{{info.applyItemName}}</p>
|
||||||
<div class="color-0">未通过过</div>
|
<div :class="`color-${info.status}`">{{ $dict.getLabel('appIntegralApplyEventStatus', info.status) }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="user-flex">
|
<div class="user-flex">
|
||||||
<div>申请人:张三</div>
|
<div>申请人:{{info.createUserName}}</div>
|
||||||
<div>电话号码:15102745934</div>
|
<div>电话号码:15102745934</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="text">百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年在国务院举办午,庆祝中国共产党成立100周年在国务院举办午,庆祝中…</p>
|
<p class="text">{{info.content}}</p>
|
||||||
<div class="img-list">
|
<div class="img-list" v-if="info.files && info.files.length">
|
||||||
<img src="https://t7.baidu.com/it/u=1575628574,1150213623&fm=193&f=GIF" alt="">
|
<img :src="item.accessUrl" alt="" v-for="(item, index) in info.files" :key="index">
|
||||||
<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="">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pass-info">
|
<div class="pass-info" v-if="info.status == 2">
|
||||||
<div class="title"><span></span>未通过理由</div>
|
<div class="title"><span></span>未通过理由</div>
|
||||||
<p>腾讯还联合多方伙伴发起了一项特别行动—“碳寻计划”。这是中国在碳捕集利用与封存(CCUS)领域首个由科技企业发起的大规模资助计划,资金规模在亿元人民币级别</p>
|
<p>腾讯还联合多方伙伴发起了一项特别行动—“碳寻计划”。这是中国在碳捕集利用与封存(CCUS)领域首个由科技企业发起的大规模资助计划,资金规模在亿元人民币级别</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="confirm">通过</div>
|
<div class="confirm" @click="agree()">通过</div>
|
||||||
<div class="cancel" @click="show=true">不通过</div>6+-
|
<div class="cancel" @click="show=true">不通过</div>
|
||||||
</div>
|
</div>
|
||||||
<u-popup v-model="show" mode="bottom">
|
<u-popup v-model="show" mode="bottom">
|
||||||
<div class="textarea">
|
<div class="textarea">
|
||||||
<u-input v-model="value" type="textarea" :height="120" :auto-height="true" placeholder="请输入不通过原因" :clearable="false" maxlength="1000" />
|
<u-input v-model="value" type="textarea" :height="120" :auto-height="true" placeholder="请输入不通过原因" :clearable="false" maxlength="500" />
|
||||||
<p>字数{{ value.length }}/1000</p>
|
<p>字数{{ value.length }}/500</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<span @click="value = ''">清空内容</span>
|
<span @click="value = ''">清空内容</span>
|
||||||
@@ -51,14 +48,16 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.id = option.id
|
this.id = option.id
|
||||||
this.getDetail()
|
this.$dict.load('appIntegralApplyEventStatus').then(() => {
|
||||||
|
this.getDetail()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
document.title = '积分详情'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDetail() {
|
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) {
|
if(res?.data) {
|
||||||
this.info = 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=> {
|
this.$http.post(`/app/appintegraluserapply/auditById?id=${this.id}&auditStatus=${status}&auditDesc=${this.value}`).then(res=> {
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.$u.toast('操作成功')
|
this.$u.toast('操作成功')
|
||||||
|
this.show = false
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -118,13 +118,13 @@ uni-page-body {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.color-0{
|
.color-0{
|
||||||
color: #42D784;
|
color: #FF9A40;
|
||||||
}
|
}
|
||||||
.color-1{
|
.color-1{
|
||||||
color: #cd413aff;
|
color: #42D784;
|
||||||
}
|
}
|
||||||
.color-2{
|
.color-2{
|
||||||
color: #1365DD;
|
color: #cd413aff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.user-flex {
|
.user-flex {
|
||||||
|
|||||||
Reference in New Issue
Block a user