소스 검색

节点参数删除到空

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