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 @@