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

调换formitem顺序

parent c9f37980
...@@ -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 {
......
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