From 58be6027704d53b4410eb6aeb544bc4a8df79070 Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Thu, 11 Dec 2025 17:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=93=8D=E4=BD=9C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=A0=B7=E5=BC=8F,=E6=96=B0=E5=A2=9E=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E9=A2=9C=E8=89=B2=E7=B1=BB=E5=B9=B6=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=88=B0=E6=89=80=E6=9C=89=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/theme/other.scss | 26 +++++++++++++++++++ src/views/customerService/account/index.vue | 4 +-- src/views/customerService/product/index.vue | 6 ++--- src/views/customerService/script/index.vue | 6 ++--- src/views/system/config/index.vue | 12 ++++----- src/views/system/dept/index.vue | 6 ++--- src/views/system/dict/dataList.vue | 8 +++--- src/views/system/dict/index.vue | 14 +++++----- src/views/system/menu/index.vue | 6 ++--- src/views/system/monitor/userOnline/index.vue | 6 ++--- src/views/system/post/index.vue | 4 +-- src/views/system/role/index.vue | 4 +-- src/views/system/user/index.vue | 4 +-- 13 files changed, 66 insertions(+), 40 deletions(-) diff --git a/src/theme/other.scss b/src/theme/other.scss index a0451b8..9995a55 100644 --- a/src/theme/other.scss +++ b/src/theme/other.scss @@ -18,11 +18,37 @@ } } +// 操作按钮固定颜色(不随主题色变化) +.op-btn-add { + color: #67c23a !important; +} + +.op-btn-edit { + color: #409eff !important; +} + +.op-btn-del { + color: #f56c6c !important; +} + [data-theme='dark'] { // textarea - css vars --w-e-textarea-bg-color: var(--el-color-white) !important; --w-e-textarea-color: var(--el-text-color-primary) !important; + // 操作按钮固定颜色(不随主题色变化) + .op-btn-add { + color: #67c23a !important; // 新增 绿色 + } + + .op-btn-edit { + color: #409eff !important; // 修改 蓝色 + } + + .op-btn-del { + color: #f56c6c !important; // 删除 红色 + } + // toolbar - css vars --w-e-toolbar-color: var(--el-text-color-primary) !important; --w-e-toolbar-bg-color: var(--el-color-white) !important; diff --git a/src/views/customerService/account/index.vue b/src/views/customerService/account/index.vue index 15946be..a8d8fcf 100644 --- a/src/views/customerService/account/index.vue +++ b/src/views/customerService/account/index.vue @@ -27,7 +27,7 @@ 查询 - + @@ -72,7 +72,7 @@ diff --git a/src/views/customerService/product/index.vue b/src/views/customerService/product/index.vue index 8c82eeb..35ab69a 100644 --- a/src/views/customerService/product/index.vue +++ b/src/views/customerService/product/index.vue @@ -62,13 +62,13 @@ diff --git a/src/views/customerService/script/index.vue b/src/views/customerService/script/index.vue index 68c11f8..b9f7368 100644 --- a/src/views/customerService/script/index.vue +++ b/src/views/customerService/script/index.vue @@ -20,7 +20,7 @@ 重置 - + 新增话术 @@ -46,10 +46,10 @@ diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index e758f31..8e2d042 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -60,13 +60,13 @@ 重置 - + 新增参数 - + @@ -86,8 +86,8 @@ @@ -179,8 +179,8 @@ export default defineComponent({ const onOpenEditDic = (row: TableDataRow) => { editDicRef.value.openDialog(row); }; - // 删除字典 - const onRowDel = (row: TableDataRow) => { + // 删除参数(row 为空表示批量删除) + const onRowDel = (row?: TableDataRow | null) => { let msg = '你确定要删除所选数据?'; let ids:number[] = [] ; if(row){ diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 931b861..3505dce 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -46,9 +46,9 @@ diff --git a/src/views/system/dict/dataList.vue b/src/views/system/dict/dataList.vue index 96351bf..9c192f3 100644 --- a/src/views/system/dict/dataList.vue +++ b/src/views/system/dict/dataList.vue @@ -46,13 +46,13 @@ 重置 - + 新增字典 - + @@ -77,8 +77,8 @@ diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index fd47b00..7d7fb68 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -48,7 +48,7 @@ > - + @@ -60,13 +60,13 @@ 重置 - + 新增字典 - + @@ -96,8 +96,8 @@ @@ -187,8 +187,8 @@ export default defineComponent({ const onOpenEditDic = (row: TableDataRow) => { editDicRef.value.openDialog(row); }; - // 删除字典 - const onRowDel = (row: TableDataRow) => { + // 删除字典(row 为空表示批量删除) + const onRowDel = (row?: TableDataRow | null) => { let msg = '你确定要删除所选数据?'; let ids:number[] = [] ; if(row){ diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 228558f..4bddafb 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -69,9 +69,9 @@ diff --git a/src/views/system/monitor/userOnline/index.vue b/src/views/system/monitor/userOnline/index.vue index 6743f2e..081b74f 100644 --- a/src/views/system/monitor/userOnline/index.vue +++ b/src/views/system/monitor/userOnline/index.vue @@ -22,7 +22,7 @@ 重置 - + @@ -42,7 +42,7 @@ @@ -122,7 +122,7 @@ export default defineComponent({ getList() }; // 删除岗位 - const onRowDel = (row: TableData) => { + const onRowDel = (row?: TableData | null) => { let msg = '你确定要强制退出用户登录?'; let ids:number[] = [] ; if(row){ diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 3362714..36542de 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -53,8 +53,8 @@ diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 7076bc9..440f8ff 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -42,10 +42,10 @@ diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 9762058..b84acdd 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -119,8 +119,8 @@