|
@@ -555,6 +555,8 @@ export default {
|
|
|
|
|
|
|
|
|
startSelection(startRow, startCol) {
|
|
|
+ // 只有添加图标弹窗弹起时有效
|
|
|
+ if(!this.isShowAddChart) return
|
|
|
if(this.disabled) return
|
|
|
console.log('开始选择');
|
|
|
this.startSelectTable=true
|
|
@@ -659,6 +661,9 @@ export default {
|
|
|
}).catch(() => {
|
|
|
if(this.activeSheetId===0){//当是新增表格时
|
|
|
this.sheetOpts = this.sheetOpts.filter(e => e.ExcelInfoId)
|
|
|
+ // 自动切换sheet
|
|
|
+ this.changeSheet(this.sheetOpts[this.sheetOpts.length-1])
|
|
|
+
|
|
|
}else{// 当编辑子表名称时 重置掉好了
|
|
|
this.sheetOpts.forEach(_e=>{
|
|
|
_e.isEdit=false
|
|
@@ -833,6 +838,8 @@ export default {
|
|
|
async saveChildSheet(type){
|
|
|
console.log('执行保存表格操作');
|
|
|
const item=this.sheetOpts.filter(e=>e.ExcelInfoId===this.activeSheetId)[0]
|
|
|
+ console.log(item);
|
|
|
+ console.log(this.sheetOpts,this.activeSheetId);
|
|
|
const params={
|
|
|
ExcelInfoId:this.activeSheetId,
|
|
|
ExcelName: item.ExcelName,
|