From 0da9c6652870390cd07bc90211aefe095445baf6 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期三, 23 三月 2022 17:09:23 +0800
Subject: [PATCH] 完善表格功能
---
src/cool/modules/hntask/views/periodic_task.vue | 70 ++++++++++++++++++++++++-----------
1 files changed, 48 insertions(+), 22 deletions(-)
diff --git a/src/cool/modules/taskSetting/views/taskSetting.vue b/src/cool/modules/hntask/views/periodic_task.vue
similarity index 67%
rename from src/cool/modules/taskSetting/views/taskSetting.vue
rename to src/cool/modules/hntask/views/periodic_task.vue
index 3bbfbad..1b80c6a 100644
--- a/src/cool/modules/taskSetting/views/taskSetting.vue
+++ b/src/cool/modules/hntask/views/periodic_task.vue
@@ -44,8 +44,45 @@
// 鏂板銆佺紪杈戦厤缃�
const upsert = reactive<Upsert>({
items: [
- // {
- // }
+ {
+ label: "鍛ㄦ湡浠诲姟",
+ prop: "crontab_rule",
+ component: {
+ name: "el-input"
+ },
+ //鏄惁涓哄繀濉」,娉細鎺ュ彛閰嶇疆瀛楁鏃舵病鏈夎缃粯璁ゅ�兼椂锛岄兘闇�瑕侀�夋嫨蹇呭~
+ required: true
+ },
+ {
+ label: "璁惧鍒嗙粍ID",
+ prop: "group_id",
+ component: {
+ name: "el-input"
+ },
+ required: true
+ },
+ {
+ label: "璁剧疆浜�",
+ prop: "operator",
+ component: {
+ name: "el-input"
+ },
+ required: true
+ },
+ {
+ label: "澶囨敞",
+ prop: "remark",
+ component: {
+ name: "el-input"
+ }
+ },
+ {
+ label: "鐘舵��",
+ prop: "status",
+ component: {
+ name: "el-input"
+ }
+ }
]
});
@@ -53,32 +90,21 @@
const table = reactive<Table>({
columns: [
{
+ type: "selection",
+ align: "center"
+ },
+ {
label: "id",
- prop: "id"
- },
- {
- label: "璁惧鍒嗙粍ID",
- prop: "group_id"
- },
- {
- label: "浠诲姟绫诲瀷",
- prop: "task_type"
+ prop: "id",
+ sortable: true //鏄惁鎺掑簭鍔熻兘
},
{
label: "鍛ㄦ湡浠诲姟",
prop: "crontab_rule"
},
{
- label: "浠诲姟鍐呭鎻忚堪",
- prop: "task_content"
- },
- {
- label: "浠诲姟鍙傛暟",
- prop: "task_params"
- },
- {
- label: "浠诲姟鍛戒护鏍煎紡",
- prop: "task_command"
+ label: "璁惧鍒嗙粍ID",
+ prop: "group_id"
},
{
label: "璁剧疆浜�",
@@ -102,7 +128,7 @@
// crud 鍔犺浇
function onLoad({ ctx, app }: CrudLoad) {
// 缁戝畾 service
- ctx.service(service.taskSetting.taskSetting).done();
+ ctx.service(service.business.periodicsetting).done();
app.refresh();
}
--
Gitblit v1.9.1