|  |  |  | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | <a-textarea | 
|---|
|  |  |  | v-model="form.tags" | 
|---|
|  |  |  | placeholder="请输入模型描述" | 
|---|
|  |  |  | :max-length="50" | 
|---|
|  |  |  | allow-clear | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </a-form-item> | 
|---|
|  |  |  | 
|---|
|  |  |  | computed, | 
|---|
|  |  |  | } from 'vue'; | 
|---|
|  |  |  | import { | 
|---|
|  |  |  | modelmyLlms, | 
|---|
|  |  |  | getFactories, | 
|---|
|  |  |  | addLlmFactory, | 
|---|
|  |  |  | getLlmDetail, | 
|---|
|  |  |  | editLlmFactory, | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then((resData) => { | 
|---|
|  |  |  | if ((resData as any).code === 200) { | 
|---|
|  |  |  | emit('refresh-parent'); | 
|---|
|  |  |  | emit('refresh-parent', form.name); | 
|---|
|  |  |  | addTabVisible.value = false; | 
|---|
|  |  |  | Message.success('添加成功'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | const modalList = ref([]); | 
|---|
|  |  |  | const queryModel = async () => { | 
|---|
|  |  |  | const res = await modelmyLlms(); | 
|---|
|  |  |  | const res = await getFactories(); | 
|---|
|  |  |  | modalList.value = res.data; | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | queryModel(); | 
|---|