From c659f171b2dc87f99fd35689916a1160e870c27a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Wed, 20 Nov 2024 18:40:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=8F=E8=A7=81=E5=BE=81=E9=9B=86=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=88=A0=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 20 +++++++++++++----- .../modules/peopleOpinons/opinionsDaily.vue | 13 +++++------- .../cpts/suggestionList.vue | 21 ++++++++----------- .../modules/solicitationSpecial/index.vue | 16 +++++++++----- 4 files changed, 40 insertions(+), 30 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index b46708be9..a74dd25ea 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -179,15 +179,25 @@ export const moduleRoutes = { }, }, { - path: "edit-resi", + path: "suggestionList", props: true, - name: "edit-resi", - component: () => import("@/views/components/editResi"), + name: "suggestionList", + component: () => import("@/views/modules/solicitationSpecial/cpts/suggestionList"), meta: { isTab: true, - title: "编辑居民", + title: "专题征集列表", }, - } + }, + { + path: "edit-resi", + props: true, + name: "edit-resi", + component: () => import("@/views/components/editResi"), + meta: { + isTab: true, + title: "编辑居民", + }, + } ], }; // pc端菜单的 如果没有配置 默认的 或者配置了默认的 但没有权限 默认选中第一 diff --git a/src/views/modules/peopleOpinons/opinionsDaily.vue b/src/views/modules/peopleOpinons/opinionsDaily.vue index 54a128938..975b4abc9 100644 --- a/src/views/modules/peopleOpinons/opinionsDaily.vue +++ b/src/views/modules/peopleOpinons/opinionsDaily.vue @@ -9,14 +9,14 @@ v-model.trim="formData.agencyId" :options="orgOptions" :props="orgOptionProps" :show-all-levels="false" @change="handleChangeAgency" clearable> - + @@ -84,12 +84,9 @@ - - + + diff --git a/src/views/modules/solicitationSpecial/cpts/suggestionList.vue b/src/views/modules/solicitationSpecial/cpts/suggestionList.vue index 82aec627c..67f42adec 100644 --- a/src/views/modules/solicitationSpecial/cpts/suggestionList.vue +++ b/src/views/modules/solicitationSpecial/cpts/suggestionList.vue @@ -9,14 +9,14 @@ v-model.trim="formData.agencyId" :options="orgOptions" :props="orgOptionProps" :show-all-levels="false" @change="handleChangeAgency" clearable> - + @@ -82,15 +82,15 @@ - - - + + - + @@ -131,7 +131,7 @@ @@ -429,10 +429,7 @@ export default { }, }, mounted() { - console.log(this.optionDate.id,"sdflkjsdlkfjkls"); - this.formData.specialSubjectId=this.optionDate.id - console.log(this.formData.specialSubjectId,"sdglk;jsdljgk"); - + this.formData.specialSubjectId= this.$route.query.id this.user = this.$store.state.user; this.formData.agencyId = this.user.agencyId; this.getOrgTreeList() diff --git a/src/views/modules/solicitationSpecial/index.vue b/src/views/modules/solicitationSpecial/index.vue index 982895c05..67f3f094d 100644 --- a/src/views/modules/solicitationSpecial/index.vue +++ b/src/views/modules/solicitationSpecial/index.vue @@ -10,7 +10,7 @@ :show-all-levels="false" @change="handleChangeAgency" clearable> - + @@ -401,11 +401,17 @@ export default { } }, onClickOpinion(row,type){ - console.log(row,type,"sdfkljdslf"); - this.optionDate={}, - this.optionDate=row + this.$router.push({ + name: "suggestionList", query: { + id: row.id, + + } + }); + // console.log(row,type,"sdfkljdslf"); + // this.optionDate={}, + // this.optionDate=row - this.showType=type + // this.showType=type },