-
-
+
+
积分类别
-
乡村建设类
+
{{ 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..a4822cd6 100644
--- a/src/apps/AppVillagersCircle/AppVillagersCircle.vue
+++ b/src/apps/AppVillagersCircle/AppVillagersCircle.vue
@@ -7,28 +7,27 @@
-
-
话题类型
-
+
+
{{ topicType? topicType:'话题类型' }}
+
-
-
-
阳光美丽,空气格外清新
+
+
+
{{ item.content }}
发布信息
-
美丽庭院
-
2021-12-06
+
{{$dict.getLabel('villagerCircleTopic',item.topic)}}
+
{{ item.createTime }}
-
审核通过
+
{{$dict.getLabel('auditStatus',item.auditType)}}
-
+
-
-
@@ -41,34 +40,56 @@ export default {
data () {
return {
tabs: ['全部', '待处理', '已处理'],
- tabIndex: 0,
+ tabIndex: '',
showType: false,
- keyword: '',
+ content: '',
typeList: [],
-
+ villagerList: [],
+ current: 1,
+ topic: '',
+ topicType: '',
}
},
+ onLoad() {
+ this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
+ this.getList()
+ })
+ },
methods: {
-
tabClick(index) {
this.tabIndex = index
},
-
- confirmTypeSelect(e) {
- console.log(e);
+ getList() {
+ this.$http.post('app/appvillagercircleinfo/list',null,{
+ params: {
+ current: 1,
+ size: 10,
+ status: this.tabIndex==0? '':this.tabIndex==1?'0': this.tabIndex==2?'1|2':'',
+ topic: this.topic,
+ content: this.content
+ }
+ }).then(res=>{
+ if(res?.data) {
+ this.villagerList = this.current >1 ? [...this.villagerList,...res.data.records] : res.data.records
+ }
+ })
},
- toDetail() {
- uni.navigateTo({url: './detail'})
+ confirmTypeSelect(e) {
+ this.topic = e[0].value,
+ this.topicType = e[0].label
+ this.current = 1,
+ this.villagerList = []
+ this.getList()
+ },
+
+ toDetail(item) {
+ uni.navigateTo({url: `./detail?id=${item.id}`})
}
},
onShow() {
document.title = '村民圈'
},
- onLoad() {
- // this.$dict.load('yesOrNo')
- },
-
}
@@ -153,7 +174,7 @@ export default {
color: #999999;
.name {
- padding: 0 30px;
+ padding: 0 15px;
background: #EEEEEE;
border-radius: 24px;
margin-right: 20px;
diff --git a/src/apps/AppVillagersCircle/Reject.vue b/src/apps/AppVillagersCircle/Reject.vue
index 3135eb05..459116b2 100644
--- a/src/apps/AppVillagersCircle/Reject.vue
+++ b/src/apps/AppVillagersCircle/Reject.vue
@@ -2,7 +2,7 @@