提交代码
This commit is contained in:
parent
e880cfc2c3
commit
230066f1b9
|
|
@ -60,14 +60,15 @@ export default {
|
|||
inputPattern: /^.{0,200}$/, // 限制最多200字符
|
||||
inputErrorMessage: '描述不能超过200字符',
|
||||
beforeClose: (action, instance, done) => {
|
||||
console.log(instance)
|
||||
// 验证输入框内容是否为空(必填)
|
||||
if (!instance.inputValue) {
|
||||
this.$message({
|
||||
type: 'error',
|
||||
message: '驳回原因不能为空'
|
||||
});
|
||||
return; // 阻止关闭弹框
|
||||
if (action ==='confirm'){
|
||||
// 验证输入框内容是否为空(必填)
|
||||
if (!instance.inputValue) {
|
||||
this.$message({
|
||||
type: 'error',
|
||||
message: '驳回原因不能为空'
|
||||
});
|
||||
return; // 阻止关闭弹框
|
||||
}
|
||||
}
|
||||
done();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue