From 7b8834f4eddd7aaa0fefadaaeaf92954c114a966 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期四, 22 八月 2024 11:36:39 +0800
Subject: [PATCH] agent会话修改

---
 src/views/sessionManager/components/agentSession.vue |   18 +++++++-
 src/views/sessionManager/index.vue                   |   79 +++++++++++++++++++++++++++------------
 2 files changed, 70 insertions(+), 27 deletions(-)

diff --git a/src/views/sessionManager/components/agentSession.vue b/src/views/sessionManager/components/agentSession.vue
index 0c25dda..d0ee6a8 100644
--- a/src/views/sessionManager/components/agentSession.vue
+++ b/src/views/sessionManager/components/agentSession.vue
@@ -141,9 +141,8 @@
                   maxRows: 5,
                 }"
       />
-      <div style="height: 40px"></div>
-      <div class="btn-send">
-        <!-- <icon-send size="32" /> -->
+      <div style="width: 100%;display: flex;justify-content: space-between">
+        <span></span>
         <a-button
           :disabled="chatDis"
           @click="sentClick"
@@ -155,6 +154,19 @@
         </a-button
         >
       </div>
+<!--      <div class="btn-send">-->
+<!--        &lt;!&ndash; <icon-send size="32" /> &ndash;&gt;-->
+<!--        <a-button-->
+<!--          :disabled="chatDis"-->
+<!--          @click="sentClick"-->
+<!--          type="text"-->
+<!--          style="border-radius: 24px"-->
+<!--          :loading="loading"-->
+<!--        >-->
+<!--          <icon-send size="32" style="color: #0960bd;"/>-->
+<!--        </a-button-->
+<!--        >-->
+<!--      </div>-->
     </div>
     <a-modal v-model:visible="visible" title="淇敼鍚嶇О" @before-open="handleOpened" @cancel="handleCancel" :footer="false" title-align="start">
       <a-form ref="formRef" :rules="rules" :model="agentObj" @submit="handleSubmit" >
diff --git a/src/views/sessionManager/index.vue b/src/views/sessionManager/index.vue
index 3404ffb..d37f15d 100644
--- a/src/views/sessionManager/index.vue
+++ b/src/views/sessionManager/index.vue
@@ -227,8 +227,27 @@
                   maxRows: 5,
                 }"
               />
-
-              <div class="btn-send">
+              <div style="width: 100%;display: flex;justify-content: space-between">
+                <a-button
+                  :disabled="onFileSelectedLoading"
+                  type="text"
+                  style="border-radius: 24px"
+                >
+                  <icon-attachment
+                    size="28"
+                    @click="selectFile"
+                    style="color: #0960bd"
+                  />
+                  <input
+                    ref="fileInput"
+                    type="file"
+                    style="display: none"
+                    @change="onFileSelected"
+                  />
+                </a-button>
+                  <span
+                    style="cursor: pointer;margin-left: 20px;">
+                </span>
                 <a-button
                   :disabled="chatDis"
                   @click="sentClick"
@@ -239,6 +258,17 @@
                   <icon-send size="32" style="color: #0960bd" />
                 </a-button>
               </div>
+<!--              <div class="btn-send">-->
+<!--                <a-button-->
+<!--                  :disabled="chatDis"-->
+<!--                  @click="sentClick"-->
+<!--                  type="text"-->
+<!--                  style="border-radius: 24px"-->
+<!--                  :loading="loading"-->
+<!--                >-->
+<!--                  <icon-send size="32" style="color: #0960bd" />-->
+<!--                </a-button>-->
+<!--              </div>-->
             </div>
             <!--            <div style="margin-top: 0px">-->
             <!--              <a-upload-->
@@ -253,27 +283,27 @@
             <!--                </template>-->
             <!--              </a-upload>-->
             <!--            </div>-->
-            <span
-              style="
-                position: absolute;
-                top: 94px;
-                left: 20px;
-                z-index: 999;
-                cursor: pointer;
-              "
-            >
-              <icon-attachment
-                size="28"
-                @click="selectFile"
-                style="color: #0960bd"
-              />
-              <input
-                ref="fileInput"
-                type="file"
-                style="display: none"
-                @change="onFileSelected"
-              />
-            </span>
+<!--            <span-->
+<!--              style="-->
+<!--                position: absolute;-->
+<!--                top: 94px;-->
+<!--                left: 20px;-->
+<!--                z-index: 999;-->
+<!--                cursor: pointer;-->
+<!--              "-->
+<!--            >-->
+<!--              <icon-attachment-->
+<!--                size="28"-->
+<!--                @click="selectFile"-->
+<!--                style="color: #0960bd"-->
+<!--              />-->
+<!--              <input-->
+<!--                ref="fileInput"-->
+<!--                type="file"-->
+<!--                style="display: none"-->
+<!--                @change="onFileSelected"-->
+<!--              />-->
+<!--            </span>-->
             <div class="uploadFileList">
               <div
                 class="files"
@@ -283,11 +313,12 @@
               >
                 <a-comment
                   :author="item.name"
-                  :content="item.size + ''"
+                  :content="(item.size/1024).toFixed(2) + 'K'"
                   style="
                     background: var(--color-bg-2);
                     padding: 10px;
                     border-radius: 10px;
+                    font-size: 12px;
                   "
                 >
                   <template #avatar>

--
Gitblit v1.8.0