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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
| <template>
| <div class="success">
| <el-dialog
| title=""
| :visible.sync="dialogVisible"
| width="300px"
| center
| :close-on-click-modal='false'
| @close="cancel">
| <div class="message">
| <img src="../../../assets/images/success.png" alt="">
| <p>提交成功</p>
| </div>
| <span slot="footer" class="dialog-footer">
| <el-button size="small" plain @click="confirm">确定</el-button>
| </span>
| </el-dialog>
| </div>
| </template>
| <script>
| import { getStorage } from '@/utils/storage'
| export default {
| props:['visible'],
| data () {
| return {
|
| }
| },
| computed: {
| dialogVisible:{
| get(){
| return this.visible
| },
| set(){}
| }
| },
| methods: {
| cancel(){
| this.$emit('closeDialog',false)
| },
| confirm(){
| this.$store.commit("SET_applyMenu", '');
| this.$router.replace({path:this.$store.state.product.editBackRoute})
| }
| }
| }
| </script>
| <style lang="stylus">
| .success
| .message
| text-align center
| padding-top 40px
| >p
| margin 0
| padding 0
| height auto
| font-size 18px
| line-height 22px
| font-weight 500
| color #222222
| img
| width:68px
| height 68px
| margin-bottom 12px
| .el-dialog__header
| padding:0
| .el-dialog__headerbtn
| top:12px
| .el-dialog__body
| padding 10px 20px 50px
| .el-dialog__footer
| .el-button
| width 120px
| </style>
|
|