Quellcode durchsuchen

fix:业绩统计 输入框修复

xuyunhui vor 2 Monaten
Ursprung
Commit
a54cd4d4a4
2 geänderte Dateien mit 20 neuen und 9 gelöschten Zeilen
  1. 11 0
      pages/performanceList/index.rpx.css
  2. 9 9
      pages/performanceList/performanceList.vue

+ 11 - 0
pages/performanceList/index.rpx.css

@@ -15,6 +15,17 @@
 	margin-left: 10rpx;
 }
 
+.selectParamInput /deep/ input {
+	cursor: pointer;
+	pointer-events: none;
+}
+
+.input-wrapper {
+	position: relative;
+	z-index: 1;
+	cursor: pointer;
+}
+
 .totalCount{
 	display: flex;
 	align-items: center;

+ 9 - 9
pages/performanceList/performanceList.vue

@@ -13,26 +13,26 @@
         <view class="flex-col justify-center">
           <text class="selectParam">时间:</text>
         </view>
-        <view @click="openDate(1)">
-          <u-input v-model="selectStartDate" class="selectParamInput" disabled-color="#ffffff"
-                   placeholder="开始时间"></u-input>
+        <view class="input-wrapper" @click="openDate(1)">
+          <u-input v-model="selectStartDate" class="selectParamInput" readonly
+                   placeholder="开始时间" @click.stop.prevent="openDate(1)"></u-input>
         </view>
         <view class="flex-col justify-center">
           <text class="selectParam" style="margin-left: 10rpx">-</text>
         </view>
 
-        <view @click="openDate(2)">
-          <u-input v-model="selectEndDate" class="selectParamInput" disabled-color="#ffffff"
-                   placeholder="结束时间"></u-input>
+        <view class="input-wrapper" @click="openDate(2)">
+          <u-input v-model="selectEndDate" class="selectParamInput" readonly
+                   placeholder="结束时间" @click.stop.prevent="openDate(2)"></u-input>
         </view>
       </view>
       <view class="flex-row justify-start" style="margin-top: 10rpx;">
         <view class="flex-col justify-center">
           <text class="selectParam">项目:</text>
         </view>
-        <view @click="openServicePro">
-          <u-input v-model="selectServiceName" class="selectParamInput" disabled-color="#ffffff"
-                   placeholder="选择服务项目"></u-input>
+        <view class="input-wrapper" @click="openServicePro">
+          <u-input v-model="selectServiceName" class="selectParamInput" readonly
+                   placeholder="选择服务项目" @click.stop.prevent="openServicePro"></u-input>
         </view>
 
         <view class="flex-col justify-center" style="margin-left: 10rpx;">