liyongli преди 1 ден
родител
ревизия
421cca77e9
променени са 4 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 3 1
      src/view/fenghui/form.vue
  2. 3 1
      src/view/fenghui/form1.vue
  3. 3 1
      src/view/fenghui/form1Recurrence.vue
  4. 3 1
      src/view/fenghui/formRecurrence.vue

+ 3 - 1
src/view/fenghui/form.vue

@@ -453,8 +453,10 @@ const checkbox = ref(null);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)

+ 3 - 1
src/view/fenghui/form1.vue

@@ -439,8 +439,10 @@ const photo = ref([]);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)

+ 3 - 1
src/view/fenghui/form1Recurrence.vue

@@ -439,8 +439,10 @@ const photo = ref([]);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)

+ 3 - 1
src/view/fenghui/formRecurrence.vue

@@ -450,8 +450,10 @@ const checkbox = ref(null);
 const searchConuntry = ref('')
 const countryRegionList = ref([]);
 
+let t
 const input = (val) => {
-    let t = setTimeout(() => {
+    if (t) clearTimeout(t);
+    t = setTimeout(() => {
         countryRegionList.value = lang[props.langType].countryRegionList.filter(item => {
             // 判断是否包含搜索的关键字,中英西班牙
             if (props.langType === 'zh') return item.text.includes(val)