测试问题修改5
This commit is contained in:
		
							parent
							
								
									d22e69bd5f
								
							
						
					
					
						commit
						7428bbe72a
					
				| 
						 | 
					@ -585,6 +585,8 @@
 | 
				
			||||||
                    this.tableListData1.push(response.data.sumVO)   
 | 
					                    this.tableListData1.push(response.data.sumVO)   
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                this.loading = false;
 | 
					                this.loading = false;
 | 
				
			||||||
 | 
					            }).catch(() => {
 | 
				
			||||||
 | 
					                this.loading = false;
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        /** 撤销按钮操作 */
 | 
					        /** 撤销按钮操作 */
 | 
				
			||||||
| 
						 | 
					@ -640,6 +642,8 @@
 | 
				
			||||||
                    this.tableListData2.push(response.data.sumVO)  
 | 
					                    this.tableListData2.push(response.data.sumVO)  
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                this.loading = false;
 | 
					                this.loading = false;
 | 
				
			||||||
 | 
					            }).catch(() => {
 | 
				
			||||||
 | 
					                this.loading = false;
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -660,6 +664,8 @@
 | 
				
			||||||
                    this.tableListData3.push(response.data.sumVO)  
 | 
					                    this.tableListData3.push(response.data.sumVO)  
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                this.loading = false;
 | 
					                this.loading = false;
 | 
				
			||||||
 | 
					            }).catch(() => {
 | 
				
			||||||
 | 
					                this.loading = false;
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -680,6 +686,8 @@
 | 
				
			||||||
                    this.tableListData4.push(response.data.totalLine)  
 | 
					                    this.tableListData4.push(response.data.totalLine)  
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                this.loading = false;
 | 
					                this.loading = false;
 | 
				
			||||||
 | 
					            }).catch(() => {
 | 
				
			||||||
 | 
					                this.loading = false;
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        /** 到账按钮操作 */
 | 
					        /** 到账按钮操作 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -257,6 +257,8 @@
 | 
				
			||||||
                    this.total = Number(response.data.pageVO.total);
 | 
					                    this.total = Number(response.data.pageVO.total);
 | 
				
			||||||
                    this.tableListData.push(response.data.sumVO)   
 | 
					                    this.tableListData.push(response.data.sumVO)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }else if(this.activeName=='psn'){
 | 
					            }else if(this.activeName=='psn'){
 | 
				
			||||||
                param.type=1
 | 
					                param.type=1
 | 
				
			||||||
| 
						 | 
					@ -265,6 +267,8 @@
 | 
				
			||||||
                    this.total = Number(response.data.pageVO.total);
 | 
					                    this.total = Number(response.data.pageVO.total);
 | 
				
			||||||
                    this.tableListData.push(response.data.sumVO)   
 | 
					                    this.tableListData.push(response.data.sumVO)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }else if(this.activeName=='organization'){
 | 
					            }else if(this.activeName=='organization'){
 | 
				
			||||||
                param.type=2
 | 
					                param.type=2
 | 
				
			||||||
| 
						 | 
					@ -273,6 +277,8 @@
 | 
				
			||||||
                    this.total = Number(response.data.pageVO.total);
 | 
					                    this.total = Number(response.data.pageVO.total);
 | 
				
			||||||
                    this.tableListData.push(response.data.sumVO)   
 | 
					                    this.tableListData.push(response.data.sumVO)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -285,6 +285,8 @@
 | 
				
			||||||
                    this.total = Number(response.resultPage.total);
 | 
					                    this.total = Number(response.resultPage.total);
 | 
				
			||||||
                    this.tableListData.push(response.totalLine)   
 | 
					                    this.tableListData.push(response.totalLine)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }else if(this.activeName=='psn'){
 | 
					            }else if(this.activeName=='psn'){
 | 
				
			||||||
                accountConsumePsnPageApi(param).then(response => {
 | 
					                accountConsumePsnPageApi(param).then(response => {
 | 
				
			||||||
| 
						 | 
					@ -292,6 +294,8 @@
 | 
				
			||||||
                    this.total = Number(response.resultPage.total);
 | 
					                    this.total = Number(response.resultPage.total);
 | 
				
			||||||
                    this.tableListData.push(response.totalLine)   
 | 
					                    this.tableListData.push(response.totalLine)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                }); 
 | 
					                }); 
 | 
				
			||||||
            }else if(this.activeName=='organization'){
 | 
					            }else if(this.activeName=='organization'){
 | 
				
			||||||
                accountConsumeOrganizationPageApi(param).then(response => {
 | 
					                accountConsumeOrganizationPageApi(param).then(response => {
 | 
				
			||||||
| 
						 | 
					@ -299,8 +303,11 @@
 | 
				
			||||||
                    this.total = Number(response.resultPage.total);
 | 
					                    this.total = Number(response.resultPage.total);
 | 
				
			||||||
                    this.tableListData.push(response.totalLine)   
 | 
					                    this.tableListData.push(response.totalLine)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        //日期
 | 
					        //日期
 | 
				
			||||||
        formatDate(date) {
 | 
					        formatDate(date) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -274,6 +274,8 @@
 | 
				
			||||||
                    this.total = Number(response.resultPage.total);
 | 
					                    this.total = Number(response.resultPage.total);
 | 
				
			||||||
                    this.tableListData.push(response.totalLine)   
 | 
					                    this.tableListData.push(response.totalLine)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }else if(this.activeName=='psn'){
 | 
					            }else if(this.activeName=='psn'){
 | 
				
			||||||
                walletConsumePsnPageApi(param).then(response => {
 | 
					                walletConsumePsnPageApi(param).then(response => {
 | 
				
			||||||
| 
						 | 
					@ -281,6 +283,8 @@
 | 
				
			||||||
                    this.total = Number(response.resultPage.total);
 | 
					                    this.total = Number(response.resultPage.total);
 | 
				
			||||||
                    this.tableListData.push(response.totalLine)   
 | 
					                    this.tableListData.push(response.totalLine)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                }); 
 | 
					                }); 
 | 
				
			||||||
            }else if(this.activeName=='organization'){
 | 
					            }else if(this.activeName=='organization'){
 | 
				
			||||||
                walletConsumeOrganizationPageApi(param).then(response => {
 | 
					                walletConsumeOrganizationPageApi(param).then(response => {
 | 
				
			||||||
| 
						 | 
					@ -288,6 +292,8 @@
 | 
				
			||||||
                    this.total = Number(response.resultPage.total);
 | 
					                    this.total = Number(response.resultPage.total);
 | 
				
			||||||
                    this.tableListData.push(response.totalLine)   
 | 
					                    this.tableListData.push(response.totalLine)   
 | 
				
			||||||
                    this.loading = false;
 | 
					                    this.loading = false;
 | 
				
			||||||
 | 
					                }).catch(() => {
 | 
				
			||||||
 | 
					                    this.loading = false;
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,7 +41,7 @@
 | 
				
			||||||
                  <el-button
 | 
					                  <el-button
 | 
				
			||||||
                    type="text"
 | 
					                    type="text"
 | 
				
			||||||
                    size="mini"
 | 
					                    size="mini"
 | 
				
			||||||
                    icon="el-icon-plus" v-if="data.sortNo<3"
 | 
					                    icon="el-icon-plus" v-if="data.level<3"
 | 
				
			||||||
                    @click.stop="() => appendTreeNode(data)"
 | 
					                    @click.stop="() => appendTreeNode(data)"
 | 
				
			||||||
                  >
 | 
					                  >
 | 
				
			||||||
                  </el-button>
 | 
					                  </el-button>
 | 
				
			||||||
| 
						 | 
					@ -482,6 +482,7 @@ export default {
 | 
				
			||||||
    getTreeData() {
 | 
					    getTreeData() {
 | 
				
			||||||
      systemMaterialTreeApi({categoryType:1}).then((response) => {
 | 
					      systemMaterialTreeApi({categoryType:1}).then((response) => {
 | 
				
			||||||
        this.treeOptions = response.data;
 | 
					        this.treeOptions = response.data;
 | 
				
			||||||
 | 
					        this.addLevel(this.treeOptions)
 | 
				
			||||||
        console.log("this.treeOptions",this.treeOptions)
 | 
					        console.log("this.treeOptions",this.treeOptions)
 | 
				
			||||||
        this.queryParams.materialType=this.treeOptions[0].categoryType;
 | 
					        this.queryParams.materialType=this.treeOptions[0].categoryType;
 | 
				
			||||||
        if(this.treeOptions && this.treeOptions.length > 0){ 
 | 
					        if(this.treeOptions && this.treeOptions.length > 0){ 
 | 
				
			||||||
| 
						 | 
					@ -491,6 +492,14 @@ export default {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    addLevel(nodes, level = 0) {
 | 
				
			||||||
 | 
					        nodes.forEach(node => {
 | 
				
			||||||
 | 
					            node.level = level; // 设置当前节点的层级 
 | 
				
			||||||
 | 
					            if (node.children) { // 如果节点有子节点,递归处理子节点 
 | 
				
			||||||
 | 
					                this.addLevel(node.children, level + 1);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    // 节点单击事件 - 左侧树
 | 
					    // 节点单击事件 - 左侧树
 | 
				
			||||||
    async handleNodeClick(data, node) {
 | 
					    async handleNodeClick(data, node) {
 | 
				
			||||||
      console.log(data)
 | 
					      console.log(data)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,7 +41,7 @@
 | 
				
			||||||
                  <el-button
 | 
					                  <el-button
 | 
				
			||||||
                    type="text"
 | 
					                    type="text"
 | 
				
			||||||
                    size="mini"
 | 
					                    size="mini"
 | 
				
			||||||
                    icon="el-icon-plus" v-if="data.sortNo<3"
 | 
					                    icon="el-icon-plus" v-if="data.level<3"
 | 
				
			||||||
                    @click.stop="() => appendTreeNode(data)"
 | 
					                    @click.stop="() => appendTreeNode(data)"
 | 
				
			||||||
                  >
 | 
					                  >
 | 
				
			||||||
                  </el-button>
 | 
					                  </el-button>
 | 
				
			||||||
| 
						 | 
					@ -462,6 +462,7 @@ export default {
 | 
				
			||||||
    getTreeData() {
 | 
					    getTreeData() {
 | 
				
			||||||
      systemMaterialTreeApi({categoryType:2}).then((response) => {
 | 
					      systemMaterialTreeApi({categoryType:2}).then((response) => {
 | 
				
			||||||
        this.treeOptions = response.data; 
 | 
					        this.treeOptions = response.data; 
 | 
				
			||||||
 | 
					        this.addLevel(this.treeOptions)
 | 
				
			||||||
        console.log("this.treeOptions",this.treeOptions)
 | 
					        console.log("this.treeOptions",this.treeOptions)
 | 
				
			||||||
        this.queryParams.materialType=this.treeOptions[0].categoryType;
 | 
					        this.queryParams.materialType=this.treeOptions[0].categoryType;
 | 
				
			||||||
        if(this.treeOptions && this.treeOptions.length > 0){ 
 | 
					        if(this.treeOptions && this.treeOptions.length > 0){ 
 | 
				
			||||||
| 
						 | 
					@ -471,6 +472,14 @@ export default {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    addLevel(nodes, level = 0) {
 | 
				
			||||||
 | 
					        nodes.forEach(node => {
 | 
				
			||||||
 | 
					            node.level = level; // 设置当前节点的层级 
 | 
				
			||||||
 | 
					            if (node.children) { // 如果节点有子节点,递归处理子节点 
 | 
				
			||||||
 | 
					                this.addLevel(node.children, level + 1);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    // 节点单击事件 - 左侧树
 | 
					    // 节点单击事件 - 左侧树
 | 
				
			||||||
    async handleNodeClick(data, node) {
 | 
					    async handleNodeClick(data, node) {
 | 
				
			||||||
      console.log(data)
 | 
					      console.log(data)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue