Просмотр исходного кода

智能体管理的测试助手页面的bug修改

liudong 2 лет назад
Родитель
Сommit
2d41342b8d

+ 17 - 5
src/views/dmx/IntelligentAgent/components/sessionAction.vue

@@ -15,7 +15,7 @@
       ref="scrollbar"
       ref="scrollbar"
       id="home"
       id="home"
       class="chat-list"
       class="chat-list"
-      style="width: 90%; overflow: auto; height: 70vh; margin: 0px auto"
+      style="width: 90%; overflow: auto; height: 70vh; margin: 0px auto;"
     >
     >
       <div class="chat-item" v-for="sessionDetail in sessionDetailList">
       <div class="chat-item" v-for="sessionDetail in sessionDetailList">
         <a-comment
         <a-comment
@@ -23,7 +23,7 @@
           avatar="https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
           avatar="https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
         >
         >
           <template #content>
           <template #content>
-            <div :class="{ light: theme === 'light' }">{{
+            <div :class="{ light: theme === 'light' }" style="background-color: var(--color-bg-2);color: var(--color-text-3);border: none;padding: 16px;">{{
                 sessionDetail.content
                 sessionDetail.content
               }}</div>
               }}</div>
           </template>
           </template>
@@ -35,7 +35,7 @@
           <template #content>
           <template #content>
             <a-card
             <a-card
               class="chat-item-answer"
               class="chat-item-answer"
-              style="background-color: rgba(63, 64, 79, 1)"
+              style="background-color: var(--color-bg-2);color: var(--color-text-3);border: none"
             >
             >
               <div :class="{ light: theme === 'light' }">{{
               <div :class="{ light: theme === 'light' }">{{
                   sessionDetail.content
                   sessionDetail.content
@@ -53,7 +53,7 @@
               auto-size
               auto-size
               v-model="displayedText"
               v-model="displayedText"
               class="chat-item-answer"
               class="chat-item-answer"
-              style="background-color: rgba(63, 64, 79, 1)"
+              style="background-color: var(--color-bg-2);color: var(--color-text-3);border: none"
             >
             >
             </a-textarea>
             </a-textarea>
           </template>
           </template>
@@ -231,7 +231,9 @@ watch(
   width: 100%;
   width: 100%;
   display: flex;
   display: flex;
 }
 }
-
+//.light {
+//  color: white !important;
+//}
 .bottom {
 .bottom {
   width: 100%;
   width: 100%;
   position: absolute;
   position: absolute;
@@ -250,4 +252,14 @@ watch(
     line-height: 40px;
     line-height: 40px;
   }
   }
 }
 }
+.chat-list {
+  width: 90%;
+  margin: 0px auto;
+  .chat-item {
+    margin-top: 20px;
+    .chat-item-answer {
+      color: white;
+    }
+  }
+}
 </style>
 </style>

+ 10 - 5
src/views/dmx/knowledgeLib/tool.vue

@@ -149,7 +149,7 @@
             <a-divider style="margin-top: 10px" />
             <a-divider style="margin-top: 10px" />
             <div class="groupMain">
             <div class="groupMain">
               <a-checkbox-group v-model="data" @change="handleChange" >
               <a-checkbox-group v-model="data" @change="handleChange" >
-                <div class="groupList" :style="{background:keyBg=='1'?'#eff8ff':'white'}">
+                <div class="groupList" :class="{groupActive:keyBg=='1',groupNoActive:keyBg!='1'}">
                   <a-checkbox  value="1"></a-checkbox>
                   <a-checkbox  value="1"></a-checkbox>
                   <div class="groupList-content" @click="groupListContentClick('1')" @dblclick="contentClick(1)">
                   <div class="groupList-content" @click="groupListContentClick('1')" @dblclick="contentClick(1)">
                     而 stable version 是最新稳定版,经过充分测试和验证,bug 较少,
                     而 stable version 是最新稳定版,经过充分测试和验证,bug 较少,
@@ -164,7 +164,7 @@
                   </div>
                   </div>
                 </div>
                 </div>
 
 
-                <div class="groupList" :style="{background:keyBg=='2'?'#eff8ff':'white'}">
+                <div class="groupList"  :class="{groupActive:keyBg=='2',groupNoActive:keyBg!='2'}">
                   <a-checkbox  value="1"></a-checkbox>
                   <a-checkbox  value="1"></a-checkbox>
                   <div class="groupList-content" @click="groupListContentClick('2')" @dblclick="contentClick(1)">
                   <div class="groupList-content" @click="groupListContentClick('2')" @dblclick="contentClick(1)">
                     而 stable version 是最新稳定版,经过充分测试和验证,bug 较少,
                     而 stable version 是最新稳定版,经过充分测试和验证,bug 较少,
@@ -403,13 +403,18 @@ onMounted(()=>{
       box-sizing: border-box;
       box-sizing: border-box;
       margin: 0;
       margin: 0;
       padding: 0;
       padding: 0;
-      color: rgba(0, 0, 0, 0.88);
+      color: #2a2a2b;
       font-size: 14px;
       font-size: 14px;
       font-family: Inter;
       font-family: Inter;
       position: relative;
       position: relative;
-
-
     }
     }
   }
   }
 }
 }
+.groupActive{
+  background: #eff8ff;
+}
+.groupNoActive{
+  background: var(--color-bg-1);
+  color: var(--color-text-1);
+}
 </style>
 </style>