|
|
@@ -61,13 +61,13 @@ const handleTabClick = (tab: any) => {
|
|
|
}
|
|
|
// 获取首页数据
|
|
|
let dashboardObj: any = {}
|
|
|
-const GetDashboardData = (value: any, is_customer: any) => {
|
|
|
+const GetDashboardData = (value: any, is_default: any) => {
|
|
|
$api
|
|
|
.GetDashboardData({
|
|
|
cp: pageInfo.value.pageNo,
|
|
|
ps: pageInfo.value.pageSize,
|
|
|
rc: -1,
|
|
|
- is_customer: is_customer,
|
|
|
+ is_default: is_default,
|
|
|
...value
|
|
|
})
|
|
|
.then((res: any) => {
|
|
|
@@ -80,18 +80,18 @@ const GetDashboardData = (value: any, is_customer: any) => {
|
|
|
}
|
|
|
// 获取表单数据
|
|
|
const getTableData = () => {
|
|
|
- let is_customer: any = ''
|
|
|
+ let is_default: any = ''
|
|
|
if (Object.keys(dashboardObj).length === 0) {
|
|
|
- is_customer = 'yes'
|
|
|
+ is_default = 'yes'
|
|
|
} else {
|
|
|
- is_customer = 'no'
|
|
|
+ is_default = 'no'
|
|
|
}
|
|
|
$api
|
|
|
.GetDashboardData({
|
|
|
cp: pageInfo.value.pageNo,
|
|
|
ps: pageInfo.value.pageSize,
|
|
|
rc: pageInfo.value.total,
|
|
|
- is_customer: is_customer,
|
|
|
+ is_default: is_default,
|
|
|
...dashboardObj
|
|
|
})
|
|
|
.then((res: any) => {
|
|
|
@@ -303,6 +303,7 @@ let container_type: any = {
|
|
|
const changeType = (val: any) => {
|
|
|
container_type.container_type = val
|
|
|
GetContainerCountEcharts(container_type)
|
|
|
+ GetDashboardData(dashboardObj, 'no')
|
|
|
}
|
|
|
|
|
|
// Save Layout
|
|
|
@@ -327,6 +328,11 @@ const SaveLayout = () => {
|
|
|
const SaveFilters = () => {
|
|
|
SaveVisible.value = false
|
|
|
}
|
|
|
+//输入框失焦时查询数据
|
|
|
+const SearchCustomer = () => {
|
|
|
+ dashboardObj.customer = BookingSearch.value
|
|
|
+ GetDashboardData(dashboardObj, 'no')
|
|
|
+}
|
|
|
</script>
|
|
|
<template>
|
|
|
<div class="dashboard">
|
|
|
@@ -426,7 +432,7 @@ const SaveFilters = () => {
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="filters_right">
|
|
|
- <el-input placeholder="Customer" v-model="BookingSearch">
|
|
|
+ <el-input placeholder="Customer" v-model="BookingSearch" @blur="SearchCustomer">
|
|
|
<template #prefix>
|
|
|
<span class="iconfont_icon">
|
|
|
<svg class="iconfont" aria-hidden="true">
|