zhangxiao
2024-08-09 c34c1064ecc13acda3f87ee99e086c6d4ff81421
fix: 优化模型管理
1个文件已修改
45 ■■■■ 已修改文件
src/views/dmx/model/index.vue 45 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/model/index.vue
@@ -27,6 +27,9 @@
                  :title="index"
                  :closable="Object.keys(tabData).length >= 4"
                >
                  <a-scrollbar
                    style="height: calc(100vh - 320px); overflow: auto"
                  >
                  <div
                    style="display: flex; flex-wrap: wrap"
                    class="card_content"
@@ -112,6 +115,7 @@
                      </div>
                    </div>
                  </div>
                  </a-scrollbar>
                </a-tab-pane>
              </a-tabs>
            </a-col>
@@ -198,9 +202,7 @@
  });
  const isDeleteDialogVisible = ref(false); //删除提醒
  const apiUrl = ref('http://127.0.0.1:5173');
  // const httpUrl = import.meta.env.VITE_API_BASE_URL;
  // console.log(apiUrl.value, 777);
  const modalList = ref({});
  const tabKey = ref('key');
  const changeTabs = (val) => {
@@ -309,16 +311,6 @@
    });
    return false;
  };
  // const handleCancel = () => {
  //   formRef.value.resetFields();
  //   visible.value = false;
  // };
  // const handleSubmit = ({ values, errors }) => {
  //   this.$refs.formRef.validate().then((res, a, b) => {
  //     debugger;
  //     console.log('values', values);
  //   });
  // };
  //获取模型列表
  const loading = ref(false);
@@ -459,32 +451,7 @@
  .card-wrap {
    width: 320px;
    height: 350px;
    margin: 30px;
    transition: all 0.3s;
    border: 1px solid var(--color-neutral-3);
    border-radius: 4px;
    &:hover {
      transform: translateY(-4px);
      // box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    }
  }
  .card-wrap {
    width: 320px;
    height: 350px;
    margin: 30px;
    transition: all 0.3s;
    border: 1px solid var(--color-neutral-3);
    border-radius: 4px;
    position: relative;
    &:hover {
      transform: translateY(-4px);
      // box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    }
  }
  .card-wrap {
    width: 320px;
    height: 350px;
    margin: 30px;
    margin: 20px 30px;
    transition: all 0.3s;
    border: 1px solid var(--color-neutral-3);
    border-radius: 4px;