Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
R
relation-graph
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
郭铭瑶
relation-graph
Commits
9a602b3a
Commit
9a602b3a
authored
Aug 26, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8067f8f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
main.vue
src/components/main.vue
+8
-2
No files found.
src/components/main.vue
View file @
9a602b3a
...
...
@@ -735,7 +735,10 @@ const rules = {
targetSubjectId
:
[
{
validator
(
_
,
value
)
{
return
value
&&
value
!==
subjectData
.
value
.
sourceSubjectId
if
(
value
===
null
||
value
===
undefined
)
{
return
true
}
return
value
!==
subjectData
.
value
.
sourceSubjectId
},
trigger
:
[
'blur'
,
'change'
],
message
:
'目标要素不能与源要素相同'
,
...
...
@@ -744,7 +747,10 @@ const rules = {
sourceSubjectId
:
[
{
validator
(
_
,
value
)
{
return
value
&&
value
!==
subjectData
.
value
.
targetSubjectId
if
(
value
===
null
||
value
===
undefined
)
{
return
true
}
return
value
!==
subjectData
.
value
.
targetSubjectId
},
trigger
:
[
'blur'
,
'change'
],
message
:
'源要素不能与目标要素相同'
,
...
...
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