Browse Source

修改大事件园地相册重置问题

liuhj 4 years ago
parent
commit
28012dc210

+ 3 - 1
src/views/system/events/index.vue

@@ -6,6 +6,7 @@
       :inline="true"
       v-show="showSearch"
       label-width="68px"
+      onSubmit="return false"
     >
       <!-- <el-form-item label="家族" prop="familyId" v-if="!familyName">
         <el-select v-model="queryParams.familyId" placeholder="请选择家族" clearable size="small">
@@ -247,6 +248,8 @@ export default {
     /** 查询家族大事件列表 */
     getList() {
       this.loading = true;
+      const fid = this.$route.query.fid;
+      this.queryParams.familyId = fid;
       listEvents(this.queryParams).then(response => {
         this.eventsList = response.rows;
         this.total = response.total;
@@ -262,7 +265,6 @@ export default {
     reset() {
       this.form = {
         id: null,
-        familyId: null,
         title: null,
         contents: null,
         createBy: null,

+ 2 - 0
src/views/system/family/album/index.vue

@@ -381,6 +381,8 @@ export default {
     /** 查询家族相簿列表 */
     getList() {
       this.loading = true;
+      const fid = this.$route.query.fid;
+      this.queryParams.familyId = fid;
       listAlbum(this.queryParams).then((response) => {
         this.albumList = response.rows;
         this.total = response.total;

+ 3 - 1
src/views/system/garden/index.vue

@@ -6,6 +6,7 @@
       :inline="true"
       v-show="showSearch"
       label-width="68px"
+      onSubmit="return false"
     >
        <!-- <el-form-item label="家族" prop="familyId" v-if="!familyName">
         <el-select v-model="queryParams.familyId" placeholder="请选择家族" clearable size="small">
@@ -245,6 +246,8 @@ export default {
     /** 查询家族园地列表 */
     getList() {
       this.loading = true;
+      const fid = this.$route.query.fid;
+      this.queryParams.familyId = fid;
       listGarden(this.queryParams).then(response => {
         this.gardenList = response.rows;
         this.total = response.total;
@@ -260,7 +263,6 @@ export default {
     reset() {
       this.form = {
         id: null,
-        familyId: null,
         title: null,
         contents: null,
         sort: null,