Parcourir la source

修改a-select placeholder 不显示

huangbin il y a 4 ans
Parent
commit
f081fc56a6

+ 2 - 2
src/views/information/custom/compoments/filterTable/index.vue

@@ -40,7 +40,7 @@ function handleSearch(context: SetupContext) {
         value: string;
     }
     let useType = '';
-    const userinfotype = ref<number>(0);
+    const userinfotype = ref<number | undefined>(undefined);
     function handleChange(value: Value) {
         useType = value.value;
         search();
@@ -53,7 +53,7 @@ function handleSearch(context: SetupContext) {
         nickname.value = '';
         name.value = '';
         phone.value = '';
-        userinfotype.value = 0;
+        userinfotype.value = undefined;
         useType = '';
         search();
     }

+ 4 - 4
src/views/information/spot-contract/components/filterTable/index.vue

@@ -50,13 +50,13 @@ function handleSearch(context: SetupContext) {
     }
     // 全部合同类型
     let useType = '';
-    const contracttype = ref<number>(0);
+    const contracttype = ref<number | undefined>(undefined);
     function handleChange(value: Value) {
         useType = value.value;
         search();
     }
     // 全部定价类型
-    const pricetype = ref<number>(0);
+    const pricetype = ref<number | undefined>(undefined);
     let cachePricetype = '';
     function handlePricetype(value: Value) {
         cachePricetype = value.value;
@@ -70,9 +70,9 @@ function handleSearch(context: SetupContext) {
         contractno.value = '';
         negative.value = '';
 
-        contracttype.value = 0;
+        contracttype.value = undefined;
         useType = '';
-        pricetype.value = 0;
+        pricetype.value = undefined;
         cachePricetype = '';
         search();
     }