From dc219ed11aaf7f99d1f26ceff7dd16b1aeb30ee2 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 10 Apr 2022 18:17:16 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E7=AE=A1=E7=90=86demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/element-plus/index.ts | 4 + src/views/system/job/index.vue | 210 ++++++++++++++++++++++-------- src/views/system/job/load.ts | 10 ++ 3 files changed, 167 insertions(+), 57 deletions(-) create mode 100644 src/views/system/job/load.ts diff --git a/src/plugins/element-plus/index.ts b/src/plugins/element-plus/index.ts index 599945939..ac2b24352 100644 --- a/src/plugins/element-plus/index.ts +++ b/src/plugins/element-plus/index.ts @@ -57,6 +57,8 @@ import { ElTree, ElTreeV2, ElPopconfirm, + ElCheckbox, + ElCheckboxGroup, // 指令 ElLoading, ElInfiniteScroll @@ -112,6 +114,8 @@ const components = [ ElTree, ElTreeV2, ElPopconfirm, + ElCheckbox, + ElCheckboxGroup, ElTable, ElTableColumn, ElLink, diff --git a/src/views/system/job/index.vue b/src/views/system/job/index.vue index d84797ea0..5dcfa1cc0 100644 --- a/src/views/system/job/index.vue +++ b/src/views/system/job/index.vue @@ -6,9 +6,11 @@ export default { @@ -75,13 +111,13 @@ onMounted(async () => { :model="form" class="bg-white w-99/100 pl-8 pt-4" > - + - + - + @@ -91,13 +127,23 @@ onMounted(async () => { 重置 - 搜索 + 搜索 - + 岗位列表 @@ -108,59 +154,108 @@ onMounted(async () => { 导出 --> - - - + - - - - 松散 - - - 默认 - - - 紧凑 - - - - + - + + + + + + + 松散 + + + 默认 + + + 紧凑 + + + + + + + + + (buttonRef = e.currentTarget)" + @mouseenter="visible = true" + @mouseleave="visible = false" + /> + + + + + + + + + + @@ -169,12 +264,13 @@ onMounted(async () => { onChange(checked, scope.row)" + @change="checked => onChange(checked, scope)" /> diff --git a/src/views/system/job/load.ts b/src/views/system/job/load.ts new file mode 100644 index 000000000..bd5a7c431 --- /dev/null +++ b/src/views/system/job/load.ts @@ -0,0 +1,10 @@ +export const loadingSvg = ` + + `;
岗位列表