|
@@ -21,6 +21,9 @@
|
|
|
<span class="card-title">收益图</span>
|
|
<span class="card-title">收益图</span>
|
|
|
<span class="card-subtitle">(近3天)</span>
|
|
<span class="card-subtitle">(近3天)</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-slot:extra>
|
|
|
|
|
+ <lay-button class="card-button" border="red" @click="handleShowLogs()">错误日志</lay-button>
|
|
|
|
|
+ </template>
|
|
|
<template v-slot:body>
|
|
<template v-slot:body>
|
|
|
<div class="profit-chart" ref="profitChartRef"></div>
|
|
<div class="profit-chart" ref="profitChartRef"></div>
|
|
|
</template>
|
|
</template>
|
|
@@ -64,6 +67,7 @@
|
|
|
</lay-card>
|
|
</lay-card>
|
|
|
</div>
|
|
</div>
|
|
|
<InfoLayer ref="infoLayerRef" />
|
|
<InfoLayer ref="infoLayerRef" />
|
|
|
|
|
+ <Logs ref="logsRef" />
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts" setup name="BotCtaDetail">
|
|
<script lang="ts" setup name="BotCtaDetail">
|
|
|
import { ref, reactive, onMounted, onUnmounted, shallowRef } from "vue";
|
|
import { ref, reactive, onMounted, onUnmounted, shallowRef } from "vue";
|
|
@@ -73,6 +77,7 @@ import * as echarts from "echarts";
|
|
|
import Decimal from "decimal.js";
|
|
import Decimal from "decimal.js";
|
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
|
import InfoLayer from "./components/InfoLayer.vue";
|
|
import InfoLayer from "./components/InfoLayer.vue";
|
|
|
|
|
+import Logs from "./components/Logs.vue"
|
|
|
import { get_cta_robot_detail, get_cta_robot_order_list, get_cta_robot_profit } from "@/api";
|
|
import { get_cta_robot_detail, get_cta_robot_order_list, get_cta_robot_profit } from "@/api";
|
|
|
|
|
|
|
|
const ROBOT_STATUS: any = reactive({
|
|
const ROBOT_STATUS: any = reactive({
|
|
@@ -84,6 +89,7 @@ const ROBOT_STATUS: any = reactive({
|
|
|
|
|
|
|
|
const profitChartRef = ref();
|
|
const profitChartRef = ref();
|
|
|
const infoLayerRef = ref();
|
|
const infoLayerRef = ref();
|
|
|
|
|
+const logsRef = ref();
|
|
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
|
|
|
|
@@ -229,17 +235,10 @@ const getProfitInfo = (id: number) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 请求机器人日志
|
|
// 请求机器人日志
|
|
|
-// const getLogsInfo = () => {
|
|
|
|
|
-// const params = { id: route.params.id, n: 500 };
|
|
|
|
|
-// pageConfig.logsLoading = true;
|
|
|
|
|
-// get_robot_logs(params, (data: any) => {
|
|
|
|
|
-// pageConfig.logsLoading = false;
|
|
|
|
|
-// if (data.code == 200) {
|
|
|
|
|
-// logsList.value = handlePageInfo(data.data);
|
|
|
|
|
-// }
|
|
|
|
|
-// });
|
|
|
|
|
-// };
|
|
|
|
|
-// getLogsInfo();
|
|
|
|
|
|
|
+const handleShowLogs = () => {
|
|
|
|
|
+ const params = { id: route.params.id };
|
|
|
|
|
+ logsRef.value.show(params)
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// const handlePageInfo = (data: any) => {
|
|
// const handlePageInfo = (data: any) => {
|
|
|
// let infoList = data;
|
|
// let infoList = data;
|