style:弹框修改
Showing
4 changed files
with
10 additions
and
10 deletions
... | @@ -9,7 +9,6 @@ export default { | ... | @@ -9,7 +9,6 @@ export default { |
9 | Vue.component('lbTable', LbTable); | 9 | Vue.component('lbTable', LbTable); |
10 | Vue.component('Theme', Theme); | 10 | Vue.component('Theme', Theme); |
11 | Vue.prototype.$popup = Popup.install; | 11 | Vue.prototype.$popup = Popup.install; |
12 | Vue.prototype.$popupClose = Popup.close; | ||
13 | Vue.prototype.$alertMes = MessageBox.alert; | 12 | Vue.prototype.$alertMes = MessageBox.alert; |
14 | } | 13 | } |
15 | } | 14 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -16,11 +16,5 @@ Popup.install = function (title, editItem, data, formData) { | ... | @@ -16,11 +16,5 @@ Popup.install = function (title, editItem, data, formData) { |
16 | instance.isShow = true | 16 | instance.isShow = true |
17 | }) | 17 | }) |
18 | } | 18 | } |
19 | Popup.close = function () { | ||
20 | let instance = new PopupBox().$mount() | ||
21 | Vue.nextTick(() => { | ||
22 | instance.isShow = false | ||
23 | }) | ||
24 | } | ||
25 | 19 | ||
26 | export default Popup | 20 | export default Popup | ... | ... |
... | @@ -58,13 +58,13 @@ export default { | ... | @@ -58,13 +58,13 @@ export default { |
58 | setTimeout(() => { | 58 | setTimeout(() => { |
59 | if (this.btnShow) { | 59 | if (this.btnShow) { |
60 | if (this.height == 'auto') { | 60 | if (this.height == 'auto') { |
61 | this.contentHeight = (this.$refs.contentRef.offsetHeight + 20) + 'px' | 61 | this.contentHeight = (this.$refs.contentRef.offsetHeight) + 'px' |
62 | } else { | 62 | } else { |
63 | this.contentHeight = this.height | 63 | this.contentHeight = this.height |
64 | } | 64 | } |
65 | } else { | 65 | } else { |
66 | if (this.height == 'auto') { | 66 | if (this.height == 'auto') { |
67 | this.contentHeight = (this.$refs.contentRef.offsetHeight + 20) + 'px' | 67 | this.contentHeight = (this.$refs.contentRef.offsetHeight) + 'px' |
68 | } else { | 68 | } else { |
69 | this.contentHeight = this.height | 69 | this.contentHeight = this.height |
70 | } | 70 | } | ... | ... |
... | @@ -46,6 +46,10 @@ | ... | @@ -46,6 +46,10 @@ |
46 | </el-form-item> | 46 | </el-form-item> |
47 | </el-col> | 47 | </el-col> |
48 | </el-row> | 48 | </el-row> |
49 | <el-row style="text-align:center"> | ||
50 | <el-button type="primary" @click="onSubmit">确定</el-button> | ||
51 | <el-button>取消</el-button> | ||
52 | </el-row> | ||
49 | </el-form> | 53 | </el-form> |
50 | </div> | 54 | </div> |
51 | </template> | 55 | </template> |
... | @@ -97,10 +101,13 @@ export default { | ... | @@ -97,10 +101,13 @@ export default { |
97 | this.loadGrid(); | 101 | this.loadGrid(); |
98 | }, | 102 | }, |
99 | methods: { | 103 | methods: { |
104 | onSubmit () { | ||
105 | |||
106 | }, | ||
100 | fetchData () { }, | 107 | fetchData () { }, |
101 | //列表初始化 | 108 | //列表初始化 |
102 | loadGrid () { | 109 | loadGrid () { |
103 | getUnclaimedBdcqz({bsmSlsq:this.formData.bsmSlsq}).then(res => { | 110 | getUnclaimedBdcqz({ bsmSlsq: this.formData.bsmSlsq }).then(res => { |
104 | if (res.code === 200) { | 111 | if (res.code === 200) { |
105 | this.tableData.data = res.result; | 112 | this.tableData.data = res.result; |
106 | } | 113 | } | ... | ... |
-
Please register or sign in to post a comment