-
-
+
+
积分类别
-
乡村建设类
+
{{ form.auditIntegralType }}
积分事项
-
多字段显示
+
{{ form.auditRuleName }}
积分方式
-
+20
+
{{ form.auditIntegral }}
-
+
+
不通过的理由
-
我村赴黎平参加百村杯篮球赛经费分两阶段分发, 第一阶段为小组循环赛,第二阶段为淘汰赛。第一 其中包括队员球服两套,住宿、饮食
+
{{ form.auditOpinion }}
审核人
-
李维民
+
{{ form.auditUserName }}
审核时间
-
2022-02-18 18:16:27
+
{{ form.auditTime }}
-
保存
+
保存
@@ -118,7 +121,7 @@ export default {
return {
id: '',
nopass: 1,
- admin: 1,
+ auditType: 1,
opts: 1,
isShowType: false,
isShowOption: false,
@@ -128,10 +131,9 @@ export default {
data: {
id: '',
auditIntegralType: '',
- // auditIntegralName: '',
auditOpinion: '', // 不通过理由
ruleName: '',
- integral: ''
+ integral: '',
},
typeList: [],
}
@@ -139,11 +141,17 @@ export default {
onLoad(o) {
this.$dict.load('atWillReportType','integralDeclareStatus').then(()=>{
this.id = o.id
+ this.nopass = o.nopass
this.getDetail()
})
},
methods: {
- previewImage() {},
+ previewImage(images, img) {
+ uni.previewImage({
+ urls: images.map(v => v.url),
+ current: img
+ })
+ },
getDetail() {
this.$http.post(`/app/appvillagerintegraldeclare/queryDetailById?id=${this.id}`).then(res => {
if(res.code==0) {
@@ -156,24 +164,26 @@ export default {
if(!this.data.auditIntegralType) {
return this.$u.toast('请选择积分类别')
} else {
-
this.$http.post(`/app/appvillagerintegralrule/list?current=1&size=10&auditIntegralType=${this.data.auditIntegralType}`).then(res=>{
if(res.code == 0){
this.typeList = res.data.records
this.isShowOption=true
- // this.data.id = res.data.records.id
}
})
}
},
typeChange(e) {
console.log(e);
- // this.data.id = e[0].id
this.data.ruleName = e[0].label
+ this.data.id = e[0].value
this.data.integral = e[0].value
+ this.typeList.map((item) => {
+ if(item.id == e[0].value) {
+ this.data.integral = item.integral
+ }
+ })
},
integralType(e) {
- // this.data.auditIntegralName = e[0].label
this.data.auditIntegralType = e[0].value
},
submit() {
@@ -194,13 +204,18 @@ export default {
params: {
id: this.id,
pass: this.opts,
- ...this.data
+ auditRuleId: this.data.id,
+ auditIntegralType: this.data.auditIntegralType,
+ auditIntegral: this.data.integral,
+ opinion: this.data.auditOpinion,
+ auditRuleName: this.data.ruleName
}
- }).then(res=>{
- console.log(res);
+ }).then(()=>{
this.$u.toast('保存成功')
- }).catch(err=>{
- console.log(err);
+ uni.$emit('update')
+ setTimeout(()=>{
+ uni.navigateBack()
+ },600)
})
}
},
diff --git a/src/apps/AppVillagersCircle/AppVillagersCircle.vue b/src/apps/AppVillagersCircle/AppVillagersCircle.vue
index cfc2c2e5..8b257d77 100644
--- a/src/apps/AppVillagersCircle/AppVillagersCircle.vue
+++ b/src/apps/AppVillagersCircle/AppVillagersCircle.vue
@@ -1,35 +1,8 @@
-
-
-
-
-
-
-
-
-
-
阳光美丽,空气格外清新
-
-
发布信息
-
美丽庭院
-
2021-12-06
-
-
-
-
-
-
-
-
+
+
![]()
+
{{item.title}}
@@ -37,148 +10,59 @@
+
\ No newline at end of file
diff --git a/src/apps/AppVillagersCircle/Reject.vue b/src/apps/AppVillagersCircle/Reject.vue
index 3135eb05..c05b83a9 100644
--- a/src/apps/AppVillagersCircle/Reject.vue
+++ b/src/apps/AppVillagersCircle/Reject.vue
@@ -2,7 +2,7 @@