From 56c5011a865954b78b14252dea1a3d9300be0b05 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, 9 Oct 2024 16:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=B4=BB=E5=9C=88=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=8C=E5=BF=97=E6=84=BF=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E5=9B=9B=E9=A1=B9=E8=BF=9B=E8=A1=8C=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../volunteer/LifeCircleManagement/add.vue | 7 - .../volunteer/LifeCircleManagement/index.vue | 50 +- .../volunteer/LifeCircleManagement/info.vue | 196 +++- .../volunteer/VoluntaryOrganization/index.vue | 962 +++++++++--------- 4 files changed, 699 insertions(+), 516 deletions(-) diff --git a/src/views/modules/volunteer/LifeCircleManagement/add.vue b/src/views/modules/volunteer/LifeCircleManagement/add.vue index ecdb446f9..ace582367 100644 --- a/src/views/modules/volunteer/LifeCircleManagement/add.vue +++ b/src/views/modules/volunteer/LifeCircleManagement/add.vue @@ -336,13 +336,6 @@ "label": "文化体育" }, { - // "children": [ - // { - // "pv":"5", - // "value": "51", - // "label": "其他" - // }, - // ], "value": "5", "label": "其它" } diff --git a/src/views/modules/volunteer/LifeCircleManagement/index.vue b/src/views/modules/volunteer/LifeCircleManagement/index.vue index 5ecb48202..60120ce53 100644 --- a/src/views/modules/volunteer/LifeCircleManagement/index.vue +++ b/src/views/modules/volunteer/LifeCircleManagement/index.vue @@ -444,33 +444,31 @@ export default { pageNo:this.pageNo, pageSize: this.pageSize } - const { data, code, msg } = await requestGet(url,params); - if (code === 0) { - console.log("列表请求成功!!!!!!!!!!!!!!"); - this.total = data.total || 0; - this.tableData = data.list - this.tableData.forEach(item=>{ - this.options.forEach(item1=>{ - console.log(item1,"item1.children.value"); - console.log(item1.children,"item1.children.value"); - console.log(item1.children.value,"item1.children.value"); + const { data, code, msg } = await requestGet(url, params); +if (code === 0) { + console.log("列表请求成功!!!!!!!!!!!!!!"); + this.total = data.total || 0; + this.tableData = data.list; - item1.children.forEach(item2=>{ - if (item2.value==item.type) { - item.typeName=item2.label - }else{ - item.typeName="其他" - } - }) - - - } - ) - }) - console.log(this.tableData,"this.tableDatadsfdsf"); - - } else { - } + this.tableData.forEach(item => { + this.options.forEach(item1 => { + console.log(item1, "item1"); + console.log(item1.children, "item1.children"); + if (Array.isArray(item1.children)) { + item1.children.forEach(item2 => { + if (item2.value.toString() == item.type) { + item.typeName = item2.label; + } + }); + } else { + } + }); + }); + + console.log(this.tableData, "this.tableData"); +} else { + // 错误处理逻辑 +} }, //模板 async uploadHttpRequest(file) { diff --git a/src/views/modules/volunteer/LifeCircleManagement/info.vue b/src/views/modules/volunteer/LifeCircleManagement/info.vue index cb5bdb49a..6a5460c9e 100644 --- a/src/views/modules/volunteer/LifeCircleManagement/info.vue +++ b/src/views/modules/volunteer/LifeCircleManagement/info.vue @@ -17,7 +17,7 @@