|
|
@@ -10,6 +10,7 @@ import ScoringSystem from './components/ScoringSystem.vue'
|
|
|
import TopMap from './components/TopMap.vue'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
const router = useRouter()
|
|
|
const value = ref('All')
|
|
|
@@ -30,7 +31,6 @@ const checkboxGroup1 = ref(['All'])
|
|
|
const changeCheckboxGroup2 = ref('ETD')
|
|
|
const shipper = ref(['All', 'Air', 'Sea', 'Road'])
|
|
|
const shipper_two = ref(['ETD', 'ETA'])
|
|
|
-const DashDate = ref(['', ''])
|
|
|
const changeCheckboxGroup1 = (val: any) => {
|
|
|
if (val.length == 3) {
|
|
|
checkboxGroup1.value = ['All']
|
|
|
@@ -62,8 +62,13 @@ const handleTabClick = (tab: any) => {
|
|
|
isShowtitle1.value = false
|
|
|
}
|
|
|
}
|
|
|
+const DashDate = ref([dayjs().startOf('month'), dayjs().endOf('month')])
|
|
|
// 获取首页数据
|
|
|
-let dashboardObj: any = {}
|
|
|
+let dashboardObj: any = {
|
|
|
+ date_start: DashDate.value[0].format('MM/DD/YYYY'),
|
|
|
+ date_end: DashDate.value[1].format('MM/DD/YYYY'),
|
|
|
+ date_type: changeCheckboxGroup2.value
|
|
|
+}
|
|
|
const GetDashboardData = (value: any, is_default: any) => {
|
|
|
$api
|
|
|
.GetDashboardData({
|