guoyujia 1 жил өмнө
parent
commit
14c1e869d7

+ 2 - 10
pages/reportingForWork/index.vue

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