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,224 @@
1
+ import { defineComponent, mergeModels, useModel, ref, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, withKeys, unref, createCommentVNode, toDisplayString, createTextVNode, nextTick } from "vue";
2
+ import { Monitor, Close, Check } from "@element-plus/icons-vue";
3
+ import RoleList from "./role-list";
4
+ import { toTree } from "../../utils/core";
5
+ import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
6
+ import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
7
+ import { SearchOutlined, ApplicationOutlined } from "../../icons";
8
+ const _hoisted_1 = { style: { "padding": "0 16px 12px 0" } };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...{ name: "UimsRoleV2" },
11
+ __name: "role-dialog",
12
+ props: /* @__PURE__ */ mergeModels({
13
+ param: {}
14
+ }, {
15
+ "modelValue": { type: Boolean },
16
+ "modelModifiers": {}
17
+ }),
18
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
19
+ setup(__props, { emit: __emit }) {
20
+ const props = __props;
21
+ const emit = __emit;
22
+ const isOpenDialog = useModel(__props, "modelValue");
23
+ const splitRef = ref(null);
24
+ const treeRef = ref(null);
25
+ const treeData = ref([]);
26
+ const roleListRef = ref(null);
27
+ const isLoading = ref(true);
28
+ const isShowTree = ref(true);
29
+ const selectedApplication = ref(null);
30
+ const applicationName = ref("");
31
+ const queryPage = async () => {
32
+ let data = { parentId: "0", name: applicationName.value };
33
+ isLoading.value = true;
34
+ const res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-application/selectPage`, data);
35
+ isLoading.value = false;
36
+ const listData = [
37
+ {
38
+ id: "0",
39
+ name: "全部应用",
40
+ isHasChildren: true,
41
+ isLeaf: false,
42
+ levelNum: 0,
43
+ parentId: ""
44
+ },
45
+ ...res.data.data.records
46
+ ];
47
+ treeData.value = toTree({
48
+ data: listData,
49
+ idField: "id",
50
+ parentIdField: "parentId"
51
+ });
52
+ nextTick(() => {
53
+ handleNodeClick(listData[0] || { id: "0" });
54
+ });
55
+ };
56
+ const handleNodeClick = (row) => {
57
+ var _a, _b;
58
+ if (row && row.id) {
59
+ selectedApplication.value = row;
60
+ (_b = (_a = treeRef.value) == null ? void 0 : _a.setCurrentKey) == null ? void 0 : _b.call(_a, row.id);
61
+ } else {
62
+ selectedApplication.value = null;
63
+ }
64
+ };
65
+ const initQueryPage = async () => {
66
+ applicationName.value ? { queryFor: "treePart", parentId: "0", name: applicationName.value } : null;
67
+ reloadTree();
68
+ };
69
+ const reloadTree = () => {
70
+ isShowTree.value = false;
71
+ nextTick(() => {
72
+ isShowTree.value = true;
73
+ });
74
+ };
75
+ const handleCancel = () => {
76
+ isOpenDialog.value = false;
77
+ };
78
+ const handleSure = () => {
79
+ handleCancel();
80
+ emit("change", roleListRef.value.selections);
81
+ };
82
+ queryPage();
83
+ return (_ctx, _cache) => {
84
+ const _component_el_input = resolveComponent("el-input");
85
+ const _component_el_icon = resolveComponent("el-icon");
86
+ const _component_el_tree = resolveComponent("el-tree");
87
+ const _component_ele_loading = resolveComponent("ele-loading");
88
+ const _component_ele_split_panel = resolveComponent("ele-split-panel");
89
+ const _component_ele_card = resolveComponent("ele-card");
90
+ const _component_ele_page = resolveComponent("ele-page");
91
+ const _component_el_button = resolveComponent("el-button");
92
+ const _component_ele_dialog = resolveComponent("ele-dialog");
93
+ return openBlock(), createBlock(_component_ele_dialog, {
94
+ form: "",
95
+ width: "85%",
96
+ modelValue: isOpenDialog.value,
97
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isOpenDialog.value = $event),
98
+ title: "选择角色",
99
+ class: "yu-big-dialog"
100
+ }, {
101
+ footer: withCtx(() => [
102
+ createVNode(_component_el_button, {
103
+ icon: unref(Close),
104
+ onClick: handleCancel
105
+ }, {
106
+ default: withCtx(() => _cache[2] || (_cache[2] = [
107
+ createTextVNode("取消")
108
+ ])),
109
+ _: 1,
110
+ __: [2]
111
+ }, 8, ["icon"]),
112
+ createVNode(_component_el_button, {
113
+ type: "primary",
114
+ icon: unref(Check),
115
+ loading: isLoading.value,
116
+ onClick: handleSure
117
+ }, {
118
+ default: withCtx(() => _cache[3] || (_cache[3] = [
119
+ createTextVNode(" 确认 ")
120
+ ])),
121
+ _: 1,
122
+ __: [3]
123
+ }, 8, ["icon", "loading"])
124
+ ]),
125
+ default: withCtx(() => [
126
+ createVNode(_component_ele_page, {
127
+ "flex-table": "",
128
+ "multi-card": false,
129
+ "hide-footer": "",
130
+ style: { "min-height": "600px" }
131
+ }, {
132
+ default: withCtx(() => [
133
+ createVNode(_component_ele_card, {
134
+ "flex-table": "",
135
+ "body-style": { padding: "0 0 0 16px", overflow: "hidden" }
136
+ }, {
137
+ default: withCtx(() => [
138
+ createVNode(_component_ele_split_panel, {
139
+ ref_key: "splitRef",
140
+ ref: splitRef,
141
+ "flex-table": "",
142
+ size: "256px",
143
+ "allow-collapse": "",
144
+ "custom-style": { borderWidth: "0 1px 0 0", padding: "16px 0" },
145
+ "body-style": { padding: "16px 16px 0 0", overflow: "hidden" },
146
+ style: { height: "100%", overflow: "visible" }
147
+ }, {
148
+ body: withCtx(() => [
149
+ selectedApplication.value && selectedApplication.value.id ? (openBlock(), createBlock(RoleList, {
150
+ key: 0,
151
+ ref_key: "roleListRef",
152
+ ref: roleListRef,
153
+ application: selectedApplication.value,
154
+ param: props.param
155
+ }, null, 8, ["application", "param"])) : createCommentVNode("", true)
156
+ ]),
157
+ default: withCtx(() => [
158
+ createElementVNode("div", _hoisted_1, [
159
+ createVNode(_component_el_input, {
160
+ modelValue: applicationName.value,
161
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => applicationName.value = $event),
162
+ placeholder: "输入应用名称后按回车搜索",
163
+ "prefix-icon": unref(SearchOutlined),
164
+ clearable: "",
165
+ maxlength: 20,
166
+ onKeyup: withKeys(initQueryPage, ["enter"]),
167
+ onClear: initQueryPage
168
+ }, null, 8, ["modelValue", "prefix-icon"])
169
+ ]),
170
+ createVNode(_component_ele_loading, {
171
+ loading: isLoading.value,
172
+ style: { flex: 1, paddingRight: "16px", overflow: "auto" }
173
+ }, {
174
+ default: withCtx(() => [
175
+ isShowTree.value ? (openBlock(), createBlock(_component_el_tree, {
176
+ key: 0,
177
+ ref_key: "treeRef",
178
+ ref: treeRef,
179
+ "node-key": "id",
180
+ data: treeData.value,
181
+ "highlight-current": "",
182
+ props: { label: "name", children: "children", isLeaf: "isLeaf" },
183
+ "expand-on-click-node": false,
184
+ style: { "--ele-tree-item-height": "34px" },
185
+ "default-expand-all": true,
186
+ onNodeClick: handleNodeClick
187
+ }, {
188
+ default: withCtx(({ data }) => [
189
+ createElementVNode("span", null, [
190
+ createVNode(_component_el_icon, {
191
+ size: 15,
192
+ style: { "margin-right": "8px", "vertical-align": "-2px" }
193
+ }, {
194
+ default: withCtx(() => [
195
+ data.id == "0" ? (openBlock(), createBlock(unref(ApplicationOutlined), { key: 0 })) : (openBlock(), createBlock(unref(Monitor), { key: 1 }))
196
+ ]),
197
+ _: 2
198
+ }, 1024),
199
+ createElementVNode("span", null, toDisplayString(data.name), 1)
200
+ ])
201
+ ]),
202
+ _: 1
203
+ }, 8, ["data"])) : createCommentVNode("", true)
204
+ ]),
205
+ _: 1
206
+ }, 8, ["loading"])
207
+ ]),
208
+ _: 1
209
+ }, 512)
210
+ ]),
211
+ _: 1
212
+ })
213
+ ]),
214
+ _: 1
215
+ })
216
+ ]),
217
+ _: 1
218
+ }, 8, ["modelValue"]);
219
+ };
220
+ }
221
+ });
222
+ export {
223
+ _sfc_main as default
224
+ };
@@ -0,0 +1,54 @@
1
+ import { UimsApplication } from 'yuang-framework-ui-common/lib/interface/uims/uimsApplication';
2
+ import { UimsRole } from 'yuang-framework-ui-common/lib/interface/uims/uimsRole';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ param: any;
6
+ /** 应用 */
7
+ application: UimsApplication;
8
+ }>>, {
9
+ selections: import('vue').Ref<{
10
+ code?: string | undefined;
11
+ name?: string | undefined;
12
+ status?: number | undefined;
13
+ id?: string | undefined;
14
+ parentId?: string | undefined;
15
+ uimsApplicationId?: string | undefined;
16
+ sequence?: number | undefined;
17
+ remark?: string | undefined;
18
+ createUserAccount?: string | undefined;
19
+ createUserName?: string | undefined;
20
+ createTime?: string | undefined;
21
+ lastUpdateUserAccount?: string | undefined;
22
+ lastUpdateUserName?: string | undefined;
23
+ lastUpdateTime?: Date | undefined;
24
+ }[], UimsRole[] | {
25
+ code?: string | undefined;
26
+ name?: string | undefined;
27
+ status?: number | 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
+ }[]>;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
41
+ param: any;
42
+ /** 应用 */
43
+ application: UimsApplication;
44
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ export default _default;
46
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
47
+ type __VLS_TypePropsToRuntimeProps<T> = {
48
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
49
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
50
+ } : {
51
+ type: import('vue').PropType<T[K]>;
52
+ required: true;
53
+ };
54
+ };
@@ -0,0 +1,188 @@
1
+ import { defineComponent, ref, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
2
+ import RoleQuery from "./role-query";
3
+ import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
4
+ import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ ...{ name: "UimsUserList" },
7
+ __name: "role-list",
8
+ props: {
9
+ param: {},
10
+ application: {}
11
+ },
12
+ setup(__props, { expose: __expose }) {
13
+ const props = __props;
14
+ const queryRef = ref(null);
15
+ const tableRef = ref(null);
16
+ const columns = ref([
17
+ {
18
+ type: "selection",
19
+ columnKey: "selection",
20
+ width: 50,
21
+ align: "center",
22
+ fixed: "left",
23
+ selectable: (row) => {
24
+ return !row.isRoleExistsUser;
25
+ }
26
+ },
27
+ {
28
+ type: "index",
29
+ columnKey: "index",
30
+ label: "编号",
31
+ width: 70,
32
+ align: "center",
33
+ fixed: "left"
34
+ },
35
+ {
36
+ prop: "name",
37
+ label: "角色名称",
38
+ sortable: "custom",
39
+ minWidth: 200,
40
+ align: "left",
41
+ slot: "name"
42
+ },
43
+ {
44
+ prop: "code",
45
+ label: "角色代码",
46
+ sortable: "custom",
47
+ minWidth: 180,
48
+ align: "left"
49
+ },
50
+ {
51
+ prop: "status",
52
+ label: "状态",
53
+ width: 90,
54
+ align: "center",
55
+ sortable: "custom",
56
+ slot: "status",
57
+ formatter: (row) => row.status == 1 ? "正常" : "禁用"
58
+ },
59
+ {
60
+ prop: "remark",
61
+ label: "备注",
62
+ minWidth: 240,
63
+ align: "center"
64
+ },
65
+ {
66
+ prop: "sequence",
67
+ label: "排序号",
68
+ sortable: "custom",
69
+ width: 100,
70
+ align: "center"
71
+ },
72
+ {
73
+ prop: "createUserName",
74
+ label: "创建人",
75
+ sortable: "custom",
76
+ width: 100,
77
+ align: "center"
78
+ },
79
+ {
80
+ prop: "createTime",
81
+ label: "创建时间",
82
+ sortable: "custom",
83
+ width: 180,
84
+ align: "center"
85
+ },
86
+ {
87
+ prop: "lastUpdateUserName",
88
+ label: "最后更新人",
89
+ sortable: "custom",
90
+ width: 120,
91
+ align: "center"
92
+ },
93
+ {
94
+ prop: "lastUpdateTime",
95
+ label: "最后更新时间",
96
+ sortable: "custom",
97
+ width: 180,
98
+ align: "center"
99
+ },
100
+ {
101
+ columnKey: "action",
102
+ label: "操作",
103
+ width: 80,
104
+ align: "center",
105
+ slot: "action",
106
+ fixed: "right"
107
+ }
108
+ ]);
109
+ const selections = ref([]);
110
+ const datasource = async ({ queryParam, pageParam, orderParamList }) => {
111
+ var _a, _b;
112
+ const data = { ...queryParam, ...pageParam, orderParamList, ...{ uimsApplicationId: props.application.id, selectIsRoleExistsUserId: ((_a = props.param) == null ? void 0 : _a.isDisableSelectExistsUser) && ((_b = props.param) == null ? void 0 : _b.selectIsRoleExistsUserId) } };
113
+ const res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectPage`, data);
114
+ return res.data.data;
115
+ };
116
+ const queryPage = () => {
117
+ var _a, _b, _c;
118
+ selections.value = [];
119
+ (_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 });
120
+ };
121
+ watch(
122
+ () => props.application.id,
123
+ () => {
124
+ var _a, _b;
125
+ (_b = (_a = queryRef.value) == null ? void 0 : _a.resetFields) == null ? void 0 : _b.call(_a);
126
+ queryPage();
127
+ }
128
+ );
129
+ __expose({ selections });
130
+ return (_ctx, _cache) => {
131
+ const _component_el_tag = resolveComponent("el-tag");
132
+ const _component_ele_pro_table = resolveComponent("ele-pro-table");
133
+ return openBlock(), createElementBlock(Fragment, null, [
134
+ createVNode(RoleQuery, {
135
+ ref_key: "queryRef",
136
+ ref: queryRef,
137
+ style: { "margin-bottom": "-14px" },
138
+ onQuery: queryPage
139
+ }, null, 512),
140
+ createVNode(_component_ele_pro_table, {
141
+ ref_key: "tableRef",
142
+ ref: tableRef,
143
+ "row-key": "id",
144
+ border: "",
145
+ sticky: false,
146
+ columns: columns.value,
147
+ datasource,
148
+ "show-overflow-tooltip": true,
149
+ selections: selections.value,
150
+ "onUpdate:selections": _cache[0] || (_cache[0] = ($event) => selections.value = $event),
151
+ "highlight-current-row": true,
152
+ "header-cell-style": { "text-align": "center" },
153
+ "footer-style": { paddingBottom: "16px" }
154
+ }, {
155
+ name: withCtx(({ row }) => [
156
+ createTextVNode(toDisplayString(row.name) + " ", 1),
157
+ row.isSystemRole ? (openBlock(), createBlock(_component_el_tag, {
158
+ key: 0,
159
+ type: "warning",
160
+ "disable-transitions": true
161
+ }, {
162
+ default: withCtx(() => _cache[1] || (_cache[1] = [
163
+ createTextVNode("系统角色")
164
+ ])),
165
+ _: 1,
166
+ __: [1]
167
+ })) : createCommentVNode("", true)
168
+ ]),
169
+ status: withCtx(({ row }) => [
170
+ createVNode(_component_el_tag, {
171
+ type: row.status === 1 ? "success" : "danger",
172
+ "disable-transitions": true
173
+ }, {
174
+ default: withCtx(() => [
175
+ createTextVNode(toDisplayString(row.status === 1 ? "正常" : "禁用"), 1)
176
+ ]),
177
+ _: 2
178
+ }, 1032, ["type"])
179
+ ]),
180
+ _: 1
181
+ }, 8, ["columns", "selections"])
182
+ ], 64);
183
+ };
184
+ }
185
+ });
186
+ export {
187
+ _sfc_main as default
188
+ };
@@ -0,0 +1,28 @@
1
+ import { UimsRoleQueryParam } from 'yuang-framework-ui-common/lib/interface/uims/uimsRole';
2
+
3
+ declare const _default: import('vue').DefineComponent<{}, {
4
+ queryForm: import('vue').Ref<{
5
+ nameForLike?: string | undefined;
6
+ codeForLike?: string | undefined;
7
+ currentPage?: number | undefined;
8
+ pageSize?: number | undefined;
9
+ queryFor?: string | undefined;
10
+ levelNum?: number | undefined;
11
+ uimsApplicationId?: string | undefined;
12
+ parentId?: string | undefined;
13
+ }, UimsRoleQueryParam | {
14
+ nameForLike?: string | undefined;
15
+ codeForLike?: string | undefined;
16
+ currentPage?: number | undefined;
17
+ pageSize?: number | undefined;
18
+ queryFor?: string | undefined;
19
+ levelNum?: number | undefined;
20
+ uimsApplicationId?: string | undefined;
21
+ parentId?: string | undefined;
22
+ }>;
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ query: () => void;
25
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
26
+ onQuery?: (() => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,132 @@
1
+ import { defineComponent, ref, resolveComponent, createBlock, openBlock, withModifiers, withKeys, withCtx, createVNode, unref, createTextVNode } from "vue";
2
+ import { Search, RefreshRight } from "@element-plus/icons-vue";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "role-query",
5
+ emits: ["query"],
6
+ setup(__props, { expose: __expose, emit: __emit }) {
7
+ const emit = __emit;
8
+ const getInitQueryForm = () => {
9
+ return {
10
+ name: "",
11
+ code: ""
12
+ };
13
+ };
14
+ const queryForm = ref(getInitQueryForm());
15
+ const queryPage = () => {
16
+ emit("query");
17
+ };
18
+ const reset = () => {
19
+ queryForm.value = getInitQueryForm();
20
+ queryPage();
21
+ };
22
+ __expose({ queryForm });
23
+ return (_ctx, _cache) => {
24
+ const _component_el_input = resolveComponent("el-input");
25
+ const _component_el_form_item = resolveComponent("el-form-item");
26
+ const _component_el_col = resolveComponent("el-col");
27
+ const _component_el_button = resolveComponent("el-button");
28
+ const _component_el_row = resolveComponent("el-row");
29
+ const _component_el_form = resolveComponent("el-form");
30
+ return openBlock(), createBlock(_component_el_form, {
31
+ "label-width": "72px",
32
+ onKeyup: withKeys(withModifiers(queryPage, ["prevent"]), ["enter"]),
33
+ onSubmit: _cache[2] || (_cache[2] = withModifiers(() => {
34
+ }, ["prevent"]))
35
+ }, {
36
+ default: withCtx(() => [
37
+ createVNode(_component_el_row, { gutter: 8 }, {
38
+ default: withCtx(() => [
39
+ createVNode(_component_el_col, {
40
+ lg: 6,
41
+ md: 8,
42
+ sm: 12,
43
+ xs: 24
44
+ }, {
45
+ default: withCtx(() => [
46
+ createVNode(_component_el_form_item, { label: "角色名称" }, {
47
+ default: withCtx(() => [
48
+ createVNode(_component_el_input, {
49
+ clearable: "",
50
+ modelValue: queryForm.value.name,
51
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => queryForm.value.name = $event),
52
+ modelModifiers: { trim: true },
53
+ placeholder: "请输入角色名称"
54
+ }, null, 8, ["modelValue"])
55
+ ]),
56
+ _: 1
57
+ })
58
+ ]),
59
+ _: 1
60
+ }),
61
+ createVNode(_component_el_col, {
62
+ lg: 6,
63
+ md: 8,
64
+ sm: 12,
65
+ xs: 24
66
+ }, {
67
+ default: withCtx(() => [
68
+ createVNode(_component_el_form_item, { label: "角色代码" }, {
69
+ default: withCtx(() => [
70
+ createVNode(_component_el_input, {
71
+ clearable: "",
72
+ modelValue: queryForm.value.code,
73
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => queryForm.value.code = $event),
74
+ modelModifiers: { trim: true },
75
+ placeholder: "请输入角色代码"
76
+ }, null, 8, ["modelValue"])
77
+ ]),
78
+ _: 1
79
+ })
80
+ ]),
81
+ _: 1
82
+ }),
83
+ createVNode(_component_el_col, {
84
+ lg: 6,
85
+ md: 8,
86
+ sm: 24,
87
+ xs: 24
88
+ }, {
89
+ default: withCtx(() => [
90
+ createVNode(_component_el_form_item, { "label-width": "16px" }, {
91
+ default: withCtx(() => [
92
+ createVNode(_component_el_button, {
93
+ type: "primary",
94
+ icon: unref(Search),
95
+ class: "ele-btn-icon",
96
+ onClick: queryPage
97
+ }, {
98
+ default: withCtx(() => _cache[3] || (_cache[3] = [
99
+ createTextVNode("查询")
100
+ ])),
101
+ _: 1,
102
+ __: [3]
103
+ }, 8, ["icon"]),
104
+ createVNode(_component_el_button, {
105
+ icon: unref(RefreshRight),
106
+ class: "ele-btn-icon",
107
+ onClick: reset
108
+ }, {
109
+ default: withCtx(() => _cache[4] || (_cache[4] = [
110
+ createTextVNode("重置")
111
+ ])),
112
+ _: 1,
113
+ __: [4]
114
+ }, 8, ["icon"])
115
+ ]),
116
+ _: 1
117
+ })
118
+ ]),
119
+ _: 1
120
+ })
121
+ ]),
122
+ _: 1
123
+ })
124
+ ]),
125
+ _: 1
126
+ }, 8, ["onKeyup"]);
127
+ };
128
+ }
129
+ });
130
+ export {
131
+ _sfc_main as default
132
+ };
@@ -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
+ };