diff --git a/src/components/workspace/CashManagement.vue b/src/components/workspace/CashManagement.vue
index 4edc094..e0864da 100644
--- a/src/components/workspace/CashManagement.vue
+++ b/src/components/workspace/CashManagement.vue
@@ -17,7 +17,7 @@
@@ -655,28 +665,7 @@ const getAdminData = async function () {
console.log('请求失败', error)
}
}
-// 获取卡片数据
-const getCardData = async () => {
- try {
- const response = await API({url: '/workbench/getCard', data: {}})
- workDataUpdateTime.value = response.updateTime
- // 周同比
- sumWow.value = response.sumWow.toFixed(2)
- // 日环比
- sumDaily.value = response.sumDaily.toFixed(2)
-
- if (response && response.data) {
- processData(response.data)
- } else if (Array.isArray(response?.marketCards)) {
- processData(response)
- } else {
- console.error('无效的API响应结构:', response)
- }
- } catch (error) {
- console.error('获取卡片数据失败:', error)
- }
-}
-const workDataUpdateTime = ref(null)
+
// 标记当前激活的时间范围按钮
const activeTimeRange = ref('')
@@ -687,7 +676,6 @@ const handleDatePickerChange = () => {
onMounted(async () => {
await getAdminData()
- await getCardData()
await getMarkets()
getYear()
window.addEventListener('resize', () => {
@@ -700,7 +688,7 @@ onUnmounted(() => {
diff --git a/src/components/workspace/GoldGraphMarkets.vue b/src/components/workspace/GoldGraphMarkets.vue
index 9f0cf73..3de971f 100644
--- a/src/components/workspace/GoldGraphMarkets.vue
+++ b/src/components/workspace/GoldGraphMarkets.vue
@@ -1,3 +1,5 @@
+
+
@@ -592,6 +594,7 @@ const updateChart = (chartData) => {
},
xAxis: {
type: 'category',
+ // 横坐标数据 之后要改成一个时间的
data: markets.value,
axisLabel: {
interval: 0,
@@ -656,8 +659,6 @@ const getAdminData = async function () {
}
}
-const workDataUpdateTime = ref(null)
-
// 标记当前激活的时间范围按钮
const activeTimeRange = ref('')
// 日期选择器变化时清除按钮激活状态
@@ -809,7 +810,7 @@ onUnmounted(() => {
/* 行之间的分隔线(更像卡片内表格) */
:deep(.el-table .el-table__row):not(:last-child) {
- border-bottom: 1px solid rgba(0,0,0,0.06);
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
}
diff --git a/src/components/workspace/GoldManagement.vue b/src/components/workspace/GoldManagement.vue
index f5e07b7..c4663ff 100644
--- a/src/components/workspace/GoldManagement.vue
+++ b/src/components/workspace/GoldManagement.vue
@@ -270,7 +270,8 @@ const processData = (data) => {
});
}
-// 初始化金币类型南丁格尔图
+// 初始化金币类型南丁格尔图(暂时不用了)
+/*
const initGoldTypeChart = () => {
const myChart = echarts.init(goldTypeChart.value);
const option = {
@@ -310,6 +311,7 @@ const initGoldTypeChart = () => {
};
myChart.setOption(option);
}
+*/
// 初始化充值金币环形图
const initRechargeGoldChart = () => {