From e7499929616b8bd5d1ba6106dc56b72438abccdd Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 23 Dec 2021 18:54:49 +0800 Subject: [PATCH] bug --- src/apps/AppServicePublic/Add.vue | 11 +-- .../AppServicePublic/AppServicePublic.vue | 76 +++++++++++---- src/apps/AppServicePublic/Detail.vue | 89 ++++++++++++++++-- src/apps/AppServicePublic/img/view-icon.png | Bin 0 -> 1040 bytes 4 files changed, 144 insertions(+), 32 deletions(-) create mode 100644 src/apps/AppServicePublic/img/view-icon.png diff --git a/src/apps/AppServicePublic/Add.vue b/src/apps/AppServicePublic/Add.vue index 5dfc27e2..d70994a1 100644 --- a/src/apps/AppServicePublic/Add.vue +++ b/src/apps/AppServicePublic/Add.vue @@ -100,14 +100,14 @@ export default { getType() { this.$http.post(`/app/appcontentmoduleinfo/listByName?names=${this.listName}`).then((res) => { if (res.code == 0) { - if(res.data && res.data[0].categoryList.length) { + if(res.data && res.data.length) { this.selectList = res.data[0].categoryList this.selectList.map((item, index) => { item.selectIndex = index }) - if(this.id) { - this.getDetail() - } + } + if(this.id) { + this.getDetail() } } }) @@ -132,7 +132,6 @@ export default { }) } - console.log(222) var categoryId = '', categoryName = '' if(this.selectList.length) { @@ -147,7 +146,7 @@ export default { id: this.id, moduleId: this.moduleId, categoryId: categoryId, - categoryName: categoryName, + categoryName: categoryName, }) .then((res) => { console.log(333) diff --git a/src/apps/AppServicePublic/AppServicePublic.vue b/src/apps/AppServicePublic/AppServicePublic.vue index 7dde3404..27564bcb 100644 --- a/src/apps/AppServicePublic/AppServicePublic.vue +++ b/src/apps/AppServicePublic/AppServicePublic.vue @@ -10,30 +10,26 @@
区域选择
- - - +