|
|
@@ -2,7 +2,7 @@ |
|
|
|
<div class="home_wrapper"> |
|
|
|
<div |
|
|
|
class="header_main" |
|
|
|
:style="`background-image:url(${require('@/assets/images/sunVillage_info/list_head_green.png')})`" |
|
|
|
:style="`background-image:url(${require(showBtn?'@/assets/images/sunVillage_info/list_head_green.png':'@/assets/images/sunVillage_info/list_head_red.png')})`" |
|
|
|
> |
|
|
|
投诉建议 |
|
|
|
<div class="return_btn" @click="onClickLeft"></div> |
|
|
@@ -18,7 +18,7 @@ |
|
|
|
<van-cell |
|
|
|
:border="false" |
|
|
|
center |
|
|
|
:to="{name: 'sunVillageInfoListComplaintDetail',query:{id:item.id,type:show?'':'code'}}" |
|
|
|
:to="{name: 'sunVillageInfoListComplaintDetail',query:{id:item.id,type:showBtn?'':'code'}}" |
|
|
|
> |
|
|
|
<template #right-icon> |
|
|
|
<p :class="{ |
|
|
@@ -57,31 +57,41 @@ |
|
|
|
applicationList:[], |
|
|
|
loading: false, |
|
|
|
finished: false, |
|
|
|
show: false, |
|
|
|
show: true, |
|
|
|
fileList:[], |
|
|
|
showBtn:true, |
|
|
|
queryParams:{} |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
if (!Cookies.get('user')){ |
|
|
|
Dialog.confirm({ |
|
|
|
title: '系统提示', |
|
|
|
message: '登录状态已过期,请重新登录', |
|
|
|
confirmButtonText: '重新登录', |
|
|
|
cancelButtonText: '取消' |
|
|
|
}).then(() => { |
|
|
|
this.$router.push({path:'/sunVillage_info/login_code'}) |
|
|
|
}) |
|
|
|
if (this.$route.query.typeX!=1){ |
|
|
|
if (!Cookies.get('user')){ |
|
|
|
Dialog.confirm({ |
|
|
|
title: '系统提示', |
|
|
|
message: '登录状态已过期,请重新登录', |
|
|
|
confirmButtonText: '重新登录', |
|
|
|
cancelButtonText: '取消' |
|
|
|
}).then(() => { |
|
|
|
this.$router.push({path:'/sunVillage_info/login_code'}) |
|
|
|
}) |
|
|
|
} |
|
|
|
this.queryParams = { |
|
|
|
advicePhone:JSON.parse(Cookies.get('user')).phone, |
|
|
|
translate_dict:1, |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.showBtn = false; |
|
|
|
this.queryParams = { |
|
|
|
deptId:Cookies.get('deptId'), |
|
|
|
translate_dict:1, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getList(){ |
|
|
|
var _this = this; |
|
|
|
let queryParams = { |
|
|
|
advicePhone:JSON.parse(Cookies.get('user')).phone, |
|
|
|
translate_dict:1, |
|
|
|
} |
|
|
|
adviceList(queryParams).then(response => { |
|
|
|
adviceList(this.queryParams).then(response => { |
|
|
|
_this.listLength = response.total; |
|
|
|
response.rows.map(res=>{ |
|
|
|
_this.applicationList.push(res); |
|
|
|