Explorar o código

节点参数删除到空

gangyj %!s(int64=2) %!d(string=hai) anos
pai
achega
5b59ed30ac

+ 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",