添加弹框的重置功能
Showing
1 changed file
with
22 additions
and
1 deletions
... | @@ -49,7 +49,7 @@ | ... | @@ -49,7 +49,7 @@ |
49 | </div> | 49 | </div> |
50 | <div class="btnGroup"> | 50 | <div class="btnGroup"> |
51 | <el-button type="primary" @click="saveInfo">保存</el-button> | 51 | <el-button type="primary" @click="saveInfo">保存</el-button> |
52 | <el-button type="primary">重置</el-button> | 52 | <el-button type="primary" @click="resetInfo">重置</el-button> |
53 | <el-button type="primary" @click="dialogVisible = false">取消</el-button> | 53 | <el-button type="primary" @click="dialogVisible = false">取消</el-button> |
54 | </div> | 54 | </div> |
55 | </el-dialog> | 55 | </el-dialog> |
... | @@ -117,6 +117,27 @@ export default { | ... | @@ -117,6 +117,27 @@ export default { |
117 | default: | 117 | default: |
118 | break; | 118 | break; |
119 | } | 119 | } |
120 | }, | ||
121 | //弹框中的重置按钮 | ||
122 | resetInfo(){ | ||
123 | switch (this.menuType) { | ||
124 | case 'ljz': | ||
125 | this.$refs.ljz.reset() | ||
126 | break; | ||
127 | case 'zdy': | ||
128 | |||
129 | break; | ||
130 | case 'ch': | ||
131 | |||
132 | break; | ||
133 | |||
134 | default: | ||
135 | break; | ||
136 | } | ||
137 | }, | ||
138 | //关闭弹框 | ||
139 | closeDaialog(){ | ||
140 | this.dialogVisible = false | ||
120 | } | 141 | } |
121 | }, | 142 | }, |
122 | computed: {}, | 143 | computed: {}, | ... | ... |
-
Please register or sign in to post a comment