sa2kit 1.6.106 → 1.6.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/showmasterpiece/index.js +9 -9
- package/dist/showmasterpiece/index.js.map +1 -1
- package/dist/showmasterpiece/index.mjs +9 -9
- package/dist/showmasterpiece/index.mjs.map +1 -1
- package/dist/showmasterpiece/ui/web/index.js +9 -9
- package/dist/showmasterpiece/ui/web/index.js.map +1 -1
- package/dist/showmasterpiece/ui/web/index.mjs +9 -9
- package/dist/showmasterpiece/ui/web/index.mjs.map +1 -1
- package/dist/showmasterpiece/web/index.js +9 -9
- package/dist/showmasterpiece/web/index.js.map +1 -1
- package/dist/showmasterpiece/web/index.mjs +9 -9
- package/dist/showmasterpiece/web/index.mjs.map +1 -1
- package/dist/universalExport/index.js +5 -5
- package/dist/universalExport/index.js.map +1 -1
- package/dist/universalExport/index.mjs +5 -5
- package/dist/universalExport/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15882,11 +15882,8 @@ var UniversalExportClient = class {
|
|
|
15882
15882
|
};
|
|
15883
15883
|
if (typeof request.configId === "string") {
|
|
15884
15884
|
requestBody.configId = request.configId;
|
|
15885
|
-
} else {
|
|
15885
|
+
} else if (request.configId && typeof request.configId === "object") {
|
|
15886
15886
|
requestBody.config = request.configId;
|
|
15887
|
-
if (request.configId?.id) {
|
|
15888
|
-
requestBody.configId = request.configId.id;
|
|
15889
|
-
}
|
|
15890
15887
|
}
|
|
15891
15888
|
if (isDataArray) {
|
|
15892
15889
|
requestBody.data = request.dataSource;
|
|
@@ -16033,7 +16030,10 @@ var UniversalExportClient = class {
|
|
|
16033
16030
|
* 转换API返回的导出结果
|
|
16034
16031
|
*/
|
|
16035
16032
|
transformExportResultFromAPI(apiResult) {
|
|
16036
|
-
const fileBlob = this.createFileBlobFromBase64(
|
|
16033
|
+
const fileBlob = this.createFileBlobFromBase64(
|
|
16034
|
+
apiResult.fileData ?? apiResult.fileBlob,
|
|
16035
|
+
apiResult.fileName
|
|
16036
|
+
);
|
|
16037
16037
|
return {
|
|
16038
16038
|
exportId: apiResult.exportId,
|
|
16039
16039
|
fileName: apiResult.fileName,
|
|
@@ -16840,7 +16840,6 @@ var BookingAdminPanel = ({
|
|
|
16840
16840
|
config: exportConfig,
|
|
16841
16841
|
data: exportData,
|
|
16842
16842
|
customFileName: `\u9884\u8BA2\u4FE1\u606F_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}${enableUserPriceCalculation ? "_\u542B\u7528\u6237\u603B\u4EF7" : ""}`,
|
|
16843
|
-
// 不传递分页参数,避免导出时被分页限制
|
|
16844
16843
|
pagination: void 0
|
|
16845
16844
|
})
|
|
16846
16845
|
});
|
|
@@ -16849,10 +16848,11 @@ var BookingAdminPanel = ({
|
|
|
16849
16848
|
throw new Error(errorData.error || `\u5BFC\u51FA\u5931\u8D25: ${response.statusText}`);
|
|
16850
16849
|
}
|
|
16851
16850
|
const responseData = await response.json();
|
|
16852
|
-
|
|
16851
|
+
const base64Payload = responseData.result?.fileData ?? responseData.result?.fileBlob;
|
|
16852
|
+
if (responseData.result && base64Payload) {
|
|
16853
16853
|
console.log("\u{1F4C1} [BookingAdminPanel] \u68C0\u6D4B\u5230\u6587\u4EF6\u6570\u636E\uFF0C\u5F00\u59CB\u4E0B\u8F7D");
|
|
16854
|
-
const {
|
|
16855
|
-
const binaryString = atob(
|
|
16854
|
+
const { fileName } = responseData.result;
|
|
16855
|
+
const binaryString = atob(base64Payload);
|
|
16856
16856
|
const bytes = new Uint8Array(binaryString.length);
|
|
16857
16857
|
for (let i = 0; i < binaryString.length; i++) {
|
|
16858
16858
|
bytes[i] = binaryString.charCodeAt(i);
|