@pubinfo-pr/module-rbac 0.224.1 → 0.225.2
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/dist/api/modules/assist/gonggaofuwu.d.ts +43 -0
- package/dist/api/modules/assist/index.d.ts +1 -0
- package/dist/api/modules/assist/qunzujiekou.d.ts +0 -28
- package/dist/api/modules/rbac/gangweijiekou.d.ts +0 -7
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +0 -14
- package/dist/api/modules/rbac/yonghujiekou.d.ts +0 -42
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +0 -7
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +0 -7
- package/dist/breadcrumb_setting-BbYhO74F.js +108 -0
- package/dist/{drawerOrganization-CPsQlz-f.js → drawerOrganization-CwtSFUj0.js} +24 -59
- package/dist/index.css +1 -1
- package/dist/index.js +17 -17
- package/dist/lottie-03f0a035.json +1 -0
- package/dist/lottie-0ee63e7f.json +1 -0
- package/dist/lottie-10eef4fe.json +1 -0
- package/dist/lottie-13f452f1.json +1 -0
- package/dist/lottie-14b7b290.json +1 -0
- package/dist/lottie-15b8cef1.json +1 -0
- package/dist/lottie-15f77960.json +1 -0
- package/dist/lottie-1ae9b726.json +1 -0
- package/dist/lottie-1b02359f.json +1 -0
- package/dist/lottie-1ef286cd.json +1 -0
- package/dist/lottie-23cfd18c.json +1 -0
- package/dist/lottie-265a0a5d.json +1 -0
- package/dist/lottie-28d57c49.json +1 -0
- package/dist/lottie-2b54ed10.json +1 -0
- package/dist/lottie-2bb6f642.json +1 -0
- package/dist/lottie-2cdc07bd.json +1 -0
- package/dist/lottie-31c58607.json +1 -0
- package/dist/lottie-32884f23.json +1 -0
- package/dist/lottie-32fca43a.json +1 -0
- package/dist/lottie-3a75445b.json +1 -0
- package/dist/lottie-3f27d67c.json +1 -0
- package/dist/lottie-4189453f.json +1 -0
- package/dist/lottie-4702b37c.json +1 -0
- package/dist/lottie-520a5c68.json +1 -0
- package/dist/lottie-56bea508.json +1 -0
- package/dist/lottie-57c732a3.json +1 -0
- package/dist/lottie-5be4a28f.json +1 -0
- package/dist/lottie-5e6d7cfa.json +1 -0
- package/dist/lottie-64e176c9.json +1 -0
- package/dist/lottie-6583dca6.json +1 -0
- package/dist/lottie-66c640c6.json +1 -0
- package/dist/lottie-68393156.json +1 -0
- package/dist/lottie-688465aa.json +1 -0
- package/dist/lottie-6bf334f4.json +1 -0
- package/dist/lottie-7b4f72ce.json +1 -0
- package/dist/lottie-837ec087.json +1 -0
- package/dist/lottie-838ac1ba.json +1 -0
- package/dist/lottie-8465c2cf.json +1 -0
- package/dist/lottie-9e9f04a4.json +1 -0
- package/dist/lottie-a13964cb.json +1 -0
- package/dist/lottie-ab93a057.json +1 -0
- package/dist/lottie-abe308fc.json +1 -0
- package/dist/lottie-b24f2cd3.json +1 -0
- package/dist/lottie-bf00eaed.json +1 -0
- package/dist/lottie-cb22efd7.json +1 -0
- package/dist/lottie-cb953f20.json +1 -0
- package/dist/lottie-cc209e34.json +1 -0
- package/dist/lottie-cfdffceb.json +1 -0
- package/dist/lottie-d33c0299.json +1 -0
- package/dist/lottie-d430c8ca.json +1 -0
- package/dist/lottie-d8cfa560.json +1 -0
- package/dist/lottie-da91beb6.json +1 -0
- package/dist/lottie-e2bdf85c.json +1 -0
- package/dist/lottie-e34ad826.json +1 -0
- package/dist/lottie-e80720aa.json +1 -0
- package/dist/lottie-e894bc92.json +1 -0
- package/dist/lottie-f28020f2.json +1 -0
- package/dist/lottie-f71ebbf4.json +1 -0
- package/dist/lottie-fb1f4917.json +1 -0
- package/dist/lottie-ff2e97c4.json +1 -0
- package/dist/menu_setting-CiLR0vkM.js +155 -0
- package/dist/{organization-BXGT-lb7.js → organization-Dv3FbKke.js} +1 -1
- package/dist/other_setting-eDXoBjJm.js +213 -0
- package/dist/page_animation_setting-D1L1pmXk.js +108 -0
- package/dist/tabbar_setting-CfE94AAt.js +139 -0
- package/dist/toolbar_setting-CwfUnZ1j.js +140 -0
- package/dist/watermark_setting-DGSDikAC.js +191 -0
- package/package.json +3 -3
- package/src/api/modules/assist/gonggaofuwu.ts +124 -0
- package/src/api/modules/assist/index.ts +1 -0
- package/src/api/modules/assist/qunzujiekou.ts +0 -72
- package/src/api/modules/assist/typings.d.ts +129 -17
- package/src/api/modules/rbac/gangweijiekou.ts +0 -18
- package/src/api/modules/rbac/jiaosejiekou.ts +0 -36
- package/src/api/modules/rbac/typings.d.ts +1 -133
- package/src/api/modules/rbac/yonghujiekou.ts +0 -122
- package/src/api/modules/rbac/ziyuanjiekou.ts +0 -21
- package/src/api/modules/rbac/zuzhijiekou.ts +0 -18
- package/src/views/organization/components/drawerOrganization.vue +0 -43
- package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
- package/dist/menu_setting-ChueWHs4.js +0 -155
- package/dist/other_setting-BEV_UK0g.js +0 -213
- package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
- package/dist/tabbar_setting-kbuTvrLB.js +0 -139
- package/dist/toolbar_setting-BG-k2UFc.js +0 -140
- package/dist/watermark_setting-Cl2EtPAa.js +0 -191
|
@@ -332,20 +332,6 @@ declare namespace API {
|
|
|
332
332
|
type postRbacResourceMineOrAllResourceTreeParams = {
|
|
333
333
|
needAll?: boolean;
|
|
334
334
|
enable?: boolean;
|
|
335
|
-
appResourceCodes?: string;
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
type postRbacUserCaptchaChangePasswordWithVerifyCodeParams = {
|
|
339
|
-
/** 原密码(使用公钥加密) */
|
|
340
|
-
oldPassword: string;
|
|
341
|
-
/** 新密码(使用公钥加密) */
|
|
342
|
-
newPassword: string;
|
|
343
|
-
/** 验证码hash,imageCode必填 */
|
|
344
|
-
codeHash: string;
|
|
345
|
-
/** 验证码/token */
|
|
346
|
-
code: string;
|
|
347
|
-
/** 验证码类型 */
|
|
348
|
-
captchaType: string;
|
|
349
335
|
};
|
|
350
336
|
|
|
351
337
|
type postRbacUserChangePasswordParams = {
|
|
@@ -366,10 +352,6 @@ declare namespace API {
|
|
|
366
352
|
code: string;
|
|
367
353
|
};
|
|
368
354
|
|
|
369
|
-
type postRbacUserGetUserParams = {
|
|
370
|
-
id: string;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
355
|
type postRbacUserResetPasswordParams = {
|
|
374
356
|
/** 用户id */
|
|
375
357
|
userId: string;
|
|
@@ -451,12 +433,6 @@ declare namespace API {
|
|
|
451
433
|
collect?: boolean;
|
|
452
434
|
/** 租户id */
|
|
453
435
|
tenantId?: string;
|
|
454
|
-
/** 组织负责人id */
|
|
455
|
-
leaderUserId?: string;
|
|
456
|
-
/** 组织负责人的orgId */
|
|
457
|
-
leaderUserOrgId?: string;
|
|
458
|
-
/** 组织负责人姓名 */
|
|
459
|
-
leaderUserName?: string;
|
|
460
436
|
};
|
|
461
437
|
|
|
462
438
|
type PubOrgAddDto = {
|
|
@@ -484,12 +460,6 @@ declare namespace API {
|
|
|
484
460
|
contactMobile?: string;
|
|
485
461
|
/** 扩展信息 */
|
|
486
462
|
extendInfo?: Record<string, any>;
|
|
487
|
-
/** 组织负责人id */
|
|
488
|
-
leaderUserId?: string;
|
|
489
|
-
/** 组织负责人的orgId */
|
|
490
|
-
leaderUserOrgId?: string;
|
|
491
|
-
/** 组织负责人姓名 */
|
|
492
|
-
leaderUserName?: string;
|
|
493
463
|
};
|
|
494
464
|
|
|
495
465
|
type PubOrgBo = {
|
|
@@ -545,12 +515,6 @@ declare namespace API {
|
|
|
545
515
|
collect?: boolean;
|
|
546
516
|
/** 租户id */
|
|
547
517
|
tenantId?: string;
|
|
548
|
-
/** 组织负责人id */
|
|
549
|
-
leaderUserId?: string;
|
|
550
|
-
/** 组织负责人的orgId */
|
|
551
|
-
leaderUserOrgId?: string;
|
|
552
|
-
/** 组织负责人姓名 */
|
|
553
|
-
leaderUserName?: string;
|
|
554
518
|
/** 父组织名称 */
|
|
555
519
|
parentName?: string;
|
|
556
520
|
/** 是否继承,0:否,1:是 */
|
|
@@ -644,12 +608,6 @@ declare namespace API {
|
|
|
644
608
|
collect?: boolean;
|
|
645
609
|
/** 租户id */
|
|
646
610
|
tenantId?: string;
|
|
647
|
-
/** 组织负责人id */
|
|
648
|
-
leaderUserId?: string;
|
|
649
|
-
/** 组织负责人的orgId */
|
|
650
|
-
leaderUserOrgId?: string;
|
|
651
|
-
/** 组织负责人姓名 */
|
|
652
|
-
leaderUserName?: string;
|
|
653
611
|
/** 子节点 */
|
|
654
612
|
children?: PubOrgTreeBo[];
|
|
655
613
|
};
|
|
@@ -679,12 +637,6 @@ declare namespace API {
|
|
|
679
637
|
contactMobile?: string;
|
|
680
638
|
/** 扩展信息 */
|
|
681
639
|
extendInfo?: Record<string, any>;
|
|
682
|
-
/** 组织负责人id */
|
|
683
|
-
leaderUserId?: string;
|
|
684
|
-
/** 组织负责人的orgId */
|
|
685
|
-
leaderUserOrgId?: string;
|
|
686
|
-
/** 组织负责人姓名 */
|
|
687
|
-
leaderUserName?: string;
|
|
688
640
|
};
|
|
689
641
|
|
|
690
642
|
type PubPost = {
|
|
@@ -849,13 +801,6 @@ declare namespace API {
|
|
|
849
801
|
md5?: string;
|
|
850
802
|
};
|
|
851
803
|
|
|
852
|
-
type PubResourceReSortUpdateDTO = {
|
|
853
|
-
/** 资源id */
|
|
854
|
-
id?: string;
|
|
855
|
-
/** 子资源列表 */
|
|
856
|
-
children?: PubResourceReSortUpdateDTO[];
|
|
857
|
-
};
|
|
858
|
-
|
|
859
804
|
type PubResourceTreeBo = {
|
|
860
805
|
/** 主键 */
|
|
861
806
|
id?: string;
|
|
@@ -1270,53 +1215,6 @@ declare namespace API {
|
|
|
1270
1215
|
createTime?: string;
|
|
1271
1216
|
};
|
|
1272
1217
|
|
|
1273
|
-
type PubUser = {
|
|
1274
|
-
/** 主键 */
|
|
1275
|
-
id?: string;
|
|
1276
|
-
/** 所属组织,当前为组织 */
|
|
1277
|
-
orgId?: string;
|
|
1278
|
-
/** 登录账号 */
|
|
1279
|
-
loginName?: string;
|
|
1280
|
-
/** 登录密码 */
|
|
1281
|
-
loginPassword?: string;
|
|
1282
|
-
/** 真实姓名 */
|
|
1283
|
-
realName?: string;
|
|
1284
|
-
/** 性别 0:未知,1:男,2:女 */
|
|
1285
|
-
sex?: string;
|
|
1286
|
-
/** 昵称 */
|
|
1287
|
-
nickName?: string;
|
|
1288
|
-
/** 手机号 */
|
|
1289
|
-
mobile?: string;
|
|
1290
|
-
/** 联系地址 */
|
|
1291
|
-
address?: string;
|
|
1292
|
-
/** 身份证号码 */
|
|
1293
|
-
idCard?: string;
|
|
1294
|
-
/** 用户头像 */
|
|
1295
|
-
userPic?: string;
|
|
1296
|
-
/** 电子邮箱 */
|
|
1297
|
-
email?: string;
|
|
1298
|
-
/** 描述 */
|
|
1299
|
-
description?: string;
|
|
1300
|
-
/** 是否启用,0:否,1:是 */
|
|
1301
|
-
enable?: boolean;
|
|
1302
|
-
/** 是否删除,0:否,1:是 */
|
|
1303
|
-
deleted?: boolean;
|
|
1304
|
-
/** 创建id */
|
|
1305
|
-
createdBy?: string;
|
|
1306
|
-
/** 创建时间 */
|
|
1307
|
-
createTime?: string;
|
|
1308
|
-
/** 更新人id */
|
|
1309
|
-
updatedBy?: string;
|
|
1310
|
-
/** 更新时间 */
|
|
1311
|
-
updateTime?: string;
|
|
1312
|
-
userType?: string;
|
|
1313
|
-
/** 扩展信息 */
|
|
1314
|
-
extendInfo?: Record<string, any>;
|
|
1315
|
-
/** 是否收藏 */
|
|
1316
|
-
collect?: boolean;
|
|
1317
|
-
tenantId?: string;
|
|
1318
|
-
};
|
|
1319
|
-
|
|
1320
1218
|
type PubUserAddDto = {
|
|
1321
1219
|
/** 登录账号 */
|
|
1322
1220
|
loginName?: string;
|
|
@@ -1573,12 +1471,6 @@ declare namespace API {
|
|
|
1573
1471
|
showIsCollect?: boolean;
|
|
1574
1472
|
};
|
|
1575
1473
|
|
|
1576
|
-
type PubUserRoleBo = {
|
|
1577
|
-
orgIdSet?: string[];
|
|
1578
|
-
userIdSet?: string[];
|
|
1579
|
-
userIdOrgIdSet?: string[];
|
|
1580
|
-
};
|
|
1581
|
-
|
|
1582
1474
|
type PubUserSplitOrgQueryDto = {
|
|
1583
1475
|
currentPage?: number;
|
|
1584
1476
|
pageSize?: number;
|
|
@@ -1774,14 +1666,6 @@ declare namespace API {
|
|
|
1774
1666
|
success?: boolean;
|
|
1775
1667
|
};
|
|
1776
1668
|
|
|
1777
|
-
type ResponseDataListPubUser = {
|
|
1778
|
-
code?: number;
|
|
1779
|
-
msg?: string;
|
|
1780
|
-
hint?: string;
|
|
1781
|
-
data?: PubUser[];
|
|
1782
|
-
success?: boolean;
|
|
1783
|
-
};
|
|
1784
|
-
|
|
1785
1669
|
type ResponseDataListPubUserDto = {
|
|
1786
1670
|
code?: number;
|
|
1787
1671
|
msg?: string;
|
|
@@ -2006,14 +1890,6 @@ declare namespace API {
|
|
|
2006
1890
|
success?: boolean;
|
|
2007
1891
|
};
|
|
2008
1892
|
|
|
2009
|
-
type ResponseDataPubUser = {
|
|
2010
|
-
code?: number;
|
|
2011
|
-
msg?: string;
|
|
2012
|
-
hint?: string;
|
|
2013
|
-
data?: PubUser;
|
|
2014
|
-
success?: boolean;
|
|
2015
|
-
};
|
|
2016
|
-
|
|
2017
1893
|
type ResponseDataPubUserBo = {
|
|
2018
1894
|
code?: number;
|
|
2019
1895
|
msg?: string;
|
|
@@ -2030,14 +1906,6 @@ declare namespace API {
|
|
|
2030
1906
|
success?: boolean;
|
|
2031
1907
|
};
|
|
2032
1908
|
|
|
2033
|
-
type ResponseDataPubUserRoleBo = {
|
|
2034
|
-
code?: number;
|
|
2035
|
-
msg?: string;
|
|
2036
|
-
hint?: string;
|
|
2037
|
-
data?: PubUserRoleBo;
|
|
2038
|
-
success?: boolean;
|
|
2039
|
-
};
|
|
2040
|
-
|
|
2041
1909
|
type ResponseDataPubUserUsed = {
|
|
2042
1910
|
code?: number;
|
|
2043
1911
|
msg?: string;
|
|
@@ -2117,7 +1985,7 @@ declare namespace API {
|
|
|
2117
1985
|
/** 群组id */
|
|
2118
1986
|
groups?: shujuquanxianmokuaihuixiandequnzuduixiang[];
|
|
2119
1987
|
/** 资源id */
|
|
2120
|
-
resources?:
|
|
1988
|
+
resources?: PubResourceTreeBo[];
|
|
2121
1989
|
};
|
|
2122
1990
|
|
|
2123
1991
|
type shujuquanxianchaxunduixiang = {
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
import { basic as request } from '@/api/request';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @description 验证码-修改登录密码
|
|
5
|
-
* @url /rbac/user/captcha/changePasswordWithVerifyCode
|
|
6
|
-
* @method POST
|
|
7
|
-
* @author @pubinfo/openapi
|
|
8
|
-
*/
|
|
9
|
-
export function postRbacUserCaptchaChangePasswordWithVerifyCode<
|
|
10
|
-
R = API.ResponseDataVoid,
|
|
11
|
-
T = API.ResponseDataVoid,
|
|
12
|
-
>(
|
|
13
|
-
params: API.postRbacUserCaptchaChangePasswordWithVerifyCodeParams,
|
|
14
|
-
options?: Parameters<typeof request.Post<R, T>>[2],
|
|
15
|
-
) {
|
|
16
|
-
return request.Post<R, T>(
|
|
17
|
-
'/rbac/user/captcha/changePasswordWithVerifyCode',
|
|
18
|
-
{},
|
|
19
|
-
{
|
|
20
|
-
params: {
|
|
21
|
-
...params,
|
|
22
|
-
},
|
|
23
|
-
...(options || {}),
|
|
24
|
-
},
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
3
|
/**
|
|
29
4
|
* @description 修改登录密码
|
|
30
5
|
* @url /rbac/user/changePassword
|
|
@@ -100,85 +75,6 @@ export function postRbacUserChangePasswordWithVerifyCode<
|
|
|
100
75
|
);
|
|
101
76
|
}
|
|
102
77
|
|
|
103
|
-
/**
|
|
104
|
-
* @description 根据id查询
|
|
105
|
-
* @url /rbac/user/getUser
|
|
106
|
-
* @method POST
|
|
107
|
-
* @author @pubinfo/openapi
|
|
108
|
-
*/
|
|
109
|
-
export function postRbacUserGetUser<
|
|
110
|
-
R = API.ResponseDataPubUser,
|
|
111
|
-
T = API.ResponseDataPubUser,
|
|
112
|
-
>(
|
|
113
|
-
params: API.postRbacUserGetUserParams,
|
|
114
|
-
options?: Parameters<typeof request.Post<R, T>>[2],
|
|
115
|
-
) {
|
|
116
|
-
return request.Post<R, T>(
|
|
117
|
-
'/rbac/user/getUser',
|
|
118
|
-
{},
|
|
119
|
-
{
|
|
120
|
-
params: {
|
|
121
|
-
...params,
|
|
122
|
-
},
|
|
123
|
-
...(options || {}),
|
|
124
|
-
},
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @description 通过用户ID查询用户们
|
|
130
|
-
* @url /rbac/user/getUserList
|
|
131
|
-
* @method POST
|
|
132
|
-
* @author @pubinfo/openapi
|
|
133
|
-
*/
|
|
134
|
-
export function postRbacUserGetUserList<
|
|
135
|
-
R = API.ResponseDataListPubUser,
|
|
136
|
-
T = API.ResponseDataListPubUser,
|
|
137
|
-
>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
138
|
-
return request.Post<R, T>('/rbac/user/getUserList', body, {
|
|
139
|
-
headers: {
|
|
140
|
-
'Content-Type': 'application/json',
|
|
141
|
-
},
|
|
142
|
-
...(options || {}),
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @description 获得指定组织的用户数组
|
|
148
|
-
* @url /rbac/user/getUserListByOrgIds
|
|
149
|
-
* @method POST
|
|
150
|
-
* @author @pubinfo/openapi
|
|
151
|
-
*/
|
|
152
|
-
export function postRbacUserGetUserListByOrgIds<
|
|
153
|
-
R = API.ResponseDataListPubUser,
|
|
154
|
-
T = API.ResponseDataListPubUser,
|
|
155
|
-
>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
156
|
-
return request.Post<R, T>('/rbac/user/getUserListByOrgIds', body, {
|
|
157
|
-
headers: {
|
|
158
|
-
'Content-Type': 'application/json',
|
|
159
|
-
},
|
|
160
|
-
...(options || {}),
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @description 获得指定岗位的用户数组
|
|
166
|
-
* @url /rbac/user/getUserListByPostIds
|
|
167
|
-
* @method POST
|
|
168
|
-
* @author @pubinfo/openapi
|
|
169
|
-
*/
|
|
170
|
-
export function postRbacUserGetUserListByPostIds<
|
|
171
|
-
R = API.ResponseDataListPubUser,
|
|
172
|
-
T = API.ResponseDataListPubUser,
|
|
173
|
-
>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
174
|
-
return request.Post<R, T>('/rbac/user/getUserListByPostIds', body, {
|
|
175
|
-
headers: {
|
|
176
|
-
'Content-Type': 'application/json',
|
|
177
|
-
},
|
|
178
|
-
...(options || {}),
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
|
|
182
78
|
/**
|
|
183
79
|
* @description 编辑角色和授权数据权限
|
|
184
80
|
* @url /rbac/user/grantUserRoleAndDatPermission
|
|
@@ -429,21 +325,3 @@ export function postRbacUserUserUpdateV2<
|
|
|
429
325
|
...(options || {}),
|
|
430
326
|
});
|
|
431
327
|
}
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* @description 校验用户们是否有效
|
|
435
|
-
* @url /rbac/user/validateUserList
|
|
436
|
-
* @method POST
|
|
437
|
-
* @author @pubinfo/openapi
|
|
438
|
-
*/
|
|
439
|
-
export function postRbacUserValidateUserList<
|
|
440
|
-
R = API.ResponseDataVoid,
|
|
441
|
-
T = API.ResponseDataVoid,
|
|
442
|
-
>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
443
|
-
return request.Post<R, T>('/rbac/user/validateUserList', body, {
|
|
444
|
-
headers: {
|
|
445
|
-
'Content-Type': 'application/json',
|
|
446
|
-
},
|
|
447
|
-
...(options || {}),
|
|
448
|
-
});
|
|
449
|
-
}
|
|
@@ -160,27 +160,6 @@ export function postRbacResourceMineOrAllResourceTree<
|
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* @description 资源拖拉拽更新
|
|
165
|
-
* @url /rbac/resource/reSortUpdate
|
|
166
|
-
* @method POST
|
|
167
|
-
* @author @pubinfo/openapi
|
|
168
|
-
*/
|
|
169
|
-
export function postRbacResourceReSortUpdate<
|
|
170
|
-
R = API.ResponseDataVoid,
|
|
171
|
-
T = API.ResponseDataVoid,
|
|
172
|
-
>(
|
|
173
|
-
body: API.PubResourceReSortUpdateDTO[],
|
|
174
|
-
options?: Parameters<typeof request.Post<R, T>>[2],
|
|
175
|
-
) {
|
|
176
|
-
return request.Post<R, T>('/rbac/resource/reSortUpdate', body, {
|
|
177
|
-
headers: {
|
|
178
|
-
'Content-Type': 'application/json',
|
|
179
|
-
},
|
|
180
|
-
...(options || {}),
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
|
|
184
163
|
/**
|
|
185
164
|
* @description 资源删除
|
|
186
165
|
* @url /rbac/resource/resourceDelete
|
|
@@ -187,21 +187,3 @@ export function postRbacOrgUpdateOrg<
|
|
|
187
187
|
...(options || {}),
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @description 校验组织们是否有效
|
|
193
|
-
* @url /rbac/org/validateOrgList
|
|
194
|
-
* @method POST
|
|
195
|
-
* @author @pubinfo/openapi
|
|
196
|
-
*/
|
|
197
|
-
export function postRbacOrgValidateOrgList<
|
|
198
|
-
R = API.ResponseDataVoid,
|
|
199
|
-
T = API.ResponseDataVoid,
|
|
200
|
-
>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
201
|
-
return request.Post<R, T>('/rbac/org/validateOrgList', body, {
|
|
202
|
-
headers: {
|
|
203
|
-
'Content-Type': 'application/json',
|
|
204
|
-
},
|
|
205
|
-
...(options || {}),
|
|
206
|
-
});
|
|
207
|
-
}
|
|
@@ -5,7 +5,6 @@ import { useToggle } from '@vueuse/core';
|
|
|
5
5
|
import { message } from 'ant-design-vue';
|
|
6
6
|
import { getDictItemList } from '@/api/modules/configData';
|
|
7
7
|
import { getRbacOrgInfo, postRbacOrgAddOrg, postRbacOrgUpdateOrg } from '@/api/modules/rbac';
|
|
8
|
-
import { selectUser } from '@/components/OrgUserSelector';
|
|
9
8
|
import { ACTION } from '../enum';
|
|
10
9
|
|
|
11
10
|
defineOptions({
|
|
@@ -42,25 +41,13 @@ getDictItemList({ dictCode: 'orgType' }).then((res: API.ResponseDataListDictItem
|
|
|
42
41
|
});
|
|
43
42
|
});
|
|
44
43
|
const form = ref<Partial<API.PubOrg & { parentName: string }>>({ parentId: '', enable: true });
|
|
45
|
-
const selectedUsers = ref<
|
|
46
|
-
{
|
|
47
|
-
orgId?: string
|
|
48
|
-
userId?: string
|
|
49
|
-
userName?: string
|
|
50
|
-
}[]>([]);
|
|
51
44
|
async function onOpen(key: ACTION, record?: API.PubOrg) {
|
|
52
45
|
setOpen(true);
|
|
53
46
|
state.title = key;
|
|
54
|
-
selectedUsers.value = [];
|
|
55
47
|
if (key === ACTION.EDIT) {
|
|
56
48
|
const res = await getRbacOrgInfo({ id: record?.id as string });
|
|
57
49
|
if (res.success) {
|
|
58
50
|
form.value = res.data ?? {};
|
|
59
|
-
selectedUsers.value = [{
|
|
60
|
-
orgId: res.data?.leaderUserOrgId ?? '',
|
|
61
|
-
userId: res.data?.leaderUserId ?? '',
|
|
62
|
-
userName: res.data?.leaderUserName ?? '',
|
|
63
|
-
}];
|
|
64
51
|
}
|
|
65
52
|
}
|
|
66
53
|
else if (key === ACTION.ADDNEXT) {
|
|
@@ -80,34 +67,12 @@ async function onOpen(key: ACTION, record?: API.PubOrg) {
|
|
|
80
67
|
}
|
|
81
68
|
}
|
|
82
69
|
|
|
83
|
-
function chooseLeader() {
|
|
84
|
-
selectUser({
|
|
85
|
-
modelValue: selectedUsers.value, // 回显时选中的数据
|
|
86
|
-
multiple: false,
|
|
87
|
-
onSubmit(selected = []) {
|
|
88
|
-
// console.log(selected); // 点击确认后返回选中的数据
|
|
89
|
-
selectedUsers.value = selected.map((user) => {
|
|
90
|
-
return {
|
|
91
|
-
orgId: user.orgId as string,
|
|
92
|
-
userId: user.userId as string,
|
|
93
|
-
userName: user.userName as string,
|
|
94
|
-
};
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
70
|
const [loading, setLoading] = useToggle(false);
|
|
101
71
|
function onSubmit() {
|
|
102
72
|
const request = state.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
|
|
103
73
|
formRef.value?.validate().then(() => {
|
|
104
74
|
setLoading(true);
|
|
105
75
|
const params: any = { ...form.value };
|
|
106
|
-
if (selectedUsers.value.length > 0) {
|
|
107
|
-
params.leaderUserId = selectedUsers.value[0].userId;
|
|
108
|
-
params.leaderUserName = selectedUsers.value[0].userName;
|
|
109
|
-
params.leaderUserOrgId = selectedUsers.value[0].orgId;
|
|
110
|
-
}
|
|
111
76
|
request(params)
|
|
112
77
|
.then((res: API.ResponseDataPubOrg) => {
|
|
113
78
|
if (res.success) {
|
|
@@ -172,14 +137,6 @@ defineExpose({
|
|
|
172
137
|
<a-form-item label="排序">
|
|
173
138
|
<a-input-number v-model:value="form.sort" />
|
|
174
139
|
</a-form-item>
|
|
175
|
-
<a-form-item label="组织负责人">
|
|
176
|
-
<div flex items-center>
|
|
177
|
-
<span v-if="selectedUsers.length > 0" mr-6px>{{ selectedUsers[0]?.userName }}</span>
|
|
178
|
-
<a-button type="primary" @click="chooseLeader">
|
|
179
|
-
选择负责人
|
|
180
|
-
</a-button>
|
|
181
|
-
</div>
|
|
182
|
-
</a-form-item>
|
|
183
140
|
<a-form-item label="统一社会信用代码" name="creditCode">
|
|
184
141
|
<a-input v-model:value="form.creditCode" />
|
|
185
142
|
</a-form-item>
|