From b0041cf10ba3ddf74b9edcfd340a7d1c9179d878 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期一, 03 三月 2025 18:48:19 +0800
Subject: [PATCH] 5601 form

---
 pages/modal/5601.vue |   56 ++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 42 insertions(+), 14 deletions(-)

diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index a6024ec..9657433 100644
--- a/pages/modal/5601.vue
+++ b/pages/modal/5601.vue
@@ -200,8 +200,8 @@
 			<uni-popup class="view-popup" ref="popup" background-color="#fff" @change="popupChange">
 				<view class="popup-header">{{check_list.title}}</view>
 				<view class="popup-content" :class="{ 'popup-height': popupType === 'left' || popupType === 'right' }"
-					:style="{'width':check_list.width?check_list.width+'px':'200px','height':check_list.height?check_list.height+'px':'88%'}">
-					<view class="popup-cont" :style="{'height':check_list.height?check_list.height-45+'px':'415px'}">
+					:style="{'width':check_list.width?check_list.width+'px':'375rpx','height':check_list.height?check_list.height+'px':popupType =='center'?'60vh':'88vh'}">
+					<view class="popup-cont" :style="{'height':check_list.height?check_list.height-45+'px':popupType =='center'?'50vh':'80vh'}">
 						<view class="view_popup_CheckList" v-for="(item,index) in check_list.items">
 							<checkbox-group class="check_list" @change="checkChange" :data-ischeck="item.check"
 								:data-index="index" :style="{'margin-left': '10rpx'}">
@@ -925,6 +925,7 @@
 
 			getDetailAttrList(pageData) {
 				const detailAttrList = [];
+				  console.log(pageData)
 				if (pageData.DefList) {
 					pageData.DefList.forEach(style => {
 						var detail_attr = {};
@@ -967,6 +968,7 @@
 						});
 					});
 				}
+				  console.log(detailAttrList)
 				const jsonlist = [];
 				detailAttrList.forEach(attr => {
 					jsonlist.push({
@@ -998,6 +1000,7 @@
 						});
 						var obj_attr = this.head_styledef.form.model;
 						// console.log(obj_attr);
+						
 						var input_param = Base64.encode(
 							JSON.stringify(
 								Object.keys(head_attr).map((a) => ({
@@ -1012,9 +1015,7 @@
 
 							jsonList.push({
 								page_name: page.Name,
-								item_list: $this.getDetailAttrList(page
-									.DefList, page
-									.Select_Button),
+								item_list: $this.getDetailAttrList(page),
 								ext_data: page.ExtData || {}
 							})
 
@@ -1022,6 +1023,7 @@
 						const data_json = Base64.encode(
 							JSON.stringify(jsonList)
 						);
+						  console.log(jsonList)
 						var dataInfo = {
 							ed_type: 0,
 							start_transaction: true,
@@ -2399,6 +2401,7 @@
 											$this.setData({
 												check_list: val.config
 											})
+											console.log($this.check_list)
 											if (val.config.appear_style == 'sideslip') //鍒ゆ柇鏄惁鏄晶婊� 												$this.setData({
 													popupType: "right"
@@ -3255,7 +3258,17 @@
 		},
 	};
 </script>
+<style>
+	.popup-content {
+		@include flex;
+	
+	}
 
+	.popup-height {
+		@include height;
+		/* width: 200px; */
+	}
+</style>
 <style lang="scss">
 	.uni-page-modal-5601 {
 
@@ -3591,15 +3604,6 @@
 			background-color: #f3f3f3 !important;
 		}
 
-		.demo-uni-row {
-			margin-bottom: 0px;
-			display: block;
-
-			.uni-input {
-				width: calc(100% - 120px);
-			}
-		}
-
 		::v-deep .uni-row {
 			margin-bottom: 0px;
 		}
@@ -3613,6 +3617,30 @@
 			border-radius: 5px;
 		}
 
+	.view-popup {
+			position: relative;
+		}
+
+		.popup-content {
+			// @include flex;
+			align-items: center;
+			justify-content: center;
+			padding: 30rpx;
+			background-color: #fff;
+			/* height: 150px; */
+			/* border: 1px solid red; */
+		}
+
+		.popup-cont {
+			overflow-y: auto;
+			/* border: 1px solid red; */
+		}
+
+		.popup-height {
+			// @include height;
+			/* width: 200px; */
+		}
+
 		.popup-header {
 			font-size: 42rpx;
 			font-weight: bold;

--
Gitblit v1.9.1