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 },