From b81cb80fb856f3d53422aed85941aff658e56d54 Mon Sep 17 00:00:00 2001 From: hdm Date: Fri, 28 Oct 2022 12:43:25 +0800 Subject: [PATCH] =?UTF-8?q?#I5Y516=20=20=E6=B7=BB=E5=8A=A0=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E6=97=B6=EF=BC=8C=E6=80=A7=E5=88=AB=E6=9C=AA=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/user/view/user/add.html | 4 ++++ composer.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/user/view/user/add.html b/app/user/view/user/add.html index 0f110bf..a3ffbca 100644 --- a/app/user/view/user/add.html +++ b/app/user/view/user/add.html @@ -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) { diff --git a/composer.json b/composer.json index 932442d..7ff72f9 100644 --- a/composer.json +++ b/composer.json @@ -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",