From 2031a460f6c0827fe80f8c625dd98333d1631d2f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 08 五月 2020 22:10:48 +0800 Subject: [PATCH] 2020-05-08 --- src/templates/subtableconfig/index.jsx | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/templates/subtableconfig/index.jsx b/src/templates/subtableconfig/index.jsx index 2747162..87766f5 100644 --- a/src/templates/subtableconfig/index.jsx +++ b/src/templates/subtableconfig/index.jsx @@ -267,8 +267,17 @@ submitConfig = () => { const { delActions, thawButtons, originConfig } = this.state let config = JSON.parse(JSON.stringify(this.state.config)) + let copyreg = /\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/ig this.menuformRef.handleConfirm().then(res => { + if (copyreg.test(res.MenuNo) || copyreg.test(res.MenuName)) { + notification.warning({ + top: 92, + message: '璇蜂慨鏀规爣绛惧悕绉板拰鏍囩鍙傛暟锛屼笉鍙互鏃堕棿鏍煎紡 YYYY-MM-DD HH:mm:ss 缁撳熬锛�', + duration: 5 + }) + return + } if (originConfig.isAdd) { if (config.search[0] && config.search[0].origin) { -- Gitblit v1.8.0