Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yulun Yao
multiSystem
Commits
8a4f9fc0
Commit
8a4f9fc0
authored
Aug 12, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish all features
parent
0d965ac4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
11 deletions
+60
-11
actionListAction.vue
src/views/action/actionListAction.vue
+14
-1
actionListTrigger.vue
src/views/action/actionListTrigger.vue
+15
-3
businessSystemList.vue
src/views/businessSystem/businessSystemList.vue
+31
-7
No files found.
src/views/action/actionListAction.vue
View file @
8a4f9fc0
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
'path',
'path',
{
{
validateTrigger: 'blur',
validateTrigger: 'blur',
rules: [{
required: true, message: '请填写此项!'
}]
rules: [{
validator: pathValidate
}]
}
}
]"
]"
/>
/>
...
@@ -239,6 +239,19 @@ export default {
...
@@ -239,6 +239,19 @@ export default {
this
.
getBusinessOptions
()
this
.
getBusinessOptions
()
},
},
methods
:
{
methods
:
{
pathValidate
(
t
,
value
,
callback
)
{
console
.
log
(
t
,
value
,
callback
)
if
(
!
value
||
value
==
undefined
)
{
callback
(
'请填写此项'
)
}
else
{
if
(
!
value
.
startsWith
(
'/'
))
{
callback
(
'请输入正确的路径!'
)
}
else
{
callback
()
}
}
},
onEdit
(
id
)
{
onEdit
(
id
)
{
this
.
rowLoop
=
[{
this
.
rowLoop
=
[{
name
:
''
,
name
:
''
,
...
...
src/views/action/actionListTrigger.vue
View file @
8a4f9fc0
...
@@ -171,8 +171,8 @@
...
@@ -171,8 +171,8 @@
'callBackPath',
'callBackPath',
{
{
validateTrigger: 'blur',
validateTrigger: 'blur',
rules: [{
required: true, message: '请填写此项!'
}]
rules: [{
validator: pathValidate
}]
}
}
,
]"
]"
/>
/>
</a-form-item>
</a-form-item>
...
@@ -290,6 +290,19 @@ export default {
...
@@ -290,6 +290,19 @@ export default {
this
.
getBusinessOptions
()
this
.
getBusinessOptions
()
},
},
methods
:
{
methods
:
{
pathValidate
(
t
,
value
,
callback
)
{
console
.
log
(
t
,
value
,
callback
)
if
(
!
value
||
value
==
undefined
)
{
callback
(
'请填写此项'
)
}
else
{
if
(
!
value
.
startsWith
(
'/'
))
{
callback
(
'请输入正确的路径!'
)
}
else
{
callback
()
}
}
},
cancelModal
()
{
cancelModal
()
{
this
.
form
.
resetFields
()
this
.
form
.
resetFields
()
this
.
current
=
0
this
.
current
=
0
...
@@ -419,7 +432,6 @@ export default {
...
@@ -419,7 +432,6 @@ export default {
this
.
form
.
validateFields
((
err
,
values
)
=>
{
this
.
form
.
validateFields
((
err
,
values
)
=>
{
if
(
!
err
)
{
if
(
!
err
)
{
let
formContent
=
this
.
form
.
getFieldsValue
()
let
formContent
=
this
.
form
.
getFieldsValue
()
// console.log(formContent)
let
paramsJson
=
[]
let
paramsJson
=
[]
let
finalParse
=
{}
let
finalParse
=
{}
...
...
src/views/businessSystem/businessSystemList.vue
View file @
8a4f9fc0
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</a-form-item>
</a-form-item>
<a-form-item
label=
"系统地址"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-form-item
label=
"系统地址"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['url',
{validateTrigger:'blur', rules: [{
required: true, message: '请填写此项!'}, {validator: format
Validate}]}]" />
<a-input
v-decorator=
"['url',
{validateTrigger:'blur', rules: [{
validator: url
Validate}]}]" />
</a-form-item>
</a-form-item>
</div>
</div>
<div
v-show=
"current == 1"
>
<div
v-show=
"current == 1"
>
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
</a-form-item>
</a-form-item>
<a-form-item
label=
"授权路径"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-form-item
label=
"授权路径"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input
v-decorator=
"['authPath',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
<a-input
v-decorator=
"['authPath',
{validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}
, {validator: pathValidate}
]}]" />
</a-form-item>
</a-form-item>
<a-form-item
label=
"授权方法"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-form-item
label=
"授权方法"
:label-col=
"
{ span: 5 }" :wrapper-col="{ span: 12 }">
...
@@ -210,12 +210,36 @@ export default {
...
@@ -210,12 +210,36 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
formatValidate
(
type
,
value
,
callback
)
{
urlValidate
(
type
,
value
,
callback
)
{
console
.
log
(
type
,
value
)
const
filter
=
/^
[
A-Za-z
]
:
[\w]
+$/i
const
regex
=
/^
([
hH
][
tT
]{2}[
pP
]
:
\/\/
|
[
hH
][
tT
]{2}[
pP
][
sS
]
:
\/\/
|www
\.)(([
A-Za-z0-9-~
]
+
)\.)
+
([
A-Za-z0-9-~
\/])
+$/
if
(
!
filter
.
test
(
value
)){
if
(
!
value
||
value
==
undefined
)
{
callback
(
'请填写此项'
)
}
else
{
if
(
!
regex
.
test
(
value
))
{
callback
(
'请输入正确的地址!'
)
}
else
{
callback
()
}
}
// if(!value.startsWith('/')) {
// callback('请输入正确的路径!')
// }
},
pathValidate
(
t
,
value
,
callback
)
{
console
.
log
(
t
,
value
,
callback
)
if
(
!
value
||
value
==
undefined
)
{
callback
(
'请填写此项'
)
}
else
{
if
(
!
value
.
startsWith
(
'/'
))
{
callback
(
'请输入正确的路径!'
)
callback
(
'请输入正确的路径!'
)
}
else
{
callback
()
}
}
}
},
},
cancelModal
()
{
cancelModal
()
{
...
...
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