zhangxiao
2024-08-16 087ef389e0e16a0049152375b5058dd029f8e78f
fix: 模型修改
2个文件已修改
13 ■■■■■ 已修改文件
src/views/dmx/model/components/addTableName.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/model/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/model/components/addTableName.vue
@@ -178,7 +178,7 @@
          })
            .then((resData) => {
              if ((resData as any).code === 200) {
                emit('refresh-parent');
                emit('refresh-parent', form.name);
                addTabVisible.value = false;
                Message.success('添加成功');
              }
src/views/dmx/model/index.vue
@@ -306,6 +306,7 @@
    if ((res as any).code == 200) {
      // Reflect.deleteProperty(tabData.value, tabKey.value);
      queryModel();
      Message.success('删除成功');
    }
  };
@@ -342,9 +343,9 @@
    const res = await modelmyLlms();
    modalList.value = res.data;
    loading.value = true;
    tabData.value = Object.assign({}, tabData.value, res.data);
    tabData.value = filterObject(tabData.value, 1);
    // tabData.value = Object.assign({}, tabData.value, res.data);
    tabData.value = filterObject(res.data, 1);
    tabKey.value = Object.keys(tabData.value)[0];
    await getFactory();
  };
@@ -359,8 +360,10 @@
      }, {});
  };
  const refreshParentMethod = () => {
    queryModel();
  const refreshParentMethod = async (name) => {
    // console.log(name, 678776);
    await queryModel();
    // tabKey.value = name;
    // 这里执行需要的操作
  };