吃肉的饺子 2022-07-31 17:43:55 +08:00
commit 8ec6a62693
2 changed files with 20 additions and 6 deletions

View File

@ -11,7 +11,7 @@
<view class="pad20 bbot line-h46 pad-x40">
<view class="fon30">{{item.coding}}</view>
<view class="">用户名{{item.is_anonymous==1?'匿名提交':item.u_name}}</view>
<view class="">金牛社区A村</view>
<view class="">{{item.community.name}}{{item.village.name}}</view>
<view class="">反馈问题{{item.description}}</view>
</view>
<view class="dis fon30 disjcac" v-if="switchIndex==0">
@ -81,9 +81,23 @@
}
this.$requst.get('opinion/community-list',params).then(res => {
if(res.code==0){
console.log(res,'社区工单列表');
this.total = res.data.total;
this.communityList = this.communityList.concat(res.data.list)
let communityArr = [];
res.data.list.forEach(item=>{
let obj = {
id:item.id,
coding:item.coding,
state_text:item.state_text,
u_name:item.u_name,
u_phone:item.u_phone,
description:item.description,
is_anonymous:item.is_anonymous,
community:item.community,
village:item.village
}
communityArr.push(obj);
})
this.communityList = this.communityList.concat(communityArr)
if(this.communityList.length == this.total){
this.noMore =true;
}

View File

@ -11,7 +11,7 @@
<view class="pad20 bbot line-h46 pad-x40">
<view class="fon30">{{item.coding}}</view>
<view class="">用户名{{item.is_anonymous==1?'匿名提交':item.u_name}}</view>
<view class="">{{item.state_text}}</view>
<view class="">{{item.community.name}}{{item.village.name}}</view>
<view class="">反馈问题{{item.description}}</view>
</view>
<view class="dis fon30" v-if="switchIndex==0">
@ -89,7 +89,6 @@
}
this.$requst.post('administrator/reviewedList',params).then(res => {
if(res.code==0){
console.log(res,'处理情况列表');
this.total = res.data.total;
let reviewedArr = [];
res.data.list.forEach(item=>{
@ -101,6 +100,8 @@
u_phone:item.u_phone,
description:item.description,
is_anonymous:item.is_anonymous,
community:item.community,
village:item.village
}
reviewedArr.push(obj);
})
@ -119,7 +120,6 @@
reexamineEv(id){
this.$requst.post('administrator/examine',{id:id}).then(res => {
if(res.code==0){
console.log(res,'督办复审');
this.$toolAll.tools.showToast('审核成功');
} else {
this.$toolAll.tools.showToast(res.msg);