yuang-framework-ui-pc 1.1.51 → 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.
Files changed (110) hide show
  1. package/es/core-components.d.ts +4 -2
  2. package/es/core-components.js +9 -5
  3. package/es/ele-admin-layout/components/layout-tabs.d.ts +4 -4
  4. package/es/ele-dropdown/components/pro-dropdown.d.ts +2 -2
  5. package/es/ele-pro-layout/index.d.ts +4 -4
  6. package/es/ele-tab-wrap/components/tab-dropdown.d.ts +4 -4
  7. package/es/ele-upload-list/components/list-item.d.ts +1 -0
  8. package/es/ele-upload-list/components/list-item.js +11 -3
  9. package/es/ele-upload-list/index.d.ts +2 -0
  10. package/es/ele-upload-list/index.js +16 -3
  11. package/es/ele-upload-list/types.d.ts +2 -0
  12. package/es/icons/ApiItem.d.ts +2 -0
  13. package/es/icons/ApiItem.js +32 -0
  14. package/es/icons/ApiTeam.d.ts +2 -0
  15. package/es/icons/ApiTeam.js +42 -0
  16. package/es/icons/OrganizationDept.d.ts +2 -0
  17. package/es/icons/OrganizationDept.js +33 -0
  18. package/es/icons/OrganizationOrg.d.ts +2 -0
  19. package/es/icons/OrganizationOrg.js +32 -0
  20. package/es/icons/OrganizationUnit.d.ts +2 -0
  21. package/es/icons/OrganizationUnit.js +32 -0
  22. package/es/icons/index.d.ts +5 -0
  23. package/es/icons/index.js +10 -0
  24. package/{lib/yu-framework-attachment-image-upload → es/yu-framework-attachment-upload}/index.d.ts +0 -1
  25. package/es/{yu-framework-attachment-image-upload → yu-framework-attachment-upload}/index.js +43 -64
  26. package/es/yu-framework-slider-captcha-dialog/{SliderCaptcha.js → components/SliderCaptcha.js} +1 -1
  27. package/es/yu-framework-slider-captcha-dialog/index.js +1 -1
  28. package/es/yu-uims-organization-dialog/components/organization-dialog.d.ts +20 -0
  29. package/es/yu-uims-organization-dialog/components/organization-dialog.js +327 -0
  30. package/es/yu-uims-organization-dialog/index.d.ts +45 -0
  31. package/es/yu-uims-organization-dialog/index.js +68 -0
  32. package/es/yu-uims-role-dialog/components/role-dialog.d.ts +20 -0
  33. package/es/yu-uims-role-dialog/components/role-dialog.js +224 -0
  34. package/es/yu-uims-role-dialog/components/role-list.d.ts +54 -0
  35. package/es/yu-uims-role-dialog/components/role-list.js +188 -0
  36. package/es/yu-uims-role-dialog/components/role-query.d.ts +28 -0
  37. package/es/yu-uims-role-dialog/components/role-query.js +132 -0
  38. package/es/yu-uims-role-dialog/index.d.ts +23 -0
  39. package/es/yu-uims-role-dialog/index.js +42 -0
  40. package/es/yu-uims-user-dialog/components/user-dialog.d.ts +20 -0
  41. package/es/yu-uims-user-dialog/components/user-dialog.js +247 -0
  42. package/es/yu-uims-user-dialog/components/user-list.d.ts +84 -0
  43. package/es/yu-uims-user-dialog/components/user-list.js +232 -0
  44. package/es/yu-uims-user-dialog/components/user-query.d.ts +30 -0
  45. package/es/yu-uims-user-dialog/components/user-query.js +167 -0
  46. package/es/yu-uims-user-dialog/index.d.ts +23 -0
  47. package/es/yu-uims-user-dialog/index.js +42 -0
  48. package/lib/core-components.cjs +8 -4
  49. package/lib/core-components.d.ts +4 -2
  50. package/lib/ele-admin-layout/components/layout-tabs.d.ts +4 -4
  51. package/lib/ele-dropdown/components/pro-dropdown.d.ts +2 -2
  52. package/lib/ele-pro-layout/index.d.ts +4 -4
  53. package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +4 -4
  54. package/lib/ele-upload-list/components/list-item.cjs +11 -3
  55. package/lib/ele-upload-list/components/list-item.d.ts +1 -0
  56. package/lib/ele-upload-list/index.cjs +16 -3
  57. package/lib/ele-upload-list/index.d.ts +2 -0
  58. package/lib/ele-upload-list/types.d.ts +2 -0
  59. package/lib/icons/ApiItem.cjs +31 -0
  60. package/lib/icons/ApiItem.d.ts +2 -0
  61. package/lib/icons/ApiTeam.cjs +41 -0
  62. package/lib/icons/ApiTeam.d.ts +2 -0
  63. package/lib/icons/OrganizationDept.cjs +32 -0
  64. package/lib/icons/OrganizationDept.d.ts +2 -0
  65. package/lib/icons/OrganizationOrg.cjs +31 -0
  66. package/lib/icons/OrganizationOrg.d.ts +2 -0
  67. package/lib/icons/OrganizationUnit.cjs +31 -0
  68. package/lib/icons/OrganizationUnit.d.ts +2 -0
  69. package/lib/icons/index.cjs +10 -0
  70. package/lib/icons/index.d.ts +5 -0
  71. package/lib/{yu-framework-attachment-image-upload → yu-framework-attachment-upload}/index.cjs +42 -63
  72. package/{es/yu-framework-attachment-image-upload → lib/yu-framework-attachment-upload}/index.d.ts +0 -1
  73. package/lib/yu-framework-slider-captcha-dialog/{SliderCaptcha.cjs → components/SliderCaptcha.cjs} +1 -1
  74. package/lib/yu-framework-slider-captcha-dialog/index.cjs +1 -1
  75. package/lib/yu-uims-organization-dialog/components/organization-dialog.cjs +326 -0
  76. package/lib/yu-uims-organization-dialog/components/organization-dialog.d.ts +20 -0
  77. package/lib/yu-uims-organization-dialog/index.cjs +67 -0
  78. package/lib/yu-uims-organization-dialog/index.d.ts +45 -0
  79. package/lib/yu-uims-role-dialog/components/role-dialog.cjs +223 -0
  80. package/lib/yu-uims-role-dialog/components/role-dialog.d.ts +20 -0
  81. package/lib/yu-uims-role-dialog/components/role-list.cjs +187 -0
  82. package/lib/yu-uims-role-dialog/components/role-list.d.ts +54 -0
  83. package/lib/yu-uims-role-dialog/components/role-query.cjs +131 -0
  84. package/lib/yu-uims-role-dialog/components/role-query.d.ts +28 -0
  85. package/lib/yu-uims-role-dialog/index.cjs +41 -0
  86. package/lib/yu-uims-role-dialog/index.d.ts +23 -0
  87. package/lib/yu-uims-user-dialog/components/user-dialog.cjs +246 -0
  88. package/lib/yu-uims-user-dialog/components/user-dialog.d.ts +20 -0
  89. package/lib/yu-uims-user-dialog/components/user-list.cjs +231 -0
  90. package/lib/yu-uims-user-dialog/components/user-list.d.ts +84 -0
  91. package/lib/yu-uims-user-dialog/components/user-query.cjs +166 -0
  92. package/lib/yu-uims-user-dialog/components/user-query.d.ts +30 -0
  93. package/lib/yu-uims-user-dialog/index.cjs +41 -0
  94. package/lib/yu-uims-user-dialog/index.d.ts +23 -0
  95. package/package.json +2 -2
  96. package/typings/global.d.ts +4 -2
  97. package/es/yu-framework-attachment-file-upload/CommonUpload/index.d.ts +0 -161
  98. package/es/yu-framework-attachment-file-upload/CommonUpload/index.js +0 -173
  99. package/es/yu-framework-attachment-file-upload/FileUpload/index.d.ts +0 -143
  100. package/es/yu-framework-attachment-file-upload/FileUpload/index.js +0 -219
  101. package/es/yu-framework-attachment-file-upload/index.d.ts +0 -16
  102. package/es/yu-framework-attachment-file-upload/index.js +0 -55
  103. package/lib/yu-framework-attachment-file-upload/CommonUpload/index.cjs +0 -172
  104. package/lib/yu-framework-attachment-file-upload/CommonUpload/index.d.ts +0 -161
  105. package/lib/yu-framework-attachment-file-upload/FileUpload/index.cjs +0 -218
  106. package/lib/yu-framework-attachment-file-upload/FileUpload/index.d.ts +0 -143
  107. package/lib/yu-framework-attachment-file-upload/index.cjs +0 -54
  108. package/lib/yu-framework-attachment-file-upload/index.d.ts +0 -16
  109. /package/es/yu-framework-slider-captcha-dialog/{SliderCaptcha.d.ts → components/SliderCaptcha.d.ts} +0 -0
  110. /package/lib/yu-framework-slider-captcha-dialog/{SliderCaptcha.d.ts → components/SliderCaptcha.d.ts} +0 -0
