2023-09-20 12:13:02 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="layout-container">
|
|
|
|
|
<!-- 表格 -->
|
|
|
|
|
<host-key-table ref="table"
|
2023-09-20 18:23:28 +08:00
|
|
|
@openView="(e) => drawer.openView(e)"
|
|
|
|
|
@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-key-form-drawer ref="drawer"
|
2023-09-20 18:23:28 +08:00
|
|
|
@added="() => table.addedCallback()"
|
|
|
|
|
@updated="() => table.updatedCallback()" />
|
2023-09-20 12:13:02 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
export default {
|
2023-09-21 13:50:42 +08:00
|
|
|
name: 'assetHostKey'
|
2023-09-20 12:13:02 +08:00
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import HostKeyTable from './components/host-key-table.vue';
|
2023-09-20 17:13:38 +08:00
|
|
|
import HostKeyFormDrawer from './components/host-key-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>
|