bm-admin-ui 1.0.65-alpha → 1.0.66-alpha
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/editor/index.js +8 -4
- package/es/components/form-create/index.js +19 -15
- package/es/components/form-designer/index.js +3 -2
- package/es/components/staffs-selector/index.d.ts +51 -11
- package/es/components/staffs-selector/index.js +293 -223
- package/es/components/staffs-selector/src/action.d.ts +2 -0
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/es/components/upload/index.js +8 -4
- package/lib/components/editor/index.js +8 -4
- package/lib/components/form-create/index.js +19 -15
- package/lib/components/form-designer/index.js +3 -2
- package/lib/components/staffs-selector/index.d.ts +51 -11
- package/lib/components/staffs-selector/index.js +291 -221
- package/lib/components/staffs-selector/src/action.d.ts +2 -0
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/lib/components/upload/index.js +8 -4
- package/package.json +1 -1
- package/types/components/staffs-selector/index.d.ts +51 -11
- package/types/components/staffs-selector/src/action.d.ts +2 -0
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
|
@@ -2,6 +2,7 @@ export declare const MODE: {
|
|
|
2
2
|
RADIO: string;
|
|
3
3
|
MULTIPLE: string;
|
|
4
4
|
VARIED: string;
|
|
5
|
+
DEPARTMENT: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const selectProps: {
|
|
7
8
|
visible: {
|
|
@@ -61,6 +62,7 @@ export declare const selectState: {
|
|
|
61
62
|
dataMap: Map<string, any>;
|
|
62
63
|
curlistKeys: Set<string>;
|
|
63
64
|
activeKey: number;
|
|
65
|
+
fetchLoading: boolean;
|
|
64
66
|
};
|
|
65
67
|
export declare const list: any;
|
|
66
68
|
export declare const departNative: any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
limit: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
selected: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
search(): void;
|
|
12
|
+
list: any;
|
|
13
|
+
multipleChecked: import("vue").Ref<any>;
|
|
14
|
+
departmentChecked: import("vue").Ref<string[]>;
|
|
15
|
+
multipDepartment: import("vue").Ref<string[]>;
|
|
16
|
+
staffsChecked: import("vue").Ref<any>;
|
|
17
|
+
shopChecked: import("vue").Ref<any>;
|
|
18
|
+
groupChecked: import("vue").Ref<any>;
|
|
19
|
+
dataMap: import("vue").Ref<Map<string, any>>;
|
|
20
|
+
curlistKeys: import("vue").Ref<Set<string>>;
|
|
21
|
+
activeKey: import("vue").Ref<number>;
|
|
22
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
23
|
+
searchVal: import("vue").Ref<string>;
|
|
24
|
+
selectAll: import("vue").Ref<boolean>;
|
|
25
|
+
indeterminate: import("vue").Ref<boolean>;
|
|
26
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}> | null | undefined)[]>;
|
|
31
|
+
isFulfill: import("vue").Ref<boolean>;
|
|
32
|
+
changeTreeCheck: (checkedKeys: any) => void;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
limit: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
selected: {
|
|
39
|
+
type: ArrayConstructor;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
}>> & {
|
|
43
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
selected: unknown[];
|
|
47
|
+
limit: number;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: ArrayConstructor;
|
|
8
8
|
default: () => never[];
|
|
9
9
|
};
|
|
10
|
-
isTree: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
10
|
}, {
|
|
15
11
|
changeAllOption(): void;
|
|
16
12
|
search(): void;
|
|
@@ -25,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
21
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
26
22
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
27
23
|
activeKey: import("vue").Ref<number>;
|
|
24
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
28
25
|
searchVal: import("vue").Ref<string>;
|
|
29
26
|
selectAll: import("vue").Ref<boolean>;
|
|
30
27
|
indeterminate: import("vue").Ref<boolean>;
|
|
@@ -34,7 +31,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
31
|
[key: string]: any;
|
|
35
32
|
}> | null | undefined)[]>;
|
|
36
33
|
isFulfill: import("vue").Ref<boolean>;
|
|
37
|
-
changeTreeCheck: (checkedKeys: any) => void;
|
|
38
34
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
35
|
limit: {
|
|
40
36
|
type: NumberConstructor;
|
|
@@ -44,16 +40,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
40
|
type: ArrayConstructor;
|
|
45
41
|
default: () => never[];
|
|
46
42
|
};
|
|
47
|
-
isTree: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
43
|
}>> & {
|
|
52
44
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
53
45
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
54
46
|
}, {
|
|
55
47
|
selected: unknown[];
|
|
56
48
|
limit: number;
|
|
57
|
-
isTree: boolean;
|
|
58
49
|
}>;
|
|
59
50
|
export default _default;
|
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
96
|
fetch: (params: {
|
|
97
97
|
searchVal?: string;
|
|
98
98
|
area?: string;
|
|
99
|
-
}) => void
|
|
99
|
+
}) => Promise<void>;
|
|
100
100
|
flatListFunc: (list: any) => Map<string, any>;
|
|
101
101
|
findDataByKey: (key: string) => any;
|
|
102
102
|
summitSelect: () => void;
|
|
@@ -889,10 +889,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
889
889
|
type: ArrayConstructor;
|
|
890
890
|
default: () => never[];
|
|
891
891
|
};
|
|
892
|
-
isTree: {
|
|
893
|
-
type: BooleanConstructor;
|
|
894
|
-
default: boolean;
|
|
895
|
-
};
|
|
896
892
|
}, {
|
|
897
893
|
changeAllOption(): void;
|
|
898
894
|
search(): void;
|
|
@@ -907,6 +903,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
907
903
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
908
904
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
909
905
|
activeKey: import("vue").Ref<number>;
|
|
906
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
910
907
|
searchVal: import("vue").Ref<string>;
|
|
911
908
|
selectAll: import("vue").Ref<boolean>;
|
|
912
909
|
indeterminate: import("vue").Ref<boolean>;
|
|
@@ -916,7 +913,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
916
913
|
[key: string]: any;
|
|
917
914
|
}> | null | undefined)[]>;
|
|
918
915
|
isFulfill: import("vue").Ref<boolean>;
|
|
919
|
-
changeTreeCheck: (checkedKeys: any) => void;
|
|
920
916
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
921
917
|
limit: {
|
|
922
918
|
type: NumberConstructor;
|
|
@@ -926,17 +922,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
926
922
|
type: ArrayConstructor;
|
|
927
923
|
default: () => never[];
|
|
928
924
|
};
|
|
929
|
-
isTree: {
|
|
930
|
-
type: BooleanConstructor;
|
|
931
|
-
default: boolean;
|
|
932
|
-
};
|
|
933
925
|
}>> & {
|
|
934
926
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
935
927
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
936
928
|
}, {
|
|
937
929
|
selected: unknown[];
|
|
938
930
|
limit: number;
|
|
939
|
-
isTree: boolean;
|
|
940
931
|
}>;
|
|
941
932
|
radioCmp: import("vue").DefineComponent<{
|
|
942
933
|
list: {
|
|
@@ -995,6 +986,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
995
986
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
996
987
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
997
988
|
activeKey: import("vue").Ref<number>;
|
|
989
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
998
990
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
999
991
|
[key: string]: any;
|
|
1000
992
|
}>;
|
|
@@ -1036,6 +1028,54 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1036
1028
|
dataMap: Map<unknown, unknown>;
|
|
1037
1029
|
curlistKeys: Set<unknown>;
|
|
1038
1030
|
}>;
|
|
1031
|
+
departmentCmp: import("vue").DefineComponent<{
|
|
1032
|
+
limit: {
|
|
1033
|
+
type: NumberConstructor;
|
|
1034
|
+
default: number;
|
|
1035
|
+
};
|
|
1036
|
+
selected: {
|
|
1037
|
+
type: ArrayConstructor;
|
|
1038
|
+
default: () => never[];
|
|
1039
|
+
};
|
|
1040
|
+
}, {
|
|
1041
|
+
search(): void;
|
|
1042
|
+
list: any;
|
|
1043
|
+
multipleChecked: import("vue").Ref<any>;
|
|
1044
|
+
departmentChecked: import("vue").Ref<string[]>;
|
|
1045
|
+
multipDepartment: import("vue").Ref<string[]>;
|
|
1046
|
+
staffsChecked: import("vue").Ref<any>;
|
|
1047
|
+
shopChecked: import("vue").Ref<any>;
|
|
1048
|
+
groupChecked: import("vue").Ref<any>;
|
|
1049
|
+
dataMap: import("vue").Ref<Map<string, any>>;
|
|
1050
|
+
curlistKeys: import("vue").Ref<Set<string>>;
|
|
1051
|
+
activeKey: import("vue").Ref<number>;
|
|
1052
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
1053
|
+
searchVal: import("vue").Ref<string>;
|
|
1054
|
+
selectAll: import("vue").Ref<boolean>;
|
|
1055
|
+
indeterminate: import("vue").Ref<boolean>;
|
|
1056
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1057
|
+
[key: string]: any;
|
|
1058
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1059
|
+
[key: string]: any;
|
|
1060
|
+
}> | null | undefined)[]>;
|
|
1061
|
+
isFulfill: import("vue").Ref<boolean>;
|
|
1062
|
+
changeTreeCheck: (checkedKeys: any) => void;
|
|
1063
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1064
|
+
limit: {
|
|
1065
|
+
type: NumberConstructor;
|
|
1066
|
+
default: number;
|
|
1067
|
+
};
|
|
1068
|
+
selected: {
|
|
1069
|
+
type: ArrayConstructor;
|
|
1070
|
+
default: () => never[];
|
|
1071
|
+
};
|
|
1072
|
+
}>> & {
|
|
1073
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1074
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1075
|
+
}, {
|
|
1076
|
+
selected: unknown[];
|
|
1077
|
+
limit: number;
|
|
1078
|
+
}>;
|
|
1039
1079
|
list: any;
|
|
1040
1080
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:visible" | "update:select")[], "change" | "update:visible" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1041
1081
|
visible: {
|
|
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
26
26
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
27
27
|
activeKey: import("vue").Ref<number>;
|
|
28
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
28
29
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
30
|
[key: string]: any;
|
|
30
31
|
}>;
|
|
@@ -444,6 +444,9 @@ const _sfc_main = {
|
|
|
444
444
|
});
|
|
445
445
|
},
|
|
446
446
|
paste(event) {
|
|
447
|
+
if (uploadDisabled.value) {
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
447
450
|
const items = event?.clipboardData?.items;
|
|
448
451
|
let file = null;
|
|
449
452
|
if (items && items.length) {
|
|
@@ -565,7 +568,7 @@ const _sfc_main = {
|
|
|
565
568
|
immediate: true
|
|
566
569
|
}
|
|
567
570
|
);
|
|
568
|
-
expose({ state, methods });
|
|
571
|
+
expose({ state, methods, paste: methods.paste });
|
|
569
572
|
return {
|
|
570
573
|
...toRefs(state),
|
|
571
574
|
icons,
|
|
@@ -754,7 +757,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
754
757
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
755
758
|
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
756
759
|
}, null, 8, _hoisted_9)) : createCommentVNode("v-if", true),
|
|
757
|
-
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
760
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
758
761
|
key: 1,
|
|
759
762
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
760
763
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
@@ -851,10 +854,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
851
854
|
class: "bm-upload__error-reload",
|
|
852
855
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
853
856
|
}, null, 8, _hoisted_32)) : createCommentVNode("v-if", true),
|
|
854
|
-
|
|
857
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
858
|
+
key: 1,
|
|
855
859
|
class: "bm-upload__trash",
|
|
856
860
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
857
|
-
}, null, 8, _hoisted_33)
|
|
861
|
+
}, null, 8, _hoisted_33)) : createCommentVNode("v-if", true)
|
|
858
862
|
])
|
|
859
863
|
]),
|
|
860
864
|
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_34, [
|
|
@@ -11863,6 +11863,9 @@ const _sfc_main$1 = {
|
|
|
11863
11863
|
});
|
|
11864
11864
|
},
|
|
11865
11865
|
paste(event) {
|
|
11866
|
+
if (uploadDisabled.value) {
|
|
11867
|
+
return;
|
|
11868
|
+
}
|
|
11866
11869
|
const items = event?.clipboardData?.items;
|
|
11867
11870
|
let file = null;
|
|
11868
11871
|
if (items && items.length) {
|
|
@@ -11984,7 +11987,7 @@ const _sfc_main$1 = {
|
|
|
11984
11987
|
immediate: true
|
|
11985
11988
|
}
|
|
11986
11989
|
);
|
|
11987
|
-
expose({ state, methods });
|
|
11990
|
+
expose({ state, methods, paste: methods.paste });
|
|
11988
11991
|
return {
|
|
11989
11992
|
...vue.toRefs(state),
|
|
11990
11993
|
icons,
|
|
@@ -12173,7 +12176,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12173
12176
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
12174
12177
|
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
12175
12178
|
}, null, 8, _hoisted_9)) : vue.createCommentVNode("v-if", true),
|
|
12176
|
-
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
12179
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
12177
12180
|
key: 1,
|
|
12178
12181
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
12179
12182
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
@@ -12270,10 +12273,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12270
12273
|
class: "bm-upload__error-reload",
|
|
12271
12274
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
12272
12275
|
}, null, 8, _hoisted_32)) : vue.createCommentVNode("v-if", true),
|
|
12273
|
-
vue.
|
|
12276
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
12277
|
+
key: 1,
|
|
12274
12278
|
class: "bm-upload__trash",
|
|
12275
12279
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
12276
|
-
}, null, 8, _hoisted_33)
|
|
12280
|
+
}, null, 8, _hoisted_33)) : vue.createCommentVNode("v-if", true)
|
|
12277
12281
|
])
|
|
12278
12282
|
]),
|
|
12279
12283
|
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_34, [
|
|
@@ -655,6 +655,7 @@ var picture = {
|
|
|
655
655
|
listType: 'picture-card',
|
|
656
656
|
text: '请选择',
|
|
657
657
|
multiple: maxCount > 1,
|
|
658
|
+
accept: '.jpg,.png',
|
|
658
659
|
},
|
|
659
660
|
extraProps: {
|
|
660
661
|
maxSize: 10,
|
|
@@ -797,6 +798,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
797
798
|
props: [
|
|
798
799
|
"title",
|
|
799
800
|
"mode",
|
|
801
|
+
"limit",
|
|
800
802
|
"placeholder",
|
|
801
803
|
"defaultSelected",
|
|
802
804
|
"load",
|
|
@@ -811,7 +813,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
811
813
|
label: "name",
|
|
812
814
|
value: "code"
|
|
813
815
|
};
|
|
814
|
-
const selected = vue.ref([]);
|
|
816
|
+
const selected = vue.ref(props.defaultSelected || []);
|
|
815
817
|
const visible = vue.ref(false);
|
|
816
818
|
function selectedChange(val) {
|
|
817
819
|
emits(
|
|
@@ -830,15 +832,6 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
830
832
|
function getPopupContainer() {
|
|
831
833
|
return document.body;
|
|
832
834
|
}
|
|
833
|
-
vue.watch(
|
|
834
|
-
() => props.defaultSelected,
|
|
835
|
-
(val) => {
|
|
836
|
-
selected.value = val || [];
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
immediate: true
|
|
840
|
-
}
|
|
841
|
-
);
|
|
842
835
|
vue.watch(selected, (val) => {
|
|
843
836
|
selectedChange(val);
|
|
844
837
|
});
|
|
@@ -863,8 +856,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
863
856
|
title: __props.title,
|
|
864
857
|
mode: __props.mode,
|
|
865
858
|
load: __props.load,
|
|
859
|
+
limit: __props.limit,
|
|
866
860
|
"immediate-fetch": __props.immediateFetch
|
|
867
|
-
}, null, 8, ["select", "visible", "title", "mode", "load", "immediate-fetch"])
|
|
861
|
+
}, null, 8, ["select", "visible", "title", "mode", "load", "limit", "immediate-fetch"])
|
|
868
862
|
]);
|
|
869
863
|
};
|
|
870
864
|
}
|
|
@@ -20394,8 +20388,9 @@ var department = {
|
|
|
20394
20388
|
title: data.title.title,
|
|
20395
20389
|
props: {
|
|
20396
20390
|
title: '添加部门',
|
|
20397
|
-
mode:
|
|
20391
|
+
mode: 'department',
|
|
20398
20392
|
placeholder: data.props.placeholder,
|
|
20393
|
+
limit: data.props.limit || 0,
|
|
20399
20394
|
immediateFetch: true,
|
|
20400
20395
|
unitStr: '个',
|
|
20401
20396
|
defaultSelected: data.value,
|
|
@@ -20438,7 +20433,8 @@ var department = {
|
|
|
20438
20433
|
title: data.title.title,
|
|
20439
20434
|
props: {
|
|
20440
20435
|
title: '添加部门',
|
|
20441
|
-
mode:
|
|
20436
|
+
mode: 'department',
|
|
20437
|
+
limit: data.props.limit,
|
|
20442
20438
|
placeholder: data.props.placeholder,
|
|
20443
20439
|
immediateFetch: true,
|
|
20444
20440
|
unitStr: '个',
|
|
@@ -20483,7 +20479,8 @@ var department = {
|
|
|
20483
20479
|
var _a;
|
|
20484
20480
|
return vue.h(StaffSelector, {
|
|
20485
20481
|
title: '添加部门',
|
|
20486
|
-
mode:
|
|
20482
|
+
mode: 'department',
|
|
20483
|
+
limit: data.props.limit,
|
|
20487
20484
|
placeholder: data.props.placeholder,
|
|
20488
20485
|
immediateFetch: true,
|
|
20489
20486
|
unitStr: '个',
|
|
@@ -20810,8 +20807,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20810
20807
|
if (formPermission) {
|
|
20811
20808
|
const { name } = formPermission;
|
|
20812
20809
|
if (formPermission.disabled) {
|
|
20813
|
-
if (name === "picture") {
|
|
20810
|
+
if (name === "picture" || name === "file") {
|
|
20811
|
+
if (!rule2.props.uploadProps) {
|
|
20812
|
+
rule2.props.uploadProps = {};
|
|
20813
|
+
}
|
|
20814
|
+
if (!rule2.props.extraProps) {
|
|
20815
|
+
rule2.props.extraProps = {};
|
|
20816
|
+
}
|
|
20814
20817
|
rule2.props.uploadProps.disabled = true;
|
|
20818
|
+
rule2.props.extraProps.hideDelBtn = true;
|
|
20815
20819
|
} else if (name === "materialTemp") {
|
|
20816
20820
|
rule2.props.disabled = formPermission.disabled;
|
|
20817
20821
|
} else {
|
|
@@ -3297,7 +3297,8 @@ var shop = {
|
|
|
3297
3297
|
info: '店铺控件在流程流转过程中涉及数据权限的控制,当表单中设置了多个店铺控件时,需设置其中1个店铺控件作为主控件。被设为主控件的店铺控件,流程流转过程中将以此店铺控件输入的数据作为数据权限判断依据。',
|
|
3298
3298
|
field: fieldsMap$1['config.isMain'],
|
|
3299
3299
|
value: rule.config.isMain,
|
|
3300
|
-
hidden:
|
|
3300
|
+
hidden: (parentRule === null || parentRule === void 0 ? void 0 : parentRule.type) === WidgetType.RowWidget ||
|
|
3301
|
+
(parentRule === null || parentRule === void 0 ? void 0 : parentRule.type) === WidgetType.TableWidget,
|
|
3301
3302
|
inject: true,
|
|
3302
3303
|
},
|
|
3303
3304
|
{
|
|
@@ -4242,7 +4243,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4242
4243
|
}
|
|
4243
4244
|
function resetActiveRule() {
|
|
4244
4245
|
activeRule.value = {};
|
|
4245
|
-
activeParentRule.value =
|
|
4246
|
+
activeParentRule.value = {};
|
|
4246
4247
|
}
|
|
4247
4248
|
function getPopupContainer() {
|
|
4248
4249
|
return document.body;
|
|
@@ -96,7 +96,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
96
96
|
fetch: (params: {
|
|
97
97
|
searchVal?: string | undefined;
|
|
98
98
|
area?: string | undefined;
|
|
99
|
-
}) => void
|
|
99
|
+
}) => Promise<void>;
|
|
100
100
|
flatListFunc: (list: any) => Map<string, any>;
|
|
101
101
|
findDataByKey: (key: string) => any;
|
|
102
102
|
summitSelect: () => void;
|
|
@@ -889,10 +889,6 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
889
889
|
type: ArrayConstructor;
|
|
890
890
|
default: () => never[];
|
|
891
891
|
};
|
|
892
|
-
isTree: {
|
|
893
|
-
type: BooleanConstructor;
|
|
894
|
-
default: boolean;
|
|
895
|
-
};
|
|
896
892
|
}, {
|
|
897
893
|
changeAllOption(): void;
|
|
898
894
|
search(): void;
|
|
@@ -907,6 +903,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
907
903
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
908
904
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
909
905
|
activeKey: import("vue").Ref<number>;
|
|
906
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
910
907
|
searchVal: import("vue").Ref<string>;
|
|
911
908
|
selectAll: import("vue").Ref<boolean>;
|
|
912
909
|
indeterminate: import("vue").Ref<boolean>;
|
|
@@ -916,7 +913,6 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
916
913
|
[key: string]: any;
|
|
917
914
|
}> | null | undefined)[]>;
|
|
918
915
|
isFulfill: import("vue").Ref<boolean>;
|
|
919
|
-
changeTreeCheck: (checkedKeys: any) => void;
|
|
920
916
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
921
917
|
limit: {
|
|
922
918
|
type: NumberConstructor;
|
|
@@ -926,17 +922,12 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
926
922
|
type: ArrayConstructor;
|
|
927
923
|
default: () => never[];
|
|
928
924
|
};
|
|
929
|
-
isTree: {
|
|
930
|
-
type: BooleanConstructor;
|
|
931
|
-
default: boolean;
|
|
932
|
-
};
|
|
933
925
|
}>> & {
|
|
934
926
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
935
927
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
936
928
|
}, {
|
|
937
929
|
selected: unknown[];
|
|
938
930
|
limit: number;
|
|
939
|
-
isTree: boolean;
|
|
940
931
|
}>;
|
|
941
932
|
radioCmp: import("vue").DefineComponent<{
|
|
942
933
|
list: {
|
|
@@ -995,6 +986,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
995
986
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
996
987
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
997
988
|
activeKey: import("vue").Ref<number>;
|
|
989
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
998
990
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
999
991
|
[key: string]: any;
|
|
1000
992
|
}>;
|
|
@@ -1036,6 +1028,54 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1036
1028
|
dataMap: Map<unknown, unknown>;
|
|
1037
1029
|
curlistKeys: Set<unknown>;
|
|
1038
1030
|
}>;
|
|
1031
|
+
departmentCmp: import("vue").DefineComponent<{
|
|
1032
|
+
limit: {
|
|
1033
|
+
type: NumberConstructor;
|
|
1034
|
+
default: number;
|
|
1035
|
+
};
|
|
1036
|
+
selected: {
|
|
1037
|
+
type: ArrayConstructor;
|
|
1038
|
+
default: () => never[];
|
|
1039
|
+
};
|
|
1040
|
+
}, {
|
|
1041
|
+
search(): void;
|
|
1042
|
+
list: any;
|
|
1043
|
+
multipleChecked: import("vue").Ref<any>;
|
|
1044
|
+
departmentChecked: import("vue").Ref<string[]>;
|
|
1045
|
+
multipDepartment: import("vue").Ref<string[]>;
|
|
1046
|
+
staffsChecked: import("vue").Ref<any>;
|
|
1047
|
+
shopChecked: import("vue").Ref<any>;
|
|
1048
|
+
groupChecked: import("vue").Ref<any>;
|
|
1049
|
+
dataMap: import("vue").Ref<Map<string, any>>;
|
|
1050
|
+
curlistKeys: import("vue").Ref<Set<string>>;
|
|
1051
|
+
activeKey: import("vue").Ref<number>;
|
|
1052
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
1053
|
+
searchVal: import("vue").Ref<string>;
|
|
1054
|
+
selectAll: import("vue").Ref<boolean>;
|
|
1055
|
+
indeterminate: import("vue").Ref<boolean>;
|
|
1056
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1057
|
+
[key: string]: any;
|
|
1058
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1059
|
+
[key: string]: any;
|
|
1060
|
+
}> | null | undefined)[]>;
|
|
1061
|
+
isFulfill: import("vue").Ref<boolean>;
|
|
1062
|
+
changeTreeCheck: (checkedKeys: any) => void;
|
|
1063
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1064
|
+
limit: {
|
|
1065
|
+
type: NumberConstructor;
|
|
1066
|
+
default: number;
|
|
1067
|
+
};
|
|
1068
|
+
selected: {
|
|
1069
|
+
type: ArrayConstructor;
|
|
1070
|
+
default: () => never[];
|
|
1071
|
+
};
|
|
1072
|
+
}>> & {
|
|
1073
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1074
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1075
|
+
}, {
|
|
1076
|
+
selected: unknown[];
|
|
1077
|
+
limit: number;
|
|
1078
|
+
}>;
|
|
1039
1079
|
list: any;
|
|
1040
1080
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:visible" | "update:select")[], "change" | "update:visible" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1041
1081
|
visible: {
|