index.tsx 1009 B

1234567891011121314151617181920212223242526272829303132
  1. import OHeader from '@/components/o-header'
  2. import OSticky from '@/components/o-sticky'
  3. import { Tabs, Tab } from 'vant'
  4. import { defineComponent, reactive, ref } from 'vue'
  5. import styles from './index.module.less'
  6. import { useRouter } from 'vue-router'
  7. import WaitApproval from './components/wait-approval'
  8. import EndApproval from './components/end-approval'
  9. const activeName = ref('wait')
  10. export default defineComponent({
  11. name: 'approval-manage',
  12. setup() {
  13. const router = useRouter()
  14. const state = reactive({})
  15. return () => (
  16. <>
  17. <OSticky position="top" background="#F8F8F8">
  18. <OHeader isBack={true}></OHeader>
  19. <Tabs v-model:active={activeName.value} class={styles.approvalTab}>
  20. <Tab name="wait" title="待审批">
  21. <WaitApproval></WaitApproval>
  22. </Tab>
  23. <Tab name="end" title="已完成">
  24. <EndApproval></EndApproval>
  25. </Tab>
  26. </Tabs>
  27. </OSticky>
  28. </>
  29. )
  30. }
  31. })