소스 검색

批次报工

guoyujia 1 년 전
부모
커밋
14c1e869d7
1개의 변경된 파일2개의 추가작업 그리고 10개의 파일을 삭제
  1. 2 10
      pages/reportingForWork/index.vue

+ 2 - 10
pages/reportingForWork/index.vue

@@ -2,7 +2,7 @@
 	<view class="uni-column container" >
 		<scroll-view class="scroll-container" scroll-y>
 			<view v-for="(item, index) in listData" :key="index"
-				:class="{'list-item':true,'selected':selectedItem === item}" @click="handleSelection(item)">
+				class="list-item">
 				<view class="title-container uni-row">
 					<view class="title uni-row">
 						<text class="label">批次号:</text>
@@ -66,7 +66,6 @@
 	
 	const listData = ref([])
 	const curSubDetails = ref({})
-	const selectedItem = ref({})
 	const endWorkDialog = ref(null)
 	const selectEquipment = ref(null)
 	const equipmentList = ref([])
@@ -87,14 +86,7 @@
 	function reset(){
 		init();
 	}
-	
-	function handleSelection(item){
-	   if (selectedItem.value === item) {
-	        selectedItem.value = null; 
-	      } else {
-	        selectedItem.value = item; 
-	      }
-	}
+
 	function handleShowEndWorkDialog(data){
 		// 调用子组件中的方法
 		endWorkDialog.value.open(data)