瀏覽代碼

feat: 修改log表格不能正确展示tooltip bug

zhouyuhao 6 月之前
父節點
當前提交
a31e07a10f

+ 0 - 1
src/views/AIApiLog/src/AIApiLog.vue

@@ -179,7 +179,6 @@ const DateChange = (date: any) => {
   margin-right: 8px;
 }
 .dashboard {
-  z-index: 2014;
   position: relative;
   background-color: var(--color-mode);
 }

+ 2 - 1
src/views/AIApiLog/src/components/TableView/src/TableView.vue

@@ -22,7 +22,8 @@ const handleColumns = (columns: any, status?: string) => {
       title: item.title,
       field: item.field,
       sortable: true,
-      minWidth: 120
+      minWidth: 120,
+      showOverflow: true
     }
     // 设置插槽
     if (item.type === 'status' && status !== 'all') {

+ 0 - 1
src/views/ChatLog/src/ChatLog.vue

@@ -258,7 +258,6 @@ const openDialog = () => {
   margin-right: 8px;
 }
 .dashboard {
-  z-index: 2014;
   position: relative;
   background-color: var(--color-mode);
 }

+ 5 - 62
src/views/Layout/src/components/Menu/MenuView.vue

@@ -10,64 +10,7 @@ const userStore = useUserStore()
 
 const isCollapse = defineModel<boolean>()
 
-const menuList = ref([
-  {
-    index: '1',
-    label: 'Dashboard',
-    icon: 'icon_data_fill_b',
-    path: '/dashboard'
-  },
-  {
-    index: '2',
-    label: 'Booking',
-    icon: 'icon_booking__fill_b',
-    path: '/booking'
-  },
-  {
-    index: '3',
-    label: 'Tracking',
-    icon: 'icon_tracking__fill_b',
-    path: '/tracking'
-  },
-  {
-    index: '4',
-    label: 'System Management',
-    icon: 'icon_system__management_fill_b',
-    type: 'list',
-    children: [
-      {
-        index: '4-1',
-        label: 'System Message',
-        path: '/system-message'
-      },
-      {
-        index: '4-2',
-        label: 'System Settings',
-        path: '/SystemSettings'
-      },
-      {
-        index: '4-3',
-        label: 'Operation Log',
-        path: '/Operationlog'
-      },
-      {
-        index: '4-4',
-        label: 'Chat Log',
-        path: '/chat-log'
-      },
-      {
-        index: '4-5',
-        label: 'AI API Log',
-        path: '/ai-api-log'
-      },
-      {
-        index: '4-6',
-        label: 'Prompt Configuration',
-        path: '/PromptConfiguration'
-      }
-    ]
-  }
-])
+const menuList = ref()
 watch(
   () => userStore.userInfo?.uname,
   () => {
@@ -81,7 +24,7 @@ const getMenuList = () => {
     }
   })
 }
-// getMenuList()
+getMenuList()
 //监听窗口大小
 const handler = () => {
   return (() => {
@@ -135,10 +78,10 @@ router.afterEach(() => {
 // 路由跳转函数
 const changeRouter = (path: any) => {
   console.log(path)
-  if(path == '/PromptConfiguration') {
-    emitter.emit('checkPrompt');
+  if (path == '/PromptConfiguration') {
+    emitter.emit('checkPrompt')
   } else {
-    emitter.emit('checknoPrompt');
+    emitter.emit('checknoPrompt')
   }
   if (sessionStorage.getItem('searchTableQeury')) {
     sessionStorage.removeItem('searchTableQeury')