Browse Source
Merge pull request #161 from WJWM0316/master
新增表格index变化了,calcChain公式链里的index也要跟着变化
master
mengshukeji
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
src/global/api.js
|
|
@ -4438,7 +4438,12 @@ export function setSheetAdd(options = {}) { |
|
|
|
order = Number(order); |
|
|
|
|
|
|
|
let index = sheetmanage.generateRandomSheetIndex(); |
|
|
|
|
|
|
|
// calcChain公式链里的index也要跟着变化
|
|
|
|
if (sheetObject.calcChain.length > 0) { |
|
|
|
sheetObject.calcChain.forEach((item) => { |
|
|
|
item.index = index |
|
|
|
}) |
|
|
|
} |
|
|
|
let sheetname = sheetmanage.generateRandomSheetName(Store.luckysheetfile, false); |
|
|
|
if(!!sheetObject.name){ |
|
|
|
let sameName = false; |
|
|
|