app增加打印保存数据和快捷键保存修复
This commit is contained in:
parent
1321437f02
commit
462c58d367
@ -36,6 +36,7 @@ import {
|
|||||||
initCommonDrawApp,
|
initCommonDrawApp,
|
||||||
saveCommonDrawDatas,
|
saveCommonDrawDatas,
|
||||||
loadCommonDrawDatas,
|
loadCommonDrawDatas,
|
||||||
|
saveDrawToServer,
|
||||||
} from './commonApp';
|
} from './commonApp';
|
||||||
import { Notify } from 'quasar';
|
import { Notify } from 'quasar';
|
||||||
import { generateCalculateLink } from 'src/api/GenerateApi';
|
import { generateCalculateLink } from 'src/api/GenerateApi';
|
||||||
@ -110,7 +111,7 @@ export function initJkDrawApp(): IDrawApp {
|
|||||||
global: true,
|
global: true,
|
||||||
combinations: [CombinationKey.Ctrl],
|
combinations: [CombinationKey.Ctrl],
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
saveJkDrawDatas(app);
|
saveDrawToServer(saveJkDrawDatas(app));
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -154,6 +155,7 @@ export async function loadJkDrawDatas(): Promise<IGraphicStorage> {
|
|||||||
|
|
||||||
export function saveJkDrawDatas(app: IDrawApp) {
|
export function saveJkDrawDatas(app: IDrawApp) {
|
||||||
const storage = saveCommonDrawDatas(app);
|
const storage = saveCommonDrawDatas(app);
|
||||||
|
console.log(storage, '保存数据');
|
||||||
const graphics = app.queryStore.getAllGraphics();
|
const graphics = app.queryStore.getAllGraphics();
|
||||||
graphics.forEach((g) => {
|
graphics.forEach((g) => {
|
||||||
if (SectionLink.Type === g.type) {
|
if (SectionLink.Type === g.type) {
|
||||||
|
@ -27,6 +27,7 @@ import {
|
|||||||
initCommonDrawApp,
|
initCommonDrawApp,
|
||||||
saveCommonDrawDatas,
|
saveCommonDrawDatas,
|
||||||
loadCommonDrawDatas,
|
loadCommonDrawDatas,
|
||||||
|
saveDrawToServer,
|
||||||
} from './commonApp';
|
} from './commonApp';
|
||||||
|
|
||||||
let thDrawApp: IDrawApp | null = null;
|
let thDrawApp: IDrawApp | null = null;
|
||||||
@ -85,7 +86,7 @@ export function initThDrawApp(): IDrawApp {
|
|||||||
global: true,
|
global: true,
|
||||||
combinations: [CombinationKey.Ctrl],
|
combinations: [CombinationKey.Ctrl],
|
||||||
onPress: () => {
|
onPress: () => {
|
||||||
saveThDrawDatas(app);
|
saveDrawToServer(saveThDrawDatas(app));
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -126,6 +127,7 @@ export async function loadThDrawDatas(): Promise<IGraphicStorage> {
|
|||||||
|
|
||||||
export function saveThDrawDatas(app: IDrawApp) {
|
export function saveThDrawDatas(app: IDrawApp) {
|
||||||
const storage = saveCommonDrawDatas(app);
|
const storage = saveCommonDrawDatas(app);
|
||||||
|
console.log(storage, '保存数据');
|
||||||
const graphics = app.queryStore.getAllGraphics();
|
const graphics = app.queryStore.getAllGraphics();
|
||||||
graphics.forEach((g) => {
|
graphics.forEach((g) => {
|
||||||
if (TrackSection.Type === g.type) {
|
if (TrackSection.Type === g.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user