From 61ec0272602902b83105594c48b9dcff97222944 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Tue, 20 Sep 2022 09:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A8=A1=E5=9E=8B=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=88=A4=E6=96=AD=E7=A9=BA=E6=A0=BC=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/repository/RepositoryMain.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryMain.vue b/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryMain.vue index 930e3f2..2d79598 100644 --- a/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryMain.vue +++ b/com.actionsoft.apps.coe.pal/src/views/repository/RepositoryMain.vue @@ -1191,6 +1191,12 @@ const that = this; that.$refs[formName].validate((valid) => { if (valid) { + const name = that.ModelsetUpDialog.systemForm.name; + var judgeFn = new RegExp(/\s+/g); + if (judgeFn.test(name)) { + that.$message({message: '[名称]不允许包含空格', type: 'warning'}); + return; + } const checkdata = { url:'jd', data:{ @@ -1241,15 +1247,14 @@ awsuiAxios.post(data).then(function (ro) { if (ro.result == 'ok') { that.isLoading = false; - that.refreshNode('control'); - that.refreshNode('process'); that.ModelsetUpDialog.dialogVisible = false; that.openRepositoryList(that.ModelsetUpDialog.systemForm.parentId); // 返回id openDesigner(that.$store.getters.getTeamIdFn, that.ModelsetUpDialog.systemForm.uuid, that.$store.state.sessionId); //清空数据 that.$refs['systemForm'].resetFields(); - + that.refreshNode('control'); + that.refreshNode('process'); } else { that.$message.error(ro.msg); }