style:业务申请
Showing
8 changed files
with
41 additions
and
176 deletions
1 | <template> | ||
2 | <el-dialog :visible.sync="dialogVisible" :width="width" :fullscreen="fullscreen" top="0" :append-to-body="true" | ||
3 | :lock-scroll="true" :close-on-click-modal="false" @close="closeDialog" :key="key" :show-close="false" | ||
4 | :custom-class="isMain ? 'mainCenter dialogBox' : 'contentCenter dialogBox'" :destroy-on-close="true" ref="dialogBox" | ||
5 | id="dialogBox"> | ||
6 | <div slot="title"> | ||
7 | |||
8 | </div> | ||
9 | <div class="dialogBox-content" :style="{ minHeight: scrollerHeight ? scrollerHeight : 'auto' }"> | ||
10 | <slot></slot> | ||
11 | </div> | ||
12 | <div slot="footer" class="dialog_footer" v-if="isButton"> | ||
13 | <el-button @click="closeDialog" v-if="isReset">取消</el-button> | ||
14 | <el-button type="primary" plain @click="submitForm" v-if="isSave" :loading="saveloding"> | ||
15 | {{ saveButton }}</el-button> | ||
16 | </div> | ||
17 | </el-dialog> | ||
18 | </template> | ||
19 | <script> | ||
20 | export default { | ||
21 | props: { | ||
22 | value: { type: Boolean, default: false }, | ||
23 | isMain: { | ||
24 | type: Boolean, | ||
25 | default: false | ||
26 | }, | ||
27 | isButton: { | ||
28 | type: Boolean, | ||
29 | default: true, | ||
30 | }, | ||
31 | width: { | ||
32 | type: String, | ||
33 | default: '70%', | ||
34 | }, | ||
35 | title: { | ||
36 | type: String, | ||
37 | default: '', | ||
38 | }, | ||
39 | isFullscreen: { | ||
40 | type: Boolean, | ||
41 | default: true, | ||
42 | }, | ||
43 | isSave: { | ||
44 | type: Boolean, | ||
45 | default: true, | ||
46 | }, | ||
47 | saveButton: { | ||
48 | type: String, | ||
49 | default: '提交', | ||
50 | }, | ||
51 | isReset: { | ||
52 | type: Boolean, | ||
53 | default: true, | ||
54 | }, | ||
55 | saveloding: { | ||
56 | type: Boolean, | ||
57 | default: false, | ||
58 | }, | ||
59 | }, | ||
60 | data () { | ||
61 | return { | ||
62 | key: 0, | ||
63 | dialogVisible: false, | ||
64 | fullscreen: false, | ||
65 | scrollerHeight: '520px', | ||
66 | } | ||
67 | }, | ||
68 | watch: { | ||
69 | value (val) { | ||
70 | this.dialogVisible = val | ||
71 | } | ||
72 | }, | ||
73 | methods: { | ||
74 | handleFullscreen (val) { | ||
75 | this.fullscreen = !this.fullscreen | ||
76 | let height = document.getElementById('dialogBox').clientHeight | ||
77 | if (!this.fullscreen) { | ||
78 | this.scrollerHeight = false | ||
79 | } else { | ||
80 | this.scrollerHeight = (window.innerHeight - 180) + 'px' | ||
81 | } | ||
82 | }, | ||
83 | submitForm () { | ||
84 | this.$emit('submitForm'); | ||
85 | }, | ||
86 | closeDialog () { | ||
87 | this.key++ | ||
88 | this.$emit('input', false) | ||
89 | this.$emit('closeDialog') | ||
90 | } | ||
91 | }, | ||
92 | } | ||
93 | </script> | ||
94 | <style rel="stylesheet/scss" scoped lang="scss" > | ||
95 | @import "~@/styles/mixin.scss"; | ||
96 | @import "./dialogBox.scss"; | ||
97 | |||
98 | /deep/.el-dialog__header { | ||
99 | background-color: #409EFF; | ||
100 | } | ||
101 | </style> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -24,7 +24,6 @@ | ... | @@ -24,7 +24,6 @@ |
24 | 24 | ||
25 | .el-dialog__body { | 25 | .el-dialog__body { |
26 | max-height: 88vh; | 26 | max-height: 88vh; |
27 | overflow-y: scroll; | ||
28 | overflow-x: hidden; | 27 | overflow-x: hidden; |
29 | } | 28 | } |
30 | 29 | ||
... | @@ -43,9 +42,7 @@ | ... | @@ -43,9 +42,7 @@ |
43 | .el-dialog__header { | 42 | .el-dialog__header { |
44 | margin-bottom: 10px; | 43 | margin-bottom: 10px; |
45 | color: #4A4A4A; | 44 | color: #4A4A4A; |
46 | } | 45 | background-color: #FCFDFD; |
47 | |||
48 | .borderBottom { | ||
49 | border-bottom: 1px solid #E4EBF4; | 46 | border-bottom: 1px solid #E4EBF4; |
50 | } | 47 | } |
51 | 48 | ... | ... |
... | @@ -76,11 +76,6 @@ export default { | ... | @@ -76,11 +76,6 @@ export default { |
76 | this.dialogVisible = val | 76 | this.dialogVisible = val |
77 | } | 77 | } |
78 | }, | 78 | }, |
79 | mounted () { | ||
80 | var header = document.getElementsByClassName("el-dialog__header")[0].style | ||
81 | header.borderBottom = '1px solid #E4EBF4' | ||
82 | header.background = '#FCFDFD' | ||
83 | }, | ||
84 | methods: { | 79 | methods: { |
85 | handleFullscreen (val) { | 80 | handleFullscreen (val) { |
86 | this.fullscreen = !this.fullscreen | 81 | this.fullscreen = !this.fullscreen | ... | ... |
... | @@ -61,7 +61,8 @@ export default { | ... | @@ -61,7 +61,8 @@ export default { |
61 | default: 285, | 61 | default: 285, |
62 | }, | 62 | }, |
63 | maxHeight: { | 63 | maxHeight: { |
64 | type: Number | 64 | type: Number, |
65 | default: 500 | ||
65 | }, | 66 | }, |
66 | heightNumSetting: { | 67 | heightNumSetting: { |
67 | type: Boolean, | 68 | type: Boolean, | ... | ... |
1 | <template> | 1 | <template> |
2 | <cusDialogBox @closeDialog="closeDialog" width="80%" v-model="value"> | 2 | <div class="appli-header"> |
3 | <template #header> | 3 | <ul class="header-left"> |
4 | <div class="header"> | 4 | <li> |
5 | <ul class="header-left"> | 5 | 图形定位 |
6 | <li> | 6 | </li> |
7 | 图形定位 | 7 | <li> |
8 | </li> | 8 | 登记薄 |
9 | <li> | 9 | </li> |
10 | 登记薄 | 10 | <li> |
11 | </li> | 11 | 证书预览 |
12 | <li> | 12 | </li> |
13 | 证书预览 | 13 | <li> |
14 | </li> | 14 | 流程图 |
15 | <li> | 15 | </li> |
16 | 流程图 | 16 | <li> |
17 | </li> | 17 | 材料导入 |
18 | <li> | 18 | </li> |
19 | 材料导入 | 19 | <li> |
20 | </li> | 20 | 打印申请书 |
21 | <li> | 21 | </li> |
22 | 打印申请书 | 22 | </ul> |
23 | </li> | ||
24 | </ul> | ||
25 | 23 | ||
26 | <ul class="header-right"> | 24 | <ul class="header-right"> |
27 | <li> | 25 | <li> |
28 | 登簿 | 26 | 登簿 |
29 | </li> | 27 | </li> |
30 | <li> | 28 | <li> |
31 | 退回 | 29 | 退回 |
32 | </li> | 30 | </li> |
33 | <li> | 31 | <li> |
34 | 转出 | 32 | 转出 |
35 | </li> | 33 | </li> |
36 | </ul> | 34 | <li @click="closeDialog" class="pointer"> |
37 | </div> | 35 | <i class="el-icon-circle-close"></i> |
38 | 36 | </li> | |
39 | </template> | 37 | </ul> |
40 | </cusDialogBox> | 38 | </div> |
41 | </template> | 39 | </template> |
42 | 40 | ||
43 | <script> | 41 | <script> |
44 | import cusDialogBox from '@/components/DialogBox/cusDialogBox' | ||
45 | export default { | 42 | export default { |
46 | props: { | 43 | props: { |
47 | value: { type: Boolean, default: false }, | 44 | value: { type: Boolean, default: false }, |
48 | }, | 45 | }, |
49 | components: { | ||
50 | cusDialogBox | ||
51 | }, | ||
52 | data () { | ||
53 | return { | ||
54 | applicationDialog: false, | ||
55 | } | ||
56 | }, | ||
57 | methods: { | 46 | methods: { |
58 | closeDialog () { | 47 | closeDialog () { |
59 | this.$emit('input', false) | 48 | this.$emit('input', false) |
... | @@ -63,17 +52,4 @@ export default { | ... | @@ -63,17 +52,4 @@ export default { |
63 | </script> | 52 | </script> |
64 | <style scoped lang="scss"> | 53 | <style scoped lang="scss"> |
65 | @import "~@/styles/mixin.scss"; | 54 | @import "~@/styles/mixin.scss"; |
66 | |||
67 | .header { | ||
68 | @include flex; | ||
69 | justify-content: space-between; | ||
70 | |||
71 | ul { | ||
72 | @include flex; | ||
73 | |||
74 | li { | ||
75 | margin-right: 20px; | ||
76 | } | ||
77 | } | ||
78 | } | ||
79 | </style> | 55 | </style> | ... | ... |
... | @@ -52,18 +52,13 @@ | ... | @@ -52,18 +52,13 @@ |
52 | </div> | 52 | </div> |
53 | </div> | 53 | </div> |
54 | </dialogBox> | 54 | </dialogBox> |
55 | <applicationDialog v-model="appliDialog" /> | ||
56 | </div> | 55 | </div> |
57 | 56 | ||
58 | </template> | 57 | </template> |
59 | 58 | ||
60 | <script> | 59 | <script> |
61 | import { datas } from "../ywsqdata.js"; | 60 | import { datas } from "../ywsqdata.js"; |
62 | import applicationDialog from '../../components/applicationDialog.vue' | ||
63 | export default { | 61 | export default { |
64 | components: { | ||
65 | applicationDialog | ||
66 | }, | ||
67 | props: { | 62 | props: { |
68 | value: { type: Boolean, default: false }, | 63 | value: { type: Boolean, default: false }, |
69 | }, | 64 | }, | ... | ... |
-
Please register or sign in to post a comment