瀏覽代碼

任务详情中的环境质控界面下滑手势时,滑到最底部会回弹,隐藏开始质控按钮。

lhz 1 年之前
父節點
當前提交
c515c563c3
共有 1 個文件被更改,包括 12 次插入6 次删除
  1. 12 6
      pages/ypczk/zkTask/zkTaskDetail/djhjTaskDetail.vue

+ 12 - 6
pages/ypczk/zkTask/zkTaskDetail/djhjTaskDetail.vue

@@ -5,11 +5,12 @@
 			<text class="djhjTaskDetail_progress_title">任务进度:<text class="djhjTaskDetail_progress_text">{{hjTaskList.length+'/'+hjTaskList.length}}</text></text>
 			<text class="djhjTaskDetail_progress_title">不合格数<text class="djhjTaskDetail_progress_text">{{hjbhg}}</text></text>
 		</view>
-		<view v-if="props.hjTaskList.length!=0">
-			<!-- 创建人 -->
-			<view class="creator">
-				<text class="creator_title">操作人<text class="creator_text">{{props.creatorName}}</text></text>
-			</view>
+		<!-- 创建人 -->
+		<view class="djhjTaskDetail_progress">
+			<text class="creator_title" >操作人:<text class="creator_text">{{props.creatorName != null ? props.creatorName : '-'}}</text></text>
+		</view>
+		<scroll-view scroll-y = 'true' class="scroll-Y">
+		<view v-if="props.hjTaskList.length!=0" style="height: 0rpx;">
 			<!-- 检查结果 -->
 			<uni-card padding="0" spacing="0" v-for="(item,index) in props.hjTaskList" class="djhjList">
 				<view class="djhjList_title">
@@ -46,6 +47,7 @@
 		<view v-else>
 			<dataEmpty></dataEmpty>
 		</view>
+		</scroll-view>
 		<!-- 开始质控 -->
 		<view class="finish_button"
 			v-if="props.taskStatus!='7004' && props.taskStatus!='7007' && props.taskStatus!='7008' && props.taskStatus!='7009' && props.taskStatus!='7010'">
@@ -86,5 +88,9 @@ const showImage=(id)=>{
 </script>
 
 <style lang="scss" scoped>
-@import './index.scss'
+@import './index.scss';
+
+.scroll-Y {
+	height: 85%;
+}
 </style>