From 5c6980b4727b6b1e60a4d5aa30e1fb3cb7833676 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期五, 09 八月 2024 15:42:06 +0800
Subject: [PATCH] 智能体管理和菜单的bug修改

---
 src/views/dmx/IntelligentAgent/index.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/views/dmx/IntelligentAgent/index.vue b/src/views/dmx/IntelligentAgent/index.vue
index 4357e17..4f06ed3 100644
--- a/src/views/dmx/IntelligentAgent/index.vue
+++ b/src/views/dmx/IntelligentAgent/index.vue
@@ -15,7 +15,7 @@
           <a-divider style="margin: 10px 0" />
           <a-row justify="space-between">
             <a-col :span="24">
-              <div style="display: flex; flex-wrap: wrap">
+              <a-spin :loading="loading" style="display: flex; flex-wrap: wrap" :style="{height: documentHeight + 'px'}">
 <!--                <div-->
 <!--                  class="card-wrap"-->
 <!--                  style="cursor: pointer"-->
@@ -56,11 +56,11 @@
                   :key="item.id"
                 >
                   <a-card :bordered="false" hoverable>
-                    <a-avatar :style="{ backgroundColor: '#3370ff' }">
+                    <a-avatar :style="{ backgroundColor: '#5b99da' }">
                       <img
                         :style="{ width: '100%' }"
                         alt="dessert"
-                        :src="item.icon || 'https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/a20012a2d4d5b9db43dfc6a01fe508c0.png~tplv-uwbnlip3yd-webp.webp'"
+                        :src="item.icon || imgSrc"
                       />
                     </a-avatar>
                     <a-switch
@@ -113,7 +113,7 @@
                     </div>
                   </a-card>
                 </div>
-              </div>
+              </a-spin>
             </a-col>
           </a-row>
         </a-card>
@@ -130,11 +130,13 @@
   const { loading, setLoading } = useLoading(true);
   import EventBus from '@/utils/EventBus';
   import AgentConfig from "@/views/dmx/IntelligentAgent/components/agentConfig.vue";
-
+  import logo from "../../../assets/images/model.png";
+  let documentHeight = window.innerHeight - 360
   let count = 5;
   const activeKey = ref(1);
   const addAgents = ref();
   const editAgentKuai = ref();
+  const imgSrc = ref(logo);
   const agentList = ref([
     // {
     //   key: 2,

--
Gitblit v1.8.0