提交代码

This commit is contained in:
jiang 2024-12-03 09:52:16 +08:00
parent e880cfc2c3
commit 230066f1b9
1 changed files with 9 additions and 8 deletions

View File

@ -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();
}