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,20 @@
1
+ import { UimsRole } from 'yuang-framework-ui-common/lib/interface/uims/uimsRole';
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: (uimsRoleList: UimsRole[]) => 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?: ((uimsRoleList: UimsRole[]) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,187 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const RoleQuery = require("./role-query");
4
+ const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
5
+ const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
6
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7
+ ...{ name: "UimsUserList" },
8
+ __name: "role-list",
9
+ props: {
10
+ param: {},
11
+ application: {}
12
+ },
13
+ setup(__props, { expose: __expose }) {
14
+ const props = __props;
15
+ const queryRef = vue.ref(null);
16
+ const tableRef = vue.ref(null);
17
+ const columns = vue.ref([
18
+ {
19
+ type: "selection",
20
+ columnKey: "selection",
21
+ width: 50,
22
+ align: "center",
23
+ fixed: "left",
24
+ selectable: (row) => {
25
+ return !row.isRoleExistsUser;
26
+ }
27
+ },
28
+ {
29
+ type: "index",
30
+ columnKey: "index",
31
+ label: "编号",
32
+ width: 70,
33
+ align: "center",
34
+ fixed: "left"
35
+ },
36
+ {
37
+ prop: "name",
38
+ label: "角色名称",
39
+ sortable: "custom",
40
+ minWidth: 200,
41
+ align: "left",
42
+ slot: "name"
43
+ },
44
+ {
45
+ prop: "code",
46
+ label: "角色代码",
47
+ sortable: "custom",
48
+ minWidth: 180,
49
+ align: "left"
50
+ },
51
+ {
52
+ prop: "status",
53
+ label: "状态",
54
+ width: 90,
55
+ align: "center",
56
+ sortable: "custom",
57
+ slot: "status",
58
+ formatter: (row) => row.status == 1 ? "正常" : "禁用"
59
+ },
60
+ {
61
+ prop: "remark",
62
+ label: "备注",
63
+ minWidth: 240,
64
+ align: "center"
65
+ },
66
+ {
67
+ prop: "sequence",
68
+ label: "排序号",
69
+ sortable: "custom",
70
+ width: 100,
71
+ align: "center"
72
+ },
73
+ {
74
+ prop: "createUserName",
75
+ label: "创建人",
76
+ sortable: "custom",
77
+ width: 100,
78
+ align: "center"
79
+ },
80
+ {
81
+ prop: "createTime",
82
+ label: "创建时间",
83
+ sortable: "custom",
84
+ width: 180,
85
+ align: "center"
86
+ },
87
+ {
88
+ prop: "lastUpdateUserName",
89
+ label: "最后更新人",
90
+ sortable: "custom",
91
+ width: 120,
92
+ align: "center"
93
+ },
94
+ {
95
+ prop: "lastUpdateTime",
96
+ label: "最后更新时间",
97
+ sortable: "custom",
98
+ width: 180,
99
+ align: "center"
100
+ },
101
+ {
102
+ columnKey: "action",
103
+ label: "操作",
104
+ width: 80,
105
+ align: "center",
106
+ slot: "action",
107
+ fixed: "right"
108
+ }
109
+ ]);
110
+ const selections = vue.ref([]);
111
+ const datasource = async ({ queryParam, pageParam, orderParamList }) => {
112
+ var _a, _b;
113
+ 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) } };
114
+ const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectPage`, data);
115
+ return res.data.data;
116
+ };
117
+ const queryPage = () => {
118
+ var _a, _b, _c;
119
+ selections.value = [];
120
+ (_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 });
121
+ };
122
+ vue.watch(
123
+ () => props.application.id,
124
+ () => {
125
+ var _a, _b;
126
+ (_b = (_a = queryRef.value) == null ? void 0 : _a.resetFields) == null ? void 0 : _b.call(_a);
127
+ queryPage();
128
+ }
129
+ );
130
+ __expose({ selections });
131
+ return (_ctx, _cache) => {
132
+ const _component_el_tag = vue.resolveComponent("el-tag");
133
+ const _component_ele_pro_table = vue.resolveComponent("ele-pro-table");
134
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
135
+ vue.createVNode(RoleQuery, {
136
+ ref_key: "queryRef",
137
+ ref: queryRef,
138
+ style: { "margin-bottom": "-14px" },
139
+ onQuery: queryPage
140
+ }, null, 512),
141
+ vue.createVNode(_component_ele_pro_table, {
142
+ ref_key: "tableRef",
143
+ ref: tableRef,
144
+ "row-key": "id",
145
+ border: "",
146
+ sticky: false,
147
+ columns: columns.value,
148
+ datasource,
149
+ "show-overflow-tooltip": true,
150
+ selections: selections.value,
151
+ "onUpdate:selections": _cache[0] || (_cache[0] = ($event) => selections.value = $event),
152
+ "highlight-current-row": true,
153
+ "header-cell-style": { "text-align": "center" },
154
+ "footer-style": { paddingBottom: "16px" }
155
+ }, {
156
+ name: vue.withCtx(({ row }) => [
157
+ vue.createTextVNode(vue.toDisplayString(row.name) + " ", 1),
158
+ row.isSystemRole ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
159
+ key: 0,
160
+ type: "warning",
161
+ "disable-transitions": true
162
+ }, {
163
+ default: vue.withCtx(() => _cache[1] || (_cache[1] = [
164
+ vue.createTextVNode("系统角色")
165
+ ])),
166
+ _: 1,
167
+ __: [1]
168
+ })) : vue.createCommentVNode("", true)
169
+ ]),
170
+ status: vue.withCtx(({ row }) => [
171
+ vue.createVNode(_component_el_tag, {
172
+ type: row.status === 1 ? "success" : "danger",
173
+ "disable-transitions": true
174
+ }, {
175
+ default: vue.withCtx(() => [
176
+ vue.createTextVNode(vue.toDisplayString(row.status === 1 ? "正常" : "禁用"), 1)
177
+ ]),
178
+ _: 2
179
+ }, 1032, ["type"])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["columns", "selections"])
183
+ ], 64);
184
+ };
185
+ }
186
+ });
187
+ module.exports = _sfc_main;
@@ -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,131 @@
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: "role-query",
6
+ emits: ["query"],
7
+ setup(__props, { expose: __expose, emit: __emit }) {
8
+ const emit = __emit;
9
+ const getInitQueryForm = () => {
10
+ return {
11
+ name: "",
12
+ code: ""
13
+ };
14
+ };
15
+ const queryForm = vue.ref(getInitQueryForm());
16
+ const queryPage = () => {
17
+ emit("query");
18
+ };
19
+ const reset = () => {
20
+ queryForm.value = getInitQueryForm();
21
+ queryPage();
22
+ };
23
+ __expose({ queryForm });
24
+ return (_ctx, _cache) => {
25
+ const _component_el_input = vue.resolveComponent("el-input");
26
+ const _component_el_form_item = vue.resolveComponent("el-form-item");
27
+ const _component_el_col = vue.resolveComponent("el-col");
28
+ const _component_el_button = vue.resolveComponent("el-button");
29
+ const _component_el_row = vue.resolveComponent("el-row");
30
+ const _component_el_form = vue.resolveComponent("el-form");
31
+ return vue.openBlock(), vue.createBlock(_component_el_form, {
32
+ "label-width": "72px",
33
+ onKeyup: vue.withKeys(vue.withModifiers(queryPage, ["prevent"]), ["enter"]),
34
+ onSubmit: _cache[2] || (_cache[2] = vue.withModifiers(() => {
35
+ }, ["prevent"]))
36
+ }, {
37
+ default: vue.withCtx(() => [
38
+ vue.createVNode(_component_el_row, { gutter: 8 }, {
39
+ default: vue.withCtx(() => [
40
+ vue.createVNode(_component_el_col, {
41
+ lg: 6,
42
+ md: 8,
43
+ sm: 12,
44
+ xs: 24
45
+ }, {
46
+ default: vue.withCtx(() => [
47
+ vue.createVNode(_component_el_form_item, { label: "角色名称" }, {
48
+ default: vue.withCtx(() => [
49
+ vue.createVNode(_component_el_input, {
50
+ clearable: "",
51
+ modelValue: queryForm.value.name,
52
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => queryForm.value.name = $event),
53
+ modelModifiers: { trim: true },
54
+ placeholder: "请输入角色名称"
55
+ }, null, 8, ["modelValue"])
56
+ ]),
57
+ _: 1
58
+ })
59
+ ]),
60
+ _: 1
61
+ }),
62
+ vue.createVNode(_component_el_col, {
63
+ lg: 6,
64
+ md: 8,
65
+ sm: 12,
66
+ xs: 24
67
+ }, {
68
+ default: vue.withCtx(() => [
69
+ vue.createVNode(_component_el_form_item, { label: "角色代码" }, {
70
+ default: vue.withCtx(() => [
71
+ vue.createVNode(_component_el_input, {
72
+ clearable: "",
73
+ modelValue: queryForm.value.code,
74
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => queryForm.value.code = $event),
75
+ modelModifiers: { trim: true },
76
+ placeholder: "请输入角色代码"
77
+ }, null, 8, ["modelValue"])
78
+ ]),
79
+ _: 1
80
+ })
81
+ ]),
82
+ _: 1
83
+ }),
84
+ vue.createVNode(_component_el_col, {
85
+ lg: 6,
86
+ md: 8,
87
+ sm: 24,
88
+ xs: 24
89
+ }, {
90
+ default: vue.withCtx(() => [
91
+ vue.createVNode(_component_el_form_item, { "label-width": "16px" }, {
92
+ default: vue.withCtx(() => [
93
+ vue.createVNode(_component_el_button, {
94
+ type: "primary",
95
+ icon: vue.unref(iconsVue.Search),
96
+ class: "ele-btn-icon",
97
+ onClick: queryPage
98
+ }, {
99
+ default: vue.withCtx(() => _cache[3] || (_cache[3] = [
100
+ vue.createTextVNode("查询")
101
+ ])),
102
+ _: 1,
103
+ __: [3]
104
+ }, 8, ["icon"]),
105
+ vue.createVNode(_component_el_button, {
106
+ icon: vue.unref(iconsVue.RefreshRight),
107
+ class: "ele-btn-icon",
108
+ onClick: reset
109
+ }, {
110
+ default: vue.withCtx(() => _cache[4] || (_cache[4] = [
111
+ vue.createTextVNode("重置")
112
+ ])),
113
+ _: 1,
114
+ __: [4]
115
+ }, 8, ["icon"])
116
+ ]),
117
+ _: 1
118
+ })
119
+ ]),
120
+ _: 1
121
+ })
122
+ ]),
123
+ _: 1
124
+ })
125
+ ]),
126
+ _: 1
127
+ }, 8, ["onKeyup"]);
128
+ };
129
+ }
130
+ });
131
+ module.exports = _sfc_main;
@@ -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,41 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const RoleDialog = require("./components/role-dialog");
4
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5
+ ...{ name: "YuUimsRoleDialog" },
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(RoleDialog, {
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 { 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
+ };