🔨 执行模板页面.

This commit is contained in:
lijiahangmax
2024-03-08 01:21:27 +08:00
parent 2fd069e1d5
commit 4cef9b358e
15 changed files with 478 additions and 1 deletions

View File

@@ -0,0 +1,47 @@
<template>
<div class="layout-container" v-if="render">
<!-- 列表-表格 -->
<exec-template-table ref="table"
@openAdd="() => drawer.openAdd()"
@openUpdate="(e) => drawer.openUpdate(e)" />
<!-- 添加修改模态框 -->
<exec-template-form-drawer ref="drawer"
@added="modalAddCallback"
@updated="modalUpdateCallback" />
</div>
</template>
<script lang="ts">
export default {
name: 'execTemplate'
};
</script>
<script lang="ts" setup>
import { ref, onBeforeMount } from 'vue';
import ExecTemplateTable from './components/exec-template-table.vue';
import ExecTemplateFormDrawer from './components/exec-template-form-drawer.vue';
const render = ref(false);
const table = ref();
const drawer = ref();
// 添加回调
const modalAddCallback = () => {
table.value.addedCallback();
};
// 修改回调
const modalUpdateCallback = () => {
table.value.updatedCallback();
};
onBeforeMount(async () => {
render.value = true;
});
</script>
<style lang="less" scoped>
</style>