From b0f0d6a0886e0191c183d7cfaa58e0b762e587f5 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期一, 09 九月 2024 14:57:51 +0800
Subject: [PATCH] test

---
 pages/modal/5601.vue |   30 ++++++++----------------------
 1 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index 2d6273b..a5f949c 100644
--- a/pages/modal/5601.vue
+++ b/pages/modal/5601.vue
@@ -65,9 +65,10 @@
 									src="../../images/mobox_log_200x40.png">
 								</image>
 								<checkbox-group @change="checkboxChange">
-									<div class="dv-panel" v-for="(style,ii) in pageData.DefList" @tap="onPanelClick(ii)"
+									<div class="dv-panel" v-for="(style,ii) in pageData.DefList"
+										@tap="onPanelClick(ii,style.form.htmlobjId)"
 										:id="'dvpanel'+style.form.htmlobjId"
-										:class="style.form.htmlobjId==active_id?'bk-active':activelist[ii].active==true?'bk-active':''">
+										:class="style.form.htmlobjId==active_id?'bk-active':''">
 										<div class="dv-panel-input">
 											<div class="dv-input" v-for="(item,index) in style.form.items">
 												<!-- 鏅�甯冨眬 -->
@@ -174,7 +175,6 @@
 				After_Del_Event: {},
 
 				active_id: '',
-				activelist: [],
 				selectAttrObj: {},
 			};
 		},
@@ -863,12 +863,7 @@
 											if (pageData?.DefList) {
 												pageData.DefList
 													.forEach(ele => {
-														$this
-															.activelist[
-																index
-															]
-															.active =
-															false;
+
 														if (ele
 															.form
 															.objId ==
@@ -1204,9 +1199,7 @@
 
 						pageData.DefList.push(detailStyle);
 						this.$set(this.pageDetail, pageIndex, pageData)
-						this.activelist.push({
-							active: false
-						});
+
 					});
 				}
 			},
@@ -1309,9 +1302,7 @@
 						}
 						// $this.setData({pageDetail:pageD})
 						$this.$set(this.pageDetail, pageIndex, pageData)
-						$this.activelist.push({
-							active: false
-						});
+
 					});
 				}
 
@@ -1530,14 +1521,9 @@
 				$this.runCustomEvent(pageData, event, input_param, list);
 			},
 
-			onPanelClick(value) {
+			onPanelClick(value, id) {
 				// console.log(value);
-				this.active_id = '';
-				this.activelist.forEach(ele => {
-					ele.active = false;
-				});
-				this.activelist[value].active = true;
-				// console.log(this.$data.activelist);
+				this.active_id = id;
 			},
 			//纭畾
 			ok(pageData) {

--
Gitblit v1.9.1