cnhis-design-vue 3.3.3-beta.49 → 3.3.3-beta.52
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/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +6 -2
- package/es/components/iho-chat/src/components/ImageLightbox.vue2.js +1 -1
- package/es/components/iho-chat/src/utils/index.d.ts +1 -0
- package/es/components/iho-chat/src/utils/index.js +7 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/scale-view/index.d.ts +13 -0
- package/es/components/scale-view/src/ScaleView.vue.d.ts +13 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +2 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +4 -0
- package/es/components/vertify/index.d.ts +1 -0
- package/es/components/vertify/index.js +1 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.d.ts +89 -0
- package/es/components/vertify/src/components/IdentityVerification.vue.js +6 -0
- package/es/components/vertify/src/components/IdentityVerification.vue2.js +213 -0
- package/es/components/vertify/src/utils/dialog.d.ts +7 -0
- package/es/components/vertify/src/utils/dialog.js +73 -0
- package/es/components/vertify/src/utils/index.d.ts +11 -0
- package/es/components/vertify/src/utils/index.js +24 -0
- package/es/components/vertify/style/index.css +1 -0
- package/es/components/vod-chunk-upload/index.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +19 -2
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +104 -75
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +1 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +20 -3
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +4 -0
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +6 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +13 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +6 -1
- package/es/components/vod-chunk-upload/style/index.css +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
package/es/components/index.d.ts
CHANGED
@@ -64,6 +64,7 @@ export * from './slider-tree';
|
|
64
64
|
export * from './audio-sdk';
|
65
65
|
export * from './step-notice';
|
66
66
|
export * from './info-header';
|
67
|
+
export * from './vertify';
|
67
68
|
declare function install(app: App): void;
|
68
69
|
export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CIhoChat, CCallback, CSliderTree, CBodySelect, CDefaultPage, CStepNotice, CToothBitmap, CCardRender, CBranchNotice, CFieldEditor, CAudioSdk };
|
69
70
|
declare const _default: {
|
package/es/components/index.js
CHANGED
@@ -103,6 +103,7 @@ export { useScrollLoading } from '../shared/hooks/useScrollLoading.js';
|
|
103
103
|
export { vFlexibleResize } from '../shared/directive/flexibleResize.js';
|
104
104
|
export { useGuide } from './guide/src/useGuide.js';
|
105
105
|
export { DragScroll, useDragScroll } from './drag-scroll/src/index.js';
|
106
|
+
export { vertify } from './vertify/src/utils/index.js';
|
106
107
|
export { default as CRecorder } from './audio-sdk/src/utils/recorder/recorder.js';
|
107
108
|
export { useAnchor } from './form-render/src/hooks/useAnchor.js';
|
108
109
|
export { BusinessCollector, useBusinessBinding } from './form-render/src/hooks/useBusinessBinding.js';
|
@@ -92,6 +92,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
92
92
|
type: FunctionConstructor;
|
93
93
|
default: () => Promise<{}>;
|
94
94
|
};
|
95
|
+
chunkUploadApiConfig: {
|
96
|
+
type: ObjectConstructor;
|
97
|
+
default: () => {};
|
98
|
+
};
|
95
99
|
fontSizeObj: {
|
96
100
|
type: ObjectConstructor;
|
97
101
|
default: () => {
|
@@ -256,6 +260,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
256
260
|
type: FunctionConstructor;
|
257
261
|
default: () => Promise<{}>;
|
258
262
|
};
|
263
|
+
chunkUploadApiConfig: {
|
264
|
+
type: ObjectConstructor;
|
265
|
+
default: () => {};
|
266
|
+
};
|
259
267
|
fontSizeObj: {
|
260
268
|
type: ObjectConstructor;
|
261
269
|
default: () => {
|
@@ -914,6 +922,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
914
922
|
type: FunctionConstructor;
|
915
923
|
default: () => Promise<{}>;
|
916
924
|
};
|
925
|
+
chunkUploadApiConfig: {
|
926
|
+
type: ObjectConstructor;
|
927
|
+
default: () => {};
|
928
|
+
};
|
917
929
|
fontSizeObj: {
|
918
930
|
type: ObjectConstructor;
|
919
931
|
default: () => {
|
@@ -978,6 +990,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
978
990
|
uploadFileUrl: string;
|
979
991
|
ak: string;
|
980
992
|
getChunkUploadConfig: Function;
|
993
|
+
chunkUploadApiConfig: Record<string, any>;
|
981
994
|
fontSizeObj: Record<string, any>;
|
982
995
|
hasExtendBtn: boolean;
|
983
996
|
printingHideBtn: boolean;
|
@@ -91,6 +91,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
91
|
type: FunctionConstructor;
|
92
92
|
default: () => Promise<{}>;
|
93
93
|
};
|
94
|
+
chunkUploadApiConfig: {
|
95
|
+
type: ObjectConstructor;
|
96
|
+
default: () => {};
|
97
|
+
};
|
94
98
|
fontSizeObj: {
|
95
99
|
type: ObjectConstructor;
|
96
100
|
default: () => {
|
@@ -255,6 +259,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
255
259
|
type: FunctionConstructor;
|
256
260
|
default: () => Promise<{}>;
|
257
261
|
};
|
262
|
+
chunkUploadApiConfig: {
|
263
|
+
type: ObjectConstructor;
|
264
|
+
default: () => {};
|
265
|
+
};
|
258
266
|
fontSizeObj: {
|
259
267
|
type: ObjectConstructor;
|
260
268
|
default: () => {
|
@@ -913,6 +921,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
913
921
|
type: FunctionConstructor;
|
914
922
|
default: () => Promise<{}>;
|
915
923
|
};
|
924
|
+
chunkUploadApiConfig: {
|
925
|
+
type: ObjectConstructor;
|
926
|
+
default: () => {};
|
927
|
+
};
|
916
928
|
fontSizeObj: {
|
917
929
|
type: ObjectConstructor;
|
918
930
|
default: () => {
|
@@ -977,6 +989,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
977
989
|
uploadFileUrl: string;
|
978
990
|
ak: string;
|
979
991
|
getChunkUploadConfig: Function;
|
992
|
+
chunkUploadApiConfig: Record<string, any>;
|
980
993
|
fontSizeObj: Record<string, any>;
|
981
994
|
hasExtendBtn: boolean;
|
982
995
|
printingHideBtn: boolean;
|
@@ -320,7 +320,8 @@ const ScaleViewComputed = (props, state, config) => {
|
|
320
320
|
const vodChunkUploadProps = computed(() => {
|
321
321
|
return {
|
322
322
|
source: "guage",
|
323
|
-
getChunkUploadConfig: props.getChunkUploadConfig
|
323
|
+
getChunkUploadConfig: props.getChunkUploadConfig,
|
324
|
+
chunkUploadApiConfig: props.chunkUploadApiConfig
|
324
325
|
};
|
325
326
|
});
|
326
327
|
const selectLabelProps = computed(() => {
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './src/utils';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { vertify } from './src/utils/index.js';
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { FormRules } from 'naive-ui';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
verifyUser: {
|
4
|
+
type: FunctionConstructor;
|
5
|
+
required: false;
|
6
|
+
default: () => Promise<void>;
|
7
|
+
};
|
8
|
+
identityVerificationTitle: {
|
9
|
+
type: StringConstructor;
|
10
|
+
required: false;
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
token: {
|
14
|
+
type: StringConstructor;
|
15
|
+
required: true;
|
16
|
+
default: string;
|
17
|
+
};
|
18
|
+
modelValue: {
|
19
|
+
type: BooleanConstructor;
|
20
|
+
required: true;
|
21
|
+
};
|
22
|
+
}, {
|
23
|
+
loginCheckUrl: string;
|
24
|
+
DEFAULT_FORM: {
|
25
|
+
account: string;
|
26
|
+
password: string;
|
27
|
+
};
|
28
|
+
message: import("naive-ui").MessageApi;
|
29
|
+
props: {
|
30
|
+
verifyUser: Function;
|
31
|
+
identityVerificationTitle: string;
|
32
|
+
token: string;
|
33
|
+
modelValue: boolean;
|
34
|
+
};
|
35
|
+
emit: (event: "close" | "success" | "update:modelValue" | "afterLeaveComponent", ...args: any[]) => void;
|
36
|
+
form: {
|
37
|
+
account: string;
|
38
|
+
password: string;
|
39
|
+
};
|
40
|
+
rules: FormRules;
|
41
|
+
style: {
|
42
|
+
width: string;
|
43
|
+
};
|
44
|
+
formRef: import("vue").Ref<{
|
45
|
+
validate: import("naive-ui/es/form/src/interface").FormValidate;
|
46
|
+
restoreValidation: () => void;
|
47
|
+
} | null>;
|
48
|
+
loading: import("vue").Ref<boolean>;
|
49
|
+
handleClickClose: () => void;
|
50
|
+
handleAfterLeave: () => void;
|
51
|
+
submitLoginData: () => Promise<false | undefined>;
|
52
|
+
handleValidate: () => void;
|
53
|
+
NSpace: any;
|
54
|
+
NButton: any;
|
55
|
+
NModal: any;
|
56
|
+
NForm: any;
|
57
|
+
NFormItem: any;
|
58
|
+
NInput: any;
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue" | "afterLeaveComponent")[], "close" | "success" | "update:modelValue" | "afterLeaveComponent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
60
|
+
verifyUser: {
|
61
|
+
type: FunctionConstructor;
|
62
|
+
required: false;
|
63
|
+
default: () => Promise<void>;
|
64
|
+
};
|
65
|
+
identityVerificationTitle: {
|
66
|
+
type: StringConstructor;
|
67
|
+
required: false;
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
token: {
|
71
|
+
type: StringConstructor;
|
72
|
+
required: true;
|
73
|
+
default: string;
|
74
|
+
};
|
75
|
+
modelValue: {
|
76
|
+
type: BooleanConstructor;
|
77
|
+
required: true;
|
78
|
+
};
|
79
|
+
}>> & {
|
80
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
81
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
82
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
83
|
+
onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
|
84
|
+
}, {
|
85
|
+
token: string;
|
86
|
+
verifyUser: Function;
|
87
|
+
identityVerificationTitle: string;
|
88
|
+
}>;
|
89
|
+
export default _default;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import _sfc_main from './IdentityVerification.vue2.js';
|
2
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.js';
|
3
|
+
|
4
|
+
var IdentityVerification = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "IdentityVerification.vue"]]);
|
5
|
+
|
6
|
+
export { IdentityVerification as default };
|
@@ -0,0 +1,213 @@
|
|
1
|
+
import { defineComponent, reactive, ref, watch, openBlock, createBlock, unref, normalizeStyle, withCtx, createElementVNode, createVNode, withKeys, createTextVNode } from 'vue';
|
2
|
+
import axios from 'axios';
|
3
|
+
import { createDiscreteApi, NModal, NForm, NFormItem, NInput, NSpace, NButton } from 'naive-ui';
|
4
|
+
|
5
|
+
const _hoisted_1 = {
|
6
|
+
class: "content"
|
7
|
+
};
|
8
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
9
|
+
__name: "IdentityVerification",
|
10
|
+
props: {
|
11
|
+
verifyUser: {
|
12
|
+
type: Function,
|
13
|
+
default: () => Promise.resolve()
|
14
|
+
},
|
15
|
+
identityVerificationTitle: {
|
16
|
+
default: "\u8DE8\u8D26\u53F7\u64CD\u4F5C"
|
17
|
+
},
|
18
|
+
token: {
|
19
|
+
default: ""
|
20
|
+
},
|
21
|
+
modelValue: {
|
22
|
+
type: Boolean
|
23
|
+
}
|
24
|
+
},
|
25
|
+
emits: ["update:modelValue", "success", "close", "afterLeaveComponent"],
|
26
|
+
setup(__props, {
|
27
|
+
emit
|
28
|
+
}) {
|
29
|
+
const props = __props;
|
30
|
+
const loginCheckUrl = "/user-center/user/manage/checkBusPasswordByAuthEmp";
|
31
|
+
const DEFAULT_FORM = {
|
32
|
+
account: "",
|
33
|
+
password: ""
|
34
|
+
};
|
35
|
+
const {
|
36
|
+
message
|
37
|
+
} = createDiscreteApi(["message"]);
|
38
|
+
let form = reactive({
|
39
|
+
...DEFAULT_FORM
|
40
|
+
});
|
41
|
+
const rules = {
|
42
|
+
account: {
|
43
|
+
required: true,
|
44
|
+
message: "\u8BF7\u8F93\u5165\u5DE5\u53F7"
|
45
|
+
},
|
46
|
+
password: {
|
47
|
+
required: true,
|
48
|
+
message: function() {
|
49
|
+
var _a, _b, _c;
|
50
|
+
try {
|
51
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.469")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.469")) || "\u8BF7\u8F93\u5165\u5BC6\u7801";
|
52
|
+
} catch (e) {
|
53
|
+
return "\u8BF7\u8F93\u5165\u5BC6\u7801";
|
54
|
+
}
|
55
|
+
}()
|
56
|
+
}
|
57
|
+
};
|
58
|
+
const style = {
|
59
|
+
width: "416px"
|
60
|
+
};
|
61
|
+
const formRef = ref(null);
|
62
|
+
const loading = ref(false);
|
63
|
+
const handleClickClose = () => {
|
64
|
+
emit("update:modelValue", false);
|
65
|
+
emit("close");
|
66
|
+
};
|
67
|
+
const handleAfterLeave = () => {
|
68
|
+
emit("afterLeaveComponent");
|
69
|
+
};
|
70
|
+
const submitLoginData = async () => {
|
71
|
+
try {
|
72
|
+
loading.value = true;
|
73
|
+
const {
|
74
|
+
data = {}
|
75
|
+
} = await axios({
|
76
|
+
method: "get",
|
77
|
+
url: loginCheckUrl,
|
78
|
+
headers: {
|
79
|
+
Authorization: "bearer " + props.token
|
80
|
+
},
|
81
|
+
params: {
|
82
|
+
empNo: form.account,
|
83
|
+
busPassword: form.password
|
84
|
+
}
|
85
|
+
}) || {};
|
86
|
+
if (data.result !== "SUCCESS") {
|
87
|
+
message.warning((data == null ? void 0 : data.msg) || (data == null ? void 0 : data.message));
|
88
|
+
return false;
|
89
|
+
}
|
90
|
+
emit("success", form);
|
91
|
+
} catch (error) {
|
92
|
+
message.warning((error == null ? void 0 : error.message) || "\u6821\u9A8C\u4E1A\u52A1\u5BC6\u7801\u63A5\u53E3\u8BF7\u6C42\u5931\u8D25");
|
93
|
+
} finally {
|
94
|
+
loading.value = false;
|
95
|
+
}
|
96
|
+
};
|
97
|
+
const handleValidate = () => {
|
98
|
+
var _a;
|
99
|
+
(_a = formRef.value) == null ? void 0 : _a.validate((errors) => {
|
100
|
+
if (!errors) {
|
101
|
+
submitLoginData();
|
102
|
+
} else {
|
103
|
+
console.log(errors);
|
104
|
+
return false;
|
105
|
+
}
|
106
|
+
});
|
107
|
+
};
|
108
|
+
watch(() => props.modelValue, (val) => {
|
109
|
+
if (val)
|
110
|
+
return;
|
111
|
+
Object.assign(form, DEFAULT_FORM);
|
112
|
+
});
|
113
|
+
return (_ctx, _cache) => {
|
114
|
+
return openBlock(), createBlock(unref(NModal), {
|
115
|
+
class: "c-identity-verification-modal",
|
116
|
+
preset: "dialog",
|
117
|
+
title: __props.identityVerificationTitle,
|
118
|
+
show: __props.modelValue,
|
119
|
+
"close-on-esc": false,
|
120
|
+
"show-icon": false,
|
121
|
+
style: normalizeStyle({
|
122
|
+
width: style.width,
|
123
|
+
overflowY: "auto"
|
124
|
+
}),
|
125
|
+
onClose: handleClickClose,
|
126
|
+
onNegativeClick: handleClickClose,
|
127
|
+
onPositiveClick: handleValidate,
|
128
|
+
onAfterLeave: handleAfterLeave
|
129
|
+
}, {
|
130
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createVNode(unref(NForm), {
|
131
|
+
ref_key: "formRef",
|
132
|
+
ref: formRef,
|
133
|
+
model: unref(form),
|
134
|
+
rules,
|
135
|
+
"label-placement": "left",
|
136
|
+
"label-width": "auto",
|
137
|
+
"require-mark-placement": "right-hanging"
|
138
|
+
}, {
|
139
|
+
default: withCtx(() => [createVNode(unref(NFormItem), {
|
140
|
+
label: function() {
|
141
|
+
var _a, _b, _c;
|
142
|
+
try {
|
143
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.121")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.121")) || "\u5DE5\u53F7";
|
144
|
+
} catch (e) {
|
145
|
+
return "\u5DE5\u53F7";
|
146
|
+
}
|
147
|
+
}(),
|
148
|
+
path: "account"
|
149
|
+
}, {
|
150
|
+
default: withCtx(() => [createVNode(unref(NInput), {
|
151
|
+
value: unref(form).account,
|
152
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => unref(form).account = $event),
|
153
|
+
placeholder: "\u8BF7\u8F93\u5165\u5DE5\u53F7",
|
154
|
+
onKeyup: withKeys(handleValidate, ["enter"])
|
155
|
+
}, null, 8, ["value", "onKeyup"])]),
|
156
|
+
_: 1
|
157
|
+
}), createVNode(unref(NFormItem), {
|
158
|
+
label: "\u4E1A\u52A1\u5BC6\u7801",
|
159
|
+
path: "password"
|
160
|
+
}, {
|
161
|
+
default: withCtx(() => [createVNode(unref(NInput), {
|
162
|
+
type: "password",
|
163
|
+
"input-props": {
|
164
|
+
autocomplete: "on",
|
165
|
+
name: "password"
|
166
|
+
},
|
167
|
+
value: unref(form).password,
|
168
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => unref(form).password = $event),
|
169
|
+
placeholder: function() {
|
170
|
+
var _a, _b, _c;
|
171
|
+
try {
|
172
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.469")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.469")) || "\u8BF7\u8F93\u5165\u5BC6\u7801";
|
173
|
+
} catch (e) {
|
174
|
+
return "\u8BF7\u8F93\u5165\u5BC6\u7801";
|
175
|
+
}
|
176
|
+
}(),
|
177
|
+
onKeyup: withKeys(handleValidate, ["enter"])
|
178
|
+
}, null, 8, ["value", "onKeyup"])]),
|
179
|
+
_: 1
|
180
|
+
})]),
|
181
|
+
_: 1
|
182
|
+
}, 8, ["model"]), createVNode(unref(NSpace), {
|
183
|
+
reverse: ""
|
184
|
+
}, {
|
185
|
+
default: withCtx(() => [createVNode(unref(NButton), {
|
186
|
+
loading: loading.value,
|
187
|
+
type: "info",
|
188
|
+
onClick: handleValidate
|
189
|
+
}, {
|
190
|
+
default: withCtx(() => [createTextVNode("\u9A8C\u8BC1")]),
|
191
|
+
_: 1
|
192
|
+
}, 8, ["loading"]), createVNode(unref(NButton), {
|
193
|
+
onClick: handleClickClose
|
194
|
+
}, {
|
195
|
+
default: withCtx(() => [createTextVNode(function() {
|
196
|
+
var _a, _b, _c;
|
197
|
+
try {
|
198
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88";
|
199
|
+
} catch (e) {
|
200
|
+
return "\u53D6\u6D88";
|
201
|
+
}
|
202
|
+
}())]),
|
203
|
+
_: 1
|
204
|
+
})]),
|
205
|
+
_: 1
|
206
|
+
})])]),
|
207
|
+
_: 1
|
208
|
+
}, 8, ["title", "show", "style"]);
|
209
|
+
};
|
210
|
+
}
|
211
|
+
});
|
212
|
+
|
213
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { AnyObject } from '../../../../shared/types';
|
2
|
+
import { ComponentInternalInstance } from 'vue';
|
3
|
+
export declare class RoleDialog {
|
4
|
+
rendered: boolean;
|
5
|
+
static createMsg(message: string): string;
|
6
|
+
show(instance: ComponentInternalInstance, data: AnyObject): Promise<AnyObject>;
|
7
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { ref, render, createVNode, withCtx, nextTick } from 'vue';
|
2
|
+
import { createProviderWrapper } from '../../../../shared/utils/index.js';
|
3
|
+
import IdentityVerification from '../components/IdentityVerification.vue.js';
|
4
|
+
|
5
|
+
class RoleDialog {
|
6
|
+
constructor() {
|
7
|
+
this.rendered = false;
|
8
|
+
}
|
9
|
+
static createMsg(message) {
|
10
|
+
return `[RoleDialog] ${message}`;
|
11
|
+
}
|
12
|
+
show(instance, data) {
|
13
|
+
if (this.rendered)
|
14
|
+
return Promise.reject(RoleDialog.createMsg(function() {
|
15
|
+
var _a, _b, _c;
|
16
|
+
try {
|
17
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.491")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.491")) || "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
|
18
|
+
} catch (e) {
|
19
|
+
return "\u8BF7\u52FF\u91CD\u590D\u6253\u5F00\u5F39\u7A97";
|
20
|
+
}
|
21
|
+
}()));
|
22
|
+
return new Promise((resolve, reject) => {
|
23
|
+
this.rendered = true;
|
24
|
+
const container = document.createElement("div");
|
25
|
+
const visible = ref(false);
|
26
|
+
const ProviderWrapper = createProviderWrapper(instance);
|
27
|
+
const {
|
28
|
+
title = "",
|
29
|
+
token = ""
|
30
|
+
} = data;
|
31
|
+
const that = this;
|
32
|
+
render(createVNode(ProviderWrapper, null, {
|
33
|
+
default: withCtx(() => createVNode(IdentityVerification, {
|
34
|
+
"to": container,
|
35
|
+
"modelValue": visible.value,
|
36
|
+
"onUpdate:modelValue": ($event) => visible.value = $event,
|
37
|
+
"identityVerificationTitle": title,
|
38
|
+
"token": token,
|
39
|
+
"onClose": onClose,
|
40
|
+
"onAfterLeaveComponent": () => unmount(container),
|
41
|
+
"onSuccess": onSuccess
|
42
|
+
}, null), instance)
|
43
|
+
}), container);
|
44
|
+
mount(container);
|
45
|
+
nextTick(() => visible.value = true);
|
46
|
+
function onClose() {
|
47
|
+
reject(RoleDialog.createMsg(function() {
|
48
|
+
var _a, _b, _c;
|
49
|
+
try {
|
50
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.492")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.492")) || "\u5F39\u7A97\u5173\u95ED";
|
51
|
+
} catch (e) {
|
52
|
+
return "\u5F39\u7A97\u5173\u95ED";
|
53
|
+
}
|
54
|
+
}()));
|
55
|
+
}
|
56
|
+
function onSuccess(result) {
|
57
|
+
resolve(result);
|
58
|
+
visible.value = false;
|
59
|
+
}
|
60
|
+
function mount(target) {
|
61
|
+
document.body.appendChild(target);
|
62
|
+
}
|
63
|
+
function unmount(target) {
|
64
|
+
if (!target.parentElement)
|
65
|
+
return;
|
66
|
+
that.rendered = false;
|
67
|
+
target.parentElement.removeChild(target);
|
68
|
+
}
|
69
|
+
});
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
export { RoleDialog };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { AnyObject } from '../../../../shared/types';
|
2
|
+
declare class Vertify {
|
3
|
+
private static instance;
|
4
|
+
private dialog;
|
5
|
+
private instance;
|
6
|
+
constructor();
|
7
|
+
static getInstance(): Vertify;
|
8
|
+
show(data: AnyObject): Promise<AnyObject>;
|
9
|
+
}
|
10
|
+
export declare const vertify: Vertify;
|
11
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { getCurrentInstance } from 'vue';
|
2
|
+
import { RoleDialog } from './dialog.js';
|
3
|
+
|
4
|
+
class Vertify {
|
5
|
+
constructor() {
|
6
|
+
this.dialog = new RoleDialog();
|
7
|
+
this.instance = null;
|
8
|
+
this.instance = getCurrentInstance();
|
9
|
+
}
|
10
|
+
static getInstance() {
|
11
|
+
if (!Vertify.instance) {
|
12
|
+
Vertify.instance = new Vertify();
|
13
|
+
}
|
14
|
+
return Vertify.instance;
|
15
|
+
}
|
16
|
+
show(data) {
|
17
|
+
if (!this.instance)
|
18
|
+
this.instance = getCurrentInstance();
|
19
|
+
return this.dialog.show(this.instance, data);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
const vertify = Vertify.getInstance();
|
23
|
+
|
24
|
+
export { vertify };
|
@@ -0,0 +1 @@
|
|
1
|
+
.c-identity-verification-modal .n-dialog__close{display:none}.c-identity-verification-modal .n-dialog__content{margin-top:20px}
|
@@ -21,6 +21,10 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
|
|
21
21
|
type: FunctionConstructor;
|
22
22
|
default: () => Promise<{}>;
|
23
23
|
};
|
24
|
+
chunkUploadApiConfig: {
|
25
|
+
type: ObjectConstructor;
|
26
|
+
default: () => {};
|
27
|
+
};
|
24
28
|
}, {
|
25
29
|
VodState: {
|
26
30
|
videoVisible: boolean;
|
@@ -85,6 +89,10 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
|
|
85
89
|
type: FunctionConstructor;
|
86
90
|
default: () => Promise<{}>;
|
87
91
|
};
|
92
|
+
chunkUploadApiConfig: {
|
93
|
+
type: ObjectConstructor;
|
94
|
+
default: () => {};
|
95
|
+
};
|
88
96
|
}>> & {
|
89
97
|
onVodFileList?: ((...args: any[]) => any) | undefined;
|
90
98
|
}>>;
|
@@ -294,12 +302,17 @@ declare const VodChunkUpload: SFCWithInstall<import("vue").DefineComponent<{
|
|
294
302
|
type: FunctionConstructor;
|
295
303
|
default: () => Promise<{}>;
|
296
304
|
};
|
305
|
+
chunkUploadApiConfig: {
|
306
|
+
type: ObjectConstructor;
|
307
|
+
default: () => {};
|
308
|
+
};
|
297
309
|
}>> & {
|
298
310
|
onVodFileList?: ((...args: any[]) => any) | undefined;
|
299
311
|
}, {
|
300
312
|
isDetail: boolean;
|
301
313
|
isLock: boolean;
|
302
314
|
getChunkUploadConfig: Function;
|
315
|
+
chunkUploadApiConfig: Record<string, any>;
|
303
316
|
formData: Record<string, any>;
|
304
317
|
limitNum: number;
|
305
318
|
defFileList: string;
|
@@ -27,6 +27,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
27
27
|
type: StringConstructor;
|
28
28
|
default: string;
|
29
29
|
};
|
30
|
+
chunkUploadApiConfig: {
|
31
|
+
type: ObjectConstructor;
|
32
|
+
default: () => {};
|
33
|
+
};
|
30
34
|
}, {
|
31
35
|
UploadState: {
|
32
36
|
spinning: boolean;
|
@@ -91,6 +95,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
95
|
type: StringConstructor;
|
92
96
|
default: string;
|
93
97
|
};
|
98
|
+
chunkUploadApiConfig: {
|
99
|
+
type: ObjectConstructor;
|
100
|
+
default: () => {};
|
101
|
+
};
|
94
102
|
}>> & {
|
95
103
|
onGetSumbitList?: ((...args: any[]) => any) | undefined;
|
96
104
|
onCloseUpload?: ((...args: any[]) => any) | undefined;
|
@@ -98,6 +106,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
98
106
|
emit: (event: "getSumbitList" | "closeUpload", ...args: any[]) => void;
|
99
107
|
message: import("naive-ui").MessageApi;
|
100
108
|
initState: () => void;
|
109
|
+
isChunkNew: import("vue").ComputedRef<any>;
|
101
110
|
uploadArguments: import("vue").ComputedRef<{
|
102
111
|
type: any;
|
103
112
|
channel: any;
|
@@ -115,10 +124,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
115
124
|
checkMaxLength: () => boolean;
|
116
125
|
computeMD5: (file: any) => void;
|
117
126
|
onFileAdded: (file: any) => void;
|
118
|
-
|
127
|
+
checkFileMd5ExistOld: (obj: any, file: any) => Promise<any>;
|
128
|
+
verifyUpload: (fileName: any, fileHash: any, file: any) => Promise<any>;
|
119
129
|
computeMD5Success: (md5: any, file: any) => Promise<void>;
|
120
130
|
onFileProgress: () => void;
|
121
|
-
|
131
|
+
handleMergeFile: (data: any, file: any) => void;
|
132
|
+
partFileMergeOld: (obj: any) => Promise<any>;
|
133
|
+
mergeRequest: (data: any, file: any) => Promise<void>;
|
122
134
|
onFileSuccess: (rootFile: any, file: any, response: any) => void;
|
123
135
|
hanldeDraggerBtnClick: () => void;
|
124
136
|
getUploadShowStatus: (file: any, key?: string) => any;
|
@@ -167,12 +179,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
167
179
|
type: StringConstructor;
|
168
180
|
default: string;
|
169
181
|
};
|
182
|
+
chunkUploadApiConfig: {
|
183
|
+
type: ObjectConstructor;
|
184
|
+
default: () => {};
|
185
|
+
};
|
170
186
|
}>> & {
|
171
187
|
onGetSumbitList?: ((...args: any[]) => any) | undefined;
|
172
188
|
onCloseUpload?: ((...args: any[]) => any) | undefined;
|
173
189
|
}, {
|
174
190
|
defaultList: unknown[];
|
175
191
|
getChunkUploadConfig: Function;
|
192
|
+
chunkUploadApiConfig: Record<string, any>;
|
176
193
|
source: string;
|
177
194
|
max_size: string | number;
|
178
195
|
propsCategoryMap: string;
|