From 3fc1956e3911982cbd3bf0859ef5abd3a5fa4081 Mon Sep 17 00:00:00 2001
From: lizhixin <382352532@qq.com>
Date: Thu, 8 Jul 2021 15:03:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E5=8A=A8=E4=BF=A1?=
=?UTF-8?q?=E5=8F=B7=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/dashboard/DashboardLayout.vue | 4 +
src/pages/Dashboard.vue | 397 +++++++++++++----------
src/pages/MainSec/OrderTable.vue | 53 ++-
src/pages/RobotSec/index.vue | 11 +-
src/pages/SignalSender/index.vue | 127 ++++++++
src/router/routes.js | 8 +-
src/utils/TimeUtils.js | 6 +-
7 files changed, 428 insertions(+), 178 deletions(-)
create mode 100644 src/pages/SignalSender/index.vue
diff --git a/src/layout/dashboard/DashboardLayout.vue b/src/layout/dashboard/DashboardLayout.vue
index cbd4ffb..c062be7 100644
--- a/src/layout/dashboard/DashboardLayout.vue
+++ b/src/layout/dashboard/DashboardLayout.vue
@@ -63,6 +63,10 @@
系统账号
+
+
+ 手动信号
+
- {{
- secToMin(item.row.item.Time)
+ {{
+ secToMin(item.row.item.Robot.RunningTime)
}}
- 查看
+ 查看
@@ -132,7 +132,7 @@ const tableColumns = [
customSlot: "WorkTime"
},
{ name: "策略配置", prop: "Robot.SaleSetting", customSlot: "Setting" },
- { name: "委托单", prop: "Robot.SaleSetting", customSlot: "OrderPlan" },
+ // { name: "委托单", prop: "Robot.SaleSetting", customSlot: "OrderPlan" },
{ name: "操作", prop: "Action", customSlot: "Action" }
];
@@ -239,7 +239,8 @@ export default {
goCheck(id) {
this.$router.push(`/editt/${id}`);
- }, // 封装showNotification
+ },
+ // 封装showNotification
sMessage(type, message) {
this.$notify({
type: type,
diff --git a/src/pages/SignalSender/index.vue b/src/pages/SignalSender/index.vue
new file mode 100644
index 0000000..c837b69
--- /dev/null
+++ b/src/pages/SignalSender/index.vue
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+ isDebug
+
+
+
+ 发送信号
+
+
+
+
diff --git a/src/router/routes.js b/src/router/routes.js
index d6cd3c4..922b008 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -21,6 +21,7 @@ const RobotSec = () => import("@/pages/RobotSec");
const AccountSec = () => import("@/pages/RobotSec/Account");
const MainSec = () => import("@/pages/MainSec");
const MainAccount = () => import("@/pages/MainAccount");
+const SignalSender = () => import("@/pages/SignalSender");
const routes = [
{
@@ -93,8 +94,13 @@ const routes = [
name: "mainAccount",
meta: { auth: true },
component: MainAccount
+ },
+ {
+ path: "signalSender",
+ name: "signalSender",
+ meta: { auth: true },
+ component: SignalSender
}
-
// {
// path: "profile",
// name: "profile",
diff --git a/src/utils/TimeUtils.js b/src/utils/TimeUtils.js
index f8463b0..8cecd38 100644
--- a/src/utils/TimeUtils.js
+++ b/src/utils/TimeUtils.js
@@ -1,4 +1,4 @@
-export const secToMin = (s) => {
+export const secToMin = s => {
let min = Math.floor(s / 60);
let _min = min % 60;
let hour = Math.floor(min / 60);
@@ -8,8 +8,6 @@ export const secToMin = (s) => {
return (
(day == 0 ? "" : `${day}天`) +
(hour == 0 ? "" : `${_hour}时`) +
- (min == 0 ? "" : `${_min}分`) +
- sec +
- "秒"
+ (min == 0 ? "" : `${_min}分`)
);
};