diff --git a/src/views/components/common/AccountSelect.vue b/src/views/components/common/AccountSelect.vue
index 494cac4..07b0a83 100644
--- a/src/views/components/common/AccountSelect.vue
+++ b/src/views/components/common/AccountSelect.vue
@@ -1,11 +1,5 @@
-
+
{{ account.name }}
@@ -54,13 +48,17 @@ const fetchAccounts = async () => {
};
// 搜索处理
-const handleSearch = (value: string) => {
-
-};
+const handleSearch = (value: string) => {};
// 值变化处理
const handleChange = (value: number | string) => {
- emit('update:modelValue', [value]);
+ let data = [];
+ if (value === '') {
+ data = [];
+ } else {
+ data = [value];
+ }
+ emit('update:modelValue', data);
};
// 初始化获取数据
diff --git a/src/views/components/common/PlanSelect.vue b/src/views/components/common/PlanSelect.vue
index 426c9c5..e6c840c 100644
--- a/src/views/components/common/PlanSelect.vue
+++ b/src/views/components/common/PlanSelect.vue
@@ -1,5 +1,5 @@
-
+
{{ item.name }}
@@ -47,11 +47,14 @@ const fetchData = async () => {
loading.value = false;
}
};
-// 搜索处理
-const handleSearch = (value: string) => {};
-
const handleChange = (value: any) => {
- emit('update:modelValue', [value]);
+ let data = [];
+ if (value === '') {
+ data = [];
+ } else {
+ data = [value];
+ }
+ emit('update:modelValue', data);
};
onMounted(fetchData);
diff --git a/src/views/property-marketing/put-account/account-dashboard/components/echarts-item/index.vue b/src/views/property-marketing/put-account/account-dashboard/components/echarts-item/index.vue
index e6355a8..b9c9eba 100644
--- a/src/views/property-marketing/put-account/account-dashboard/components/echarts-item/index.vue
+++ b/src/views/property-marketing/put-account/account-dashboard/components/echarts-item/index.vue
@@ -10,10 +10,8 @@
-
-
+
+
diff --git a/src/views/property-marketing/put-account/account-dashboard/index.vue b/src/views/property-marketing/put-account/account-dashboard/index.vue
index 3356ba9..b395248 100644
--- a/src/views/property-marketing/put-account/account-dashboard/index.vue
+++ b/src/views/property-marketing/put-account/account-dashboard/index.vue
@@ -76,7 +76,6 @@
import EchartsItem from './components/echarts-item/index';
import { PLATFORM_LIST } from '../common_constants';
import {
- getPlacementAccountsList,
getPlacementAccountsTrend,
getPlacementAccountProjectsTrend,
fetchAccountOperators,
@@ -96,7 +95,6 @@ const getOperators = async () => {
}
};
const query = reactive({
- names: '',
platform: '',
operator_id: '',
data_time: [],
@@ -137,7 +135,6 @@ const handleSearch = async () => {
getAccountProjectsTrend();
}
};
-// 定义图表配置
const chartConfigs = ref([
{
dataKey: 'total_use_amount',
@@ -224,25 +221,17 @@ const chartConfigs = ref([
series_data: [],
},
]);
-const handleReset = async () => {};
+const handleReset = async () => {
+ query.platform = '';
+ query.operator_id = '';
+ query.ids = [];
+ query.placement_account_id = [];
+ handleSearch();
+};
const operators = ref([]);
-const accountList = ref([]);
-const handleTabClick = (key) => {
- handleSearch();
-};
-
-// 获取账户名称
-const getAccountList = async () => {
- const { code, data } = await getPlacementAccountsList(query);
- if (code === 200) {
- accountList.value = data;
- }
-};
-
onMounted(() => {
handleSearch();
- getAccountList();
getOperators();
});
diff --git a/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue b/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue
index 7f9fab3..59b77aa 100644
--- a/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue
+++ b/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue
@@ -1,7 +1,7 @@