From 6352c33a2dfee1ff939a72335d6e788550b65baf Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期一, 12 八月 2024 14:56:10 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web

---
 src/views/dmx/IntelligentAgent/components/agentConfig.vue |   40 +++++++++++++++++++++++++++-------------
 1 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/src/views/dmx/IntelligentAgent/components/agentConfig.vue b/src/views/dmx/IntelligentAgent/components/agentConfig.vue
index c23aa64..bdebaa6 100644
--- a/src/views/dmx/IntelligentAgent/components/agentConfig.vue
+++ b/src/views/dmx/IntelligentAgent/components/agentConfig.vue
@@ -51,7 +51,7 @@
                     <Upload
                       :action="uploadAction"
                       :limit="1"
-                      :url="form.icon"
+                      :url="form.icon ? httpUrl + form.icon : ''"
                       @update:fileList="updateFileList"
                       @success="handleSuccess"
                     ></Upload>
@@ -222,31 +222,31 @@
                 <a-form-item label="娓╁害">
                   <a-switch size="small" v-model="temperature" />
                   <a-space direction="vertical" size="large">
-                    <a-slider :disabled="!temperature" v-model="form.llm_setting.temperature" :step="0.01" :min="0" :max="1" :style="{ width: '350px', marginLeft: '20px' }" show-input />
+                    <a-slider :disabled="!temperature" v-model="form.llm_setting.temperature" :step="0.01" :min="0" :max="1" :style="{ width: '350px', marginLeft: '20px',display: 'flex' }" show-input />
                   </a-space>
                 </a-form-item>
                 <a-form-item label="top P">
                   <a-switch  size="small" v-model="top_p"  />
                   <a-space direction="vertical" size="large">
-                    <a-slider :disabled="!top_p" v-model="form.llm_setting.top_p" :step="0.01" :min="0" :max="1"  :style="{ width: '350px', marginLeft: '20px' }" show-input />
+                    <a-slider :disabled="!top_p" v-model="form.llm_setting.top_p" :step="0.01" :min="0" :max="1"  :style="{ width: '350px', marginLeft: '20px',display: 'flex' }" show-input />
                   </a-space>
                 </a-form-item>
                 <a-form-item label="鍑哄腑澶勭綒">
                   <a-switch size="small" v-model="presence_penalty"  />
                   <a-space direction="vertical" size="large">
-                    <a-slider :disabled="!presence_penalty" v-model="form.llm_setting.presence_penalty" :step="0.01" :min="0" :max="1"  :style="{ width: '350px', marginLeft: '20px' }" show-input />
+                    <a-slider :disabled="!presence_penalty" v-model="form.llm_setting.presence_penalty" :step="0.01" :min="0" :max="1"  :style="{ width: '350px', marginLeft: '20px',display: 'flex' }" show-input />
                   </a-space>
                 </a-form-item>
                 <a-form-item label="棰戠巼澶勭綒">
                   <a-switch size="small" v-model="frequency_penalty"  />
                   <a-space direction="vertical" size="large">
-                    <a-slider :disabled="!frequency_penalty" v-model="form.llm_setting.frequency_penalty" :step="0.01" :min="0" :max="1"  :style="{ width: '350px', marginLeft: '20px' }" show-input />
+                    <a-slider :disabled="!frequency_penalty" v-model="form.llm_setting.frequency_penalty" :step="0.01" :min="0" :max="1"  :style="{ width: '350px', marginLeft: '20px',display: 'flex' }" show-input />
                   </a-space>
                 </a-form-item>
                 <a-form-item label="鏈�澶oken鏁�">
                   <a-switch size="small" v-model="max_tokens"  />
                   <a-space direction="vertical" size="large">
-                    <a-slider :disabled="!max_tokens" v-model="form.llm_setting.max_tokens"  :min="0" :max="2048"  :style="{ width: '350px', marginLeft: '20px' }" show-input />
+                    <a-slider :disabled="!max_tokens" v-model="form.llm_setting.max_tokens"  :min="0" :max="2048"  :style="{ width: '350px', marginLeft: '20px',display: 'flex' }" show-input />
                   </a-space>
                 </a-form-item>
               </a-form>
@@ -259,7 +259,7 @@
 </template>
 
 <script lang="ts" setup>
-import { onMounted, onBeforeMount, reactive, ref, nextTick } from "vue";
+import { onMounted, onBeforeMount, reactive, ref, nextTick, onUnmounted } from "vue";
 import { kbdocumentupload, queryKbList, queryModelList } from "@/api/kbList";
 import useLoading from "@/hooks/loading";
 import { Message } from "@arco-design/web-vue";
@@ -314,7 +314,8 @@
 let presence_penalty = ref(true);
 let frequency_penalty = ref(true);
 let max_tokens = ref(true);
-
+const httpUrl = localStorage.getItem('httpUrl');
+let avatarShow = ref(false);
 
 const height = ref('calc(500px)');
 const props = defineProps(['typeAngint', 'formData']);
@@ -416,12 +417,20 @@
   formRef.value.resetFields();
   formRef1.value.resetFields();
   formRef2.value.resetFields();
+  nextTick(()=>{
+    if(props.typeAngint=='add'){
+      form.name = "";
+      form.icon = "";
+      form.prompt_config.system = "浣犳槸涓�涓櫤鑳藉姪鎵嬶紝璇锋�荤粨鐭ヨ瘑搴撶殑鍐呭鏉ュ洖绛旈棶棰橈紝璇峰垪涓剧煡璇嗗簱涓殑鏁版嵁璇︾粏鍥炵瓟銆傚綋鎵�鏈夌煡璇嗗簱鍐呭閮戒笌闂鏃犲叧鏃讹紝浣犵殑鍥炵瓟蹇呴』鍖呮嫭鈥滅煡璇嗗簱涓湭鎵惧埌鎮ㄨ鐨勭瓟妗堬紒鈥濊繖鍙ヨ瘽銆�" +
+        "鍥炵瓟闇�瑕佽�冭檻鑱婂ぉ鍘嗗彶銆俓n        浠ヤ笅鏄煡璇嗗簱锛歕n        {knowledge}\n        浠ヤ笂鏄煡璇嗗簱銆�";
 
-  if(props.typeAngint=='add'){
-    form.name = "";
-    form.prompt_config.system = "浣犳槸涓�涓櫤鑳藉姪鎵嬶紝璇锋�荤粨鐭ヨ瘑搴撶殑鍐呭鏉ュ洖绛旈棶棰橈紝璇峰垪涓剧煡璇嗗簱涓殑鏁版嵁璇︾粏鍥炵瓟銆傚綋鎵�鏈夌煡璇嗗簱鍐呭閮戒笌闂鏃犲叧鏃讹紝浣犵殑鍥炵瓟蹇呴』鍖呮嫭鈥滅煡璇嗗簱涓湭鎵惧埌鎮ㄨ鐨勭瓟妗堬紒鈥濊繖鍙ヨ瘽銆�" +
-      "鍥炵瓟闇�瑕佽�冭檻鑱婂ぉ鍘嗗彶銆俓n        浠ヤ笅鏄煡璇嗗簱锛歕n        {knowledge}\n        浠ヤ笂鏄煡璇嗗簱銆�";
-  }
+    }
+    console.log(form,'鏂板缓鏅鸿兘浣撳脊绐�');
+    avatarShow.value = false;
+    setTimeout(() => {
+      avatarShow.value = true;
+    },100);
+  })
 
 };
 
@@ -549,6 +558,11 @@
 onMounted(() => {});
 
 
+onUnmounted(()=>{
+
+})
+
+
 
 
 </script>

--
Gitblit v1.8.0