From 6877c9caa25162e570a3e2a99a5b2ce3ef88368b Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 13 四月 2026 13:48:37 +0800
Subject: [PATCH] #页面优化

---
 rsf-design/src/views/system/dict-type/dictTypeTable.columns.js |   48 ++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 38 insertions(+), 10 deletions(-)

diff --git a/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js b/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js
index a0c5190..4211382 100644
--- a/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js
+++ b/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js
@@ -3,7 +3,15 @@
 import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue'
 import { $t } from '@/locales'
 
-export function createDictTypeTableColumns({ handleView, handleEdit, handleDelete, t = $t }) {
+export function createDictTypeTableColumns({
+  handleView,
+  handleEdit,
+  handleDelete,
+  handleManageData,
+  t = $t
+}) {
+  const hasStandaloneView = !handleManageData && handleView
+
   return [
     {
       prop: 'code',
@@ -29,7 +37,11 @@
       label: t('table.status'),
       width: 100,
       formatter: (row) =>
-        h(ElTag, { type: row.statusType, effect: 'light' }, () => row.statusText || t('common.placeholder.empty'))
+        h(
+          ElTag,
+          { type: row.statusType, effect: 'light' },
+          () => row.statusText || t('common.placeholder.empty')
+        )
     },
     {
       prop: 'updateByLabel',
@@ -46,19 +58,35 @@
     {
       prop: 'operation',
       label: t('table.operation'),
-      width: handleDelete ? 160 : 120,
+      width: handleDelete ? (hasStandaloneView ? 200 : 240) : hasStandaloneView ? 160 : 200,
       align: 'center',
       formatter: (row) => {
-        const buttons = [
-          h(ArtButtonTable, {
-            type: 'view',
-            onClick: () => handleView(row)
-          }),
+        const buttons = []
+
+        if (handleManageData) {
+          buttons.push(
+            h(ArtButtonTable, {
+              type: 'view',
+              onClick: () => handleManageData(row)
+            })
+          )
+        }
+
+        if (hasStandaloneView) {
+          buttons.push(
+            h(ArtButtonTable, {
+              type: 'view',
+              onClick: () => handleView(row)
+            })
+          )
+        }
+
+        buttons.push(
           h(ArtButtonTable, {
             type: 'edit',
             onClick: () => handleEdit(row)
           })
-        ]
+        )
 
         if (handleDelete) {
           buttons.push(
@@ -69,7 +97,7 @@
           )
         }
 
-        return h('div', { class: 'flex justify-center' }, buttons)
+        return h('div', { class: 'flex items-center justify-center gap-2' }, buttons)
       }
     }
   ]

--
Gitblit v1.9.1