From 25fc929f0624f6ffb7913ba3dd9bfd9b6de18538 Mon Sep 17 00:00:00 2001 From: zzp <34701892@qq.com> Date: Sun, 30 Nov 2025 11:02:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(richedit):=20=E5=B0=86=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=9B=BE=E6=A0=87=E6=9B=BF=E6=8D=A2=E4=B8=BA?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=B9=B6=E8=B0=83=E6=95=B4=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将操作记录从el-icon替换为el-button以提升用户体验 调整权限控制逻辑,增加用户类型判断 添加按钮样式并移除无用样式 --- src/views/pages/richedit/all.vue | 23 +++++++++++++--- src/views/pages/richedit/index.vue | 42 ++++++++++++++++-------------- 2 files changed, 42 insertions(+), 23 deletions(-) diff --git a/src/views/pages/richedit/all.vue b/src/views/pages/richedit/all.vue index 039aaf0..87fc4fe 100644 --- a/src/views/pages/richedit/all.vue +++ b/src/views/pages/richedit/all.vue @@ -376,10 +376,14 @@ --> - - - - + + 操作记录 + @@ -1140,4 +1144,15 @@ onMounted(async () => { display: flex; align-items: center; } + +.record_btn { + font-family: PingFangSC, PingFang SC; + font-weight: 400; + font-size: 14px; + color: #6b6c6f; + line-height: 20px; + text-align: left; + font-style: normal; + cursor: pointer; +} diff --git a/src/views/pages/richedit/index.vue b/src/views/pages/richedit/index.vue index b501674..1734768 100644 --- a/src/views/pages/richedit/index.vue +++ b/src/views/pages/richedit/index.vue @@ -577,14 +577,21 @@ --> - + 操作记录 + + @@ -1023,6 +1030,7 @@ const isScoreShow = ref(false); const curScore = ref(0); const scoreDetail = ref({}); const isAdmin = computed(() => { + console.log('🚀 ~ route.query.admin :', route.query.admin); return route.query.admin == 'superman' || Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01' ? true : false; @@ -1249,6 +1257,7 @@ onMounted(async () => { :deep(.el-button--large) { padding: 0; + height: 35px; } :deep(.is-disabled) { @@ -1378,23 +1387,18 @@ onMounted(async () => { align-items: center; } -:deep(.el-table__expand-icon .el-icon-arrow-right:before) { - background: url('../../../../assets/images/文件夹未展开.png') no-repeat; - - content: ''; - - display: block; - - width: 16px; - - height: 16px; - - font-size: 16px; - - background-size: 16px; -} - .el-button + .el-button { margin-left: 0px; } + +.record_btn { + font-family: PingFangSC, PingFang SC; + font-weight: 400; + font-size: 14px; + color: #6b6c6f; + line-height: 20px; + text-align: left; + font-style: normal; + cursor: pointer; +}