From f8878f7a76497d4db10f56c1c6d7ed38d090eda3 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 1 Apr 2023 09:14:59 +0800 Subject: [PATCH] =?UTF-8?q?REVIEW=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=EF=BC=88=E5=88=97=E8=A1=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/auto-components.d.ts | 2 + src/views/infra/job/form.vue | 4 +- src/views/infra/job/index.vue | 209 +++++++++++++-------------- src/views/infra/job/utils.ts | 44 ------ src/views/infra/job/view.vue | 2 +- src/views/system/errorCode/index.vue | 3 +- src/views/system/user/index.vue | 40 ++--- 7 files changed, 131 insertions(+), 173 deletions(-) delete mode 100644 src/views/infra/job/utils.ts diff --git a/src/types/auto-components.d.ts b/src/types/auto-components.d.ts index 480691fc..80a5900f 100644 --- a/src/types/auto-components.d.ts +++ b/src/types/auto-components.d.ts @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' { DictTag: typeof import('./../components/DictTag/src/DictTag.vue')['default'] Echart: typeof import('./../components/Echart/src/Echart.vue')['default'] Editor: typeof import('./../components/Editor/src/Editor.vue')['default'] + ElAutoResizer: typeof import('element-plus/es')['ElAutoResizer'] ElBadge: typeof import('element-plus/es')['ElBadge'] ElButton: typeof import('element-plus/es')['ElButton'] ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup'] @@ -70,6 +71,7 @@ declare module '@vue/runtime-core' { ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] + ElTableV2: typeof import('element-plus/es')['ElTableV2'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] diff --git a/src/views/infra/job/form.vue b/src/views/infra/job/form.vue index 24488fd7..b50bcacb 100644 --- a/src/views/infra/job/form.vue +++ b/src/views/infra/job/form.vue @@ -107,7 +107,7 @@ const formRules = reactive({ const formRef = ref() // 表单 Ref /** 打开弹窗 */ -const openModal = async (type: string, id?: number) => { +const open = async (type: string, id?: number) => { modelVisible.value = true modelTitle.value = t('action.' + type) formType.value = type @@ -122,7 +122,7 @@ const openModal = async (type: string, id?: number) => { } } } -defineExpose({ openModal }) // 提供 openModal 方法,用于打开弹窗 +defineExpose({ open }) // 提供 open 方法,用于打开弹窗 /** cron表达式按钮操作 */ const handleShowCron = () => { diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue index 702b31fe..bc4dfebc 100644 --- a/src/views/infra/job/index.vue +++ b/src/views/infra/job/index.vue @@ -1,19 +1,31 @@ + - +