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
6f6f8f5f
Commit
6f6f8f5f
authored
Aug 25, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调换formitem顺序
parent
c9f37980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
main.vue
src/components/main.vue
+19
-19
No files found.
src/components/main.vue
View file @
6f6f8f5f
...
@@ -39,17 +39,6 @@
...
@@ -39,17 +39,6 @@
:rules=
"rules"
:rules=
"rules"
size=
"small"
size=
"small"
>
>
<n-form-item
v-if=
"getTagName(data.relationId) !== '标签'"
label=
"节点名称"
path=
"propertyName"
>
<n-input
v-model:value=
"data.propertyName"
placeholder=
"请输入"
@
keydown
.
enter
.
prevent
/>
</n-form-item>
<n-form-item
label=
"关系"
path=
"relationId"
>
<n-form-item
label=
"关系"
path=
"relationId"
>
<n-select
<n-select
v-model:value=
"data.relationId"
v-model:value=
"data.relationId"
...
@@ -80,14 +69,23 @@
...
@@ -80,14 +69,23 @@
>
>
</n-form-item>
</n-form-item>
</
template
>
</
template
>
<n-form-item
v-else
label=
"所属系统"
path=
"systemId"
>
<
template
v-else
>
<n-select
<n-form-item
label=
"节点名称"
path=
"propertyName"
>
v-model:value=
"data.systemIds"
<n-input
placeholder=
"请选择"
v-model:value=
"data.propertyName"
:options=
"systemOptions"
placeholder=
"请输入"
multiple
@
keydown
.
enter
.
prevent
/>
/>
</n-form-item>
</n-form-item>
<n-form-item
label=
"所属系统"
path=
"systemId"
>
<n-select
v-model:value=
"data.systemIds"
placeholder=
"请选择"
:options=
"systemOptions"
multiple
/>
</n-form-item>
</
template
>
<n-button
<n-button
class=
"del-btn"
class=
"del-btn"
type=
"error"
type=
"error"
...
@@ -466,6 +464,7 @@ function submitNewNode(e) {
...
@@ -466,6 +464,7 @@ function submitNewNode(e) {
relationId
:
tagData
[
0
].
relationId
,
relationId
:
tagData
[
0
].
relationId
,
labelList
:
tagData
.
map
((
item
)
=>
{
labelList
:
tagData
.
map
((
item
)
=>
{
let
obj
=
{
let
obj
=
{
id
:
null
,
labelName
:
item
.
labelName
,
labelName
:
item
.
labelName
,
}
}
const
curTag
=
tagOptions
.
value
.
find
(
const
curTag
=
tagOptions
.
value
.
find
(
...
@@ -474,6 +473,7 @@ function submitNewNode(e) {
...
@@ -474,6 +473,7 @@ function submitNewNode(e) {
if
(
curTag
)
{
if
(
curTag
)
{
obj
=
{
obj
=
{
id
:
curTag
.
id
,
id
:
curTag
.
id
,
labelName
:
null
,
}
}
}
}
return
{
return
{
...
...
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