瀏覽代碼

数据地图:标签编辑

Xiao_123 3 天之前
父節點
當前提交
e5e7ebcc42
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/dataGovernance/dataLabel/components/edit.vue

+ 6 - 1
src/views/dataGovernance/dataLabel/components/edit.vue

@@ -96,10 +96,15 @@ export default {
       if (!this.$refs.form.validate()) {
       if (!this.$refs.form.validate()) {
         return
         return
       }
       }
-      return this.formItems.options.reduce((acc, cur) => {
+
+      const params = this.formItems.options.reduce((acc, cur) => {
         acc[cur.key] = cur.value
         acc[cur.key] = cur.value
         return acc
         return acc
       }, {})
       }, {})
+      // 编辑带id
+      if (this.itemData?.id) params.id = this.itemData.id
+
+      return params
     }
     }
   }
   }
 }
 }