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
6897f92d
Commit
6897f92d
authored
Aug 25, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签去掉节点名称
parent
6ddd03b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
+20
-13
main.vue
src/components/main.vue
+20
-13
No files found.
src/components/main.vue
View file @
6897f92d
...
...
@@ -24,11 +24,13 @@
/>
</div>
<n-drawer
v-model:show=
"showDrawer"
:width=
"340"
placement=
"left"
>
<n-drawer-content
title=
"新增附属节点"
closable
body-style=
"flex:1;overflow-y:auto;"
>
<n-drawer-content
closable
body-style=
"flex:1;overflow-y:auto;"
>
<template
#
header
>
新增附属节点
<p
style=
"font-size: 0.8rem; margin: 0.5rem 0 0"
>
要素:
{{
curSubject
.
subjectName
}}
</p>
</
template
>
<
template
v-for=
"(data, i) in formData"
:key=
"i"
>
<n-form
ref=
"formRef"
...
...
@@ -37,7 +39,11 @@
:rules=
"rules"
size=
"small"
>
<n-form-item
label=
"节点名称"
path=
"propertyName"
>
<n-form-item
v-if=
"getTagName(data.relationId) !== '标签'"
label=
"节点名称"
path=
"propertyName"
>
<n-input
v-model:value=
"data.propertyName"
placeholder=
"请输入"
...
...
@@ -52,13 +58,6 @@
/>
</n-form-item>
<template
v-if=
"getTagName(data.relationId) === '标签'"
>
<n-form-item
label=
"标签分类"
path=
"classification"
>
<n-select
v-model:value=
"data.classification"
placeholder=
"请选择"
:options=
"tagClassOptions"
/>
</n-form-item>
<n-form-item
label=
"标签名称"
path=
"tag"
>
<n-select
v-model:value=
"data.tag"
...
...
@@ -68,6 +67,13 @@
:options=
"tagOptions"
/>
</n-form-item>
<n-form-item
label=
"标签分类"
path=
"classification"
>
<n-select
v-model:value=
"data.classification"
placeholder=
"请选择"
:options=
"tagClassOptions"
/>
</n-form-item>
<n-form-item
path=
"isPositive"
:show-label=
"false"
>
<n-checkbox
v-model:checked=
"data.isPositive"
>
是否为积极的标签
</n-checkbox
...
...
@@ -308,6 +314,7 @@ function fetchTags() {
.
then
((
res
)
=>
{
const
data
=
(
res
.
data
&&
res
.
data
.
content
)
||
[]
tagOptions
.
value
=
data
.
map
((
e
)
=>
({
// TODO
label
:
e
.
labelName
,
value
:
e
.
id
,
}))
...
...
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