|
@ -213,7 +213,19 @@ const server = { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
if(type == 1){ //send 成功或失败
|
|
|
if(type == 1){ //send 成功或失败
|
|
|
|
|
|
const oldIndex = data.data.v.index; |
|
|
|
|
|
const sheetToUpdate = Store.luckysheetfile.filter((sheet)=> sheet.index === oldIndex)[0]; |
|
|
|
|
|
if (sheetToUpdate !== null) { |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
const index = data.data.i; |
|
|
|
|
|
sheetToUpdate.index = index; |
|
|
|
|
|
Store.currentSheetIndex = index; |
|
|
|
|
|
|
|
|
|
|
|
$(`#luckysheet-sheets-item${oldIndex}`).attr('data-index', index); |
|
|
|
|
|
$(`#luckysheet-sheets-item${oldIndex}`).prop('id', `luckysheet-sheets-item${index}`); |
|
|
|
|
|
$(`#luckysheet-datavisual-selection-set-${oldIndex}`).prop('id', `luckysheet-datavisual-selection-set-${index}`); |
|
|
|
|
|
}, 1); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
else if(type == 2){ //更新数据
|
|
|
else if(type == 2){ //更新数据
|
|
|
let item = JSON.parse(data.data); |
|
|
let item = JSON.parse(data.data); |
|
|