Commit 6f6f8f5f authored by 郭铭瑶's avatar 郭铭瑶 🤘

调换formitem顺序

parent c9f37980
......@@ -39,17 +39,6 @@
:rules="rules"
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-select
v-model:value="data.relationId"
......@@ -80,14 +69,23 @@
>
</n-form-item>
</template>
<n-form-item v-else label="所属系统" path="systemId">
<n-select
v-model:value="data.systemIds"
placeholder="请选择"
:options="systemOptions"
multiple
/>
</n-form-item>
<template v-else>
<n-form-item label="节点名称" path="propertyName">
<n-input
v-model:value="data.propertyName"
placeholder="请输入"
@keydown.enter.prevent
/>
</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
class="del-btn"
type="error"
......@@ -466,6 +464,7 @@ function submitNewNode(e) {
relationId: tagData[0].relationId,
labelList: tagData.map((item) => {
let obj = {
id: null,
labelName: item.labelName,
}
const curTag = tagOptions.value.find(
......@@ -474,6 +473,7 @@ function submitNewNode(e) {
if (curTag) {
obj = {
id: curTag.id,
labelName: null,
}
}
return {
......
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