1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!-- 引用方法
<c-function-btn :handleStart="handleStart" :handleCheck="handleCheck" :handleSave="handleSave"
></c-function-btn>
-->
<template>
<el-col class="eContainer-func" v-if="!isReview">
<el-button type="primary" size="small" @click="handleStart">提交</el-button>
<el-button type="primary" size="small" @click="handleCheck">检核</el-button>
<el-button type="primary" size="small" @click="handleSave">暂存</el-button>
<el-button type="primary" size="small" @click="handleCancel">退出</el-button>
</el-col>
</template>
<script>
// 反洗钱组件引入
export default {
// 如果需要制裁信息按钮则给组件传 showAml 方法,如果不需要则不传
props: ['handleStart', 'handleCheck', 'handleSave'],
data: function () {
return {
isReview: false,
}
},
created () {
if (this.$route.path.indexOf('review') !== -1) {
this.isReview = true
} else {
this.isReview = false
}
},
methods: {
handleCancel: function () {
this.$confirm('确认退出?', '', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$router.push('/business/home')
}).catch(() => {})
}
}
}
</script>