瀏覽代碼

节点参数删除到空

gangyj 2 年之前
父節點
當前提交
5b59ed30ac
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/views/manager/projectinfo/tree.vue
  2. 2 2
      src/views/manager/wbsinfo/edit.vue

+ 2 - 2
src/views/manager/projectinfo/tree.vue

@@ -2568,10 +2568,10 @@ export default {
     async nodeInfoSave () {//节点参数弹框保存按钮
       if (this.nodeInfoTable) {
         if(this.nodeInfoTable.length == 0){
-          await this.saveOrUpdateBatch({
+          await this.saveOrUpdateBatch([{
             "wbsId": this.id,
             "type": -1,
-          })
+          }])
           this.nodeInfoVisible = false
           this.$message({
             type: "success",

+ 2 - 2
src/views/manager/wbsinfo/edit.vue

@@ -2590,10 +2590,10 @@ export default {
     async nodeInfoSave () {//节点参数弹框保存按钮
       if (this.nodeInfoTable) {
         if(this.nodeInfoTable.length == 0){
-          await this.saveOrUpdateBatch({
+          await this.saveOrUpdateBatch([{
             "wbsId": this.id,
             "type": -1,
-          })
+          }])
           this.nodeInfoVisible = false
           this.$message({
             type: "success",