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
af9f585f
Commit
af9f585f
authored
Aug 26, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
源要素目标要素判断修改
parent
ba70837e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.vue
src/components/main.vue
+2
-2
No files found.
src/components/main.vue
View file @
af9f585f
...
@@ -733,7 +733,7 @@ const rules = {
...
@@ -733,7 +733,7 @@ const rules = {
targetSubjectId
:
[
targetSubjectId
:
[
{
{
validator
(
_
,
value
)
{
validator
(
_
,
value
)
{
return
value
!==
subjectData
.
value
.
sourceSubjectId
return
value
&&
value
!==
subjectData
.
value
.
sourceSubjectId
},
},
trigger
:
[
'blur'
,
'change'
],
trigger
:
[
'blur'
,
'change'
],
message
:
'目标要素不能与源要素相同'
,
message
:
'目标要素不能与源要素相同'
,
...
@@ -742,7 +742,7 @@ const rules = {
...
@@ -742,7 +742,7 @@ const rules = {
sourceSubjectId
:
[
sourceSubjectId
:
[
{
{
validator
(
_
,
value
)
{
validator
(
_
,
value
)
{
return
value
!==
subjectData
.
value
.
targetSubjectId
return
value
&&
value
!==
subjectData
.
value
.
targetSubjectId
},
},
trigger
:
[
'blur'
,
'change'
],
trigger
:
[
'blur'
,
'change'
],
message
:
'源要素不能与目标要素相同'
,
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