位置标题:{{ msg['title'] }}
@@ -73,6 +91,7 @@
+
+
From 3ab9cfc6b80f4dde647b6b0e442d66ae61a234b0 Mon Sep 17 00:00:00 2001
From: wanglihui <1769794040@qq.com>
Date: Sun, 17 Sep 2023 18:58:57 +0800
Subject: [PATCH 13/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E5=8F=A3=E4=BB=A4=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/command.ts | 36 +++++
.../tool/command/components/CommandDialog.vue | 146 ++++++++++++++++++
.../tool/{command.vue => command/index.vue} | 122 +++++++++++----
.../configuration/components/Banner.vue | 7 +-
4 files changed, 282 insertions(+), 29 deletions(-)
create mode 100644 src/api/command.ts
create mode 100644 src/pages/tool/command/components/CommandDialog.vue
rename src/pages/tool/{command.vue => command/index.vue} (55%)
diff --git a/src/api/command.ts b/src/api/command.ts
new file mode 100644
index 0000000..c5c340f
--- /dev/null
+++ b/src/api/command.ts
@@ -0,0 +1,36 @@
+import request from '@/utils/axios';
+
+// 获取口令列表
+export function commandGet(params?: any) {
+ return request({
+ url: '/manager/web3/laboratory',
+ method: 'get',
+ params
+ });
+}
+
+// 新增口令
+export function commandPost(data: any) {
+ return request({
+ url: '/manager/web3/laboratory',
+ method: 'post',
+ data
+ });
+}
+
+// 编辑口令
+export function commandPut(data: any, id: string) {
+ return request({
+ url: `/manager/web3/laboratory/${id}`,
+ method: 'put',
+ data
+ });
+}
+
+// 删除口令
+export function commandDelete(id: string) {
+ return request({
+ url: `/manager/web3/laboratory/${id}`,
+ method: 'delete'
+ });
+}
diff --git a/src/pages/tool/command/components/CommandDialog.vue b/src/pages/tool/command/components/CommandDialog.vue
new file mode 100644
index 0000000..c544171
--- /dev/null
+++ b/src/pages/tool/command/components/CommandDialog.vue
@@ -0,0 +1,146 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 保存
+
+
+
+
+
+
+
+
diff --git a/src/pages/tool/command.vue b/src/pages/tool/command/index.vue
similarity index 55%
rename from src/pages/tool/command.vue
rename to src/pages/tool/command/index.vue
index 861f2bf..7726f8e 100644
--- a/src/pages/tool/command.vue
+++ b/src/pages/tool/command/index.vue
@@ -10,8 +10,11 @@
+
+ 查询
+
- 新增口令
+ 新增口令
@@ -23,9 +26,6 @@