liudong
2024-08-24 7067723946f837d0468814c28fe4971b7c331d11
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();