查看OA请假返回流程详情
parent
c5cb59f4ba
commit
f63bccd1fe
|
@ -2,6 +2,7 @@
|
||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<!-- 详情 -->
|
<!-- 详情 -->
|
||||||
<Descriptions :schema="allSchemas.detailSchema" :data="formData" />
|
<Descriptions :schema="allSchemas.detailSchema" :data="formData" />
|
||||||
|
<el-button @click="routerReturn" type="primary">返回</el-button>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -9,7 +10,8 @@
|
||||||
// 业务相关的 import
|
// 业务相关的 import
|
||||||
import * as LeaveApi from '@/api/bpm/leave'
|
import * as LeaveApi from '@/api/bpm/leave'
|
||||||
import { allSchemas } from '@/views/bpm/oa/leave/leave.data'
|
import { allSchemas } from '@/views/bpm/oa/leave/leave.data'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
|
|
||||||
|
@ -22,6 +24,10 @@ const formData = ref({
|
||||||
reason: undefined
|
reason: undefined
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const routerReturn = () => {
|
||||||
|
router.back()
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
id.value = query.id
|
id.value = query.id
|
||||||
if (!id.value) {
|
if (!id.value) {
|
||||||
|
|
Loading…
Reference in New Issue