#I5Y516 添加员工时,性别未选择判断

This commit is contained in:
hdm 2022-10-28 12:43:25 +08:00
parent ad151b268f
commit b81cb80fb8
2 changed files with 5 additions and 1 deletions

View File

@ -220,6 +220,10 @@
//监听提交
form.on('submit(webform)', function(data){
if(!data.field.sex){
layer.msg('请选择员工性别');
return false;
}
let callback = function (e) {
layer.msg(e.msg);
if (e.code == 0) {

View File

@ -21,7 +21,7 @@
],
"require": {
"php": ">=7.2.5",
"topthink/framework": "^6.0.0",
"topthink/framework": "6.0.14",
"topthink/think-orm": "^2.0",
"topthink/think-multi-app": "^1.0",
"topthink/think-view": "^1.0",