ソースを参照

fix: 修复样式异常的问题

zhupei@smartai.com 1 年間 前
コミット
5f9c0eabf0

+ 1 - 1
public/i18n/lang-zh.json

@@ -361,7 +361,7 @@
     "btn_cancel": "取消",
     "btn_stop": "停止生成",
 
-    "are_you_sure": "确定删除?",
+    "are_you_sure": "确定删除?",
     "btn_yes": "是",
     "btn_no": "否",
     "del_success": "删除成功",

+ 13 - 1
src/base/theme/theme-dark.css

@@ -1,3 +1,15 @@
-html body[dmx-theme="dark"] {
+html body[dmx-theme='dark'] {
   --bg-color: #333;
+
+  --color-text-1: #1f2022;
+  --color-text-2: #707379;
+  --color-text-3: #a4a8b1;
+
+  --color-bg-1: #fff;
+  /* --color-bg-2: #fff;
+  --color-bg-3: #fff; */
+
+  --color-fill-2: #f0f2f5;
+  /* --color-fill-3: #f0f2f5;
+  --color-fill-4: #f0f2f5; */
 }

+ 0 - 3
src/modules/conversation-content/DialogContent.vue

@@ -53,14 +53,11 @@ const custom_style = computed(() => {
   background-color: var(--color-bg-1);
   color: var(--color-text-1);
   border-radius: 12px;
-  /* padding: 31px; */
 
   padding-top: 25px;
   padding-bottom: 26px;
   padding-left: 30px;
   padding-right: 30px;
-  /* box-shadow: 0 0 5px #dedede; */
-  /* box-shadow: 0 0 5px var(--color-text-4); */
 }
 
 .dialog-chat-answer-content code {

+ 13 - 0
src/modules/conversation-dialog/format-dialog-answer-from-websocket_receive_message.js

@@ -240,6 +240,19 @@ export default function formatDialogAnswerFromWebsocketReceiveMessage(message_st
         };
       }
     }
+
+    if (resDownloadUrl) {
+      // 报表合并
+      const real_url = decodeURIComponent(resDownloadUrl);
+
+      const file_url_arr = decodeURIComponent(resDownloadUrl).split('/');
+      const file_name = file_url_arr[file_url_arr.length - 1];
+
+      currentMsg.client_custom_linked_download_files = {
+        file_name: file_name,
+        file_url: real_url
+      };
+    }
   }
 
   if (resType === 'system') {

+ 2 - 1
src/modules/conversation-dialog/format-dialog-send-options.js

@@ -13,7 +13,8 @@ export default function formatDialogSendOptions(text, file_list, menu_id) {
   switch (menu_id) {
     case 1:
       // 报表合并
-      send_data = '合并Excel';
+      // send_data = '合并Excel';
+      send_data = text;
       break;
     case 2:
       // 知识问答

+ 12 - 15
src/modules/conversation-history/BtnHistoryItemDelete.vue

@@ -39,19 +39,13 @@ const handleClick = () => {
   const btn_yes = i18n.t('conversation.btn_yes');
   const btn_no = i18n.t('conversation.btn_no');
 
-  Modal.info({
+  Modal.warning({
     title: msg,
-    okText: btn_yes,
-    cancelText: btn_no,
+    // okText: btn_yes,
+    // cancelText: btn_no,
     hideCancel: false,
-
     'modal-class': 'history-chat-remove-modal',
-
-    // content: '删除后无法恢复'
-    onOk(e) {
-      // console.log('确定');
-      // handleConfirmDelete();
-    },
+    onOk(e) {},
     async onBeforeOk() {
       try {
         const result = await handleConfirmDeleteV2();
@@ -67,9 +61,7 @@ const handleClick = () => {
         return false;
       }
     },
-    onCancel() {
-      // console.log('取消');
-    }
+    onCancel() {}
   });
 };
 
@@ -114,9 +106,8 @@ const handleConfirmDelete = () => {
         api_status.value = 3;
         api_message.value = 'success';
 
-        // Message.success('删除成功');
-        const msg = i18n.t('conversation.del_success');
         // 成功
+        const msg = i18n.t('conversation.del_success');
         Message.success(msg);
 
         emits('deleteSuccess');
@@ -149,6 +140,12 @@ const handleConfirmDelete = () => {
   text-align: left;
 }
 
+.arco-modal.history-chat-remove-modal.arco-modal-simple .arco-modal-header .arco-modal-title .arco-modal-title-icon {
+  display: flex;
+  align-items: center;
+  font-size: 22px;
+}
+
 .arco-modal.history-chat-remove-modal.arco-modal-simple .arco-modal-footer {
   text-align: right;
   margin-top: 0;

+ 0 - 7
src/modules/conversation-history/HistoryItem.vue

@@ -157,8 +157,6 @@ const handleDeleteSuccess = () => {
 }
 
 .conversation-history-item {
-  /* padding: 30px 40px 30px 40px; */
-
   display: flex;
   justify-content: space-between;
   align-items: center;
@@ -174,7 +172,6 @@ const handleDeleteSuccess = () => {
 }
 
 .conversation-history-section-data:hover {
-  /* box-shadow: 0 0 5px var(--color-text-1); */
   box-shadow: 0 0 5px var(--color-text-4);
 }
 .conversation-history-section-data:hover .history-item-time {
@@ -187,8 +184,6 @@ const handleDeleteSuccess = () => {
 .history-item-icon {
   width: 20px;
   height: 20px;
-  /* background-color: #ccc; */
-  /* border-radius: 18px; */
 
   margin-right: 13px;
   cursor: pointer;
@@ -211,8 +206,6 @@ const handleDeleteSuccess = () => {
   line-height: 19.6px;
 
   cursor: pointer;
-
-  /* margin-bottom: 8px; */
 }
 
 .history-item-intro-desc {

+ 7 - 3
src/modules/conversation-history/HistoryTypeDropdown.vue

@@ -113,7 +113,6 @@ onMounted(() => {
 
 <style lang="css" scoped>
 .history-type-btn {
-  /* font-size: 16px; */
   font-size: 14px;
   font-weight: 400;
   line-height: 19.6px;
@@ -141,8 +140,13 @@ onMounted(() => {
 .dropdown-container {
   display: flex;
   align-items: center;
-  padding-top: 3px;
-  padding-bottom: 3px;
+  justify-content: center;
+
+  padding-top: 8px;
+  padding-bottom: 8px;
+
+  max-width: 200px;
+  min-width: 120px;
 }
 .dropdown-item-text {
   font-size: 14px;

+ 2 - 0
src/modules/file-preview/FileUploadPreviewV2.vue

@@ -86,6 +86,8 @@ const file_doc_list = computed(() => {
   display: flex;
   flex-wrap: wrap;
   /* margin-bottom: 5px; */
+
+  justify-content: flex-end;
 }
 .file-image-preview-container {
   display: flex;