Kaynağa Gözat

客户页面

wangxy 1 gün önce
ebeveyn
işleme
d4096547c7

+ 5 - 1
components/dialog/commonDialog.vue

@@ -6,7 +6,7 @@
 			<view class="common-title">{{title}}</view>
 			<view class="common-content" :class="dialogContentClass">{{content}}</view>
 			<view class="common-btn-box">
-				<view class="not-confirm-btn" @click="handleClose">{{notBtn}}</view>
+				<view class="not-confirm-btn" v-if="showQuxiao" @click="handleClose">{{notBtn}}</view>
 				<view class="confirm-btn" @click="confirmBtn">{{okBtn}}</view>
 			</view>
 		</view>
@@ -31,6 +31,10 @@
 	  	require: true,
 	    default: 'content-center-class'
 	  },
+	  showQuxiao: {
+		  type: Boolean,
+		  default: true
+	  },
 	  notBtn: {
 	    type: String,
 	  	require: true,

+ 6 - 1
pages/admin/Hetong/components/search.vue

@@ -125,10 +125,15 @@
 		searchInput.value = '';
 		$emit('reset-search');
 	}
+	
+	function handleSetValue(value) {
+		searchInput.value = value
+	}
 
 
 	defineExpose({
 		handleShow,
-		handleClose
+		handleClose,
+		handleSetValue
 	})
 </script>