yinbangzhong
2024-08-27 8fc16c6f29bd098598a03e8306788d9b3d2a60ba
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();