Files
dvcp_v2_webapp/packages/extra/AppWorkflowManage/AppWorkflowManage.vue

39 lines
726 B
Vue
Raw Normal View History

2022-08-10 16:58:52 +08:00
<template>
<section class="AppWorkflowManage">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<script>
import List from "./list";
import Add from "./add";
2022-08-10 17:41:42 +08:00
import WorkflowLogs from "./workflowLogs";
2022-08-10 16:58:52 +08:00
export default {
name: "AppWorkflowManage",
2022-08-10 17:41:42 +08:00
components: {WorkflowLogs, Add, List},
2022-08-10 16:58:52 +08:00
label: "工作流管理",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentPage() {
let {hash} = this.$route
2022-08-10 17:41:42 +08:00
return hash == "#add" ? Add :
hash == "#logs" ? WorkflowLogs : List
2022-08-10 16:58:52 +08:00
}
},
created() {
this.dict.load('yesOrNo')
}
}
</script>
<style lang="scss" scoped>
.AppWorkflowManage {
height: 100%;
}
</style>