fix: 修复endpoint box页面 name 正则验证错误问题

This commit is contained in:
@changcode
2021-12-14 16:43:14 +08:00
parent 2deebc92bf
commit 786de1f852
6 changed files with 35 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
.right-box.right-box-mib {
.el-tag--mini.el-tag--light {
background-color: $--alert-rule-background-color;
border-color: $--border-color-light;
.el-tag__close {
color: $--alert-rule-color;
}
.el-tag__close:hover {
color: #FFFFFF;
}
}
.el-upload-dragger {
background-color: $--background-color-empty;
border: 1px solid $--border-color-light;
}
}

View File

@@ -0,0 +1,14 @@
.rich-text-editor {
.ql-toolbar {
border: 1px solid $--border-color-light;
}
.editor-core {
border: 1px solid $--border-color-light;
border-top: none;
}
.ql-editor {
p {
color: $--color-text-regular;
}
}
}

View File

@@ -43,7 +43,8 @@
@import './common/rightBox/locationCascader.scss';
@import './common/rightBox/menuBox.scss';
@import './common/rightBox/moduleBox.scss';
@import './common/rightBox/chartRightBox/chartRightBox';
@import './common/rightBox/chartRightBox/chartRightBox.scss';
@import './common/rightBox/mibBox.scss';
@import './common/rightBox/assetBactchEditBox.scss';
@import './common/table/alert/alertMessageTable.scss';
@import './common/table/alert/alertRuleTable.scss';
@@ -92,4 +93,5 @@
@import './common/v-selectpagenew/selectpage.scss';
@import './common/paramBpx/paramBox.scss';
@import './common/picker/picker.scss';
@import './common/threshold/threshold.scss';

View File

@@ -48,7 +48,7 @@
overflow-y: auto;
height: calc(100% - 60px);
flex: 1;
background-color: $--dashboard-background-color-empty;
background-color: $--background-color-empty;
.legend--table-cell,.legend-item {
color: $--color-text-regular;
}

View File

@@ -76,7 +76,7 @@ export function nzNumber (rule, value, callback) {
}
export function noSpecialChar (rule, value, callback) {
const charReg = /[\u0000-\uFFFF]/
const charReg = /^[\u4e00-\u9fa5a-z0-9A-Z-_.]+$/
setTimeout(() => {
if (charReg.test(value)) {
callback()

View File

@@ -655,7 +655,6 @@ export default {
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'change' },
{ validator: this.optionType === 'batch' ? '' : noSpecialChar, trigger: 'change' }
],
assetId: [
{ required: !(this.optionType === 'batch'), message: this.$t('validate.required'), trigger: 'change' }