Commit 6897f92d authored by 郭铭瑶's avatar 郭铭瑶 🤘

标签去掉节点名称

parent 6ddd03b6
......@@ -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,
}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment