diff --git a/src/project/fd/AppPointsReview/AppPointsReview.vue b/src/project/fd/AppPointsReview/AppPointsReview.vue index 7a287e09..98c7ed2f 100644 --- a/src/project/fd/AppPointsReview/AppPointsReview.vue +++ b/src/project/fd/AppPointsReview/AppPointsReview.vue @@ -3,20 +3,20 @@
-
- 日期筛选 - +
+ 日期筛选 + {{ search.startTime }}至{{ search.endTime }}
-
- 事件类型 - +
+ 事件类型 + {{ search.typeName }}
@@ -26,8 +26,8 @@

事件类型事件类型事件类型事件类型事件类型事件类型

-
推送精选
- +
推送精选
+

已推送

李进放积分+5
@@ -47,6 +47,10 @@
+ + + + @@ -59,24 +63,81 @@ export default { keyword: '', areaId: '', areaName: '', + + showDateSelect: false, + search: { + name: '', + startTime: '', + endTime: '', + type: '', + typeName: '' + }, + list: [], + current: 1, + pages: 2, + typeList: [], + isShowType: false, }; }, + onLoad() { + this.getTypeList() + this.getListInit() + }, onShow() { }, methods: { getListInit() { - + this.current = 1 + this.getList() }, - areaSelect(e) { - this.areaId = e + getList() { + if (this.current > this.pages) return + this.$http.post(`/app/appintegraluserapply/list`, null, { + ...this.search, + current: this.current, + size: 10 + }).then(res=> { + if(res?.data) { + this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records + this.pages = Math.ceil(res.data.total / 10) + } + }) + }, + dateConfirm(e) { + this.search.startTime = e.startDate + this.search.endTime = e.endDate this.getListInit() - this.getTotal() }, toDetail() { uni.navigateTo({url: `./detail`}) + }, + 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) { + this.$confirm('确定推送该条为精选', '').then(() => { + this.$http.post(`/app/appintegraluserapply/pushById?id=${id}`).then(res=> { + if(res?.data) { + this.getListInit() + } + }) + }) } }, + onReachBottom() { + this.current = this.current + 1; + this.getList(); + }, }; @@ -108,7 +169,7 @@ export default { padding: 28px 0; .item { flex: 1; - padding: 0 8px; + // padding: 0 8px; text-align: center; span { display: inline-block; diff --git a/src/project/fd/AppPointsReview/detail.vue b/src/project/fd/AppPointsReview/detail.vue index b19782e2..1c5b04bd 100644 --- a/src/project/fd/AppPointsReview/detail.vue +++ b/src/project/fd/AppPointsReview/detail.vue @@ -23,7 +23,7 @@
@@ -43,19 +43,45 @@ export default { name: "detail", data() { return { - keyword: '', - areaId: '', - areaName: '', show: false, - value: '' + value: '', + id: '', + info: {}, }; }, + onLoad(option) { + this.id = option.id + this.getDetail() + }, onShow() { }, methods: { + getDetail() { + this.$http.post(`/app/appintegraluserapply/queryDetailById?id=${id}`).then(res=> { + if(res?.data) { + this.info = res.data + } + }) + }, confirm() { - + if(!this.value) { + return this.$u.toast('请输入不通过理由') + } + this.submit(0) + }, + agree() { + this.$confirm('确定通过该条申请').then(() => { + this.submit(1) + }) + }, + submit(status) { + this.$http.post(`/app/appintegraluserapply/auditById?id=${this.id}&auditStatus=${status}&auditDesc=${this.value}`).then(res=> { + if(res?.data) { + this.$u.toast('操作成功') + this.getDetail() + } + }) } }, }; @@ -175,7 +201,6 @@ uni-page-body { } .cancel { color: #1365DD; - line-height: 76px; box-sizing: border-box; } .confirm {