cnhis-design-vue 3.1.38-beta.5 → 3.1.38-beta.6
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.
|
@@ -36,6 +36,7 @@ const _hoisted_5 = {
|
|
|
36
36
|
class: "refresh-row"
|
|
37
37
|
};
|
|
38
38
|
const _hoisted_6 = {
|
|
39
|
+
key: 1,
|
|
39
40
|
class: "big-table-total"
|
|
40
41
|
};
|
|
41
42
|
const _hoisted_7 = {
|
|
@@ -2325,7 +2326,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2325
2326
|
handleFilterClearAll
|
|
2326
2327
|
});
|
|
2327
2328
|
return (_ctx, _cache) => {
|
|
2328
|
-
var _a;
|
|
2329
|
+
var _a, _b;
|
|
2329
2330
|
return openBlock(), createElementBlock(Fragment, null, [state.anchorList.length ? (openBlock(), createBlock(unref(NTabs), {
|
|
2330
2331
|
key: 0,
|
|
2331
2332
|
type: "line",
|
|
@@ -2479,7 +2480,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2479
2480
|
}, [createVNode(unref(NIcon), {
|
|
2480
2481
|
size: "14",
|
|
2481
2482
|
component: unref(SyncOutline)
|
|
2482
|
-
}, null, 8, ["component"]), createElementVNode("p", _hoisted_5, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6),
|
|
2483
|
+
}, null, 8, ["component"]), createElementVNode("p", _hoisted_5, toDisplayString(_ctx.refreshRow) + "\u6761\u66F4\u65B0", 1)], 512), [[vShow, props.refreshRow > 0 && !props.isNestTable]])], 6), ((_b = props.totalList) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_6, [(openBlock(true), createElementBlock(Fragment, null, renderList(props.totalList, (item, index) => {
|
|
2483
2484
|
return openBlock(), createElementBlock("div", {
|
|
2484
2485
|
class: "big-table-total-item",
|
|
2485
2486
|
key: index
|
|
@@ -2489,7 +2490,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2489
2490
|
key: i
|
|
2490
2491
|
}, [createTextVNode(toDisplayString(price.name) + ": ", 1), createElementVNode("span", null, toDisplayString(price.value), 1)]);
|
|
2491
2492
|
}), 128))])]);
|
|
2492
|
-
}), 128))])], 64);
|
|
2493
|
+
}), 128))])) : createCommentVNode("v-if", true)], 64);
|
|
2493
2494
|
};
|
|
2494
2495
|
}
|
|
2495
2496
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
+
import { isArray } from 'lodash-es';
|
|
2
3
|
import { IdentityVerificationDialog, PreviewDialog } from './dialog.js';
|
|
3
4
|
import { isIReport, useBrowserPrint } from './browserPrint.js';
|
|
4
5
|
import { getCurrentInstance } from 'vue';
|
|
@@ -317,7 +318,21 @@ class Print {
|
|
|
317
318
|
onReject(null);
|
|
318
319
|
if (isIReport(params.formatId))
|
|
319
320
|
return onResolve(res);
|
|
320
|
-
|
|
321
|
+
const _this = this;
|
|
322
|
+
const result = await getFiledir(res.filedir);
|
|
323
|
+
onResolve(result);
|
|
324
|
+
async function getFiledir(filedir) {
|
|
325
|
+
const _result = [];
|
|
326
|
+
const result2 = JSON.parse(filedir);
|
|
327
|
+
if (!isArray(result2))
|
|
328
|
+
return await _this._downloadPDF("");
|
|
329
|
+
if (result2.length === 1)
|
|
330
|
+
return await _this._downloadPDF(result2[0] || "");
|
|
331
|
+
for (let i = 0, len = result2.length; i < len; i++) {
|
|
332
|
+
_result.push(await _this._downloadPDF(result2[i] || ""));
|
|
333
|
+
}
|
|
334
|
+
return _result;
|
|
335
|
+
}
|
|
321
336
|
},
|
|
322
337
|
(err) => onReject(err),
|
|
323
338
|
"downloadPDF"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.38-beta.
|
|
3
|
+
"version": "3.1.38-beta.6",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "f9b7401b69999457625c29a25b05f365f643a25b"
|
|
65
65
|
}
|