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