修复鉴定记录

This commit is contained in:
lzyme.dev@gmail.com
2026-10-12 00:11:40 +08:00
parent 89ab8bcff8
commit 9d322cc76d
3 changed files with 22 additions and 5 deletions
+15 -3
View File
@@ -88,6 +88,7 @@
System.addImportMap({ System.addImportMap({
imports: { imports: {
"tabulator-tables": "user:tabulator-tables",
"jquery": "user:jquery", "jquery": "user:jquery",
"localforage": "user:localforage", "localforage": "user:localforage",
"toastify-js": "user:toastify-js", "toastify-js": "user:toastify-js",
@@ -96,6 +97,11 @@ System.addImportMap({
"qrcodejs": "user:qrcodejs" "qrcodejs": "user:qrcodejs"
} }
}); });
System.set("user:tabulator-tables", (() => {
const _ = Tabulator;
('default' in _) || (_.default = _);
return _
})());
System.set("user:jquery", (() => { System.set("user:jquery", (() => {
const _ = jQuery; const _ = jQuery;
('default' in _) || (_.default = _); ('default' in _) || (_.default = _);
@@ -127,9 +133,9 @@ System.set("user:qrcodejs", (() => {
return _ return _
})()); })());
System.register("./__entry.js", ['jquery', 'localforage', 'toastify-js', 'blueimp-md5', 'viewerjs', 'qrcodejs'], (function (exports, module) { System.register("./__entry.js", ['jquery', 'localforage', 'toastify-js', 'blueimp-md5', 'viewerjs', 'qrcodejs', 'tabulator-tables'], (function (exports, module) {
'use strict'; 'use strict';
var $$1, localforage$1, Toastify$1, md5$1, Viewer$1, QRCode$1; var $$1, localforage$1, Toastify$1, md5$1, Viewer$1, QRCode$1, TabulatorFull;
return { return {
setters: [module => { setters: [module => {
$$1 = module.default; $$1 = module.default;
@@ -143,6 +149,8 @@ System.register("./__entry.js", ['jquery', 'localforage', 'toastify-js', 'blueim
Viewer$1 = module.default; Viewer$1 = module.default;
}, module => { }, module => {
QRCode$1 = module.default; QRCode$1 = module.default;
}, module => {
TabulatorFull = module.TabulatorFull;
}], }],
execute: (async function () { execute: (async function () {
@@ -7077,7 +7085,9 @@ ${value}\r
ajaxURL: "queryRealm", ajaxURL: "queryRealm",
dataLoader: false, dataLoader: false,
ajaxRequestFunc: async (url, ajaxConfig, params) => { ajaxRequestFunc: async (url, ajaxConfig, params) => {
const page = params.page, size = params.size, sort = params.sort; const page = (null == params ? void 0 : params.page) || 1,
size = (null == params ? void 0 : params.size) || 50,
sort = (null == params ? void 0 : params.sort) || [];
return await this.getDataList(page, size, sort); return await this.getDataList(page, size, sort);
}, },
dataReceiveParams: { dataReceiveParams: {
@@ -17494,6 +17504,8 @@ ${err.stack}` : "");
})); }));
} }
} }
window.Tabulator = TabulatorFull;
window.javDbApi = javDbApi; window.javDbApi = javDbApi;
const _unsafeWindow = /* @__PURE__ */ (() => typeof unsafeWindow !== "undefined" ? unsafeWindow : window)(); const _unsafeWindow = /* @__PURE__ */ (() => typeof unsafeWindow !== "undefined" ? unsafeWindow : window)();
_unsafeWindow.utils = window.utils = new Utils(); _unsafeWindow.utils = window.utils = new Utils();
+3
View File
@@ -6,6 +6,9 @@ import { Utils } from './core/utils.js';
import { GmHttp } from './core/gmHttp.js'; import { GmHttp } from './core/gmHttp.js';
import { PluginManager } from './core/plugin-manager.js'; import { PluginManager } from './core/plugin-manager.js';
import { BasePlugin } from './core/base-plugin.js'; import { BasePlugin } from './core/base-plugin.js';
import {TabulatorFull as Tabulator} from 'tabulator-tables';
window.Tabulator = Tabulator;
import { javDbApi, buildSignature, apiUrl } from './api/javdb.js'; import { javDbApi, buildSignature, apiUrl } from './api/javdb.js';
window.javDbApi = javDbApi; window.javDbApi = javDbApi;
+4 -2
View File
@@ -222,7 +222,9 @@ class HistoryPlugin extends BasePlugin {
ajaxURL: "queryRealm", ajaxURL: "queryRealm",
dataLoader: !1, dataLoader: !1,
ajaxRequestFunc: async (url, ajaxConfig, params) => { ajaxRequestFunc: async (url, ajaxConfig, params) => {
const page = params.page, size = params.size, sort = params.sort; const page = (null == params ? void 0 : params.page) || 1,
size = (null == params ? void 0 : params.size) || 50,
sort = (null == params ? void 0 : params.sort) || [];
return await this.getDataList(page, size, sort); return await this.getDataList(page, size, sort);
}, },
dataReceiveParams: { dataReceiveParams: {
@@ -476,4 +478,4 @@ class HistoryPlugin extends BasePlugin {
} }
export { HistoryPlugin }; export { HistoryPlugin };