@pubinfo/module-rbac 2.2.0-beta.1 → 2.2.0-beta.3
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/index.d.ts +0 -1
- package/dist/api/modules/assist/qunzujiekou.d.ts +28 -0
- package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -0
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +14 -0
- package/dist/api/modules/rbac/yonghujiekou.d.ts +42 -0
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +7 -0
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +7 -0
- package/dist/drawerOrganization-CeCOW2N1.js +288 -0
- package/dist/index.css +1 -1
- package/dist/index.js +3 -3
- package/dist/{organization-BbFERZ1l.js → organization-HuRdzTFX.js} +3 -1
- package/package.json +3 -3
- package/src/api/modules/assist/index.ts +0 -1
- package/src/api/modules/assist/qunzujiekou.ts +72 -0
- package/src/api/modules/assist/typings.d.ts +17 -129
- package/src/api/modules/rbac/gangweijiekou.ts +18 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +36 -0
- package/src/api/modules/rbac/typings.d.ts +133 -1
- package/src/api/modules/rbac/yonghujiekou.ts +122 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +21 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +18 -0
- package/src/views/organization/components/drawerOrganization.vue +43 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +0 -43
- package/dist/drawerOrganization-DWhTc1fB.js +0 -253
- package/src/api/modules/assist/gonggaofuwu.ts +0 -124
|
@@ -27,6 +27,20 @@ export declare function getGroupDetailById<R = API.ResponseDataPubGroupBo, T = A
|
|
|
27
27
|
* @author @pubinfo/openapi
|
|
28
28
|
*/
|
|
29
29
|
export declare function postGroupFindPage<R = API.ResponseDataPageDataPubGroup, T = API.ResponseDataPageDataPubGroup>(body: API.pubGroupDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
30
|
+
/**
|
|
31
|
+
* @description 获得组织组列表
|
|
32
|
+
* @url /group/getOrgGroupList
|
|
33
|
+
* @method POST
|
|
34
|
+
* @author @pubinfo/openapi
|
|
35
|
+
*/
|
|
36
|
+
export declare function postGroupGetOrgGroupList<R = API.ResponseDataListPubGroupBo, T = API.ResponseDataListPubGroupBo>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
37
|
+
/**
|
|
38
|
+
* @description 获得用户组列表
|
|
39
|
+
* @url /group/getUserGroupList
|
|
40
|
+
* @method POST
|
|
41
|
+
* @author @pubinfo/openapi
|
|
42
|
+
*/
|
|
43
|
+
export declare function postGroupGetUserGroupList<R = API.ResponseDataListPubGroupBo, T = API.ResponseDataListPubGroupBo>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
30
44
|
/**
|
|
31
45
|
* @description 群组信息不分页查询 list
|
|
32
46
|
* @url /group/list
|
|
@@ -41,3 +55,17 @@ export declare function postGroupList<R = API.ResponseDataListPubGroup, T = API.
|
|
|
41
55
|
* @author @pubinfo/openapi
|
|
42
56
|
*/
|
|
43
57
|
export declare function postGroupSaveOrUpdate<R = API.ResponseData, T = API.ResponseData>(body: API.PubGroupBo, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
58
|
+
/**
|
|
59
|
+
* @description 校验组织群组们是否有效
|
|
60
|
+
* @url /group/validOrgGroups
|
|
61
|
+
* @method POST
|
|
62
|
+
* @author @pubinfo/openapi
|
|
63
|
+
*/
|
|
64
|
+
export declare function postGroupValidOrgGroups<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
65
|
+
/**
|
|
66
|
+
* @description 校验用户群组们是否有效
|
|
67
|
+
* @url /group/validUserGroups
|
|
68
|
+
* @method POST
|
|
69
|
+
* @author @pubinfo/openapi
|
|
70
|
+
*/
|
|
71
|
+
export declare function postGroupValidUserGroups<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
@@ -41,3 +41,10 @@ export declare function getRbacPostList<R = API.ResponseDataListPubPost, T = API
|
|
|
41
41
|
* @author @pubinfo/openapi
|
|
42
42
|
*/
|
|
43
43
|
export declare function postRbacPostSave<R = API.ResponseDataString, T = API.ResponseDataString>(body: API.PubPostDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
44
|
+
/**
|
|
45
|
+
* @description 校验岗位们是否有效
|
|
46
|
+
* @url /rbac/post/validPostList
|
|
47
|
+
* @method POST
|
|
48
|
+
* @author @pubinfo/openapi
|
|
49
|
+
*/
|
|
50
|
+
export declare function postRbacPostValidPostList<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
@@ -6,6 +6,13 @@ import { basic as request } from '@/api/request';
|
|
|
6
6
|
* @author @pubinfo/openapi
|
|
7
7
|
*/
|
|
8
8
|
export declare function postRbacRoleAddRole<R = API.ResponseDataPubRoleBo, T = API.ResponseDataPubRoleBo>(body: API.PubRoleAddDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
9
|
+
/**
|
|
10
|
+
* @description 获得拥有多个角色的用户编号集合
|
|
11
|
+
* @url /rbac/role/getUserRoleIdListByRoleIds
|
|
12
|
+
* @method POST
|
|
13
|
+
* @author @pubinfo/openapi
|
|
14
|
+
*/
|
|
15
|
+
export declare function postRbacRoleGetUserRoleIdListByRoleIds<R = API.ResponseDataPubUserRoleBo, T = API.ResponseDataPubUserRoleBo>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
9
16
|
/**
|
|
10
17
|
* @description 根据id查询
|
|
11
18
|
* @url /rbac/role/info
|
|
@@ -48,3 +55,10 @@ export declare function postRbacRoleRoleUpdate<R = API.ResponseDataPubRoleBo, T
|
|
|
48
55
|
* @author @pubinfo/openapi
|
|
49
56
|
*/
|
|
50
57
|
export declare function postRbacRoleRoleUserPage<R = API.ResponseDataPageDataPubUserOrgRoleBo, T = API.ResponseDataPageDataPubUserOrgRoleBo>(body: API.PubRoleQueryDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
58
|
+
/**
|
|
59
|
+
* @description 校验角色们是否有效
|
|
60
|
+
* @url /rbac/role/validRoleList
|
|
61
|
+
* @method POST
|
|
62
|
+
* @author @pubinfo/openapi
|
|
63
|
+
*/
|
|
64
|
+
export declare function postRbacRoleValidRoleList<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { basic as request } from '@/api/request';
|
|
2
|
+
/**
|
|
3
|
+
* @description 验证码-修改登录密码
|
|
4
|
+
* @url /rbac/user/captcha/changePasswordWithVerifyCode
|
|
5
|
+
* @method POST
|
|
6
|
+
* @author @pubinfo/openapi
|
|
7
|
+
*/
|
|
8
|
+
export declare function postRbacUserCaptchaChangePasswordWithVerifyCode<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(params: API.postRbacUserCaptchaChangePasswordWithVerifyCodeParams, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
2
9
|
/**
|
|
3
10
|
* @description 修改登录密码
|
|
4
11
|
* @url /rbac/user/changePassword
|
|
@@ -20,6 +27,34 @@ export declare function postRbacUserChangePassword<R = API.ResponseDataVoid, T =
|
|
|
20
27
|
* @author @pubinfo/openapi
|
|
21
28
|
*/
|
|
22
29
|
export declare function postRbacUserChangePasswordWithVerifyCode<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(params: API.postRbacUserChangePasswordWithVerifyCodeParams, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
30
|
+
/**
|
|
31
|
+
* @description 根据id查询
|
|
32
|
+
* @url /rbac/user/getUser
|
|
33
|
+
* @method POST
|
|
34
|
+
* @author @pubinfo/openapi
|
|
35
|
+
*/
|
|
36
|
+
export declare function postRbacUserGetUser<R = API.ResponseDataPubUser, T = API.ResponseDataPubUser>(params: API.postRbacUserGetUserParams, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
37
|
+
/**
|
|
38
|
+
* @description 通过用户ID查询用户们
|
|
39
|
+
* @url /rbac/user/getUserList
|
|
40
|
+
* @method POST
|
|
41
|
+
* @author @pubinfo/openapi
|
|
42
|
+
*/
|
|
43
|
+
export declare function postRbacUserGetUserList<R = API.ResponseDataListPubUser, T = API.ResponseDataListPubUser>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
44
|
+
/**
|
|
45
|
+
* @description 获得指定组织的用户数组
|
|
46
|
+
* @url /rbac/user/getUserListByOrgIds
|
|
47
|
+
* @method POST
|
|
48
|
+
* @author @pubinfo/openapi
|
|
49
|
+
*/
|
|
50
|
+
export declare function postRbacUserGetUserListByOrgIds<R = API.ResponseDataListPubUser, T = API.ResponseDataListPubUser>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
51
|
+
/**
|
|
52
|
+
* @description 获得指定岗位的用户数组
|
|
53
|
+
* @url /rbac/user/getUserListByPostIds
|
|
54
|
+
* @method POST
|
|
55
|
+
* @author @pubinfo/openapi
|
|
56
|
+
*/
|
|
57
|
+
export declare function postRbacUserGetUserListByPostIds<R = API.ResponseDataListPubUser, T = API.ResponseDataListPubUser>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
23
58
|
/**
|
|
24
59
|
* @description 编辑角色和授权数据权限
|
|
25
60
|
* @url /rbac/user/grantUserRoleAndDatPermission
|
|
@@ -104,3 +139,10 @@ export declare function postRbacUserUserUpdate<R = API.ResponseDataVoid, T = API
|
|
|
104
139
|
* @author @pubinfo/openapi
|
|
105
140
|
*/
|
|
106
141
|
export declare function postRbacUserUserUpdateV2<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: API.PubUserUpdateDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
142
|
+
/**
|
|
143
|
+
* @description 校验用户们是否有效
|
|
144
|
+
* @url /rbac/user/validateUserList
|
|
145
|
+
* @method POST
|
|
146
|
+
* @author @pubinfo/openapi
|
|
147
|
+
*/
|
|
148
|
+
export declare function postRbacUserValidateUserList<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
@@ -55,6 +55,13 @@ export declare function postRbacResourceMenuTree<R = API.ResponseDataListPubReso
|
|
|
55
55
|
* @author @pubinfo/openapi
|
|
56
56
|
*/
|
|
57
57
|
export declare function postRbacResourceMineOrAllResourceTree<R = API.ResponseDataListPubResourceTreeBo, T = API.ResponseDataListPubResourceTreeBo>(params: API.postRbacResourceMineOrAllResourceTreeParams, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
58
|
+
/**
|
|
59
|
+
* @description 资源拖拉拽更新
|
|
60
|
+
* @url /rbac/resource/reSortUpdate
|
|
61
|
+
* @method POST
|
|
62
|
+
* @author @pubinfo/openapi
|
|
63
|
+
*/
|
|
64
|
+
export declare function postRbacResourceReSortUpdate<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: API.PubResourceReSortUpdateDTO[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
58
65
|
/**
|
|
59
66
|
* @description 资源删除
|
|
60
67
|
* @url /rbac/resource/resourceDelete
|
|
@@ -62,3 +62,10 @@ export declare function getRbacOrgSearchTreeById<R = API.ResponseDataPubOrgTreeB
|
|
|
62
62
|
* @author @pubinfo/openapi
|
|
63
63
|
*/
|
|
64
64
|
export declare function postRbacOrgUpdateOrg<R = API.ResponseDataPubOrg, T = API.ResponseDataPubOrg>(body: API.PubOrgUpdateDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
65
|
+
/**
|
|
66
|
+
* @description 校验组织们是否有效
|
|
67
|
+
* @url /rbac/org/validateOrgList
|
|
68
|
+
* @method POST
|
|
69
|
+
* @author @pubinfo/openapi
|
|
70
|
+
*/
|
|
71
|
+
export declare function postRbacOrgValidateOrgList<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { r as e } from "./chunk-WQLz0Won.js";
|
|
2
|
+
import { n as t } from "./dist-DxAYQq3U.js";
|
|
3
|
+
import { l as n, n as r, o as i } from "./rbac-B59CVHDt.js";
|
|
4
|
+
import { r as a, selectUser as o } from "./index.js";
|
|
5
|
+
import { createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, isRef as m, openBlock as h, reactive as g, ref as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
6
|
+
import { message as x } from "ant-design-vue";
|
|
7
|
+
import { Button as S, Drawer as C, Form as w, FormItem as T, Input as E, InputNumber as D, Select as O, Space as k, Switch as A } from "ant-design-vue/es";
|
|
8
|
+
//#region src/views/organization/enum.ts
|
|
9
|
+
var j = /* @__PURE__ */ function(e) {
|
|
10
|
+
return e.AUTHORIZE = "授权", e.ADD = "新增", e.ADDNEXT = "新增下级", e.EDIT = "编辑", e.REMOVE = "删除", e;
|
|
11
|
+
}({}), M = /* @__PURE__ */ function(e) {
|
|
12
|
+
return e.OWNER = "1", e.ALL = "2", e;
|
|
13
|
+
}({}), N = /* @__PURE__ */ function(e) {
|
|
14
|
+
return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
|
|
15
|
+
}({});
|
|
16
|
+
M.OWNER, M.ALL, N.ON, N.OFF;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/views/organization/components/drawerOrganization.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
+
var P = {
|
|
20
|
+
flex: "",
|
|
21
|
+
"items-center": ""
|
|
22
|
+
}, F = {
|
|
23
|
+
key: 0,
|
|
24
|
+
"mr-6px": ""
|
|
25
|
+
}, I = /* @__PURE__ */ p({
|
|
26
|
+
name: "OrganizationEdit",
|
|
27
|
+
__name: "drawerOrganization",
|
|
28
|
+
emits: ["submit"],
|
|
29
|
+
setup(e, { expose: p, emit: M }) {
|
|
30
|
+
let N = M, I = {
|
|
31
|
+
name: [{
|
|
32
|
+
required: !0,
|
|
33
|
+
message: "请输入组织名称",
|
|
34
|
+
trigger: "blur"
|
|
35
|
+
}, {
|
|
36
|
+
max: 128,
|
|
37
|
+
message: "长度不能超过128位",
|
|
38
|
+
trigger: "change"
|
|
39
|
+
}],
|
|
40
|
+
code: [{
|
|
41
|
+
required: !0,
|
|
42
|
+
message: "请输入组织编码",
|
|
43
|
+
trigger: "blur"
|
|
44
|
+
}, {
|
|
45
|
+
max: 50,
|
|
46
|
+
message: "长度不能超过50位",
|
|
47
|
+
trigger: "change"
|
|
48
|
+
}],
|
|
49
|
+
type: [{
|
|
50
|
+
required: !0,
|
|
51
|
+
message: "请输入组织类型",
|
|
52
|
+
trigger: "blur"
|
|
53
|
+
}],
|
|
54
|
+
areaCode: [{
|
|
55
|
+
max: 16,
|
|
56
|
+
message: "长度不能超过16位",
|
|
57
|
+
trigger: "change"
|
|
58
|
+
}],
|
|
59
|
+
creditCode: [{
|
|
60
|
+
max: 50,
|
|
61
|
+
message: "长度不能超过50位",
|
|
62
|
+
trigger: "change"
|
|
63
|
+
}],
|
|
64
|
+
contactPerson: [{
|
|
65
|
+
max: 50,
|
|
66
|
+
message: "长度不能超过50位",
|
|
67
|
+
trigger: "change"
|
|
68
|
+
}],
|
|
69
|
+
contactMobile: [{
|
|
70
|
+
max: 20,
|
|
71
|
+
message: "长度不能超过20位",
|
|
72
|
+
trigger: "change"
|
|
73
|
+
}]
|
|
74
|
+
}, L = g({
|
|
75
|
+
title: "",
|
|
76
|
+
type: ""
|
|
77
|
+
}), [R, z] = t(!1), B = _(), V = _([]);
|
|
78
|
+
a({ dictCode: "orgType" }).then((e) => {
|
|
79
|
+
V.value = e.data?.map((e) => ({
|
|
80
|
+
label: e.dictLabel,
|
|
81
|
+
value: e.dictValue
|
|
82
|
+
}));
|
|
83
|
+
});
|
|
84
|
+
let H = _({
|
|
85
|
+
parentId: "",
|
|
86
|
+
enable: !0
|
|
87
|
+
}), U = _([]);
|
|
88
|
+
async function W(e, t) {
|
|
89
|
+
if (z(!0), L.title = e, U.value = [], e === j.EDIT) {
|
|
90
|
+
let e = await r({ id: t?.id });
|
|
91
|
+
e.success && (H.value = e.data ?? {}, U.value = [{
|
|
92
|
+
orgId: e.data?.leaderUserOrgId ?? "",
|
|
93
|
+
userId: e.data?.leaderUserId ?? "",
|
|
94
|
+
userName: e.data?.leaderUserName ?? ""
|
|
95
|
+
}]);
|
|
96
|
+
} else e === j.ADDNEXT ? H.value = {
|
|
97
|
+
parentName: t?.name,
|
|
98
|
+
parentId: t?.id,
|
|
99
|
+
enable: !0,
|
|
100
|
+
district: !1
|
|
101
|
+
} : H.value = {
|
|
102
|
+
parentId: "",
|
|
103
|
+
enable: !0,
|
|
104
|
+
district: !1
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function G() {
|
|
108
|
+
o({
|
|
109
|
+
modelValue: U.value,
|
|
110
|
+
multiple: !1,
|
|
111
|
+
onSubmit(e = []) {
|
|
112
|
+
U.value = e.map((e) => ({
|
|
113
|
+
orgId: e.orgId,
|
|
114
|
+
userId: e.userId,
|
|
115
|
+
userName: e.userName
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
let [K, q] = t(!1);
|
|
121
|
+
function J() {
|
|
122
|
+
let e = L.title === j.EDIT ? n : i;
|
|
123
|
+
B.value?.validate().then(() => {
|
|
124
|
+
q(!0);
|
|
125
|
+
let t = { ...H.value };
|
|
126
|
+
U.value.length > 0 && (t.leaderUserId = U.value[0].userId, t.leaderUserName = U.value[0].userName, t.leaderUserOrgId = U.value[0].orgId), e(t).then((e) => {
|
|
127
|
+
e.success && (x.success(`${L.title}成功!`), z(!1), N("submit", { ...H.value }));
|
|
128
|
+
}).finally(() => q(!1));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function Y() {
|
|
132
|
+
H.value = { enable: !1 }, z(!1);
|
|
133
|
+
}
|
|
134
|
+
return p({ open: W }), (e, t) => {
|
|
135
|
+
let n = T, r = E, i = O, a = A, o = D, p = S, g = w, _ = k, x = C;
|
|
136
|
+
return h(), s(x, {
|
|
137
|
+
open: y(R),
|
|
138
|
+
"onUpdate:open": t[11] ||= (e) => m(R) ? R.value = e : null,
|
|
139
|
+
title: `${y(L).title}组织`,
|
|
140
|
+
placement: "right",
|
|
141
|
+
width: 600,
|
|
142
|
+
"destroy-on-close": "",
|
|
143
|
+
"footer-style": { textAlign: "right" },
|
|
144
|
+
onClose: Y
|
|
145
|
+
}, {
|
|
146
|
+
footer: b(() => [f(_, null, {
|
|
147
|
+
default: b(() => [f(p, { onClick: Y }, {
|
|
148
|
+
default: b(() => [...t[13] ||= [d(" 取消 ", -1)]]),
|
|
149
|
+
_: 1
|
|
150
|
+
}), f(p, {
|
|
151
|
+
type: "primary",
|
|
152
|
+
loading: y(K),
|
|
153
|
+
onClick: t[10] ||= (e) => J()
|
|
154
|
+
}, {
|
|
155
|
+
default: b(() => [...t[14] ||= [d(" 提交 ", -1)]]),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, ["loading"])]),
|
|
158
|
+
_: 1
|
|
159
|
+
})]),
|
|
160
|
+
default: b(() => [f(g, {
|
|
161
|
+
ref_key: "formRef",
|
|
162
|
+
ref: B,
|
|
163
|
+
model: y(H),
|
|
164
|
+
rules: I,
|
|
165
|
+
"label-col": { span: 6 },
|
|
166
|
+
"label-wrap": !0
|
|
167
|
+
}, {
|
|
168
|
+
default: b(() => [
|
|
169
|
+
y(H).parentId !== "" && y(H).parentId !== "0" ? (h(), s(n, {
|
|
170
|
+
key: 0,
|
|
171
|
+
label: "所属上级"
|
|
172
|
+
}, {
|
|
173
|
+
default: b(() => [d(v(y(H).parentName), 1)]),
|
|
174
|
+
_: 1
|
|
175
|
+
})) : c("", !0),
|
|
176
|
+
f(n, {
|
|
177
|
+
label: "组织名称",
|
|
178
|
+
name: "name"
|
|
179
|
+
}, {
|
|
180
|
+
default: b(() => [f(r, {
|
|
181
|
+
value: y(H).name,
|
|
182
|
+
"onUpdate:value": t[0] ||= (e) => y(H).name = e
|
|
183
|
+
}, null, 8, ["value"])]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
f(n, {
|
|
187
|
+
label: "组织编码",
|
|
188
|
+
name: "code"
|
|
189
|
+
}, {
|
|
190
|
+
default: b(() => [f(r, {
|
|
191
|
+
value: y(H).code,
|
|
192
|
+
"onUpdate:value": t[1] ||= (e) => y(H).code = e
|
|
193
|
+
}, null, 8, ["value"])]),
|
|
194
|
+
_: 1
|
|
195
|
+
}),
|
|
196
|
+
f(n, {
|
|
197
|
+
label: "组织类型",
|
|
198
|
+
name: "type"
|
|
199
|
+
}, {
|
|
200
|
+
default: b(() => [f(i, {
|
|
201
|
+
value: y(H).type,
|
|
202
|
+
"onUpdate:value": t[2] ||= (e) => y(H).type = e,
|
|
203
|
+
options: y(V)
|
|
204
|
+
}, null, 8, ["value", "options"])]),
|
|
205
|
+
_: 1
|
|
206
|
+
}),
|
|
207
|
+
f(n, { label: "是否行政区划" }, {
|
|
208
|
+
default: b(() => [f(a, {
|
|
209
|
+
checked: y(H).district,
|
|
210
|
+
"onUpdate:checked": t[3] ||= (e) => y(H).district = e
|
|
211
|
+
}, null, 8, ["checked"])]),
|
|
212
|
+
_: 1
|
|
213
|
+
}),
|
|
214
|
+
y(H).district ? (h(), s(n, {
|
|
215
|
+
key: 1,
|
|
216
|
+
label: "行政区划编码",
|
|
217
|
+
name: "areaCode"
|
|
218
|
+
}, {
|
|
219
|
+
default: b(() => [f(r, {
|
|
220
|
+
value: y(H).areaCode,
|
|
221
|
+
"onUpdate:value": t[4] ||= (e) => y(H).areaCode = e
|
|
222
|
+
}, null, 8, ["value"])]),
|
|
223
|
+
_: 1
|
|
224
|
+
})) : c("", !0),
|
|
225
|
+
f(n, { label: "是否启用" }, {
|
|
226
|
+
default: b(() => [f(a, {
|
|
227
|
+
checked: y(H).enable,
|
|
228
|
+
"onUpdate:checked": t[5] ||= (e) => y(H).enable = e
|
|
229
|
+
}, null, 8, ["checked"])]),
|
|
230
|
+
_: 1
|
|
231
|
+
}),
|
|
232
|
+
f(n, { label: "排序" }, {
|
|
233
|
+
default: b(() => [f(o, {
|
|
234
|
+
value: y(H).sort,
|
|
235
|
+
"onUpdate:value": t[6] ||= (e) => y(H).sort = e
|
|
236
|
+
}, null, 8, ["value"])]),
|
|
237
|
+
_: 1
|
|
238
|
+
}),
|
|
239
|
+
f(n, { label: "组织负责人" }, {
|
|
240
|
+
default: b(() => [u("div", P, [y(U).length > 0 ? (h(), l("span", F, v(y(U)[0]?.userName), 1)) : c("", !0), f(p, {
|
|
241
|
+
type: "primary",
|
|
242
|
+
onClick: G
|
|
243
|
+
}, {
|
|
244
|
+
default: b(() => [...t[12] ||= [d(" 选择负责人 ", -1)]]),
|
|
245
|
+
_: 1
|
|
246
|
+
})])]),
|
|
247
|
+
_: 1
|
|
248
|
+
}),
|
|
249
|
+
f(n, {
|
|
250
|
+
label: "统一社会信用代码",
|
|
251
|
+
name: "creditCode"
|
|
252
|
+
}, {
|
|
253
|
+
default: b(() => [f(r, {
|
|
254
|
+
value: y(H).creditCode,
|
|
255
|
+
"onUpdate:value": t[7] ||= (e) => y(H).creditCode = e
|
|
256
|
+
}, null, 8, ["value"])]),
|
|
257
|
+
_: 1
|
|
258
|
+
}),
|
|
259
|
+
f(n, {
|
|
260
|
+
label: "联系人",
|
|
261
|
+
name: "contactPerson"
|
|
262
|
+
}, {
|
|
263
|
+
default: b(() => [f(r, {
|
|
264
|
+
value: y(H).contactPerson,
|
|
265
|
+
"onUpdate:value": t[8] ||= (e) => y(H).contactPerson = e
|
|
266
|
+
}, null, 8, ["value"])]),
|
|
267
|
+
_: 1
|
|
268
|
+
}),
|
|
269
|
+
f(n, {
|
|
270
|
+
label: "联系方式",
|
|
271
|
+
name: "contactMobile"
|
|
272
|
+
}, {
|
|
273
|
+
default: b(() => [f(r, {
|
|
274
|
+
value: y(H).contactMobile,
|
|
275
|
+
"onUpdate:value": t[9] ||= (e) => y(H).contactMobile = e
|
|
276
|
+
}, null, 8, ["value"])]),
|
|
277
|
+
_: 1
|
|
278
|
+
})
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
}, 8, ["model"])]),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 8, ["open", "title"]);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
}), L = /* @__PURE__ */ e({ default: () => R }), R = I;
|
|
287
|
+
//#endregion
|
|
288
|
+
export { L as n, j as r, R as t };
|