Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
bb714d0d
Commit
bb714d0d
authored
Mar 25, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账号验证管理调整--(正则转义问题未修复)
parent
f2570f97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
src/views/school-center/other/codeManage.vue
+18
-8
No files found.
src/views/school-center/other/codeManage.vue
View file @
bb714d0d
...
...
@@ -61,10 +61,13 @@
<a-input
placeholder=
"正则表达示"
v-decorator=
"[ 'regular', {rules: [{ required: true, message: '表达示不能为空!' ,validator: 'click'}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"错误提示:"
>
<a-input
placeholder=
"错误提示"
v-decorator=
"[ 'tips', {rules: [{required: true, message: '
装机地址
不能为空!' ,validator: 'click'}]} ]"
></a-input>
<a-input
placeholder=
"错误提示"
v-decorator=
"[ 'tips', {rules: [{required: true, message: '
错误提示
不能为空!' ,validator: 'click'}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"输入框默认值:"
>
<a-input
placeholder=
"输入框默认值"
v-decorator=
"[ 'placeholder', {rules: [{ required: true, message: '外线方式不能为空!' ,validator: 'click'}]} ]"
></a-input>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"账号输入框默认值:"
>
<a-input
placeholder=
"账号输入框默认值"
v-decorator=
"[ 'placeholder', {rules: [{ required: true, message: '账号输入框默认值不能为空!' ,validator: 'click'}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"密码输入框默认值:"
>
<a-input
placeholder=
"密码输入框默认值"
v-decorator=
"[ 'passwordMsg', {rules: [{ required: true, message: '密码输入框默认值不能为空!' ,validator: 'click'}]} ]"
></a-input>
</a-form-item>
<a-form-item
:labelCol=
"{span: 5}"
:wrapperCol=
"{span: 9, offset: 1}"
label=
"是否显示:"
>
<a-select
v-decorator=
"[ 'isShow' ]"
style=
"width: 330px"
>
...
...
@@ -101,16 +104,18 @@
regular
:
''
,
tips
:
''
,
placeholder
:
''
,
passwordMsg
:
''
,
isShow
:
'1'
},
columns
:
[
{
dataIndex
:
'regularName'
,
width
:
70
,
title
:
'正则名称'
},
{
dataIndex
:
'regular'
,
width
:
100
,
title
:
'正则表达
示
'
},
{
dataIndex
:
'regular'
,
width
:
100
,
title
:
'正则表达
式
'
},
{
dataIndex
:
'tips'
,
width
:
70
,
title
:
'错误提示'
},
{
dataIndex
:
'placeholder'
,
width
:
70
,
title
:
'输入框默认提示 '
},
{
dataIndex
:
'placeholder'
,
width
:
70
,
title
:
'账号输入框默认提示'
},
{
dataIndex
:
'passwordMsg'
,
width
:
60
,
title
:
'密码输入框默认提示'
},
{
dataIndex
:
'operation'
,
width
:
26
,
width
:
30
,
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'operation'
},
fixed
:
"right"
...
...
@@ -169,6 +174,7 @@
"regular"
:
data
.
regular
,
"tips"
:
data
.
tips
,
"placeholder"
:
data
.
placeholder
,
"passwordMsg"
:
data
.
passwordMsg
,
"isShow"
:
data
.
isShow
})
},
0
)
...
...
@@ -178,7 +184,7 @@
},
createfunctionOk
(){
let
that
=
this
;
that
.
Formtable
.
validateFields
([
'regularName'
,
'regular'
,
'tips'
,
'placeholder'
,
'isShow'
],
{
force
:
true
},
(
err
,
values
)
=>
{
that
.
Formtable
.
validateFields
([
'regularName'
,
'regular'
,
'tips'
,
'placeholder'
,
'
passwordMsg'
,
'
isShow'
],
{
force
:
true
},
(
err
,
values
)
=>
{
if
(
err
)
{
return
;
}
...
...
@@ -186,6 +192,7 @@
that
.
modelData
.
regular
=
values
.
regular
that
.
modelData
.
tips
=
values
.
tips
that
.
modelData
.
placeholder
=
values
.
placeholder
that
.
modelData
.
passwordMsg
=
values
.
passwordMsg
that
.
modelData
.
isShow
=
values
.
isShow
if
(
this
.
add
){
let
obj
=
that
.
modelData
;
...
...
@@ -201,7 +208,9 @@
})
}
else
{
let
obj
=
that
.
modelData
;
let
regular
=
JSON
.
stringify
(
obj
);
let
regular
=
JSON
.
stringify
(
obj
);
console
.
log
(
regular
)
debugger
regularUpdate
({
regular
}).
then
((
res
)
=>
{
this
.
modifyvisible
=
false
;
this
.
clearmodel
()
...
...
@@ -227,6 +236,7 @@
"regular"
:
''
,
"tips"
:
''
,
"placeholder"
:
''
,
"passwordMsg"
:
''
,
"isShow"
:
''
,
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment