要求:新增数据点击确认之后需要做一个确认框,点击确认以后才能提交数据。
用到了element-ui的控件:地址https://element.eleme.cn/#/zh-CN/component/message-box
效果图:
// 确定按钮操作
submitForm() {
this.$refs['form'].validate(valid => {
if (this.wrnId) {
this.form.wrnId = this.wrnId;
}
this.$confirm('是否确认添加?', '提示', {
c