yuang-framework-ui-pc 1.1.52 → 1.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/core-components.d.ts +3 -0
- package/es/core-components.js +7 -1
- package/es/ele-admin-layout/components/layout-tabs.d.ts +4 -4
- package/es/ele-dropdown/components/pro-dropdown.d.ts +2 -2
- package/es/ele-pro-layout/index.d.ts +4 -4
- package/es/ele-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/es/icons/ApiItem.d.ts +2 -0
- package/es/icons/ApiItem.js +32 -0
- package/es/icons/ApiTeam.d.ts +2 -0
- package/es/icons/ApiTeam.js +42 -0
- package/es/icons/OrganizationDept.d.ts +2 -0
- package/es/icons/OrganizationDept.js +33 -0
- package/es/icons/OrganizationOrg.d.ts +2 -0
- package/es/icons/OrganizationOrg.js +32 -0
- package/es/icons/OrganizationUnit.d.ts +2 -0
- package/es/icons/OrganizationUnit.js +32 -0
- package/es/icons/index.d.ts +5 -0
- package/es/icons/index.js +10 -0
- package/es/yu-framework-attachment-upload/index.d.ts +0 -1
- package/es/yu-framework-attachment-upload/index.js +19 -21
- package/es/yu-uims-organization-dialog/components/organization-dialog.d.ts +20 -0
- package/es/yu-uims-organization-dialog/components/organization-dialog.js +327 -0
- package/es/yu-uims-organization-dialog/index.d.ts +45 -0
- package/es/yu-uims-organization-dialog/index.js +68 -0
- package/es/yu-uims-role-dialog/components/role-dialog.d.ts +20 -0
- package/es/yu-uims-role-dialog/components/role-dialog.js +224 -0
- package/es/yu-uims-role-dialog/components/role-list.d.ts +54 -0
- package/es/yu-uims-role-dialog/components/role-list.js +188 -0
- package/es/yu-uims-role-dialog/components/role-query.d.ts +28 -0
- package/es/yu-uims-role-dialog/components/role-query.js +132 -0
- package/es/yu-uims-role-dialog/index.d.ts +23 -0
- package/es/yu-uims-role-dialog/index.js +42 -0
- package/es/yu-uims-user-dialog/components/user-dialog.d.ts +20 -0
- package/es/yu-uims-user-dialog/components/user-dialog.js +247 -0
- package/es/yu-uims-user-dialog/components/user-list.d.ts +84 -0
- package/es/yu-uims-user-dialog/components/user-list.js +232 -0
- package/es/yu-uims-user-dialog/components/user-query.d.ts +30 -0
- package/es/yu-uims-user-dialog/components/user-query.js +167 -0
- package/es/yu-uims-user-dialog/index.d.ts +23 -0
- package/es/yu-uims-user-dialog/index.js +42 -0
- package/lib/core-components.cjs +6 -0
- package/lib/core-components.d.ts +3 -0
- package/lib/ele-admin-layout/components/layout-tabs.d.ts +4 -4
- package/lib/ele-dropdown/components/pro-dropdown.d.ts +2 -2
- package/lib/ele-pro-layout/index.d.ts +4 -4
- package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +4 -4
- package/lib/icons/ApiItem.cjs +31 -0
- package/lib/icons/ApiItem.d.ts +2 -0
- package/lib/icons/ApiTeam.cjs +41 -0
- package/lib/icons/ApiTeam.d.ts +2 -0
- package/lib/icons/OrganizationDept.cjs +32 -0
- package/lib/icons/OrganizationDept.d.ts +2 -0
- package/lib/icons/OrganizationOrg.cjs +31 -0
- package/lib/icons/OrganizationOrg.d.ts +2 -0
- package/lib/icons/OrganizationUnit.cjs +31 -0
- package/lib/icons/OrganizationUnit.d.ts +2 -0
- package/lib/icons/index.cjs +10 -0
- package/lib/icons/index.d.ts +5 -0
- package/lib/yu-framework-attachment-upload/index.cjs +18 -20
- package/lib/yu-framework-attachment-upload/index.d.ts +0 -1
- package/lib/yu-uims-organization-dialog/components/organization-dialog.cjs +326 -0
- package/lib/yu-uims-organization-dialog/components/organization-dialog.d.ts +20 -0
- package/lib/yu-uims-organization-dialog/index.cjs +67 -0
- package/lib/yu-uims-organization-dialog/index.d.ts +45 -0
- package/lib/yu-uims-role-dialog/components/role-dialog.cjs +223 -0
- package/lib/yu-uims-role-dialog/components/role-dialog.d.ts +20 -0
- package/lib/yu-uims-role-dialog/components/role-list.cjs +187 -0
- package/lib/yu-uims-role-dialog/components/role-list.d.ts +54 -0
- package/lib/yu-uims-role-dialog/components/role-query.cjs +131 -0
- package/lib/yu-uims-role-dialog/components/role-query.d.ts +28 -0
- package/lib/yu-uims-role-dialog/index.cjs +41 -0
- package/lib/yu-uims-role-dialog/index.d.ts +23 -0
- package/lib/yu-uims-user-dialog/components/user-dialog.cjs +246 -0
- package/lib/yu-uims-user-dialog/components/user-dialog.d.ts +20 -0
- package/lib/yu-uims-user-dialog/components/user-list.cjs +231 -0
- package/lib/yu-uims-user-dialog/components/user-list.d.ts +84 -0
- package/lib/yu-uims-user-dialog/components/user-query.cjs +166 -0
- package/lib/yu-uims-user-dialog/components/user-query.d.ts +30 -0
- package/lib/yu-uims-user-dialog/index.cjs +41 -0
- package/lib/yu-uims-user-dialog/index.d.ts +23 -0
- package/package.json +2 -2
- package/typings/global.d.ts +3 -0
|
@@ -0,0 +1,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
|
+
queryForMode?: string | undefined;
|
|
10
|
+
levelNum?: number | undefined;
|
|
11
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
12
|
+
parentIdForEqual?: string | undefined;
|
|
13
|
+
}, UimsRoleQueryParam | {
|
|
14
|
+
nameForLike?: string | undefined;
|
|
15
|
+
codeForLike?: string | undefined;
|
|
16
|
+
currentPage?: number | undefined;
|
|
17
|
+
pageSize?: number | undefined;
|
|
18
|
+
queryForMode?: string | undefined;
|
|
19
|
+
levelNum?: number | undefined;
|
|
20
|
+
uimsApplicationIdForEqual?: string | undefined;
|
|
21
|
+
parentIdForEqual?: 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
|
+
};
|
|
@@ -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;
|