|
@@ -7,6 +7,7 @@
|
|
|
<lay-button class="card-button" v-if="apiList?.includes('/robot/transfers')" @click="handleTransfersRobot(selectedKeys)">移交机器人</lay-button>
|
|
<lay-button class="card-button" v-if="apiList?.includes('/robot/transfers')" @click="handleTransfersRobot(selectedKeys)">移交机器人</lay-button>
|
|
|
<lay-button class="card-button" v-if="apiList?.includes('/robot/copy')" @click="handleCopyRobot(selectedKeys)">复制机器人</lay-button>
|
|
<lay-button class="card-button" v-if="apiList?.includes('/robot/copy')" @click="handleCopyRobot(selectedKeys)">复制机器人</lay-button>
|
|
|
<lay-button class="card-button" v-if="apiList?.includes('/robot/save')" @click="handleUpdate(0)">添加</lay-button>
|
|
<lay-button class="card-button" v-if="apiList?.includes('/robot/save')" @click="handleUpdate(0)">添加</lay-button>
|
|
|
|
|
+ <lay-button class="card-button" v-if="apiList?.includes('/remaining/exportDayRobotStatistics')" @click="handleExport()">导出数据</lay-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:body>
|
|
<template v-slot:body>
|
|
@@ -171,6 +172,7 @@
|
|
|
<Copy ref="copyRef" />
|
|
<Copy ref="copyRef" />
|
|
|
<Transfers ref="transfersRef" />
|
|
<Transfers ref="transfersRef" />
|
|
|
<Automate ref="automateRef" />
|
|
<Automate ref="automateRef" />
|
|
|
|
|
+ <ExportInfo ref="exportInfo" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup name="BotManage">
|
|
<script lang="ts" setup name="BotManage">
|
|
@@ -180,6 +182,7 @@ import Update from "./components/Update.vue";
|
|
|
import Transfers from "./components/Transfers.vue";
|
|
import Transfers from "./components/Transfers.vue";
|
|
|
import Copy from "./components/Copy.vue";
|
|
import Copy from "./components/Copy.vue";
|
|
|
import Automate from "./components/Automate.vue";
|
|
import Automate from "./components/Automate.vue";
|
|
|
|
|
+import ExportInfo from "./components/ExportInfo.vue";
|
|
|
import TableButton from "@/components/TableButton.vue";
|
|
import TableButton from "@/components/TableButton.vue";
|
|
|
import { timeConverts } from "@/utils/index";
|
|
import { timeConverts } from "@/utils/index";
|
|
|
import { get_robot_list, delete_robot, set_robot_status, set_robot_reset_capital, update_robot_batch, survive_robot, restore_robot, get_user_list_all, get_exchange_list_all } from "@/api";
|
|
import { get_robot_list, delete_robot, set_robot_status, set_robot_reset_capital, update_robot_batch, survive_robot, restore_robot, get_user_list_all, get_exchange_list_all } from "@/api";
|
|
@@ -200,6 +203,7 @@ const updateRef = ref();
|
|
|
const copyRef = ref();
|
|
const copyRef = ref();
|
|
|
const transfersRef = ref();
|
|
const transfersRef = ref();
|
|
|
const automateRef = ref();
|
|
const automateRef = ref();
|
|
|
|
|
+const exportInfo = ref();
|
|
|
|
|
|
|
|
const apiList = ref(window.sessionStorage.getItem("_4L_API_LIST"));
|
|
const apiList = ref(window.sessionStorage.getItem("_4L_API_LIST"));
|
|
|
|
|
|
|
@@ -462,6 +466,10 @@ const handleAutomate = async (value: any) => {
|
|
|
if (result) getPageInfo();
|
|
if (result) getPageInfo();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+const handleExport = () => {
|
|
|
|
|
+ exportInfo.value.show();
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
// 分页设置
|
|
// 分页设置
|
|
|
const handleCurrentChange = (val: any) => {
|
|
const handleCurrentChange = (val: any) => {
|
|
|
pageParams.pageNum = val.current;
|
|
pageParams.pageNum = val.current;
|
|
@@ -473,7 +481,7 @@ const startInterval = () => {
|
|
|
clearInterval(refreshBotInterval.value);
|
|
clearInterval(refreshBotInterval.value);
|
|
|
refreshBotInterval.value = setInterval(() => {
|
|
refreshBotInterval.value = setInterval(() => {
|
|
|
getPageInfo(false, true);
|
|
getPageInfo(false, true);
|
|
|
- }, 2000);
|
|
|
|
|
|
|
+ }, 5000);
|
|
|
};
|
|
};
|
|
|
startInterval();
|
|
startInterval();
|
|
|
const closeInterval = () => {
|
|
const closeInterval = () => {
|