From 08c381fa60f085c5376e6af9c974abb4921b0e2e Mon Sep 17 00:00:00 2001
From: "meilin.huang" <954537473@qq.com>
Date: Fri, 8 Sep 2023 22:24:45 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=BA=E5=99=A8=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=87=E4=BB=B6=E5=A4=B9=E4=B8=8A=E4=BC=A0?=
=?UTF-8?q?&=E6=95=B0=E6=8D=AE=E5=BA=93=E5=88=97=E8=A1=A8=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E6=8B=86=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mayfly_go_web/src/views/ops/db/DbList.vue | 469 +-----------------
.../src/views/ops/db/DbSqlExecLog.vue | 168 +++++++
mayfly_go_web/src/views/ops/db/TableEdit.vue | 64 ---
.../DbTableEdit.vue} | 2 +-
.../src/views/ops/db/table/DbTableList.vue | 356 +++++++++++++
.../src/views/ops/db/{ => table}/service.ts | 0
.../src/views/ops/machine/ProcessList.vue | 2 +-
.../views/ops/machine/file/MachineFile.vue | 107 +++-
server/internal/machine/api/machine.go | 4 +-
server/internal/machine/api/machine_file.go | 116 ++++-
.../machine/application/machine_file.go | 2 +-
.../internal/machine/router/machine_file.go | 2 +
server/pkg/utils/collx/array.go | 49 ++
server/pkg/utils/collx/array_test.go | 20 +
14 files changed, 810 insertions(+), 551 deletions(-)
create mode 100644 mayfly_go_web/src/views/ops/db/DbSqlExecLog.vue
delete mode 100644 mayfly_go_web/src/views/ops/db/TableEdit.vue
rename mayfly_go_web/src/views/ops/db/{CreateTable.vue => table/DbTableEdit.vue} (99%)
create mode 100644 mayfly_go_web/src/views/ops/db/table/DbTableList.vue
rename mayfly_go_web/src/views/ops/db/{ => table}/service.ts (100%)
diff --git a/mayfly_go_web/src/views/ops/db/DbList.vue b/mayfly_go_web/src/views/ops/db/DbList.vue
index 5f32cc0e..c11fb216 100644
--- a/mayfly_go_web/src/views/ops/db/DbList.vue
+++ b/mayfly_go_web/src/views/ops/db/DbList.vue
@@ -90,94 +90,7 @@
-
-
-
- 导出
-
-
-
- 结构
- 数据
- 结构+数据
-
-
-
-
-
-
-
-
-
-
-
-
- 取消
- 确定
-
-
-
- 创建表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ formatByteSize(scope.row.dataLength) }}
-
-
-
-
- {{ formatByteSize(scope.row.indexLength) }}
-
-
-
-
-
- 字段
- 索引
- 编辑表
- DDL
-
-
-
-
- 删除
-
-
-
+
@@ -227,64 +140,7 @@
:close-on-click-modal="false"
v-model="sqlExecLogDialog.visible"
>
-
-
-
-
-
-
-
-
-
- 还原SQL
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -308,26 +164,13 @@
-
-
diff --git a/mayfly_go_web/src/views/ops/db/DbSqlExecLog.vue b/mayfly_go_web/src/views/ops/db/DbSqlExecLog.vue
new file mode 100644
index 00000000..8949fd02
--- /dev/null
+++ b/mayfly_go_web/src/views/ops/db/DbSqlExecLog.vue
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+
+
+
+
+
+ 还原SQL
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mayfly_go_web/src/views/ops/db/TableEdit.vue b/mayfly_go_web/src/views/ops/db/TableEdit.vue
deleted file mode 100644
index 73c21be6..00000000
--- a/mayfly_go_web/src/views/ops/db/TableEdit.vue
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/mayfly_go_web/src/views/ops/db/CreateTable.vue b/mayfly_go_web/src/views/ops/db/table/DbTableEdit.vue
similarity index 99%
rename from mayfly_go_web/src/views/ops/db/CreateTable.vue
rename to mayfly_go_web/src/views/ops/db/table/DbTableEdit.vue
index 42e1bc14..5bc82aa9 100644
--- a/mayfly_go_web/src/views/ops/db/CreateTable.vue
+++ b/mayfly_go_web/src/views/ops/db/table/DbTableEdit.vue
@@ -136,7 +136,7 @@
import { watch, toRefs, reactive, ref } from 'vue';
import { TYPE_LIST, CHARACTER_SET_NAME_LIST, COLLATION_SUFFIX_LIST } from './service';
import { ElMessage } from 'element-plus';
-import SqlExecBox from './component/SqlExecBox';
+import SqlExecBox from '../component/SqlExecBox';
const props = defineProps({
visible: {
diff --git a/mayfly_go_web/src/views/ops/db/table/DbTableList.vue b/mayfly_go_web/src/views/ops/db/table/DbTableList.vue
new file mode 100644
index 00000000..e923b26c
--- /dev/null
+++ b/mayfly_go_web/src/views/ops/db/table/DbTableList.vue
@@ -0,0 +1,356 @@
+
+
+
+
+
+ 导出
+
+
+
+ 结构
+ 数据
+ 结构+数据
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+ 创建表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formatByteSize(scope.row.dataLength) }}
+
+
+
+
+ {{ formatByteSize(scope.row.indexLength) }}
+
+
+
+
+
+ 字段
+ 索引
+ 编辑表
+ DDL
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mayfly_go_web/src/views/ops/db/service.ts b/mayfly_go_web/src/views/ops/db/table/service.ts
similarity index 100%
rename from mayfly_go_web/src/views/ops/db/service.ts
rename to mayfly_go_web/src/views/ops/db/table/service.ts
diff --git a/mayfly_go_web/src/views/ops/machine/ProcessList.vue b/mayfly_go_web/src/views/ops/machine/ProcessList.vue
index caaced28..8b5d5320 100644
--- a/mayfly_go_web/src/views/ops/machine/ProcessList.vue
+++ b/mayfly_go_web/src/views/ops/machine/ProcessList.vue
@@ -85,7 +85,7 @@
-
+
终止
diff --git a/mayfly_go_web/src/views/ops/machine/file/MachineFile.vue b/mayfly_go_web/src/views/ops/machine/file/MachineFile.vue
index 30e017da..b9b3b0c5 100755
--- a/mayfly_go_web/src/views/ops/machine/file/MachineFile.vue
+++ b/mayfly_go_web/src/views/ops/machine/file/MachineFile.vue
@@ -29,19 +29,53 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 文件
+
+
+
+
+
+ 文件夹
+
+
+
+
+
+