Ver código fonte

feat:修改警告

AmandaG 1 ano atrás
pai
commit
4a850b9ba5

+ 2 - 1
src/components/DateRange/src/components/QuickCalendarDate.vue

@@ -15,7 +15,8 @@ const props = defineProps({
     type: Array
   },
   isDisabled: {
-    type: Array
+    type: Boolean,
+    default: false
   }
 })
 const ETDDate = ref(props.Date)

+ 2 - 2
src/views/Dashboard/src/components/DashFiters.vue

@@ -32,7 +32,7 @@ watch(
     defaultfiltersData.value = current
   }
 )
-const isDisabled = ref([false, false])
+const isDisabled = ref(false)
 const checkboxGroup1 = ref(['All'])
 const CheckboxGroup2 = ref('ETD')
 const filters_visible = ref(false)
@@ -59,7 +59,7 @@ const getdefaultdata = () => {
   CheckboxGroup2.value = defaultfiltersData.value?.date_type
   if (defaultfiltersData.value?.date_start == '') {
     DashDate.value = []
-    isDisabled.value = [true, true]
+    isDisabled.value = true
   } else {
     if (props.isContainer) {
       startDate.value = defaultfiltersData.value?.date_start_two