yuang-framework-ui-pc 1.1.53 → 1.1.55
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/ele-dialog/index.d.ts +8 -16
- package/es/ele-dialog/index.js +2 -1
- package/es/ele-dialog/props.d.ts +5 -8
- package/es/ele-dialog/props.js +6 -1
- package/es/ele-dialog/types.js +1 -0
- package/es/yu-framework-attachment-upload/index.d.ts +19 -4
- package/es/yu-framework-attachment-upload/index.js +8 -6
- package/es/yu-uims-organization-dialog/components/organization-dialog.js +2 -2
- package/es/yu-uims-role-dialog/components/role-dialog.js +2 -2
- package/es/yu-uims-role-dialog/components/role-query.d.ts +6 -6
- package/es/yu-uims-user-dialog/components/user-dialog.js +2 -2
- package/es/yu-uims-user-dialog/components/user-query.d.ts +6 -6
- package/lib/ele-dialog/index.cjs +1 -0
- package/lib/ele-dialog/index.d.ts +8 -16
- package/lib/ele-dialog/props.cjs +6 -1
- package/lib/ele-dialog/props.d.ts +5 -8
- package/lib/ele-dialog/types.cjs +1 -0
- package/lib/yu-framework-attachment-upload/index.cjs +8 -6
- package/lib/yu-framework-attachment-upload/index.d.ts +19 -4
- package/lib/yu-framework-slider-captcha-dialog/style/index.cjs +1 -0
- package/lib/yu-uims-organization-dialog/components/organization-dialog.cjs +2 -2
- package/lib/yu-uims-role-dialog/components/role-dialog.cjs +2 -2
- package/lib/yu-uims-role-dialog/components/role-query.d.ts +6 -6
- package/lib/yu-uims-user-dialog/components/user-dialog.cjs +2 -2
- package/lib/yu-uims-user-dialog/components/user-query.d.ts +6 -6
- package/package.json +2 -2
package/es/ele-dialog/index.d.ts
CHANGED
|
@@ -39,6 +39,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
39
39
|
default: null;
|
|
40
40
|
};
|
|
41
41
|
form: BooleanConstructor;
|
|
42
|
+
closeOnClickModal: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
42
46
|
appendTo: {
|
|
43
47
|
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
44
48
|
readonly required: false;
|
|
@@ -54,14 +58,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
54
58
|
__epPropKey: true;
|
|
55
59
|
};
|
|
56
60
|
destroyOnClose: BooleanConstructor;
|
|
57
|
-
closeOnClickModal: {
|
|
58
|
-
readonly type: import('vue').PropType<boolean>;
|
|
59
|
-
readonly required: false;
|
|
60
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
|
-
__epPropKey: true;
|
|
62
|
-
} & {
|
|
63
|
-
readonly default: true;
|
|
64
|
-
};
|
|
65
61
|
closeOnPressEscape: {
|
|
66
62
|
readonly type: import('vue').PropType<boolean>;
|
|
67
63
|
readonly required: false;
|
|
@@ -234,6 +230,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
234
230
|
default: null;
|
|
235
231
|
};
|
|
236
232
|
form: BooleanConstructor;
|
|
233
|
+
closeOnClickModal: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
default: boolean;
|
|
236
|
+
};
|
|
237
237
|
appendTo: {
|
|
238
238
|
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
239
239
|
readonly required: false;
|
|
@@ -249,14 +249,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
249
249
|
__epPropKey: true;
|
|
250
250
|
};
|
|
251
251
|
destroyOnClose: BooleanConstructor;
|
|
252
|
-
closeOnClickModal: {
|
|
253
|
-
readonly type: import('vue').PropType<boolean>;
|
|
254
|
-
readonly required: false;
|
|
255
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
256
|
-
__epPropKey: true;
|
|
257
|
-
} & {
|
|
258
|
-
readonly default: true;
|
|
259
|
-
};
|
|
260
252
|
closeOnPressEscape: {
|
|
261
253
|
readonly type: import('vue').PropType<boolean>;
|
|
262
254
|
readonly required: false;
|
package/es/ele-dialog/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, onActivated, onDeactivated, nextTick, resolveComponent, createBlock, openBlock, Teleport, createVNode, mergeProps, createSlots, withCtx, normalizeStyle, normalizeClass, renderSlot, createElementVNode, createElementBlock, createCommentVNode,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, onActivated, onDeactivated, nextTick, resolveComponent, createBlock, openBlock, Teleport, createTextVNode, createVNode, toDisplayString, mergeProps, createSlots, withCtx, normalizeStyle, normalizeClass, renderSlot, createElementVNode, createElementBlock, createCommentVNode, withModifiers, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { ElIcon, ElDialog } from "element-plus";
|
|
3
3
|
import { ResizeOutlined, ExpandOutlined, CompressOutlined, CloseOutlined } from "../icons";
|
|
4
4
|
import ReceiverView from "../ele-config-provider/components/receiver-view";
|
|
@@ -197,6 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
197
197
|
to: _ctx.teleportTo,
|
|
198
198
|
disabled: _ctx.teleportDisabled
|
|
199
199
|
}, [
|
|
200
|
+
createTextVNode(toDisplayString(_ctx.closeOnClickModal) + "____ ", 1),
|
|
200
201
|
createVNode(_component_ElDialog, mergeProps(_ctx.$attrs, {
|
|
201
202
|
ref: "dialogRef",
|
|
202
203
|
modelValue: _ctx.modelValue,
|
package/es/ele-dialog/props.d.ts
CHANGED
|
@@ -63,6 +63,11 @@ export declare const eleDialogProps: {
|
|
|
63
63
|
};
|
|
64
64
|
/** 是否是表单弹窗 */
|
|
65
65
|
form: BooleanConstructor;
|
|
66
|
+
/** 点击外层遮罩不关闭 */
|
|
67
|
+
closeOnClickModal: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
66
71
|
appendTo: {
|
|
67
72
|
readonly type: PropType<string | HTMLElement>;
|
|
68
73
|
readonly required: false;
|
|
@@ -78,14 +83,6 @@ export declare const eleDialogProps: {
|
|
|
78
83
|
__epPropKey: true;
|
|
79
84
|
};
|
|
80
85
|
destroyOnClose: BooleanConstructor;
|
|
81
|
-
closeOnClickModal: {
|
|
82
|
-
readonly type: PropType<boolean>;
|
|
83
|
-
readonly required: false;
|
|
84
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
-
__epPropKey: true;
|
|
86
|
-
} & {
|
|
87
|
-
readonly default: true;
|
|
88
|
-
};
|
|
89
86
|
closeOnPressEscape: {
|
|
90
87
|
readonly type: PropType<boolean>;
|
|
91
88
|
readonly required: false;
|
package/es/ele-dialog/props.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FrameworkAttachmentComponentParam } from 'yuang-framework-ui-common/lib/interface/component/ComponentParam';
|
|
2
|
+
import { FrameworkAttachment } from 'yuang-framework-ui-common/lib/interface/framework/frameworkAttachment';
|
|
2
3
|
|
|
3
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
5
|
modelValue: import('vue').PropType<any>;
|
|
5
6
|
param: {
|
|
6
|
-
type: import('vue').PropType<
|
|
7
|
+
type: import('vue').PropType<FrameworkAttachmentComponentParam>;
|
|
7
8
|
required: true;
|
|
9
|
+
default: {
|
|
10
|
+
type: string;
|
|
11
|
+
mode: string;
|
|
12
|
+
maxCount: number;
|
|
13
|
+
maxSize: number;
|
|
14
|
+
};
|
|
8
15
|
};
|
|
9
16
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
17
|
change: (frameworkAttachment: FrameworkAttachment) => void;
|
|
11
18
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
19
|
modelValue: import('vue').PropType<any>;
|
|
13
20
|
param: {
|
|
14
|
-
type: import('vue').PropType<
|
|
21
|
+
type: import('vue').PropType<FrameworkAttachmentComponentParam>;
|
|
15
22
|
required: true;
|
|
23
|
+
default: {
|
|
24
|
+
type: string;
|
|
25
|
+
mode: string;
|
|
26
|
+
maxCount: number;
|
|
27
|
+
maxSize: number;
|
|
28
|
+
};
|
|
16
29
|
};
|
|
17
30
|
}>> & Readonly<{
|
|
18
31
|
onChange?: ((frameworkAttachment: FrameworkAttachment) => any) | undefined;
|
|
19
|
-
}>, {
|
|
32
|
+
}>, {
|
|
33
|
+
param: FrameworkAttachmentComponentParam;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
35
|
export default _default;
|
|
@@ -9,7 +9,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: /* @__PURE__ */ mergeModels({
|
|
11
11
|
modelValue: {},
|
|
12
|
-
param: {
|
|
12
|
+
param: { default: {
|
|
13
|
+
type: "edit",
|
|
14
|
+
mode: "file",
|
|
15
|
+
maxCount: 5,
|
|
16
|
+
maxSize: 5
|
|
17
|
+
} }
|
|
13
18
|
}, {
|
|
14
19
|
"modelValue": {},
|
|
15
20
|
"modelModifiers": {}
|
|
@@ -18,9 +23,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
23
|
setup(__props, { emit: __emit }) {
|
|
19
24
|
const props = __props;
|
|
20
25
|
const emit = __emit;
|
|
21
|
-
props.param.mode = props.param.mode ?? "file";
|
|
22
|
-
props.param.maxCount = props.param.maxCount ?? 5;
|
|
23
|
-
props.param.maxSize = props.param.maxSize ?? 5;
|
|
24
26
|
const images = ref([]);
|
|
25
27
|
const listType = ref(props.param.mode);
|
|
26
28
|
const accept = ref("");
|
|
@@ -51,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
53
|
});
|
|
52
54
|
const init = () => {
|
|
53
55
|
images.value = [];
|
|
54
|
-
http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, {
|
|
56
|
+
http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: model.value, pageSize: 100 }).then((res) => {
|
|
55
57
|
let attachemtList = res.data.data.records;
|
|
56
58
|
for (let i = 0; i < attachemtList.length; i++) {
|
|
57
59
|
images.value.push({
|
|
@@ -136,7 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
138
|
});
|
|
137
139
|
};
|
|
138
140
|
const emitChange = () => {
|
|
139
|
-
http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, {
|
|
141
|
+
http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: model.value, pageSize: 100 }).then((res) => {
|
|
140
142
|
let attachemtList = res.data.data.records;
|
|
141
143
|
emit("change", attachemtList);
|
|
142
144
|
});
|
|
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
var _a, _b;
|
|
50
50
|
let data = {};
|
|
51
51
|
if (!queryCondition) {
|
|
52
|
-
data = {
|
|
52
|
+
data = { parentIdForEqual: ((_a = node == null ? void 0 : node.data) == null ? void 0 : _a.id) || "0" };
|
|
53
53
|
} else {
|
|
54
54
|
data = deepClone(queryCondition);
|
|
55
55
|
data.parentId = ((_b = node == null ? void 0 : node.data) == null ? void 0 : _b.id) || "0";
|
|
@@ -145,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
145
145
|
};
|
|
146
146
|
let queryCondition = null;
|
|
147
147
|
const initQueryPage = async () => {
|
|
148
|
-
queryCondition = orgName.value ? {
|
|
148
|
+
queryCondition = orgName.value ? { queryForMode: "treePart", parentIdForEqual: "0", nameForLike: orgName.value } : null;
|
|
149
149
|
reloadTree();
|
|
150
150
|
};
|
|
151
151
|
const reloadTree = () => {
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const selectedApplication = ref(null);
|
|
30
30
|
const applicationName = ref("");
|
|
31
31
|
const queryPage = async () => {
|
|
32
|
-
let data = {
|
|
32
|
+
let data = { parentIdForEqual: "0", nameForLike: applicationName.value };
|
|
33
33
|
isLoading.value = true;
|
|
34
34
|
const res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-application/selectPage`, data);
|
|
35
35
|
isLoading.value = false;
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
const initQueryPage = async () => {
|
|
66
|
-
applicationName.value ? {
|
|
66
|
+
applicationName.value ? { queryForMode: "treePart", parentIdForEqual: "0", nameForLike: applicationName.value } : null;
|
|
67
67
|
reloadTree();
|
|
68
68
|
};
|
|
69
69
|
const reloadTree = () => {
|
|
@@ -6,19 +6,19 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
6
6
|
codeForLike?: string | undefined;
|
|
7
7
|
currentPage?: number | undefined;
|
|
8
8
|
pageSize?: number | undefined;
|
|
9
|
-
|
|
9
|
+
queryForMode?: string | undefined;
|
|
10
10
|
levelNum?: number | undefined;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
12
|
+
parentIdForEqual?: string | undefined;
|
|
13
13
|
}, UimsRoleQueryParam | {
|
|
14
14
|
nameForLike?: string | undefined;
|
|
15
15
|
codeForLike?: string | undefined;
|
|
16
16
|
currentPage?: number | undefined;
|
|
17
17
|
pageSize?: number | undefined;
|
|
18
|
-
|
|
18
|
+
queryForMode?: string | undefined;
|
|
19
19
|
levelNum?: number | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
21
|
+
parentIdForEqual?: string | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
24
|
query: () => void;
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
var _a, _b;
|
|
34
34
|
let data = {};
|
|
35
35
|
if (!queryCondition) {
|
|
36
|
-
data = {
|
|
36
|
+
data = { parentIdForEqual: ((_a = node == null ? void 0 : node.data) == null ? void 0 : _a.id) || "0" };
|
|
37
37
|
} else {
|
|
38
38
|
data = deepClone(queryCondition);
|
|
39
39
|
data.parentId = ((_b = node == null ? void 0 : node.data) == null ? void 0 : _b.id) || "0";
|
|
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
};
|
|
87
87
|
let queryCondition = null;
|
|
88
88
|
const initQueryPage = async () => {
|
|
89
|
-
queryCondition = orgName.value ? {
|
|
89
|
+
queryCondition = orgName.value ? { queryForMode: "treePart", parentIdForEqual: "0", nameForLike: orgName.value } : null;
|
|
90
90
|
reloadTree();
|
|
91
91
|
};
|
|
92
92
|
const reloadTree = () => {
|
|
@@ -7,20 +7,20 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
7
7
|
isRecursiveOrganization?: boolean | undefined;
|
|
8
8
|
currentPage?: number | undefined;
|
|
9
9
|
pageSize?: number | undefined;
|
|
10
|
-
|
|
10
|
+
queryForMode?: string | undefined;
|
|
11
11
|
levelNum?: number | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
13
|
+
parentIdForEqual?: string | undefined;
|
|
14
14
|
}, UimsUserQueryParam | {
|
|
15
15
|
nameForLike?: string | undefined;
|
|
16
16
|
accountForLike?: string | undefined;
|
|
17
17
|
isRecursiveOrganization?: boolean | undefined;
|
|
18
18
|
currentPage?: number | undefined;
|
|
19
19
|
pageSize?: number | undefined;
|
|
20
|
-
|
|
20
|
+
queryForMode?: string | undefined;
|
|
21
21
|
levelNum?: number | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
23
|
+
parentIdForEqual?: string | undefined;
|
|
24
24
|
}>;
|
|
25
25
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
26
|
query: () => void;
|
package/lib/ele-dialog/index.cjs
CHANGED
|
@@ -198,6 +198,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
198
|
to: _ctx.teleportTo,
|
|
199
199
|
disabled: _ctx.teleportDisabled
|
|
200
200
|
}, [
|
|
201
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.closeOnClickModal) + "____ ", 1),
|
|
201
202
|
vue.createVNode(_component_ElDialog, vue.mergeProps(_ctx.$attrs, {
|
|
202
203
|
ref: "dialogRef",
|
|
203
204
|
modelValue: _ctx.modelValue,
|
|
@@ -39,6 +39,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
39
39
|
default: null;
|
|
40
40
|
};
|
|
41
41
|
form: BooleanConstructor;
|
|
42
|
+
closeOnClickModal: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
42
46
|
appendTo: {
|
|
43
47
|
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
44
48
|
readonly required: false;
|
|
@@ -54,14 +58,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
54
58
|
__epPropKey: true;
|
|
55
59
|
};
|
|
56
60
|
destroyOnClose: BooleanConstructor;
|
|
57
|
-
closeOnClickModal: {
|
|
58
|
-
readonly type: import('vue').PropType<boolean>;
|
|
59
|
-
readonly required: false;
|
|
60
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
|
-
__epPropKey: true;
|
|
62
|
-
} & {
|
|
63
|
-
readonly default: true;
|
|
64
|
-
};
|
|
65
61
|
closeOnPressEscape: {
|
|
66
62
|
readonly type: import('vue').PropType<boolean>;
|
|
67
63
|
readonly required: false;
|
|
@@ -234,6 +230,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
234
230
|
default: null;
|
|
235
231
|
};
|
|
236
232
|
form: BooleanConstructor;
|
|
233
|
+
closeOnClickModal: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
default: boolean;
|
|
236
|
+
};
|
|
237
237
|
appendTo: {
|
|
238
238
|
readonly type: import('vue').PropType<string | HTMLElement>;
|
|
239
239
|
readonly required: false;
|
|
@@ -249,14 +249,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
249
249
|
__epPropKey: true;
|
|
250
250
|
};
|
|
251
251
|
destroyOnClose: BooleanConstructor;
|
|
252
|
-
closeOnClickModal: {
|
|
253
|
-
readonly type: import('vue').PropType<boolean>;
|
|
254
|
-
readonly required: false;
|
|
255
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
256
|
-
__epPropKey: true;
|
|
257
|
-
} & {
|
|
258
|
-
readonly default: true;
|
|
259
|
-
};
|
|
260
252
|
closeOnPressEscape: {
|
|
261
253
|
readonly type: import('vue').PropType<boolean>;
|
|
262
254
|
readonly required: false;
|
package/lib/ele-dialog/props.cjs
CHANGED
|
@@ -58,7 +58,12 @@ const eleDialogProps = {
|
|
|
58
58
|
default: null
|
|
59
59
|
},
|
|
60
60
|
/** 是否是表单弹窗 */
|
|
61
|
-
form: Boolean
|
|
61
|
+
form: Boolean,
|
|
62
|
+
/** 点击外层遮罩不关闭 */
|
|
63
|
+
closeOnClickModal: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: false
|
|
66
|
+
}
|
|
62
67
|
};
|
|
63
68
|
const eleDialogEmits = {
|
|
64
69
|
...elementPlus.dialogEmits,
|
|
@@ -63,6 +63,11 @@ export declare const eleDialogProps: {
|
|
|
63
63
|
};
|
|
64
64
|
/** 是否是表单弹窗 */
|
|
65
65
|
form: BooleanConstructor;
|
|
66
|
+
/** 点击外层遮罩不关闭 */
|
|
67
|
+
closeOnClickModal: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
66
71
|
appendTo: {
|
|
67
72
|
readonly type: PropType<string | HTMLElement>;
|
|
68
73
|
readonly required: false;
|
|
@@ -78,14 +83,6 @@ export declare const eleDialogProps: {
|
|
|
78
83
|
__epPropKey: true;
|
|
79
84
|
};
|
|
80
85
|
destroyOnClose: BooleanConstructor;
|
|
81
|
-
closeOnClickModal: {
|
|
82
|
-
readonly type: PropType<boolean>;
|
|
83
|
-
readonly required: false;
|
|
84
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
-
__epPropKey: true;
|
|
86
|
-
} & {
|
|
87
|
-
readonly default: true;
|
|
88
|
-
};
|
|
89
86
|
closeOnPressEscape: {
|
|
90
87
|
readonly type: PropType<boolean>;
|
|
91
88
|
readonly required: false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -10,7 +10,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
12
12
|
modelValue: {},
|
|
13
|
-
param: {
|
|
13
|
+
param: { default: {
|
|
14
|
+
type: "edit",
|
|
15
|
+
mode: "file",
|
|
16
|
+
maxCount: 5,
|
|
17
|
+
maxSize: 5
|
|
18
|
+
} }
|
|
14
19
|
}, {
|
|
15
20
|
"modelValue": {},
|
|
16
21
|
"modelModifiers": {}
|
|
@@ -19,9 +24,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
24
|
setup(__props, { emit: __emit }) {
|
|
20
25
|
const props = __props;
|
|
21
26
|
const emit = __emit;
|
|
22
|
-
props.param.mode = props.param.mode ?? "file";
|
|
23
|
-
props.param.maxCount = props.param.maxCount ?? 5;
|
|
24
|
-
props.param.maxSize = props.param.maxSize ?? 5;
|
|
25
27
|
const images = vue.ref([]);
|
|
26
28
|
const listType = vue.ref(props.param.mode);
|
|
27
29
|
const accept = vue.ref("");
|
|
@@ -52,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
54
|
});
|
|
53
55
|
const init = () => {
|
|
54
56
|
images.value = [];
|
|
55
|
-
httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, {
|
|
57
|
+
httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: model.value, pageSize: 100 }).then((res) => {
|
|
56
58
|
let attachemtList = res.data.data.records;
|
|
57
59
|
for (let i = 0; i < attachemtList.length; i++) {
|
|
58
60
|
images.value.push({
|
|
@@ -137,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
137
139
|
});
|
|
138
140
|
};
|
|
139
141
|
const emitChange = () => {
|
|
140
|
-
httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, {
|
|
142
|
+
httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: model.value, pageSize: 100 }).then((res) => {
|
|
141
143
|
let attachemtList = res.data.data.records;
|
|
142
144
|
emit("change", attachemtList);
|
|
143
145
|
});
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FrameworkAttachmentComponentParam } from 'yuang-framework-ui-common/lib/interface/component/ComponentParam';
|
|
2
|
+
import { FrameworkAttachment } from 'yuang-framework-ui-common/lib/interface/framework/frameworkAttachment';
|
|
2
3
|
|
|
3
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
5
|
modelValue: import('vue').PropType<any>;
|
|
5
6
|
param: {
|
|
6
|
-
type: import('vue').PropType<
|
|
7
|
+
type: import('vue').PropType<FrameworkAttachmentComponentParam>;
|
|
7
8
|
required: true;
|
|
9
|
+
default: {
|
|
10
|
+
type: string;
|
|
11
|
+
mode: string;
|
|
12
|
+
maxCount: number;
|
|
13
|
+
maxSize: number;
|
|
14
|
+
};
|
|
8
15
|
};
|
|
9
16
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
17
|
change: (frameworkAttachment: FrameworkAttachment) => void;
|
|
11
18
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
19
|
modelValue: import('vue').PropType<any>;
|
|
13
20
|
param: {
|
|
14
|
-
type: import('vue').PropType<
|
|
21
|
+
type: import('vue').PropType<FrameworkAttachmentComponentParam>;
|
|
15
22
|
required: true;
|
|
23
|
+
default: {
|
|
24
|
+
type: string;
|
|
25
|
+
mode: string;
|
|
26
|
+
maxCount: number;
|
|
27
|
+
maxSize: number;
|
|
28
|
+
};
|
|
16
29
|
};
|
|
17
30
|
}>> & Readonly<{
|
|
18
31
|
onChange?: ((frameworkAttachment: FrameworkAttachment) => any) | undefined;
|
|
19
|
-
}>, {
|
|
32
|
+
}>, {
|
|
33
|
+
param: FrameworkAttachmentComponentParam;
|
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
35
|
export default _default;
|
|
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
50
|
var _a, _b;
|
|
51
51
|
let data = {};
|
|
52
52
|
if (!queryCondition) {
|
|
53
|
-
data = {
|
|
53
|
+
data = { parentIdForEqual: ((_a = node == null ? void 0 : node.data) == null ? void 0 : _a.id) || "0" };
|
|
54
54
|
} else {
|
|
55
55
|
data = objectUtils.deepClone(queryCondition);
|
|
56
56
|
data.parentId = ((_b = node == null ? void 0 : node.data) == null ? void 0 : _b.id) || "0";
|
|
@@ -146,7 +146,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
146
146
|
};
|
|
147
147
|
let queryCondition = null;
|
|
148
148
|
const initQueryPage = async () => {
|
|
149
|
-
queryCondition = orgName.value ? {
|
|
149
|
+
queryCondition = orgName.value ? { queryForMode: "treePart", parentIdForEqual: "0", nameForLike: orgName.value } : null;
|
|
150
150
|
reloadTree();
|
|
151
151
|
};
|
|
152
152
|
const reloadTree = () => {
|
|
@@ -30,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
30
|
const selectedApplication = vue.ref(null);
|
|
31
31
|
const applicationName = vue.ref("");
|
|
32
32
|
const queryPage = async () => {
|
|
33
|
-
let data = {
|
|
33
|
+
let data = { parentIdForEqual: "0", nameForLike: applicationName.value };
|
|
34
34
|
isLoading.value = true;
|
|
35
35
|
const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-application/selectPage`, data);
|
|
36
36
|
isLoading.value = false;
|
|
@@ -64,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
const initQueryPage = async () => {
|
|
67
|
-
applicationName.value ? {
|
|
67
|
+
applicationName.value ? { queryForMode: "treePart", parentIdForEqual: "0", nameForLike: applicationName.value } : null;
|
|
68
68
|
reloadTree();
|
|
69
69
|
};
|
|
70
70
|
const reloadTree = () => {
|
|
@@ -6,19 +6,19 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
6
6
|
codeForLike?: string | undefined;
|
|
7
7
|
currentPage?: number | undefined;
|
|
8
8
|
pageSize?: number | undefined;
|
|
9
|
-
|
|
9
|
+
queryForMode?: string | undefined;
|
|
10
10
|
levelNum?: number | undefined;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
12
|
+
parentIdForEqual?: string | undefined;
|
|
13
13
|
}, UimsRoleQueryParam | {
|
|
14
14
|
nameForLike?: string | undefined;
|
|
15
15
|
codeForLike?: string | undefined;
|
|
16
16
|
currentPage?: number | undefined;
|
|
17
17
|
pageSize?: number | undefined;
|
|
18
|
-
|
|
18
|
+
queryForMode?: string | undefined;
|
|
19
19
|
levelNum?: number | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
21
|
+
parentIdForEqual?: string | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
24
|
query: () => void;
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
34
|
var _a, _b;
|
|
35
35
|
let data = {};
|
|
36
36
|
if (!queryCondition) {
|
|
37
|
-
data = {
|
|
37
|
+
data = { parentIdForEqual: ((_a = node == null ? void 0 : node.data) == null ? void 0 : _a.id) || "0" };
|
|
38
38
|
} else {
|
|
39
39
|
data = objectUtils.deepClone(queryCondition);
|
|
40
40
|
data.parentId = ((_b = node == null ? void 0 : node.data) == null ? void 0 : _b.id) || "0";
|
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
87
|
};
|
|
88
88
|
let queryCondition = null;
|
|
89
89
|
const initQueryPage = async () => {
|
|
90
|
-
queryCondition = orgName.value ? {
|
|
90
|
+
queryCondition = orgName.value ? { queryForMode: "treePart", parentIdForEqual: "0", nameForLike: orgName.value } : null;
|
|
91
91
|
reloadTree();
|
|
92
92
|
};
|
|
93
93
|
const reloadTree = () => {
|
|
@@ -7,20 +7,20 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
7
7
|
isRecursiveOrganization?: boolean | undefined;
|
|
8
8
|
currentPage?: number | undefined;
|
|
9
9
|
pageSize?: number | undefined;
|
|
10
|
-
|
|
10
|
+
queryForMode?: string | undefined;
|
|
11
11
|
levelNum?: number | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
13
|
+
parentIdForEqual?: string | undefined;
|
|
14
14
|
}, UimsUserQueryParam | {
|
|
15
15
|
nameForLike?: string | undefined;
|
|
16
16
|
accountForLike?: string | undefined;
|
|
17
17
|
isRecursiveOrganization?: boolean | undefined;
|
|
18
18
|
currentPage?: number | undefined;
|
|
19
19
|
pageSize?: number | undefined;
|
|
20
|
-
|
|
20
|
+
queryForMode?: string | undefined;
|
|
21
21
|
levelNum?: number | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
23
|
+
parentIdForEqual?: string | undefined;
|
|
24
24
|
}>;
|
|
25
25
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
26
|
query: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuang-framework-ui-pc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.55",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite --host --config vite.global.ts --mode dev",
|
|
@@ -188,6 +188,6 @@
|
|
|
188
188
|
"repository": "",
|
|
189
189
|
"license": "",
|
|
190
190
|
"dependencies": {
|
|
191
|
-
"yuang-framework-ui-common": "^1.0.
|
|
191
|
+
"yuang-framework-ui-common": "^1.0.73"
|
|
192
192
|
}
|
|
193
193
|
}
|