From a6d286d62d1f91dc84f6298b86d6f783ffec1ce6 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 22 Dec 2021 11:14:42 +0800 Subject: [PATCH] 25576 --- packages/3.0.0/AppContentInfo/components/Add.vue | 4 ++-- packages/3.0.0/AppContentInfo/components/List.vue | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/3.0.0/AppContentInfo/components/Add.vue b/packages/3.0.0/AppContentInfo/components/Add.vue index 8afdf77c..edf13541 100644 --- a/packages/3.0.0/AppContentInfo/components/Add.vue +++ b/packages/3.0.0/AppContentInfo/components/Add.vue @@ -155,7 +155,7 @@ this.instance.post(`/app/appcontentmodulecategory/list`, null, { params: { ...this.cateSearch, - moduleId: this.moduleId, + moduleId: this.$route.query.moduleId, size: 100 } }).then(res => { @@ -170,7 +170,7 @@ if (valid) { this.instance.post(`/app/appcontentinfo/addOrUpdate`, { ...this.form, - moduleId: this.moduleId, + moduleId: this.$route.query.moduleId, createUserName: this.user.info.name, createUserId: this.user.info.id, categoryName: this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName, diff --git a/packages/3.0.0/AppContentInfo/components/List.vue b/packages/3.0.0/AppContentInfo/components/List.vue index 206f0c9c..3b91c712 100644 --- a/packages/3.0.0/AppContentInfo/components/List.vue +++ b/packages/3.0.0/AppContentInfo/components/List.vue @@ -56,8 +56,7 @@ props: { instance: Function, - dict: Object, - moduleId: String + dict: Object }, data() { @@ -95,10 +94,9 @@ methods: { getList() { - console.log(this.moduleId) this.instance.post(`/app/appcontentinfo/list`, null, { params: { - moduleId: this.moduleId, + moduleId: this.$route.query.moduleId, ...this.search } }).then(res => {