添加 主机列表页面.

This commit is contained in:
lijiahang
2023-09-11 16:33:57 +08:00
parent a398be9148
commit 23d9063ea4
10 changed files with 639 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
<template>
<div class="layout-container">
<!-- 表格 -->
<host-table ref="table"
@openAdd="() => modal.openAdd()"
@openUpdate="(e) => modal.openUpdate(e)" />
<!-- 添加修改模态框 -->
<host-form-modal ref="modal"
@added="() => table.addedCallback()"
@updated="() => table.updatedCallback()" />
</div>
</template>
<script lang="ts">
export default {
name: 'assetHost'
};
</script>
<script lang="ts" setup>
import HostTable from './components/host-table.vue';
import HostFormModal from './components/host-form-modal.vue';
import { ref } from 'vue';
const table = ref();
const modal = ref();
</script>
<style lang="less" scoped>
</style>