From 31a48e3a3c7d4e37a05ef43fa4b65c84989cc353 Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期四, 29 八月 2024 09:26:25 +0800
Subject: [PATCH] select role
---
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