@@ -0,0 +1,42 @@
1
+ import { defineComponent, ref, resolveComponent, createElementBlock, openBlock, Fragment, withDirectives, createBlock, createCommentVNode, createVNode, vShow } from "vue";
2
+ import RoleDialog from "./components/role-dialog";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ ...{ name: "YuUimsRoleDialog" },
5
+ __name: "index",
6
+ props: {
7
+ param: {}
8
+ },
9
+ emits: ["change"],
10
+ setup(__props, { expose: __expose, emit: __emit }) {
11
+ const props = __props;
12
+ const emit = __emit;
13
+ const isShowDialog = ref(false);
14
+ const showDialog = () => {
15
+ isShowDialog.value = true;
16
+ };
17
+ const handleChange = (selections) => {
18
+ emit("change", selections);
19
+ };
20
+ __expose({
21
+ showDialog
22
+ });
23
+ return (_ctx, _cache) => {
24
+ const _component_el_input = resolveComponent("el-input");
25
+ return openBlock(), createElementBlock(Fragment, null, [
26
+ withDirectives(createVNode(_component_el_input, { onClick: showDialog }, null, 512), [
27
+ [vShow, false]
28
+ ]),
29
+ isShowDialog.value ? (openBlock(), createBlock(RoleDialog, {
30
+ key: 0,
31
+ modelValue: isShowDialog.value,
32
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShowDialog.value = $event),
33
+ param: props.param,
34
+ onChange: handleChange
35
+ }, null, 8, ["modelValue", "param"])) : createCommentVNode("", true)
36
+ ], 64);
37
+ };
38
+ }
39
+ });
40
+ export {
41
+ _sfc_main as default
42
+ };
@@ -0,0 +1,20 @@
1
+ import { UimsUser } from 'yuang-framework-ui-common/lib/interface/uims/uimsUser';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<any>;
5
+ param: {
6
+ type: import('vue').PropType<any>;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ change: (uimsUserList: UimsUser[]) => void;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
+ modelValue: import('vue').PropType<any>;
13
+ param: {
14
+ type: import('vue').PropType<any>;
15
+ required: true;
16
+ };
17
+ }>> & Readonly<{
18
+ onChange?: ((uimsUserList: UimsUser[]) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,247 @@
1
+ import { defineComponent, mergeModels, useModel, ref, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, withKeys, unref, createCommentVNode, resolveDynamicComponent, toDisplayString, createTextVNode, nextTick } from "vue";
2
+ import { SearchOutlined, ClusterOutlined, OrganizationOrg, OrganizationUnit, OrganizationDept } from "../../icons";
3
+ import UserList from "./user-list";
4
+ import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
5
+ import { Close, Check } from "@element-plus/icons-vue";
6
+ import { getShortUuid } from "yuang-framework-ui-common/lib/utils/uuidUtils";
7
+ import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
8
+ import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
9
+ const _hoisted_1 = { style: { "padding": "0 16px 12px 0" } };
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...{ name: "UimsUserV2" },
12
+ __name: "user-dialog",
13
+ props: /* @__PURE__ */ mergeModels({
14
+ param: {}
15
+ }, {
16
+ "modelValue": { type: Boolean },
17
+ "modelModifiers": {}
18
+ }),
19
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
20
+ setup(__props, { emit: __emit }) {
21
+ const props = __props;
22
+ const emit = __emit;
23
+ const isOpenDialog = useModel(__props, "modelValue");
24
+ const splitRef = ref(null);
25
+ const treeRef = ref(null);
26
+ const treeId = ref(`tree-${getShortUuid()}`);
27
+ const userListRef = ref(null);
28
+ const isLoading = ref(true);
29
+ const isShowTree = ref(true);
30
+ const organization = ref(null);
31
+ const orgName = ref("");
32
+ const loadTreeNode = async (node, resolve) => {
33
+ var _a, _b;
34
+ let data = {};
35
+ if (!queryCondition) {
36
+ data = { parentId: ((_a = node == null ? void 0 : node.data) == null ? void 0 : _a.id) || "0" };
37
+ } else {
38
+ data = deepClone(queryCondition);
39
+ data.parentId = ((_b = node == null ? void 0 : node.data) == null ? void 0 : _b.id) || "0";
40
+ }
41
+ if (node.level == 0) {
42
+ isLoading.value = true;
43
+ }
44
+ const res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectPage`, data);
45
+ if (node.level == 0) {
46
+ isLoading.value = false;
47
+ }
48
+ let listData = res.data.data.records;
49
+ listData.forEach((organization2) => {
50
+ organization2.isLeaf = !organization2.isHasChildren;
51
+ });
52
+ nextTick(() => {
53
+ if (node.level == 0) {
54
+ handleNodeClick(listData[0] || { id: "0" });
55
+ }
56
+ if (listData.length == 1 && listData[0].isHasChildren) {
57
+ nextTick(() => {
58
+ const nodeList = document.querySelectorAll(`#${treeId.value}.el-tree [data-key='${listData[0].id}'] .el-tree-node__expand-icon`);
59
+ for (let i = 0; i < nodeList.length; i++) {
60
+ if (!nodeList[i].classList.contains("expanded")) {
61
+ nodeList[i] && nodeList[i].click();
62
+ } else {
63
+ if (queryCondition) {
64
+ queryCondition.parentId = listData[0].id || "0";
65
+ queryCondition.levelNum = listData[0].levelNum + 1;
66
+ http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectPage`, queryCondition).then((res2) => {
67
+ var _a2;
68
+ (_a2 = treeRef == null ? void 0 : treeRef.value) == null ? void 0 : _a2.updateKeyChildren(queryCondition == null ? void 0 : queryCondition.parentId, res2.data.data.records);
69
+ });
70
+ }
71
+ }
72
+ }
73
+ });
74
+ }
75
+ });
76
+ return resolve(listData);
77
+ };
78
+ const handleNodeClick = (row) => {
79
+ var _a, _b;
80
+ if (row && row.id) {
81
+ organization.value = row;
82
+ (_b = (_a = treeRef.value) == null ? void 0 : _a.setCurrentKey) == null ? void 0 : _b.call(_a, row.id);
83
+ } else {
84
+ organization.value = null;
85
+ }
86
+ };
87
+ let queryCondition = null;
88
+ const initQueryPage = async () => {
89
+ queryCondition = orgName.value ? { queryFor: "treePart", parentId: "0", name: orgName.value } : null;
90
+ reloadTree();
91
+ };
92
+ const reloadTree = () => {
93
+ isShowTree.value = false;
94
+ nextTick(() => {
95
+ isShowTree.value = true;
96
+ });
97
+ };
98
+ const handleCancel = () => {
99
+ isOpenDialog.value = false;
100
+ };
101
+ const handleSure = () => {
102
+ handleCancel();
103
+ emit("change", userListRef.value.selections);
104
+ };
105
+ return (_ctx, _cache) => {
106
+ const _component_el_input = resolveComponent("el-input");
107
+ const _component_el_icon = resolveComponent("el-icon");
108
+ const _component_el_tree = resolveComponent("el-tree");
109
+ const _component_ele_loading = resolveComponent("ele-loading");
110
+ const _component_ele_split_panel = resolveComponent("ele-split-panel");
111
+ const _component_ele_card = resolveComponent("ele-card");
112
+ const _component_ele_page = resolveComponent("ele-page");
113
+ const _component_el_button = resolveComponent("el-button");
114
+ const _component_ele_dialog = resolveComponent("ele-dialog");
115
+ return openBlock(), createBlock(_component_ele_dialog, {
116
+ form: "",
117
+ width: "85%",
118
+ modelValue: isOpenDialog.value,
119
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isOpenDialog.value = $event),
120
+ title: "选择用户",
121
+ class: "yu-big-dialog"
122
+ }, {
123
+ footer: withCtx(() => [
124
+ createVNode(_component_el_button, {
125
+ icon: unref(Close),
126
+ onClick: handleCancel
127
+ }, {
128
+ default: withCtx(() => _cache[2] || (_cache[2] = [
129
+ createTextVNode("取消")
130
+ ])),
131
+ _: 1,
132
+ __: [2]
133
+ }, 8, ["icon"]),
134
+ createVNode(_component_el_button, {
135
+ type: "primary",
136
+ icon: unref(Check),
137
+ loading: isLoading.value,
138
+ onClick: handleSure
139
+ }, {
140
+ default: withCtx(() => _cache[3] || (_cache[3] = [
141
+ createTextVNode(" 确认 ")
142
+ ])),
143
+ _: 1,
144
+ __: [3]
145
+ }, 8, ["icon", "loading"])
146
+ ]),
147
+ default: withCtx(() => [
148
+ createVNode(_component_ele_page, {
149
+ "flex-table": "",
150
+ "multi-card": false,
151
+ "hide-footer": "",
152
+ style: { "min-height": "600px" }
153
+ }, {
154
+ default: withCtx(() => [
155
+ createVNode(_component_ele_card, {
156
+ "flex-table": "",
157
+ "body-style": { padding: "0 0 0 16px", overflow: "hidden" }
158
+ }, {
159
+ default: withCtx(() => [
160
+ createVNode(_component_ele_split_panel, {
161
+ ref_key: "splitRef",
162
+ ref: splitRef,
163
+ "flex-table": "",
164
+ size: "256px",
165
+ "allow-collapse": "",
166
+ "custom-style": { borderWidth: "0 1px 0 0", padding: "16px 0" },
167
+ "body-style": { padding: "16px 16px 0 0", overflow: "hidden" },
168
+ style: { height: "100%", overflow: "visible" }
169
+ }, {
170
+ body: withCtx(() => [
171
+ organization.value && organization.value.id ? (openBlock(), createBlock(UserList, {
172
+ key: 0,
173
+ ref_key: "userListRef",
174
+ ref: userListRef,
175
+ param: props.param,
176
+ organization: organization.value
177
+ }, null, 8, ["param", "organization"])) : createCommentVNode("", true)
178
+ ]),
179
+ default: withCtx(() => [
180
+ createElementVNode("div", _hoisted_1, [
181
+ createVNode(_component_el_input, {
182
+ modelValue: orgName.value,
183
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => orgName.value = $event),
184
+ placeholder: "输入机构名称后按回车搜索",
185
+ "prefix-icon": unref(SearchOutlined),
186
+ clearable: "",
187
+ maxlength: 20,
188
+ onKeyup: withKeys(initQueryPage, ["enter"]),
189
+ onClear: initQueryPage
190
+ }, null, 8, ["modelValue", "prefix-icon"])
191
+ ]),
192
+ createVNode(_component_ele_loading, {
193
+ loading: isLoading.value,
194
+ style: { flex: 1, paddingRight: "16px", overflow: "auto" }
195
+ }, {
196
+ default: withCtx(() => [
197
+ isShowTree.value ? (openBlock(), createBlock(_component_el_tree, {
198
+ key: 0,
199
+ ref_key: "treeRef",
200
+ ref: treeRef,
201
+ id: treeId.value,
202
+ "node-key": "id",
203
+ lazy: "",
204
+ load: loadTreeNode,
205
+ "highlight-current": "",
206
+ props: { label: "name", children: "children", isLeaf: "isLeaf" },
207
+ "expand-on-click-node": false,
208
+ style: { "--ele-tree-item-height": "34px" },
209
+ onNodeClick: handleNodeClick
210
+ }, {
211
+ default: withCtx(({ data }) => [
212
+ createElementVNode("span", null, [
213
+ createVNode(_component_el_icon, {
214
+ size: 15,
215
+ style: { "margin-right": "8px", "vertical-align": "-2px" }
216
+ }, {
217
+ default: withCtx(() => [
218
+ data.parentId == "0" ? (openBlock(), createBlock(resolveDynamicComponent(unref(ClusterOutlined)), { key: 0 })) : data.type == "org" ? (openBlock(), createBlock(resolveDynamicComponent(unref(OrganizationOrg)), { key: 1 })) : data.type == "unit" ? (openBlock(), createBlock(resolveDynamicComponent(unref(OrganizationUnit)), { key: 2 })) : data.type == "dept" ? (openBlock(), createBlock(resolveDynamicComponent(unref(OrganizationDept)), { key: 3 })) : createCommentVNode("", true)
219
+ ]),
220
+ _: 2
221
+ }, 1024),
222
+ createElementVNode("span", null, toDisplayString(data.name), 1)
223
+ ])
224
+ ]),
225
+ _: 1
226
+ }, 8, ["id"])) : createCommentVNode("", true)
227
+ ]),
228
+ _: 1
229
+ }, 8, ["loading"])
230
+ ]),
231
+ _: 1
232
+ }, 512)
233
+ ]),
234
+ _: 1
235
+ })
236
+ ]),
237
+ _: 1
238
+ })
239
+ ]),
240
+ _: 1
241
+ }, 8, ["modelValue"]);
242
+ };
243
+ }
244
+ });
245
+ export {
246
+ _sfc_main as default
247
+ };
@@ -0,0 +1,84 @@
1
+ import { UimsUser } from 'yuang-framework-ui-common/lib/interface/uims/uimsUser';
2
+ import { UimsOrganization } from 'yuang-framework-ui-common/lib/interface/uims/uimsOrganization';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ param: any;
6
+ /** 机构 */
7
+ organization: UimsOrganization;
8
+ }>>, {
9
+ selections: import('vue').Ref<{
10
+ account?: string | undefined;
11
+ name?: string | undefined;
12
+ gender?: string | undefined;
13
+ status?: number | undefined;
14
+ organizationId?: string | undefined;
15
+ password?: string | undefined;
16
+ surePassword?: string | undefined;
17
+ rsaAesKey?: string | undefined;
18
+ isRecursiveOrganization?: {
19
+ valueOf: () => boolean;
20
+ } | undefined;
21
+ mobile?: string | undefined;
22
+ email?: string | undefined;
23
+ birthday?: string | undefined;
24
+ idCard?: string | undefined;
25
+ address?: string | undefined;
26
+ avatarCode?: string | undefined;
27
+ avatarUrl?: string | undefined;
28
+ id?: string | undefined;
29
+ parentId?: string | undefined;
30
+ uimsApplicationId?: string | undefined;
31
+ sequence?: number | undefined;
32
+ remark?: string | undefined;
33
+ createUserAccount?: string | undefined;
34
+ createUserName?: string | undefined;
35
+ createTime?: string | undefined;
36
+ lastUpdateUserAccount?: string | undefined;
37
+ lastUpdateUserName?: string | undefined;
38
+ lastUpdateTime?: Date | undefined;
39
+ }[], UimsUser[] | {
40
+ account?: string | undefined;
41
+ name?: string | undefined;
42
+ gender?: string | undefined;
43
+ status?: number | undefined;
44
+ organizationId?: string | undefined;
45
+ password?: string | undefined;
46
+ surePassword?: string | undefined;
47
+ rsaAesKey?: string | undefined;
48
+ isRecursiveOrganization?: {
49
+ valueOf: () => boolean;
50
+ } | undefined;
51
+ mobile?: string | undefined;
52
+ email?: string | undefined;
53
+ birthday?: string | undefined;
54
+ idCard?: string | undefined;
55
+ address?: string | undefined;
56
+ avatarCode?: string | undefined;
57
+ avatarUrl?: string | undefined;
58
+ id?: string | undefined;
59
+ parentId?: string | undefined;
60
+ uimsApplicationId?: string | undefined;
61
+ sequence?: number | undefined;
62
+ remark?: string | undefined;
63
+ createUserAccount?: string | undefined;
64
+ createUserName?: string | undefined;
65
+ createTime?: string | undefined;
66
+ lastUpdateUserAccount?: string | undefined;
67
+ lastUpdateUserName?: string | undefined;
68
+ lastUpdateTime?: Date | undefined;
69
+ }[]>;
70
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
71
+ param: any;
72
+ /** 机构 */
73
+ organization: UimsOrganization;
74
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
75
+ export default _default;
76
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
77
+ type __VLS_TypePropsToRuntimeProps<T> = {
78
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
79
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
80
+ } : {
81
+ type: import('vue').PropType<T[K]>;
82
+ required: true;
83
+ };
84
+ };
@@ -0,0 +1,232 @@
1
+ import { defineComponent, ref, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, normalizeStyle, unref, createElementVNode, createBlock, createCommentVNode } from "vue";
2
+ import { User } from "@element-plus/icons-vue";
3
+ import UserQuery from "./user-query";
4
+ import { UserOutlined } from "../../icons";
5
+ import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
6
+ import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...{ name: "UimsUserList" },
9
+ __name: "user-list",
10
+ props: {
11
+ param: {},
12
+ organization: {}
13
+ },
14
+ setup(__props, { expose: __expose }) {
15
+ const props = __props;
16
+ const queryRef = ref(null);
17
+ const tableRef = ref(null);
18
+ const columns = ref([
19
+ {
20
+ type: "selection",
21
+ columnKey: "selection",
22
+ width: 50,
23
+ align: "center",
24
+ fixed: "left",
25
+ selectable: (row) => {
26
+ return !row.isUserExistsRole;
27
+ }
28
+ },
29
+ {
30
+ type: "index",
31
+ columnKey: "index",
32
+ label: "编号",
33
+ width: 70,
34
+ align: "center",
35
+ fixed: "left"
36
+ },
37
+ {
38
+ prop: "name",
39
+ label: "用户姓名",
40
+ sortable: "custom",
41
+ minWidth: 200,
42
+ align: "left",
43
+ slot: "name"
44
+ },
45
+ {
46
+ prop: "account",
47
+ label: "用户账号",
48
+ sortable: "custom",
49
+ minWidth: 130,
50
+ align: "left"
51
+ },
52
+ {
53
+ prop: "avatar",
54
+ label: "用户头像",
55
+ minWidth: 100,
56
+ align: "center",
57
+ slot: "avatar"
58
+ },
59
+ {
60
+ prop: "gender",
61
+ label: "用户性别",
62
+ sortable: "custom",
63
+ width: 110,
64
+ align: "center",
65
+ formatter: (row) => {
66
+ if (row.gender == "male") {
67
+ return "男性";
68
+ } else if (row.gender == "female") {
69
+ return "女性";
70
+ } else if (row.gender == "secret") {
71
+ return "保密";
72
+ }
73
+ return "";
74
+ }
75
+ },
76
+ {
77
+ prop: "status",
78
+ label: "用户状态",
79
+ width: 110,
80
+ align: "center",
81
+ sortable: "custom",
82
+ slot: "status",
83
+ formatter: (row) => row.status == 1 ? "正常" : "禁用"
84
+ },
85
+ {
86
+ prop: "uimsOrganizationUnit.name",
87
+ label: "所属单位",
88
+ width: 180,
89
+ align: "center"
90
+ },
91
+ {
92
+ prop: "uimsOrganizationDept.name",
93
+ label: "所属部门",
94
+ width: 120,
95
+ align: "center"
96
+ },
97
+ {
98
+ prop: "sequence",
99
+ label: "排序号",
100
+ sortable: "custom",
101
+ width: 100,
102
+ align: "center"
103
+ },
104
+ {
105
+ prop: "createUserName",
106
+ label: "创建人",
107
+ sortable: "custom",
108
+ width: 100,
109
+ align: "center"
110
+ },
111
+ {
112
+ prop: "createTime",
113
+ label: "创建时间",
114
+ sortable: "custom",
115
+ width: 180,
116
+ align: "center"
117
+ },
118
+ {
119
+ prop: "lastUpdateUserName",
120
+ label: "最后更新人",
121
+ sortable: "custom",
122
+ width: 120,
123
+ align: "center"
124
+ },
125
+ {
126
+ prop: "lastUpdateTime",
127
+ label: "最后更新时间",
128
+ sortable: "custom",
129
+ width: 180,
130
+ align: "center"
131
+ }
132
+ ]);
133
+ const selections = ref([]);
134
+ const datasource = async ({ queryParam, pageParam, orderParamList }) => {
135
+ var _a, _b;
136
+ const data = { ...queryParam, ...pageParam, orderParamList, organizationId: props.organization.id, selectIsUserExistsRoleId: ((_a = props.param) == null ? void 0 : _a.isDisableSelectExistsRole) && ((_b = props.param) == null ? void 0 : _b.selectIsUserExistsRoleId) };
137
+ const res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectPage`, data);
138
+ return res.data.data;
139
+ };
140
+ const queryPage = () => {
141
+ var _a, _b, _c;
142
+ selections.value = [];
143
+ (_c = (_a = tableRef.value) == null ? void 0 : _a.reload) == null ? void 0 : _c.call(_a, { currentPage: 1, queryParam: (_b = queryRef.value) == null ? void 0 : _b.queryForm });
144
+ };
145
+ watch(
146
+ () => props.organization.id,
147
+ () => {
148
+ var _a, _b;
149
+ (_b = (_a = queryRef.value) == null ? void 0 : _a.resetFields) == null ? void 0 : _b.call(_a);
150
+ queryPage();
151
+ }
152
+ );
153
+ __expose({ selections });
154
+ return (_ctx, _cache) => {
155
+ const _component_el_icon = resolveComponent("el-icon");
156
+ const _component_el_tag = resolveComponent("el-tag");
157
+ const _component_el_avatar = resolveComponent("el-avatar");
158
+ const _component_ele_pro_table = resolveComponent("ele-pro-table");
159
+ return openBlock(), createElementBlock(Fragment, null, [
160
+ createVNode(UserQuery, {
161
+ ref_key: "queryRef",
162
+ ref: queryRef,
163
+ style: { "margin-bottom": "-14px" },
164
+ onQuery: queryPage
165
+ }, null, 512),
166
+ createVNode(_component_ele_pro_table, {
167
+ ref_key: "tableRef",
168
+ ref: tableRef,
169
+ "row-key": "id",
170
+ border: "",
171
+ sticky: false,
172
+ columns: columns.value,
173
+ datasource,
174
+ "show-overflow-tooltip": true,
175
+ selections: selections.value,
176
+ "onUpdate:selections": _cache[0] || (_cache[0] = ($event) => selections.value = $event),
177
+ "highlight-current-row": true,
178
+ "header-cell-style": { "text-align": "center" },
179
+ "footer-style": { paddingBottom: "16px" }
180
+ }, {
181
+ name: withCtx(({ row }) => [
182
+ createVNode(_component_el_icon, {
183
+ size: 15,
184
+ style: { "margin-right": "8px", "vertical-align": "-2px" }
185
+ }, {
186
+ default: withCtx(() => [
187
+ createVNode(unref(User))
188
+ ]),
189
+ _: 1
190
+ }),
191
+ createElementVNode("span", null, toDisplayString(row.name), 1),
192
+ row.isSystemUser ? (openBlock(), createBlock(_component_el_tag, {
193
+ key: 0,
194
+ type: "warning",
195
+ "disable-transitions": true,
196
+ class: "yu-name-tag"
197
+ }, {
198
+ default: withCtx(() => _cache[1] || (_cache[1] = [
199
+ createTextVNode("系统用户")
200
+ ])),
201
+ _: 1,
202
+ __: [1]
203
+ })) : createCommentVNode("", true)
204
+ ]),
205
+ avatar: withCtx(({ row }) => [
206
+ createVNode(_component_el_avatar, {
207
+ size: 28,
208
+ src: row.avatarUrl,
209
+ icon: row.avatarUrl ? void 0 : unref(UserOutlined),
210
+ style: normalizeStyle(row.avatarUrl ? "transform: translateY(2px);" : "transform: translateY(2px);margin-bottom: 7px;")
211
+ }, null, 8, ["src", "icon", "style"])
212
+ ]),
213
+ status: withCtx(({ row }) => [
214
+ createVNode(_component_el_tag, {
215
+ type: row.status === 1 ? "success" : "danger",
216
+ "disable-transitions": true
217
+ }, {
218
+ default: withCtx(() => [
219
+ createTextVNode(toDisplayString(row.status === 1 ? "正常" : "禁用"), 1)
220
+ ]),
221
+ _: 2
222
+ }, 1032, ["type"])
223
+ ]),
224
+ _: 1
225
+ }, 8, ["columns", "selections"])
226
+ ], 64);
227
+ };
228
+ }
229
+ });
230
+ export {
231
+ _sfc_main as default
232
+ };
@@ -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;