From 8fc16c6f29bd098598a03e8306788d9b3d2a60ba Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期二, 27 八月 2024 16:04:41 +0800
Subject: [PATCH] agent

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

diff --git a/src/views/dmx/model/components/addTableName.vue b/src/views/dmx/model/components/addTableName.vue
index aee630a..e560d56 100644
--- a/src/views/dmx/model/components/addTableName.vue
+++ b/src/views/dmx/model/components/addTableName.vue
@@ -27,8 +27,9 @@
         >
           <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>
       </a-form-item>
@@ -42,6 +43,7 @@
         <a-textarea
           v-model="form.tags"
           placeholder="璇疯緭鍏ユā鍨嬫弿杩�"
+          :max-length="50"
           allow-clear
         />
       </a-form-item>
@@ -84,7 +86,7 @@
     computed,
   } from 'vue';
   import {
-    modelmyLlms,
+    getFactories,
     addLlmFactory,
     getLlmDetail,
     editLlmFactory,
@@ -161,7 +163,7 @@
           })
             .then((resData) => {
               if ((resData as any).code === 200) {
-                emit('refresh-parent');
+                emit('refresh-parent',form.name);
                 addTabVisible.value = false;
               }
             })
@@ -176,7 +178,7 @@
           })
             .then((resData) => {
               if ((resData as any).code === 200) {
-                emit('refresh-parent');
+                emit('refresh-parent', form.name);
                 addTabVisible.value = false;
                 Message.success('娣诲姞鎴愬姛');
               }
@@ -232,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