This commit is contained in:
zlwu committed 2026-07-05 10:07:24 +08:00
1 parent 33c038b8d9
commit 54b27a3f0e
253 files changed
+30060 -14298

No files matched your search

@@ -0,0 +1,42 @@
<template>
<div class="dlg-view-section dlg-view-section-tabs">
<el-tabs v-model="activeTab" class="dlg-view-flow-tabs">
<el-tab-pane label="审批进度" name="flow">
<div class="flow-scroll">
<ApprovalFlowView :nodes="nodes" :loading="loading" />
</div>
</el-tab-pane>
<el-tab-pane label="审批历史" name="history">
<div class="flow-scroll">
<ApprovalHistoryView :items="history" :loading="loading" />
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script setup lang="ts">
import { ref, watch } from 'vue'
import ApprovalFlowView from './ApprovalFlowView.vue'
import ApprovalHistoryView from './ApprovalHistoryView.vue'
const props = withDefaults(
defineProps<{
nodes: unknown[]
history: unknown[]
loading?: boolean
}>(),
{
loading: false
}
)
const activeTab = ref('flow')
watch(
() => [props.nodes, props.history],
() => {
activeTab.value = 'flow'
}
)
</script>