Browse Source

fix: 修改bug

zhangxiao 2 years ago
parent
commit
04a191650d

+ 42 - 2
src/views/sessionManager/components/agentSession.vue

@@ -86,6 +86,18 @@
             style="border: none"
           >
           </a-textarea>
+          <!-- <div class="prompt">
+            <ul>
+              <li class="prompt-item" @click="copyText('43234')">
+                <span>
+                  344343klsdjkjksdjkjksdjk就开始大家看数据库登记卡受打击凯撒登记卡受打击凯撒登记卡受打击凯撒的43</span
+                >
+                <span style="margin-left: 20px">
+                  <icon-right />
+                </span>
+              </li>
+            </ul>
+          </div> -->
         </template>
         <template #actions>
           <span
@@ -102,6 +114,7 @@
           >
             <icon-refresh /> 重新生成
           </span>
+          <!-- <span class="action"><icon-to-bottom />下载 </span> -->
         </template>
       </a-comment>
       <a-comment v-else-if="sessionDetail.role === 'last'">
@@ -414,6 +427,10 @@
     }
   };
 
+  const copyText = (text) => {
+    inputMsg.value = text;
+  };
+
   // 历史记录跳转获取agent会话详情
   const querySessionDetail = async (session) => {
     conversation_id.value = session.id;
@@ -661,11 +678,12 @@
     .chatItemAnswer {
       box-sizing: border-box;
       background: #f1f1f1;
-      border-radius: 14px;
+      border-radius: 10px;
+      padding: 5px;
       .light {
         box-sizing: border-box;
         background: #f1f1f1;
-        border-radius: 14px;
+        border-radius: 10px;
       }
     }
     .textItemAnswer {
@@ -781,6 +799,28 @@
       .icon-user-jpg {
         border: 1px solid #d9d9d9;
       }
+      .prompt {
+        ul {
+          margin: 0;
+          padding: 0;
+          display: flex;
+        }
+        ul > li {
+          list-style-type: none;
+        }
+        .prompt-item {
+          display: flex;
+          justify-content: space-between;
+          background-color: #fff;
+          cursor: pointer;
+          border-radius: 8px;
+          padding: 10px;
+          border: #e5e5e5;
+          &:hover {
+            background-color: #eee;
+          }
+        }
+      }
     }
   }
   .header___lEPyH {

+ 47 - 3
src/views/sessionManager/index.vue

@@ -224,10 +224,19 @@
                       style="border: none"
                     >
                     </a-textarea>
-                    <!-- <div v-html="chartText(sessionDetail.content)">
-
-                    </div> -->
                   </a-card>
+                  <!-- <div class="prompt">
+                    <ul>
+                      <li class="prompt-item" @click="copyText('43234')">
+                        <span>
+                          344343klsdjkjksdjkjksdjk就开始大家看数据库登记卡受打击凯撒登记卡受打击凯撒登记卡受打击凯撒的43</span
+                        >
+                        <span style="margin-left: 20px">
+                          <icon-right />
+                        </span>
+                      </li>
+                    </ul>
+                  </div> -->
                 </template>
                 <!-- <div>{{ sessionDetail.role === 'assistant' }}</div> -->
                 <template #actions>
@@ -1203,6 +1212,28 @@
         }
       }
     }
+    .prompt {
+      ul {
+        margin: 0;
+        padding: 0;
+        display: flex;
+      }
+      ul > li {
+        list-style-type: none;
+      }
+      .prompt-item {
+        display: flex;
+        justify-content: space-between;
+        background-color: #fff;
+        cursor: pointer;
+        border-radius: 8px;
+        padding: 10px;
+        border: #e5e5e5;
+        &:hover {
+          background-color: #eee;
+        }
+      }
+    }
 
     .card-btn-1 {
       margin: 8px 15px;
@@ -1346,6 +1377,19 @@
         color: #333;
         margin-top: 4px;
       }
+      :deep(.arco-card-body) {
+        padding: 0;
+        border-radius: 10px;
+      }
+      :deep(.arco-textarea) {
+        padding-top: 10px !important;
+      }
+      :deep(.arco-comment-inner-content) {
+        border-radius: 10px;
+      }
+      :deep(.arco-card-bordered) {
+        border-radius: 10px;
+      }
 
       .icon-user-jpg {
         border: 1px solid #d9d9d9;