From c8eb1d74a09537143e697c849ca6e8986344212e Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期四, 12 九月 2024 17:28:19 +0800
Subject: [PATCH] 3018 disabled也要显示具体控件

---
 pages/modal/5601.vue |   35 ++++++++++++-----------------------
 1 files changed, 12 insertions(+), 23 deletions(-)

diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index 73be24b..326a540 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: {},
 			};
 		},
@@ -458,8 +458,8 @@
 						if (item.is_default == '1')
 							itemName = item.name;
 						list.push({
-							text: item.value,
-							value: item.name,
+							text: item.name,
+							value: item.id,
 						});
 					});
 					//鏈夐粯璁ゅ�锛屾樉绀洪粯璁ゅ�
@@ -863,12 +863,7 @@
 											if (pageData?.DefList) {
 												pageData.DefList
 													.forEach(ele => {
-														$this
-															.activelist[
-																index
-															]
-															.active =
-															false;
+
 														if (ele
 															.form
 															.objId ==
@@ -1162,13 +1157,13 @@
 				if (JSON.stringify(data.row) == '{}') {
 					return;
 				}
-				const pageIndex = $this.pageDetail.findIndex((
+				const pageIndex = this.pageDetail.findIndex((
 					page, index2, arr) => {
 					return data.page_name == page.Name;
 				})
 				if (pageIndex < 0)
 					return
-				const pageData = $this.pageDetail[pageIndex]
+				const pageData = this.pageDetail[pageIndex]
 				var styleStr = JSON.stringify(pageData.StyleDef);
 
 				var detailStyle = JSON.parse(styleStr);
@@ -1204,6 +1199,7 @@
 
 						pageData.DefList.push(detailStyle);
 						this.$set(this.pageDetail, pageIndex, pageData)
+
 					});
 				}
 			},
@@ -1306,9 +1302,7 @@
 						}
 						// $this.setData({pageDetail:pageD})
 						$this.$set(this.pageDetail, pageIndex, pageData)
-						$this.activelist.push({
-							active: false
-						});
+
 					});
 				}
 
@@ -1527,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