mengshukeji
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
6 deletions
-
package.json
-
src/controllers/print.js
|
|
|
@ -38,7 +38,6 @@ |
|
|
|
"dayjs": "^1.9.6", |
|
|
|
"flatpickr": "^4.6.6", |
|
|
|
"jquery": "^2.2.4", |
|
|
|
"jspdf": "^2.1.1", |
|
|
|
"pako": "^1.0.11" |
|
|
|
}, |
|
|
|
"scripts": { |
|
|
|
|
|
|
|
@ -3,7 +3,6 @@ import {zoomChange} from './zoom'; |
|
|
|
import sheetmanage from './sheetmanage'; |
|
|
|
import server from './server'; |
|
|
|
import Store from '../store'; |
|
|
|
import { jsPDF } from "jspdf"; |
|
|
|
|
|
|
|
let ExcelPlaceholder = { |
|
|
|
"[tabName]":"&A", |
|
|
|
@ -40,7 +39,7 @@ export function viewChange(curType, preType){ |
|
|
|
} |
|
|
|
|
|
|
|
let defaultZoom = 1, type="zoomScaleNormal"; |
|
|
|
|
|
|
|
|
|
|
|
if(curType=="viewNormal"){ |
|
|
|
type = "viewNormalZoomScale"; |
|
|
|
} |
|
|
|
@ -60,11 +59,11 @@ export function viewChange(curType, preType){ |
|
|
|
currentSheet.config.curentsheetView = curType; |
|
|
|
|
|
|
|
if (Store.clearjfundo) { |
|
|
|
Store.jfredo.push({ |
|
|
|
Store.jfredo.push({ |
|
|
|
"type": "viewChange", |
|
|
|
"curType": curType, |
|
|
|
"preType": preType, |
|
|
|
"sheetIndex": Store.currentSheetIndex, |
|
|
|
"sheetIndex": Store.currentSheetIndex, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
@ -102,4 +101,4 @@ export function printInitial(){ |
|
|
|
switchViewBtn($(this)); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|