Files
orion-visor/orion-ops-ui/src/views/asset/host-identity/index.vue

35 lines
868 B
Vue
Raw Normal View History

2023-09-20 12:13:02 +08:00
<template>
<div class="layout-container">
<!-- 表格 -->
<host-identity-table ref="table"
2023-09-20 17:13:38 +08:00
@openAdd="() => drawer.openAdd()"
@openUpdate="(e) => drawer.openUpdate(e)" />
2023-09-20 12:13:02 +08:00
<!-- 添加修改模态框 -->
2023-09-20 17:13:38 +08:00
<host-identity-form-drawer ref="drawer"
@added="() => table.addedCallback()"
@updated="() => table.updatedCallback()" />
2023-09-20 12:13:02 +08:00
</div>
</template>
<script lang="ts">
export default {
name: 'asset-host-identity'
};
</script>
<script lang="ts" setup>
import HostIdentityTable from './components/host-identity-table.vue';
2023-09-20 17:13:38 +08:00
import HostIdentityFormDrawer from './components/host-identity-form-drawer.vue';
2023-09-20 12:13:02 +08:00
import { ref } from 'vue';
const table = ref();
2023-09-20 17:13:38 +08:00
const drawer = ref();
2023-09-20 12:13:02 +08:00
</script>
<style lang="less" scoped>
</style>