cancelAudit(){
var _this=this;
this.$prompt("撤销审核的原因:", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
inputValidator: (value) => {
if(!value) { //对输入内容校验
return '撤销审核的原因不能为空!';
}
},
beforeClose: function (action, instance,done) {
if(action === 'confirm') {
this.confirmButtonText="提交中..."
cancelaudit({auditremark:instance.inputValue}).then(res=>{//instance.inputValue输入的值
if (res.code === 1) {
element-ui的prompt如何在输入内容以后点击了确定事关闭弹窗
最新推荐文章于 2024-06-25 14:42:26 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)