提交 67a36fa0 编写于 作者: B break60 提交者: bao liang

Remove blank character during verification (#1097)

* Dependency workflow add dependency correction value

* Download workflow instance map width adjustment and change "desc" field to "description"

* The third-party library that builds the dependency is recommended to be placed in 'devDependencies'

* Tree chart and Gantt chart style modification

* The workflow instance can be deleted only when its status is success, failure, stop and pause.

* change desc to description

* Maximum width of tooltip is set to 500px, note the copyright number of login page

* Delete copyright number

* No tenant in the list of selected tenants the default is default, and the status not shown in the repair page

* repair

* Repair security center module prompt

* Remove blank character during verification

* Remove blank character during verification
上级 0673d2bd
......@@ -117,11 +117,11 @@
}
},
_verification () {
if (!this.queueName) {
if (!this.queueName.replace(/\s*/g,"")) {
this.$message.warning(`${i18n.$t('Please enter name')}`)
return false
}
if (!this.queue) {
if (!this.queue.replace(/\s*/g,"")) {
this.$message.warning(`${i18n.$t('Please enter queue value')}`)
return false
}
......
......@@ -132,7 +132,7 @@
_verification () {
let isEn = /^[0-9a-zA-Z_.-]{1,}$/
if (!this.tenantCode) {
if (!this.tenantCode.replace(/\s*/g,"")) {
this.$message.warning(`${i18n.$t('Please enter the tenant code in English')}`)
return false
}
......@@ -140,7 +140,7 @@
this.$message.warning(`${i18n.$t('Please enter tenant code in English')}`)
return false
}
if (!this.tenantName) {
if (!this.tenantName.replace(/\s*/g,"")) {
this.$message.warning(`${i18n.$t('Please enter name')}`)
return false
}
......
......@@ -154,7 +154,7 @@
let regPhone = /^1(3|4|5|6|7|8)\d{9}$/; // eslint-disable-line
// user name
if (!this.userName) {
if (!this.userName.replace(/\s*/g,"")) {
this.$message.warning(`${i18n.$t('Please enter user name')}`)
return false
}
......
......@@ -101,7 +101,7 @@
},
_verification () {
// group name
if (!this.groupName) {
if (!this.groupName.replace(/\s*/g,"")) {
this.$message.warning(`${i18n.$t('Please enter group name')}`)
return false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册