yuang-framework-ui-pc 1.1.52 → 1.1.53
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/core-components.d.ts +3 -0
- package/es/core-components.js +7 -1
- package/es/ele-admin-layout/components/layout-tabs.d.ts +4 -4
- package/es/ele-dropdown/components/pro-dropdown.d.ts +2 -2
- package/es/ele-pro-layout/index.d.ts +4 -4
- package/es/ele-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/es/icons/ApiItem.d.ts +2 -0
- package/es/icons/ApiItem.js +32 -0
- package/es/icons/ApiTeam.d.ts +2 -0
- package/es/icons/ApiTeam.js +42 -0
- package/es/icons/OrganizationDept.d.ts +2 -0
- package/es/icons/OrganizationDept.js +33 -0
- package/es/icons/OrganizationOrg.d.ts +2 -0
- package/es/icons/OrganizationOrg.js +32 -0
- package/es/icons/OrganizationUnit.d.ts +2 -0
- package/es/icons/OrganizationUnit.js +32 -0
- package/es/icons/index.d.ts +5 -0
- package/es/icons/index.js +10 -0
- package/es/yu-framework-attachment-upload/index.d.ts +0 -1
- package/es/yu-framework-attachment-upload/index.js +17 -19
- package/es/yu-uims-organization-dialog/components/organization-dialog.d.ts +20 -0
- package/es/yu-uims-organization-dialog/components/organization-dialog.js +327 -0
- package/es/yu-uims-organization-dialog/index.d.ts +45 -0
- package/es/yu-uims-organization-dialog/index.js +68 -0
- package/es/yu-uims-role-dialog/components/role-dialog.d.ts +20 -0
- package/es/yu-uims-role-dialog/components/role-dialog.js +224 -0
- package/es/yu-uims-role-dialog/components/role-list.d.ts +54 -0
- package/es/yu-uims-role-dialog/components/role-list.js +188 -0
- package/es/yu-uims-role-dialog/components/role-query.d.ts +28 -0
- package/es/yu-uims-role-dialog/components/role-query.js +132 -0
- package/es/yu-uims-role-dialog/index.d.ts +23 -0
- package/es/yu-uims-role-dialog/index.js +42 -0
- package/es/yu-uims-user-dialog/components/user-dialog.d.ts +20 -0
- package/es/yu-uims-user-dialog/components/user-dialog.js +247 -0
- package/es/yu-uims-user-dialog/components/user-list.d.ts +84 -0
- package/es/yu-uims-user-dialog/components/user-list.js +232 -0
- package/es/yu-uims-user-dialog/components/user-query.d.ts +30 -0
- package/es/yu-uims-user-dialog/components/user-query.js +167 -0
- package/es/yu-uims-user-dialog/index.d.ts +23 -0
- package/es/yu-uims-user-dialog/index.js +42 -0
- package/lib/core-components.cjs +6 -0
- package/lib/core-components.d.ts +3 -0
- package/lib/ele-admin-layout/components/layout-tabs.d.ts +4 -4
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +2 -2
- package/lib/ele-pro-layout/index.d.ts +4 -4
- package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/lib/icons/ApiItem.cjs +31 -0
- package/lib/icons/ApiItem.d.ts +2 -0
- package/lib/icons/ApiTeam.cjs +41 -0
- package/lib/icons/ApiTeam.d.ts +2 -0
- package/lib/icons/OrganizationDept.cjs +32 -0
- package/lib/icons/OrganizationDept.d.ts +2 -0
- package/lib/icons/OrganizationOrg.cjs +31 -0
- package/lib/icons/OrganizationOrg.d.ts +2 -0
- package/lib/icons/OrganizationUnit.cjs +31 -0
- package/lib/icons/OrganizationUnit.d.ts +2 -0
- package/lib/icons/index.cjs +10 -0
- package/lib/icons/index.d.ts +5 -0
- package/lib/yu-framework-attachment-upload/index.cjs +16 -18
- package/lib/yu-framework-attachment-upload/index.d.ts +0 -1
- package/lib/yu-uims-organization-dialog/components/organization-dialog.cjs +326 -0
- package/lib/yu-uims-organization-dialog/components/organization-dialog.d.ts +20 -0
- package/lib/yu-uims-organization-dialog/index.cjs +67 -0
- package/lib/yu-uims-organization-dialog/index.d.ts +45 -0
- package/lib/yu-uims-role-dialog/components/role-dialog.cjs +223 -0
- package/lib/yu-uims-role-dialog/components/role-dialog.d.ts +20 -0
- package/lib/yu-uims-role-dialog/components/role-list.cjs +187 -0
- package/lib/yu-uims-role-dialog/components/role-list.d.ts +54 -0
- package/lib/yu-uims-role-dialog/components/role-query.cjs +131 -0
- package/lib/yu-uims-role-dialog/components/role-query.d.ts +28 -0
- package/lib/yu-uims-role-dialog/index.cjs +41 -0
- package/lib/yu-uims-role-dialog/index.d.ts +23 -0
- package/lib/yu-uims-user-dialog/components/user-dialog.cjs +246 -0
- package/lib/yu-uims-user-dialog/components/user-dialog.d.ts +20 -0
- package/lib/yu-uims-user-dialog/components/user-list.cjs +231 -0
- package/lib/yu-uims-user-dialog/components/user-list.d.ts +84 -0
- package/lib/yu-uims-user-dialog/components/user-query.cjs +166 -0
- package/lib/yu-uims-user-dialog/components/user-query.d.ts +30 -0
- package/lib/yu-uims-user-dialog/index.cjs +41 -0
- package/lib/yu-uims-user-dialog/index.d.ts +23 -0
- package/package.json +2 -2
- package/typings/global.d.ts +3 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const iconsVue = require("@element-plus/icons-vue");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
+
__name: "user-query",
|
|
6
|
+
emits: ["query"],
|
|
7
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8
|
+
const emit = __emit;
|
|
9
|
+
const getInitQueryForm = () => {
|
|
10
|
+
return {
|
|
11
|
+
account: "",
|
|
12
|
+
name: "",
|
|
13
|
+
isRecursiveOrganization: false
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
const queryForm = vue.ref(getInitQueryForm());
|
|
17
|
+
const queryPage = () => {
|
|
18
|
+
emit("query");
|
|
19
|
+
};
|
|
20
|
+
const reset = () => {
|
|
21
|
+
queryForm.value = getInitQueryForm();
|
|
22
|
+
queryPage();
|
|
23
|
+
};
|
|
24
|
+
__expose({ queryForm });
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
27
|
+
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
28
|
+
const _component_el_col = vue.resolveComponent("el-col");
|
|
29
|
+
const _component_el_radio = vue.resolveComponent("el-radio");
|
|
30
|
+
const _component_el_radio_group = vue.resolveComponent("el-radio-group");
|
|
31
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
|
32
|
+
const _component_el_row = vue.resolveComponent("el-row");
|
|
33
|
+
const _component_el_form = vue.resolveComponent("el-form");
|
|
34
|
+
return vue.openBlock(), vue.createBlock(_component_el_form, {
|
|
35
|
+
"label-width": "72px",
|
|
36
|
+
onKeyup: vue.withKeys(vue.withModifiers(queryPage, ["prevent"]), ["enter"]),
|
|
37
|
+
onSubmit: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
38
|
+
}, ["prevent"]))
|
|
39
|
+
}, {
|
|
40
|
+
default: vue.withCtx(() => [
|
|
41
|
+
vue.createVNode(_component_el_row, { gutter: 8 }, {
|
|
42
|
+
default: vue.withCtx(() => [
|
|
43
|
+
vue.createVNode(_component_el_col, {
|
|
44
|
+
lg: 6,
|
|
45
|
+
md: 8,
|
|
46
|
+
sm: 12,
|
|
47
|
+
xs: 24
|
|
48
|
+
}, {
|
|
49
|
+
default: vue.withCtx(() => [
|
|
50
|
+
vue.createVNode(_component_el_form_item, { label: "用户账号" }, {
|
|
51
|
+
default: vue.withCtx(() => [
|
|
52
|
+
vue.createVNode(_component_el_input, {
|
|
53
|
+
clearable: "",
|
|
54
|
+
modelValue: queryForm.value.account,
|
|
55
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => queryForm.value.account = $event),
|
|
56
|
+
modelModifiers: { trim: true },
|
|
57
|
+
placeholder: "请输入用户账号"
|
|
58
|
+
}, null, 8, ["modelValue"])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
})
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}),
|
|
65
|
+
vue.createVNode(_component_el_col, {
|
|
66
|
+
lg: 6,
|
|
67
|
+
md: 8,
|
|
68
|
+
sm: 12,
|
|
69
|
+
xs: 24
|
|
70
|
+
}, {
|
|
71
|
+
default: vue.withCtx(() => [
|
|
72
|
+
vue.createVNode(_component_el_form_item, { label: "用户名称" }, {
|
|
73
|
+
default: vue.withCtx(() => [
|
|
74
|
+
vue.createVNode(_component_el_input, {
|
|
75
|
+
clearable: "",
|
|
76
|
+
modelValue: queryForm.value.name,
|
|
77
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => queryForm.value.name = $event),
|
|
78
|
+
modelModifiers: { trim: true },
|
|
79
|
+
placeholder: "请输入用户名称"
|
|
80
|
+
}, null, 8, ["modelValue"])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}),
|
|
87
|
+
vue.createVNode(_component_el_col, {
|
|
88
|
+
lg: 6,
|
|
89
|
+
md: 8,
|
|
90
|
+
sm: 12,
|
|
91
|
+
xs: 24
|
|
92
|
+
}, {
|
|
93
|
+
default: vue.withCtx(() => [
|
|
94
|
+
vue.createVNode(_component_el_form_item, { label: "递归机构" }, {
|
|
95
|
+
default: vue.withCtx(() => [
|
|
96
|
+
vue.createVNode(_component_el_radio_group, {
|
|
97
|
+
modelValue: queryForm.value.isRecursiveOrganization,
|
|
98
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => queryForm.value.isRecursiveOrganization = $event),
|
|
99
|
+
class: "yu-radio-group"
|
|
100
|
+
}, {
|
|
101
|
+
default: vue.withCtx(() => [
|
|
102
|
+
vue.createVNode(_component_el_radio, {
|
|
103
|
+
value: true,
|
|
104
|
+
label: "是"
|
|
105
|
+
}),
|
|
106
|
+
vue.createVNode(_component_el_radio, {
|
|
107
|
+
value: false,
|
|
108
|
+
label: "否"
|
|
109
|
+
})
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, ["modelValue"])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}),
|
|
119
|
+
vue.createVNode(_component_el_col, {
|
|
120
|
+
lg: 6,
|
|
121
|
+
md: 8,
|
|
122
|
+
sm: 24,
|
|
123
|
+
xs: 24
|
|
124
|
+
}, {
|
|
125
|
+
default: vue.withCtx(() => [
|
|
126
|
+
vue.createVNode(_component_el_form_item, { "label-width": "16px" }, {
|
|
127
|
+
default: vue.withCtx(() => [
|
|
128
|
+
vue.createVNode(_component_el_button, {
|
|
129
|
+
type: "primary",
|
|
130
|
+
icon: vue.unref(iconsVue.Search),
|
|
131
|
+
class: "ele-btn-icon",
|
|
132
|
+
onClick: queryPage
|
|
133
|
+
}, {
|
|
134
|
+
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
135
|
+
vue.createTextVNode("查询")
|
|
136
|
+
])),
|
|
137
|
+
_: 1,
|
|
138
|
+
__: [4]
|
|
139
|
+
}, 8, ["icon"]),
|
|
140
|
+
vue.createVNode(_component_el_button, {
|
|
141
|
+
icon: vue.unref(iconsVue.RefreshRight),
|
|
142
|
+
class: "ele-btn-icon",
|
|
143
|
+
onClick: reset
|
|
144
|
+
}, {
|
|
145
|
+
default: vue.withCtx(() => _cache[5] || (_cache[5] = [
|
|
146
|
+
vue.createTextVNode("重置")
|
|
147
|
+
])),
|
|
148
|
+
_: 1,
|
|
149
|
+
__: [5]
|
|
150
|
+
}, 8, ["icon"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
})
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["onKeyup"]);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UimsUserQueryParam } from 'yuang-framework-ui-common/lib/interface/uims/uimsUser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
4
|
+
queryForm: import('vue').Ref<{
|
|
5
|
+
nameForLike?: string | undefined;
|
|
6
|
+
accountForLike?: string | undefined;
|
|
7
|
+
isRecursiveOrganization?: boolean | undefined;
|
|
8
|
+
currentPage?: number | undefined;
|
|
9
|
+
pageSize?: number | undefined;
|
|
10
|
+
queryFor?: string | undefined;
|
|
11
|
+
levelNum?: number | undefined;
|
|
12
|
+
uimsApplicationId?: string | undefined;
|
|
13
|
+
parentId?: string | undefined;
|
|
14
|
+
}, UimsUserQueryParam | {
|
|
15
|
+
nameForLike?: string | undefined;
|
|
16
|
+
accountForLike?: string | undefined;
|
|
17
|
+
isRecursiveOrganization?: boolean | undefined;
|
|
18
|
+
currentPage?: number | undefined;
|
|
19
|
+
pageSize?: number | undefined;
|
|
20
|
+
queryFor?: string | undefined;
|
|
21
|
+
levelNum?: number | undefined;
|
|
22
|
+
uimsApplicationId?: string | undefined;
|
|
23
|
+
parentId?: string | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
query: () => void;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
28
|
+
onQuery?: (() => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const UserDialog = require("./components/user-dialog");
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
5
|
+
...{ name: "YuUimsUserDialog" },
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
param: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["change"],
|
|
11
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const emit = __emit;
|
|
14
|
+
const isShowDialog = vue.ref(false);
|
|
15
|
+
const showDialog = () => {
|
|
16
|
+
isShowDialog.value = true;
|
|
17
|
+
};
|
|
18
|
+
const handleChange = (selections) => {
|
|
19
|
+
emit("change", selections);
|
|
20
|
+
};
|
|
21
|
+
__expose({
|
|
22
|
+
showDialog
|
|
23
|
+
});
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
26
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
27
|
+
vue.withDirectives(vue.createVNode(_component_el_input, { onClick: showDialog }, null, 512), [
|
|
28
|
+
[vue.vShow, false]
|
|
29
|
+
]),
|
|
30
|
+
isShowDialog.value ? (vue.openBlock(), vue.createBlock(UserDialog, {
|
|
31
|
+
key: 0,
|
|
32
|
+
modelValue: isShowDialog.value,
|
|
33
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShowDialog.value = $event),
|
|
34
|
+
param: props.param,
|
|
35
|
+
onChange: handleChange
|
|
36
|
+
}, null, 8, ["modelValue", "param"])) : vue.createCommentVNode("", true)
|
|
37
|
+
], 64);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UimsUser } from 'yuang-framework-ui-common/lib/interface/uims/uimsUser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
param: any;
|
|
5
|
+
}>>, {
|
|
6
|
+
showDialog: () => void;
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
change: (uimsUserList: UimsUser[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
param: any;
|
|
11
|
+
}>>> & Readonly<{
|
|
12
|
+
onChange?: ((uimsUserList: UimsUser[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
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.53",
|
|
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.65"
|
|
192
192
|
}
|
|
193
193
|
}
|
package/typings/global.d.ts
CHANGED
|
@@ -63,6 +63,9 @@ declare module '@vue/runtime-core' {
|
|
|
63
63
|
YuFrameworkAttachmentUpload: (typeof import('yuang-framework-ui-pc'))['YuFrameworkAttachmentUpload'];
|
|
64
64
|
YuFrameworkSliderCaptchaDialog: (typeof import('yuang-framework-ui-pc'))['YuFrameworkSliderCaptchaDialog'];
|
|
65
65
|
YuTest: (typeof import('yuang-framework-ui-pc'))['YuTest'];
|
|
66
|
+
YuUimsOrganizationDialog: (typeof import('yuang-framework-ui-pc'))['YuUimsOrganizationDialog'];
|
|
67
|
+
YuUimsRoleDialog: (typeof import('yuang-framework-ui-pc'))['YuUimsRoleDialog'];
|
|
68
|
+
YuUimsUserDialog: (typeof import('yuang-framework-ui-pc'))['YuUimsUserDialog'];
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
export {};
|