From 7067723946f837d0468814c28fe4971b7c331d11 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期六, 24 八月 2024 20:12:28 +0800
Subject: [PATCH] 知识库列表修改

---
 src/views/dmx/model/components/addTableName.vue |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/views/dmx/model/components/addTableName.vue b/src/views/dmx/model/components/addTableName.vue
index 7ae55bd..e560d56 100644
--- a/src/views/dmx/model/components/addTableName.vue
+++ b/src/views/dmx/model/components/addTableName.vue
@@ -27,8 +27,8 @@
         >
           <a-option
             v-for="(item, index) in modalList"
-            :value="index"
-            :label="index"
+            :value="item.name"
+            :label="item.name"
             :disabled="item.added"
           ></a-option>
         </a-select>
@@ -43,6 +43,7 @@
         <a-textarea
           v-model="form.tags"
           placeholder="璇疯緭鍏ユā鍨嬫弿杩�"
+          :max-length="50"
           allow-clear
         />
       </a-form-item>
@@ -85,7 +86,7 @@
     computed,
   } from 'vue';
   import {
-    modelmyLlms,
+    getFactories,
     addLlmFactory,
     getLlmDetail,
     editLlmFactory,
@@ -162,7 +163,7 @@
           })
             .then((resData) => {
               if ((resData as any).code === 200) {
-                emit('refresh-parent');
+                emit('refresh-parent',form.name);
                 addTabVisible.value = false;
               }
             })
@@ -177,7 +178,7 @@
           })
             .then((resData) => {
               if ((resData as any).code === 200) {
-                emit('refresh-parent');
+                emit('refresh-parent', form.name);
                 addTabVisible.value = false;
                 Message.success('娣诲姞鎴愬姛');
               }
@@ -233,7 +234,7 @@
   };
   const modalList = ref([]);
   const queryModel = async () => {
-    const res = await modelmyLlms();
+    const res = await getFactories();
     modalList.value = res.data;
   };
   queryModel();

--
Gitblit v1.8.0