cnhis-design-vue 3.1.16-beta.12 → 3.1.16-beta.13
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.
|
@@ -161,7 +161,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
161
161
|
init: () => Promise<boolean>;
|
|
162
162
|
handleClickBtn: () => Promise<false | undefined>;
|
|
163
163
|
reformatPrintParams: () => void;
|
|
164
|
-
verifiySuccess: () => void;
|
|
164
|
+
verifiySuccess: (token: any) => void;
|
|
165
165
|
NDropdown: import("vue").DefineComponent<{
|
|
166
166
|
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Dropdown", {
|
|
167
167
|
optionHeightSmall: string;
|
|
@@ -165,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
165
165
|
init: () => Promise<boolean>;
|
|
166
166
|
handleClickBtn: () => Promise<false | undefined>;
|
|
167
167
|
reformatPrintParams: () => void;
|
|
168
|
-
verifiySuccess: () => void;
|
|
168
|
+
verifiySuccess: (token: any) => void;
|
|
169
169
|
NDropdown: import("vue").DefineComponent<{
|
|
170
170
|
readonly theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Dropdown", {
|
|
171
171
|
optionHeightSmall: string;
|
|
@@ -240,6 +240,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
240
240
|
state.visible = false;
|
|
241
241
|
});
|
|
242
242
|
};
|
|
243
|
+
const handleClickEdit = () => {
|
|
244
|
+
props.prevFn().catch(() => {
|
|
245
|
+
prevFnError();
|
|
246
|
+
return Promise.reject();
|
|
247
|
+
}).then(() => {
|
|
248
|
+
state.identityVerification.visible = true;
|
|
249
|
+
}).finally(() => {
|
|
250
|
+
state.visible = false;
|
|
251
|
+
});
|
|
252
|
+
};
|
|
243
253
|
const handleSelect = (key) => {
|
|
244
254
|
switch (key) {
|
|
245
255
|
case "printText":
|
|
@@ -249,7 +259,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
249
259
|
handleClickPreview();
|
|
250
260
|
break;
|
|
251
261
|
case "formatEditText":
|
|
252
|
-
|
|
262
|
+
handleClickEdit();
|
|
253
263
|
break;
|
|
254
264
|
case "downloadPdf":
|
|
255
265
|
handleClickPdf();
|
|
@@ -406,11 +416,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
406
416
|
}
|
|
407
417
|
state.printParams = formatParams(state.templateParams, props.params);
|
|
408
418
|
};
|
|
409
|
-
const verifiySuccess = () => {
|
|
419
|
+
const verifiySuccess = (token) => {
|
|
420
|
+
state.identityVerification.visible = false;
|
|
410
421
|
const queryParams = {
|
|
411
422
|
formatId: state.currentFormatId,
|
|
412
423
|
templateId: getTemplateIdByFormatId(state.currentFormatId),
|
|
413
|
-
params: getPrintParams()
|
|
424
|
+
params: getPrintParams(),
|
|
425
|
+
token
|
|
414
426
|
};
|
|
415
427
|
printInstance.editPrintFormat(queryParams, (res) => {
|
|
416
428
|
callLocalServicesSuccessCb(res, "edit");
|
package/global.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as NaiveUI from 'naive-ui';
|
|
2
|
-
|
|
3
|
-
declare module 'naive-ui' {
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
export const NTree: any;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export {};
|
|
1
|
+
import * as NaiveUI from 'naive-ui';
|
|
2
|
+
|
|
3
|
+
declare module 'naive-ui' {
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
export const NTree: any;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.1.16-beta.
|
|
4
|
+
"version": "3.1.16-beta.13",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"module": "es/packages/index.js",
|
|
7
7
|
"main": "es/packages/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"vue": "^3.2.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@formily/core": "
|
|
35
|
-
"@formily/path": "
|
|
36
|
-
"@formily/vue": "
|
|
34
|
+
"@formily/core": "2.1.9",
|
|
35
|
+
"@formily/path": "2.1.9",
|
|
36
|
+
"@formily/vue": "2.1.9",
|
|
37
37
|
"@highlightjs/vue-plugin": "^2.1.0",
|
|
38
38
|
"@vicons/ionicons5": "^0.12.0",
|
|
39
39
|
"@vueuse/core": "^8.6.0",
|