|
@@ -1,13 +1,31 @@
|
|
|
<template>
|
|
|
- <IndexPage ref="indexPageRefs" :dataType="1"></IndexPage>
|
|
|
+ <IndexPage ref="indexPageRefs" :dataType="1">
|
|
|
+ <template #actions="{ row }">
|
|
|
+ <m-button text type="danger" @click="onUrgent(row)">加急</m-button>
|
|
|
+ </template>
|
|
|
+ </IndexPage>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import IndexPage from '../components/IndexPage.vue'
|
|
|
+import {
|
|
|
+ getApprovalUrge
|
|
|
+} from '@/api/approval'
|
|
|
export default {
|
|
|
name: 'myOrder',
|
|
|
components: {
|
|
|
IndexPage
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ async onUrgent ({ workFlowInstanceId }) {
|
|
|
+ try {
|
|
|
+ await getApprovalUrge({ workFlowInstanceId })
|
|
|
+ this.$message.success('加急成功')
|
|
|
+ this.$refs.indexPageRefs.onInit()
|
|
|
+ } catch (error) {
|
|
|
+ this.$message.error(error)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|