Commit b7b835ff by li_hongchao

逻辑库页面优化,正则优化

parent b1ec610c
......@@ -6,7 +6,7 @@ export default {
* @author: li_hongchao
* @date: 2022/1/9 19:47
*/
_LJFKM: /(([\u4E00-\u9FA5·]{2,})|([a-zA-Z]{4,}))/,
_LJFKM: /^[\u4e00-\u9fa5]{2,}$/,
_NUMBER: /^(0|([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*))$/,
......@@ -60,7 +60,7 @@ export default {
* @author: li_hongchao
* @date: 2022/1/9 19:42
*/
_CHINESE: /^[\\u0391-\\uFFE5]+$/,
_CHINESE: /^[\u4E00-\u9FA5]+$/,
/**
* Description: 手机号码
......
......@@ -112,10 +112,11 @@
<el-row style="margin-bottom: 20px;">
<el-col :span="24">
<el-form-item label="队列名称:" prop="pattern">
<div style="margin-left: 40px;">
<div>
<div v-for="(item,gindex) in getDlmcArr()"
:class="{'dui-lie-ming-cheng':true,'dui-lie-ming-cheng-bx':isBxCxdl(item.type)}"
v-show="getDlmcArr() && getDlmcArr().length > 0">
v-show="getDlmcArr() && getDlmcArr().length > 0"
:style="{marginLeft: gindex===0?'0px':'20px'}">
<i v-if="!isBxCxdl(item.type)"
class="el-icon-circle-plus icon" style="color: #055fe7"
@click="updateGzdl(item,gindex,true)" />
......@@ -134,7 +135,8 @@
</div>
</div>
<div v-show="!getDlmcArr() || getDlmcArr().length <= 0"
v-for="item in getDlCount()" class="kong" />
v-for="(item,index) in getDlCount()" class="kong"
:style="{marginLeft: index===0?'0px':'20px'}" />
</div>
</el-form-item>
</el-col>
......@@ -154,7 +156,7 @@
<div :key="item.type"
class="itemBox"
:style="{marginLeft: gindex===0?'40px':'0px'}">
:style="{marginLeft: gindex===0?'16px':'0px'}">
<div>
<img class="dlIndexBg"
......@@ -196,8 +198,8 @@
<!-- 并行模式;-->
<div v-if="gzlRuleForm.pattern === 1"
v-for="(item,gindex) in getGzdlArr()"
:class="{'gong-zuo-dui-lie-bingxing-item':true, kk:gindex !== 0}">
<div class="gong-zuo-dui-lie-bingxing-item-left">
:class="{'gong-zuo-dui-lie-bingxing-item':true}">
<div class="gong-zuo-dui-lie-bingxing-item-left" style="margin-left: -30px;">
<div :class="{verLine:true,verLineTrans: gindex === 0}" />
<div :class="{verLine:true,verLineTrans: gindex === getGzdlArr().length -1}" />
</div>
......@@ -324,7 +326,7 @@ export default {
{required: true, message: '请输入逻辑库名称', trigger: 'change'},
{
pattern: verifyData._LJFKM,
message: '名称必须至少两个汉字或四个字母!',
message: '名称必须至少两个汉字!',
trigger: 'change'
}
]
......
......@@ -130,9 +130,8 @@
flex-direction: row;
.input-info-sm {
width: 670px;
width: 600px;
height: 76px;
margin-left: 20px;
background: #F6F8FA;
box-shadow: 0px 1px 2px 0px rgba(5, 95, 231, 0.18);
border-radius: 4px;
......@@ -316,10 +315,6 @@
}
.kk {
margin-left: 73px;
}
.gong-zuo-dui-lie-bingxing-item {
height: 52px;
display: flex;
......@@ -411,6 +406,9 @@
}
}
.kk {
margin-left: 60px;
}
.gzdl-line {
margin-right: 12px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment