| @@ -3831,7 +3831,7 @@ export const constantRoutes = [ | |||||
| }, | }, | ||||
| component: (resolve) => require(['@/views/sunVillage_info/list_vote'], resolve) | component: (resolve) => require(['@/views/sunVillage_info/list_vote'], resolve) | ||||
| }, | }, | ||||
| { ////阳光村务(新)-- 合同信息 | |||||
| { ////阳光村务(新)-- 投诉建议 | |||||
| path: '/sunVillage_info/list_complaint', | path: '/sunVillage_info/list_complaint', | ||||
| name: 'sunVillageInfoListComplaint', | name: 'sunVillageInfoListComplaint', | ||||
| meta: { | meta: { | ||||
| @@ -3840,7 +3840,7 @@ export const constantRoutes = [ | |||||
| }, | }, | ||||
| component: (resolve) => require(['@/views/sunVillage_info/list_complaint'], resolve) | component: (resolve) => require(['@/views/sunVillage_info/list_complaint'], resolve) | ||||
| }, | }, | ||||
| { ////阳光村务(新)-- 合同信息 | |||||
| { ////阳光村务(新)-- 投诉建议 | |||||
| path: '/sunVillage_info/list_complaint_add', | path: '/sunVillage_info/list_complaint_add', | ||||
| name: 'sunVillageInfoListComplaintAdd', | name: 'sunVillageInfoListComplaintAdd', | ||||
| meta: { | meta: { | ||||
| @@ -3849,7 +3849,7 @@ export const constantRoutes = [ | |||||
| }, | }, | ||||
| component: (resolve) => require(['@/views/sunVillage_info/list_complaint_add'], resolve) | component: (resolve) => require(['@/views/sunVillage_info/list_complaint_add'], resolve) | ||||
| }, | }, | ||||
| { ////阳光村务(新)-- 合同信息 | |||||
| { ////阳光村务(新)-- 投诉建议 | |||||
| path: '/sunVillage_info/list_complaint_detail', | path: '/sunVillage_info/list_complaint_detail', | ||||
| name: 'sunVillageInfoListComplaintDetail', | name: 'sunVillageInfoListComplaintDetail', | ||||
| meta: { | meta: { | ||||
| @@ -2,7 +2,7 @@ | |||||
| <div class="home_wrapper"> | <div class="home_wrapper"> | ||||
| <div | <div | ||||
| class="header_main" | 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> | <div class="return_btn" @click="onClickLeft"></div> | ||||
| @@ -18,7 +18,7 @@ | |||||
| <van-cell | <van-cell | ||||
| :border="false" | :border="false" | ||||
| center | center | ||||
| :to="{name: 'sunVillageInfoListComplaintDetail',query:{id:item.id,type:show?'':'code'}}" | |||||
| :to="{name: 'sunVillageInfoListComplaintDetail',query:{id:item.id,type:showBtn?'':'code'}}" | |||||
| > | > | ||||
| <template #right-icon> | <template #right-icon> | ||||
| <p :class="{ | <p :class="{ | ||||
| @@ -57,31 +57,41 @@ | |||||
| applicationList:[], | applicationList:[], | ||||
| loading: false, | loading: false, | ||||
| finished: false, | finished: false, | ||||
| show: false, | |||||
| show: true, | |||||
| fileList:[], | fileList:[], | ||||
| showBtn:true, | showBtn:true, | ||||
| queryParams:{} | |||||
| }; | }; | ||||
| }, | }, | ||||
| created() { | 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: { | methods: { | ||||
| getList(){ | getList(){ | ||||
| var _this = this; | 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; | _this.listLength = response.total; | ||||
| response.rows.map(res=>{ | response.rows.map(res=>{ | ||||
| _this.applicationList.push(res); | _this.applicationList.push(res); | ||||
| @@ -1,6 +1,8 @@ | |||||
| <template> | <template> | ||||
| <div class="home_wrapper"> | <div class="home_wrapper"> | ||||
| <div class="header_main"> | |||||
| <div class="header_main" | |||||
| :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> | <div class="return_btn" @click="onClickLeft"></div> | ||||
| <div class="add_btn"></div> | <div class="add_btn"></div> | ||||
| @@ -153,6 +155,7 @@ | |||||
| fileList:[], | fileList:[], | ||||
| videoList:[], | videoList:[], | ||||
| adviceTypeOptions:[], | adviceTypeOptions:[], | ||||
| showBtn:true, | |||||
| showDept:false, | showDept:false, | ||||
| showAdviceType:false, | showAdviceType:false, | ||||
| adviceType:'' | adviceType:'' | ||||
| @@ -166,6 +169,10 @@ | |||||
| this.adviceTypeOptions = response.data; | this.adviceTypeOptions = response.data; | ||||
| }); | }); | ||||
| if (this.$route.query.type == 'code'){ | |||||
| this.showBtn = false; | |||||
| } | |||||
| this.getDetail(); | this.getDetail(); | ||||
| }, | }, | ||||