Browse Source

2024-2-1 修改考勤详情下拉菜单

dzl 9 months ago
parent
commit
00d5614f10

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "协同办公",
     "appid" : "__UNI__EEB5AF5",
     "description" : "",
-    "versionName" : "1.7.2",
-    "versionCode" : 172,
+    "versionName" : "1.7.3",
+    "versionCode" : 173,
     "transformPx" : false,
     "app-plus" : {
         /* 5+App特有相关 */

+ 7 - 5
pages/kqdetail/kqdetail.vue

@@ -1,6 +1,7 @@
 <template>
 	<view style="padding-bottom: 140rpx;background-color: #fff;overflow: hidden;">
-		<uni-table ref="table" border stripe emptyText="暂无更多数据">
+		<uni-table ref="table" border stripe emptyText="暂无更多数据" style="display: static;
+		overflow: visible;">
 			<uni-tr>
 				<uni-th width="300rpx" align="center">日期</uni-th>
 				<uni-th align="center">考勤</uni-th>
@@ -141,12 +142,12 @@
 				<uni-td align="center" width="200rpx">
 					<view class="select">
 						上午:
-						<uni-data-select v-model="list.saturdayMorning" :disabled="type" :localdata="range" @change="change"
+						<uni-data-select :position="position" v-model="list.saturdayMorning" :disabled="type" :localdata="range" @change="change"
 							:clear="false"></uni-data-select>
 					</view>
 					<view class="select" style="margin-top: 40rpx;">
 						下午:
-						<uni-data-select v-model="list.saturdayAfternoon" :disabled="type" :localdata="range" @change="change"
+						<uni-data-select :position="position" v-model="list.saturdayAfternoon" :disabled="type" :localdata="range" @change="change"
 							:clear="false"></uni-data-select>
 					</view>
 				</uni-td>
@@ -165,12 +166,12 @@
 				<uni-td align="center" width="200rpx">
 					<view class="select">
 						上午:
-						<uni-data-select v-model="list.sundayMorning" :disabled="type" :localdata="range" @change="change"
+						<uni-data-select :position="position" v-model="list.sundayMorning" :disabled="type" :localdata="range" @change="change"
 							:clear="false"></uni-data-select>
 					</view>
 					<view class="select" style="margin-top: 40rpx;">
 						下午:
-						<uni-data-select v-model="list.sundayAfternoon" :disabled="type" :localdata="range" @change="change"
+						<uni-data-select :position="position" v-model="list.sundayAfternoon" :disabled="type" :localdata="range" @change="change"
 							:clear="false"></uni-data-select>
 					</view>
 				</uni-td>
@@ -227,6 +228,7 @@
 				//下拉框
 				range: [],
 				type:true,//能否修改
+				position:'bottom'
 
 			}
 		},

+ 6 - 2
uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue

@@ -14,7 +14,7 @@
 					</view>
 				</view>
 				<view class="uni-select--mask" v-if="showSelector" @click="toggleSelector" />
-				<view class="uni-select__selector" v-if="showSelector">
+				<view class="uni-select__selector" :style="position=='top'?{top:'calc(100% + 12px)'}:{bottom:'calc(100% + 12px)'}" v-if="showSelector">
 					<view class="uni-popper__arrow"></view>
 					<scroll-view scroll-y="true" class="uni-select__selector-scroll">
 						<view class="uni-select__selector-empty" v-if="mixinDatacomResData.length === 0">
@@ -93,6 +93,10 @@
 				type: String,
 				default: ''
 			},
+			position:{
+				type:String,
+				default:'top'
+			}
 		},
 		data() {
 			return {
@@ -407,7 +411,7 @@
 		box-sizing: border-box;
 		/* #endif */
 		position: absolute;
-		top: calc(100% + 12px);
+		// top: calc(100% + 12px);
 		left: 0;
 		width: 100%;
 		background-color: #FFFFFF;