From 64920403797a80149ac1ba2cd2426ad5db044bec Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期一, 26 八月 2024 14:58:01 +0800
Subject: [PATCH] fix: 修改settings 备注
---
src/views/dmx/model/components/addTableName.vue | 38 +++++++++++++++++++++++++++++---------
1 files changed, 29 insertions(+), 9 deletions(-)
diff --git a/src/views/dmx/model/components/addTableName.vue b/src/views/dmx/model/components/addTableName.vue
index c86be66..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,16 +43,22 @@
<a-textarea
v-model="form.tags"
placeholder="璇疯緭鍏ユā鍨嬫弿杩�"
+ :max-length="50"
allow-clear
/>
</a-form-item>
- <a-form-item field="section" label="妯″瀷鍥剧墖">
- <a-space direction="vertical" :style="{ width: '100%' }">
+ <a-form-item field="logo" label="妯″瀷鍥剧墖">
+ <a-space
+ v-model="form.logo"
+ direction="vertical"
+ :style="{ width: '100%' }"
+ >
<Upload
:action="uploadAction"
:limit="1"
:url="form.urlS"
+ @handleRemove="deleteRemove"
@update:fileList="updateFileList"
@success="handleSuccess"
></Upload>
@@ -79,7 +86,7 @@
computed,
} from 'vue';
import {
- modelmyLlms,
+ getFactories,
addLlmFactory,
getLlmDetail,
editLlmFactory,
@@ -128,10 +135,16 @@
message: '妯″瀷妗嗘灦涓嶅厑璁镐负绌�',
},
],
- describe: [
+ tags: [
{
required: true,
message: '鎻忚堪涓嶅厑璁镐负绌�',
+ },
+ ],
+ logo: [
+ {
+ required: true,
+ message: '妯″瀷鍥剧墖涓嶈兘涓虹┖',
},
],
};
@@ -150,7 +163,7 @@
})
.then((resData) => {
if ((resData as any).code === 200) {
- emit('refresh-parent');
+ emit('refresh-parent',form.name);
addTabVisible.value = false;
}
})
@@ -165,7 +178,7 @@
})
.then((resData) => {
if ((resData as any).code === 200) {
- emit('refresh-parent');
+ emit('refresh-parent', form.name);
addTabVisible.value = false;
Message.success('娣诲姞鎴愬姛');
}
@@ -194,8 +207,15 @@
fileList.value = newFileList;
};
+ const deleteRemove = () => {
+ form.logo = '';
+ uploadUrl.value = [];
+ imageUrls.value = [];
+ };
+
const handleSuccess = (urls) => {
uploadUrl.value = urls;
+ form.logo = urls[0];
const urlsArr = urls.map((url) => {
return httpUrl + url;
@@ -214,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