From c8b99e19889ad0985f4d851fabead15199fe4ea7 Mon Sep 17 00:00:00 2001
From: 展杰 <1240968267@qq.com>
Date: 星期三, 15 十一月 2023 14:36:13 +0800
Subject: [PATCH] new

---
 pages/inspection/inspectionInfo.vue |   37 +++++++++++++++++++++++++++----------
 components/w-select/w-select.vue    |    4 ++--
 2 files changed, 29 insertions(+), 12 deletions(-)

diff --git a/components/w-select/w-select.vue b/components/w-select/w-select.vue
index 7786004..52a6143 100644
--- a/components/w-select/w-select.vue
+++ b/components/w-select/w-select.vue
@@ -108,11 +108,11 @@
 	props: {
 		width: {
 			type: String,
-			default: '200px'
+			default: '140px'
 		},
 		height: {
 			type: String,
-			default: '30px'
+			default: '40px'
 		},
 		bgColor: {
 			type: String,
diff --git a/pages/inspection/inspectionInfo.vue b/pages/inspection/inspectionInfo.vue
index 8510821..169aff2 100644
--- a/pages/inspection/inspectionInfo.vue
+++ b/pages/inspection/inspectionInfo.vue
@@ -81,8 +81,8 @@
 					<uni-th align="center" width="40">妫�楠屾暟閲�</uni-th>
 					<uni-th align="center" width="60">涓婇檺鍊�</uni-th>
 					<uni-th align="center" width="60">涓嬮檺鍊�</uni-th>
-					<uni-th align="center" width="80">妫�楠屽��</uni-th>
-					<uni-th align="center" width="75">妫�楠岀粨鏋�</uni-th>
+					<uni-th align="center" width="70">妫�楠屽��</uni-th>
+					<uni-th align="center" width="78">妫�楠岀粨鏋�</uni-th>
 					<uni-th align="center" width="80">涓嶈壇鍘熷洜</uni-th>
 					<uni-th align="center" width="80">澶囨敞</uni-th>
 				</uni-tr>
@@ -108,8 +108,13 @@
 							text="涓嶅悎鏍�" type="error"></u-tag>
 					</uni-td>
 					<uni-td>
-						<view class="content" @click="useOutClickSide">
+<!-- 						<view class="content" @click="useOutClickSide">
 							<easy-select ref="easySelect" size="medium" :value="item.BAD_REASON" @selectOne="selectOne($event,index)"></easy-select>
+						</view> -->
+						<view class="login">
+							<w-select style="margin-left: 20rpx;" v-model='chooseValue' defaultValue="璇烽�夋嫨" 
+							:list='list' valueName='content' keyName="id" @change='change(index)'>
+							</w-select>
 						</view>
 					</uni-td>
 					<uni-td>
@@ -146,7 +151,15 @@
 				table: [],
 				name: '',
 				remeke: '',
-				show: false
+				//show: false
+				chooseValue: "",
+				list: [{
+				  id: '鏉ユ枡涓嶈壇',
+				  content: '鏉ユ枡涓嶈壇'
+				}, {
+				  id: '鐢熶骇涓嶈壇',
+				  content: '鐢熶骇涓嶈壇'
+				}]
 			}
 		},
 		onLoad(option) {
@@ -205,12 +218,16 @@
 					console.log(this.table)
 				})
 			},
-			selectOne(options,index) {
-				this.table[index].BAD_REASON = options.label
-				console.log(options.label);
-			},
-			useOutClickSide() {
-				this.$refs.easySelect.hideOptions && this.$refs.easySelect.hideOptions()
+			// selectOne(options,index) {
+			// 	this.table[index].BAD_REASON = options.label
+			// 	console.log(options.label);
+			// },
+			// useOutClickSide() {
+			// 	this.$refs.easySelect.hideOptions && this.$refs.easySelect.hideOptions()
+			// },
+			change(index) {
+				this.table[index].BAD_REASON=this.chooseValue;
+				console.log(this.table)
 			},
 			changeSwitch(item) {
 				console.log(item)

--
Gitblit v1.9.3