客户端升级
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "JUSTAR",
|
||||
"version": "2.1.5",
|
||||
"version": "2.1.6",
|
||||
"description": "钜星科技便民问诊系统",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
|
||||
@ -159,7 +159,7 @@ let main ={
|
||||
}
|
||||
},
|
||||
{
|
||||
label:'版本号:2.1.5',
|
||||
label:'版本号:2.1.6',
|
||||
icon: respath + path.sep+ "static"+ path.sep+"images"+ path.sep+"paste.png",
|
||||
},]
|
||||
});
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# For documentation, see https://www.sumatrapdfreader.org/settings/settings3-3-1.html
|
||||
# For documentation, see https://www.sumatrapdfreader.org/settings/settings3.2.html
|
||||
|
||||
MainWindowBackground = #80fff200
|
||||
EscToExit = false
|
||||
@ -13,7 +13,6 @@ FixedPageUI [
|
||||
SelectionColor = #f5fc0c
|
||||
WindowMargin = 2 4 2 4
|
||||
PageSpacing = 4 4
|
||||
HideScrollbars = false
|
||||
]
|
||||
EbookUI [
|
||||
FontName = Georgia
|
||||
@ -47,9 +46,6 @@ ForwardSearch [
|
||||
HighlightColor = #6581ff
|
||||
HighlightPermanent = false
|
||||
]
|
||||
Annotations [
|
||||
HighlightColor = #ffff00
|
||||
]
|
||||
CustomScreenDPI = 0
|
||||
|
||||
RememberStatePerDocument = true
|
||||
@ -67,7 +63,6 @@ WindowPos = 0 0 0 0
|
||||
ShowToc = true
|
||||
SidebarDx = 0
|
||||
TocDy = 0
|
||||
TreeFontSize = 0
|
||||
ShowStartPage = true
|
||||
UseTabs = true
|
||||
|
||||
@ -76,6 +71,6 @@ FileStates [
|
||||
SessionData [
|
||||
]
|
||||
TimeOfLastUpdateCheck = 0 0
|
||||
OpenCountWeek = 604
|
||||
OpenCountWeek = 523
|
||||
|
||||
# Settings after this line have not been recognized by the current version
|
||||
|
||||
BIN
src/js/module/pdf-to-printer/dist/SumatraPDF.exe
vendored
BIN
src/js/module/pdf-to-printer/dist/SumatraPDF.exe
vendored
Binary file not shown.
3
src/js/module/pdf-to-printer/dist/bundle.js
vendored
3
src/js/module/pdf-to-printer/dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
11
src/js/module/pdf-to-printer/dist/types.d.ts
vendored
Normal file
11
src/js/module/pdf-to-printer/dist/types.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
export interface Options {
|
||||
printer?: string;
|
||||
unix?: string[];
|
||||
win32?: string[];
|
||||
}
|
||||
|
||||
export function print(path: string, options?: any): Promise<void>;
|
||||
|
||||
export function getPrinters(): Promise<string[]>;
|
||||
|
||||
export function getDefaultPrinter(): Promise<string>;
|
||||
@ -63,8 +63,8 @@ let print_monitor={
|
||||
print_operation.getPrinterList().then(listPrinter => {
|
||||
return listPrinter
|
||||
}).then(listPrinter => {
|
||||
print_operation.getDefaultPrinter().then(defaultPrinter => {
|
||||
let data ={}
|
||||
let defaultPrinter;
|
||||
//获取打印缓存
|
||||
print_url = os.homedir()+path.sep+"AppData/Local/justarData/print/print.json"
|
||||
log.info("打印机缓存文件:"+print_url);
|
||||
@ -89,7 +89,6 @@ let print_monitor={
|
||||
}else{
|
||||
data = {
|
||||
listPrinter: listPrinter,
|
||||
defaultPrinter: defaultPrinter.name,
|
||||
pdf_url: pdf_url
|
||||
}
|
||||
win.show();
|
||||
@ -98,7 +97,6 @@ let print_monitor={
|
||||
win.webContents.send('printerData', json_data);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
@ -100,14 +100,15 @@
|
||||
let html = [];
|
||||
for (const printer of data.listPrinter) {
|
||||
if (printer.name === defaultPrinter) {
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action active" data-name="${printer.name}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer.name}
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action active" data-name="${printer}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer}
|
||||
</a>
|
||||
`)
|
||||
printData.printer = printer;
|
||||
continue;
|
||||
}
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action" data-name="${printer.name}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer.name}
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action" data-name="${printer}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer}
|
||||
</a>
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user