diff --git a/src/api/index.ts b/src/api/index.ts
index 66d1230..b951dbd 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -1,7 +1,10 @@
import auth from "@/api/model/auth"
import system from "@/api/model/system"
+import tools from "@/api/model/tools"
+
export default {
auth,
- system
+ system,
+ tools
}
diff --git a/src/api/model/tools.ts b/src/api/model/tools.ts
new file mode 100644
index 0000000..49e1939
--- /dev/null
+++ b/src/api/model/tools.ts
@@ -0,0 +1,24 @@
+import http from "@/utils/request"
+
+export default {
+ gen_table: {
+ list: async function (data = {}) {
+ return await http.get("gen_table/list", data);
+ },
+ add: async function (data = {}) {
+ return await http.post("gen_table/add", data);
+ },
+ edit: async function (data = {}) {
+ return await http.put("gen_table/edit", data);
+ },
+ del: async function (data = {}) {
+ return await http.delete("gen_table/del", data);
+ },
+ select: async function (data = {}) {
+ return await http.get("gen_table/select", data);
+ },
+ build: async function (data = {}) {
+ return await http.post("gen_table/build", data);
+ },
+ }
+}
diff --git a/src/assets/icons/Code.vue b/src/assets/icons/Code.vue
new file mode 100644
index 0000000..69c6f43
--- /dev/null
+++ b/src/assets/icons/Code.vue
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src/views/monitor/crontab/index.vue b/src/views/monitor/crontab/index.vue
index 03bf9d1..daf4f53 100644
--- a/src/views/monitor/crontab/index.vue
+++ b/src/views/monitor/crontab/index.vue
@@ -110,7 +110,7 @@ function show_log(row) {
//删除
async function del(row) {
const loading = proxy.$loading();
- const res = await api.system.crontab.del({ids: row.crontab_id});
+ const res = await api.system.crontab.del({ids: [row.crontab_id]});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
@@ -122,7 +122,7 @@ async function batch_del() {
type: 'warning'
}).then(async () => {
const loading = proxy.$loading();
- const res = await api.system.crontab.del({ids: selection.value.map(item => item.crontab_id).toString()});
+ const res = await api.system.crontab.del({ids: selection.value.map(item => item.crontab_id)});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
diff --git a/src/views/monitor/crontab_log/index.vue b/src/views/monitor/crontab_log/index.vue
index 2e1a592..1347e3d 100644
--- a/src/views/monitor/crontab_log/index.vue
+++ b/src/views/monitor/crontab_log/index.vue
@@ -78,7 +78,7 @@ async function batch_del() {
type: 'warning'
}).then(async () => {
const loading = proxy.$loading();
- const res = await api.system.crontab_log.del({ids: selection.value.map(item => item.log_id).toString()});
+ const res = await api.system.crontab_log.del({ids: selection.value.map(item => item.log_id)});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
@@ -87,7 +87,7 @@ async function batch_del() {
async function del(row) {
const loading = proxy.$loading();
- const res = await api.system.crontab_log.del({ids: row.log_id});
+ const res = await api.system.crontab_log.del({ids: [row.log_id]});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue
index 9942f47..28669d5 100644
--- a/src/views/monitor/online/index.vue
+++ b/src/views/monitor/online/index.vue
@@ -12,7 +12,11 @@
-
+
+
+ {{scope.row.update_time||scope.row.online_time}}
+
+
diff --git a/src/views/system/account/index.vue b/src/views/system/account/index.vue
index 07badb1..2c5241e 100644
--- a/src/views/system/account/index.vue
+++ b/src/views/system/account/index.vue
@@ -113,7 +113,7 @@ function table_show(row){
//删除
async function table_del(row){
const loading = proxy.$loading();
- var res = await api.system.account.del({ids: row.account_id});
+ var res = await api.system.account.del({ids: [row.account_id]});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 2cdbc84..43f39c9 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -88,7 +88,7 @@ function table_show(row) {
//删除
async function table_del(row) {
- const res = await api.system.dept.del({ids: row.dept_id});
+ const res = await api.system.dept.del({ids: [row.dept_id]});
tableRef.value.refresh()
proxy.$message.success(res.msg)
}
@@ -99,7 +99,7 @@ async function batch_del() {
type: 'warning'
}).then(async () => {
const loading = proxy.$loading();
- const res = await api.system.dept.del({ids: selection.value.map(item => item.dept_id).toString()});
+ const res = await api.system.dept.del({ids: selection.value.map(item => item.dept_id)});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index 3f3e79f..4b42b4c 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -159,8 +159,7 @@ async function delMenu() {
return false
}
menuloading.value = true
- var ids = CheckedNodes.map(item => item.menu_id)
- var res = await api.system.menu.del({ids: ids.toString()})
+ var res = await api.system.menu.del({ids: CheckedNodes.map(item => item.menu_id)})
menuloading.value = false
proxy.$message.success(res.msg)
CheckedNodes.forEach(item => {
diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue
index 870e558..6e3bb1b 100644
--- a/src/views/system/post/index.vue
+++ b/src/views/system/post/index.vue
@@ -87,7 +87,7 @@ async function table_show(row) {
//删除
async function table_del(row) {
const loading = proxy.$loading();
- const res = await api.system.post.del({ids: row.post_id});
+ const res = await api.system.post.del({ids: [row.post_id]});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
@@ -99,7 +99,7 @@ async function batch_del() {
type: 'warning'
}).then(async () => {
const loading = proxy.$loading();
- const res = await api.system.post.del({ids: selection.value.map(item => item.post_id).toString()});
+ const res = await api.system.post.del({ids: selection.value.map(item => item.post_id)});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 68af997..e5c08bc 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -81,7 +81,7 @@ function table_show(row){
//删除
async function table_del(row){
const loading = proxy.$loading();
- var res = await api.system.role.del({ids: row.role_id});
+ var res = await api.system.role.del({ids: [row.role_id]});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
@@ -92,7 +92,7 @@ async function batch_del(){
type: 'warning'
}).then(async () => {
const loading = proxy.$loading();
- const res = await api.system.role.del({ids: selection.value.map(item => item.role_id).toString()});
+ const res = await api.system.role.del({ids: selection.value.map(item => item.role_id)});
tableRef.value.refresh()
loading.close();
proxy.$message.success(res.msg)
diff --git a/src/views/tools/gen/edit.vue b/src/views/tools/gen/edit.vue
new file mode 100644
index 0000000..b8224cd
--- /dev/null
+++ b/src/views/tools/gen/edit.vue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/tools/gen/index.vue b/src/views/tools/gen/index.vue
new file mode 100644
index 0000000..66cd14f
--- /dev/null
+++ b/src/views/tools/gen/index.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 预览
+ 编辑
+
+
+
+ 删除
+
+
+
+
+ 同步
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/tools/gen/save.vue b/src/views/tools/gen/save.vue
new file mode 100644
index 0000000..06bbe8e
--- /dev/null
+++ b/src/views/tools/gen/save.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 生 成
+
+
+
+
+
+