添加主机配置操作.

This commit is contained in:
lijiahang
2023-09-20 10:40:59 +08:00
parent f2c4190a5c
commit 9c80c8536a
11 changed files with 9207 additions and 8 deletions

View File

@@ -3,11 +3,14 @@
<!-- 表格 -->
<host-table ref="table"
@openAdd="() => modal.openAdd()"
@openUpdate="(e) => modal.openUpdate(e)" />
@openUpdate="(e) => modal.openUpdate(e)"
@openUpdateConfig="(e) => config.open(e)" />
<!-- 添加修改模态框 -->
<host-form-modal ref="modal"
@added="() => table.addedCallback()"
@updated="() => table.updatedCallback()" />
<!-- 配置面板 -->
<host-config-drawer ref="config" />
</div>
</template>
@@ -22,9 +25,11 @@
import HostFormModal from './components/host-form-modal.vue';
import { onUnmounted, ref } from 'vue';
import { useCacheStore } from '@/store';
import HostConfigDrawer from '@/views/asset/host/components/host-config-drawer.vue';
const table = ref();
const modal = ref();
const config = ref();
// 卸载时清除 tags cache
onUnmounted(() => {