Skip to content

Commit

Permalink
change contract number
Browse files Browse the repository at this point in the history
  • Loading branch information
leary423 committed Nov 8, 2023
1 parent d5d3b61 commit 14d588a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/projects/projectsDeploymentOrchestration/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,6 @@ const deployManyContract = async () => {
if (noSaveContract.value.length == 0) {
// 保存编排信息
await saveOrchestrationInfo();
numberValue.value = contractOrchestration.value.length;
// 部署调用代码
visibleNumber.value = true
Expand Down Expand Up @@ -687,8 +686,10 @@ const getArrangeDeployList = async () => {
res.data.forEach((item: any) => {
if (item != '') {
let strList = JSON.parse(item);
console.log("strList:",strList);
strList.deployStep.forEach((sub: any) => {
deployStep.push(sub);
numberValue.value += sub.steps.length - 1; // method数量累加
if (sub.contract.proxy) {
let copyData = JSON.parse(JSON.stringify(sub));
copyData.steps.length = 1; // 只需要copy一条数据
Expand Down Expand Up @@ -730,6 +731,7 @@ const getArrangeDeployList = async () => {
}
}
});
numberValue.value += deployStep.length; //合约数量累加
deployArrange.value = {
deployStep: deployStep,
step: 0,
Expand Down

0 comments on commit 14d588a

Please sign in to comment.