@pubinfo-pr/module-rbac 0.228.1 → 0.231.1
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/{ComponentSelect-CYmAgdm3.js → ComponentSelect-CWokGm7B.js} +665 -668
- package/dist/{DynamicRoutesForm-CMF3oh8h.js → DynamicRoutesForm-CstxkG5g.js} +2 -2
- package/dist/{HoverCard-B-uU48hF.js → HoverCard-ZGaQxL_a.js} +1 -1
- package/dist/{IconSelect-CvxGRN_O.js → IconSelect-_oirLsYS.js} +2 -2
- package/dist/ImportExport-BVxWc6FR.js +2 -0
- package/dist/{ImportExport-CzZssb7_.js → ImportExport-Cy_4EJLq.js} +4 -4
- package/dist/{LayoutForm-Bpdyi_2o.js → LayoutForm-_vBGeWiz.js} +3 -3
- package/dist/{MetaForm-ZLzLz68d.js → MetaForm-5_KpiusU.js} +4341 -4342
- package/dist/{OrgAndPosition-B0RE1Vc_.js → OrgAndPosition-COhhOBJL.js} +2 -2
- package/dist/{OrgSelector-C2rPIonI.js → OrgSelector-BX08YC6x.js} +314 -308
- package/dist/OrgUserSelector-DmmJMv-T.js +257 -0
- package/dist/{ResourceEdit-9fvxbd0K.js → ResourceEdit-3mgwBq-u.js} +9 -9
- package/dist/ResourceEdit-CsfgDKOf.js +2 -0
- package/dist/{ResourceRelation-IJvXnlpo.js → ResourceRelation-B4652Ceb.js} +3 -3
- package/dist/{ResourceRelation-BrluMHdX.js → ResourceRelation-R6cdzbIi.js} +3 -4
- package/dist/ResourceSelector-CS6VsQR7.js +237 -0
- package/dist/ResourceSelector.css +1 -0
- package/dist/{RoleRelation-DuRuQG08.js → RoleRelation-DCIke8tM.js} +2 -2
- package/dist/{RoleSelector-BTNYbcC6.js → RoleSelector-AE2dfmlz.js} +2 -2
- package/dist/{TenantEdit-Df3gZKLA.js → TenantEdit-KZYEtH3w.js} +4 -4
- package/dist/{UserAuthorization-DX7jNDDe.js → UserAuthorization-DOpcNUCm.js} +4 -4
- package/dist/{UserEdit-BLb0n7WM.js → UserEdit-BptyAvXG.js} +5 -5
- package/dist/{_baseClone-C7vkGgsW.js → _baseClone-YaHrtIbN.js} +1 -1
- package/dist/_baseSlice-Ca-qgxJ8.js +9 -0
- package/dist/{_initCloneObject-r-eWKqzl.js → _initCloneObject-D4OWzQJP.js} +3 -3
- package/dist/_plugin-vue_export-helper-gLzyemvl.js +8 -0
- package/dist/{animation_item-Coe-B0jQ.js → animation_item-ugNUvN0t.js} +7 -9
- 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/{blackWhiteList-d6TVsK48.js → blackWhiteList-SNDF6H2d.js} +9 -9
- package/dist/{breadcrumb_setting-DMbvWP5t.js → breadcrumb_setting-DnAbw6Ty.js} +4 -6
- package/dist/{cloneDeep-REaxTPsZ.js → cloneDeep-DmYKbzBt.js} +1 -1
- package/dist/configData-CSxIdgBO.js +110 -0
- package/dist/{createAndEditDataPermission-OunqmBu_.js → createAndEditDataPermission-0LzmHcCV.js} +10 -9
- package/dist/{data-permission-2pzeFLxP.js → data-permission-BNwvh8Cy.js} +5 -10
- package/dist/{dictionary-DGqlAhRk.js → dictionary-DDTrw8BQ.js} +3 -4
- package/dist/{drawerBlackWhiteList-VxyjaBkA.js → drawerBlackWhiteList-dHAREMtd.js} +3 -3
- package/dist/{drawerDictionary-DhAB-LV9.js → drawerDictionary-Dq0MnTak.js} +3 -3
- package/dist/{drawerDictionaryItem-DYsJzZ2f.js → drawerDictionaryItem-C3XC0ZTH.js} +3 -3
- package/dist/{drawerGroup-CTO8Lmbb.js → drawerGroup-BzQHpv61.js} +11 -11
- package/dist/drawerOrganization-BvQcr5AP.js +289 -0
- package/dist/{drawerPosition-BmM9mLlP.js → drawerPosition-Cc6zxMDa.js} +3 -3
- package/dist/{drawerRegion-BD-xc1x2.js → drawerRegion-r3LaT1oP.js} +3 -3
- package/dist/{drawerRole-Cjp9iDsa.js → drawerRole-Bh3eb9Hr.js} +4 -4
- package/dist/{drawerRole-CgAPM-0g.js → drawerRole-CXDcX8Wv.js} +3 -3
- package/dist/{drawerRole-B348x40k.js → drawerRole-saCktlhp.js} +4 -4
- package/dist/{group-C6Rj3K5I.js → group-BKjChIg2.js} +4 -7
- package/dist/index.css +1 -1
- package/dist/index.js +168 -772
- package/dist/{isEmpty-2rx9iUQv.js → isEmpty-CxzDo-wx.js} +1 -1
- package/dist/{isEqual-CNeQLaCM.js → isEqual-CItLfH0k.js} +1 -1
- package/dist/{itemlist-BGe-z1IR.js → itemlist-BowSBoEx.js} +3 -4
- package/dist/{layout_setting-Cds3TCHc.js → layout_setting-DOodE1ZC.js} +3 -3
- package/dist/{loginHistoryDetail-Coba_ajy.js → loginHistoryDetail-D49ObmJp.js} +2 -2
- package/dist/{login_history-CrXkEsHb.js → login_history-Bio4B_vj.js} +3 -5
- package/dist/{menu_setting-Br5dOEUk.js → menu_setting-BPqs2Reh.js} +4 -6
- package/dist/{operateHistoryDetail-DfDQL5BF.js → operateHistoryDetail-DdEjFBPD.js} +2 -2
- package/dist/{operate_history-BtHgPhmF.js → operate_history-KQGzD4rn.js} +3 -5
- package/dist/{organization-BbFERZ1l.js → organization-BPJXMIsl.js} +20 -25
- package/dist/{other_setting-D92SlFvl.js → other_setting-BmN5mDQu.js} +4 -6
- package/dist/{page_animation_setting-Cy2R0vZy.js → page_animation_setting-B0ZMSxPR.js} +4 -4
- package/dist/{page_w_setting-DryWrqcx.js → page_w_setting-D4rHkTZk.js} +3 -3
- package/dist/{position-B1bqGly6.js → position-Bqcr98mj.js} +2 -3
- package/dist/{region-B_n1KXMG.js → region-BYNJ5YPt.js} +3 -4
- package/dist/{resource-CPNNd1l0.js → resource-BAjLl4BQ.js} +6 -16
- package/dist/{role-CMd7WDRC.js → role-B92mU8Xy.js} +3 -5
- package/dist/{role_group-DHh2s911.js → role_group-B8A2VV7y.js} +2 -4
- package/dist/{safe_setting-CuTBmUve.js → safe_setting-Ct-ZuM22.js} +7 -8
- package/dist/setItem-DEsf8kVv.js +2 -0
- package/dist/{setItem-DlhIkIgh.js → setItem-xdOcMJ1t.js} +3 -3
- package/dist/{tabbar_setting-CjW9LGPp.js → tabbar_setting-D_yX_4DE.js} +4 -6
- package/dist/{tenant-B_vgufMG.js → tenant-C9ecwsxr.js} +3 -4
- package/dist/{theme_setting-DMP0_nZ1.js → theme_setting-CVKpSR14.js} +3 -3
- package/dist/{toolbar_setting-ClxxvA7R.js → toolbar_setting-D09MJTQ0.js} +4 -6
- package/dist/{useAppAndResource-D6WnpUPR.js → useAppAndResource-CBlPPcNy.js} +2 -2
- package/dist/{user-BhytPqnx.js → user-DJ35BYay.js} +5 -10
- package/dist/{watermark_setting-b3vBYWwY.js → watermark_setting-Cr4Xmwhh.js} +4 -4
- package/package.json +4 -4
- 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/components/OrgUserSelector/provider.ts +2 -2
- package/src/views/organization/components/drawerOrganization.vue +43 -0
- package/dist/ImportExport-b1SnWRLj.js +0 -6
- package/dist/ResourceEdit-BMqfJ3aQ.js +0 -13
- package/dist/api/modules/assist/gonggaofuwu.d.ts +0 -43
- package/dist/drawerOrganization-DWhTc1fB.js +0 -253
- package/dist/setItem-BwXZ5Uqx.js +0 -4
- package/src/api/modules/assist/gonggaofuwu.ts +0 -124
- /package/dist/{HCheckList-CAhQwX7m.js → HCheckList-D6BkIlte.js} +0 -0
- /package/dist/{add-child-DPb_m2by.js → add-child-SqHvzhn2.js} +0 -0
- /package/dist/{assist-BRMYD-oT.js → assist-CCEHZYbk.js} +0 -0
- /package/dist/{authority-B9wtmsQd.js → authority-DZG6frqG.js} +0 -0
- /package/dist/{authorize-DxrutyIG.js → authorize-RS7p0wpP.js} +0 -0
- /package/dist/{blacklist-disable-BKSw91qq.js → blacklist-disable-ZtV-YVD4.js} +0 -0
- /package/dist/{blacklist-enable-CIB1fOHT.js → blacklist-enable-litWbSHv.js} +0 -0
- /package/dist/{browser-chrome-CM60RcrG.js → browser-chrome-BiVlXqFZ.js} +0 -0
- /package/dist/{browser-edge-4LBRzooM.js → browser-edge-D5PWVn6o.js} +0 -0
- /package/dist/{browser-ie-BF-wqbf6.js → browser-ie-BgsN3Ne3.js} +0 -0
- /package/dist/{browser-other-iXJH-9iL.js → browser-other-DMB23plx.js} +0 -0
- /package/dist/{browser-safari-CIpt0yPc.js → browser-safari-CvpCuRD1.js} +0 -0
- /package/dist/{browserType-Bik20-72.js → browserType-KQp2uAi9.js} +0 -0
- /package/dist/{dayjs.min-CJunOGCc.js → dayjs.min-BgJlrzRN.js} +0 -0
- /package/dist/{dist-DxAYQq3U.js → dist--qcnkvZ0.js} +0 -0
- /package/dist/{edit-Drp8yjRe.js → edit-B3kW-D-h.js} +0 -0
- /package/dist/{enum-DS4SGhiF.js → enum-CE12tD9J.js} +0 -0
- /package/dist/{enum-CR5ztb5v2.js → enum-CI_B-PzB2.js} +0 -0
- /package/dist/{enum-CG0P82pn.js → enum-DPlX5kGz.js} +0 -0
- /package/dist/{enum-zdKA3Jy-.js → enum-K9XzmA01.js} +0 -0
- /package/dist/{enum-CYCebJeC.js → enum-lpo6KsjD.js} +0 -0
- /package/dist/{icard-BULUUV5m.js → icard-CjidQkoC.js} +0 -0
- /package/dist/{icon_animation-DuEY1FMm.js → icon_animation-DeNcSU6L.js} +0 -0
- /package/dist/{icon_breadcrumb-Y788iP_T.js → icon_breadcrumb-Bpjp0d0O.js} +0 -0
- /package/dist/{icon_copyright-C1BER6kq.js → icon_copyright-B8OgrlNo.js} +0 -0
- /package/dist/{icon_jt-ICOdrIF6.js → icon_jt-DfKcGg_Q.js} +0 -0
- /package/dist/{icon_layout-D_wV9rX3.js → icon_layout-W4bq7wfz.js} +0 -0
- /package/dist/{icon_mainpage-Cz6_cxpJ.js → icon_mainpage-C38tMFtH.js} +0 -0
- /package/dist/{icon_menu-y7SblUoR.js → icon_menu-CBLk6iMA.js} +0 -0
- /package/dist/{icon_page_size-BjwT656E.js → icon_page_size-CYjv-vP3.js} +0 -0
- /package/dist/{icon_position_type-CPxcDgmM.js → icon_position_type-IasquxGG.js} +0 -0
- /package/dist/{icon_safe_manage-CoqVRBLl.js → icon_safe_manage-CV1MBNKv.js} +0 -0
- /package/dist/{icon_screen_scale-DURlkq3C.js → icon_screen_scale-Cu1qHiz_.js} +0 -0
- /package/dist/{icon_system_manage-BLXs2CQg.js → icon_system_manage-Lgt_k1uF.js} +0 -0
- /package/dist/{icon_tabbar-_0QWhSBV.js → icon_tabbar-DwBJfDbP.js} +0 -0
- /package/dist/{icon_toolbar-BXpfu0iq.js → icon_toolbar-DN25KLtF.js} +0 -0
- /package/dist/{icon_topbar-DrwvB8Jw.js → icon_topbar-l89sztnQ.js} +0 -0
- /package/dist/{icon_watermark-DwNqjAiA.js → icon_watermark-DL6f1aYx.js} +0 -0
- /package/dist/{log-center-BrGlNhMd.js → log-center-BfPDO_E8.js} +0 -0
- /package/dist/{log-DOMU9MyH.js → log-epFUj_5H.js} +0 -0
- /package/dist/{not-data-C-MacYF3.js → not-data-C6xyifvi.js} +0 -0
- /package/dist/{org-main-BRMBumDm.js → org-main-BbPnTL9E.js} +0 -0
- /package/dist/{org-unmain-0BHnrNdD.js → org-unmain-QSDnl74k.js} +0 -0
- /package/dist/{rbac-B59CVHDt.js → rbac-MKC8Y6Bl.js} +0 -0
- /package/dist/{remove-BTME2Fhs.js → remove-4enQSlxs.js} +0 -0
- /package/dist/{resource-app-D8to3Lkn.js → resource-app-U0GIaRHX.js} +0 -0
- /package/dist/{resource-btn-Cz-A_EQF.js → resource-btn-BYZaDWcM.js} +0 -0
- /package/dist/{resource-dynamic-BUqWxUiU.js → resource-dynamic-DqIjQcBG.js} +0 -0
- /package/dist/{resource-index-D2roT002.js → resource-index-gVQ9qSGV.js} +0 -0
- /package/dist/{resource-menu-BRER68rK.js → resource-menu-Cp6r9eRI.js} +0 -0
- /package/dist/{resource-micro-Hyucl9de.js → resource-micro-BxycfE8K.js} +0 -0
- /package/dist/{resource-nonmenu-7FcPEpHv.js → resource-nonmenu-CvGE_ILo.js} +0 -0
- /package/dist/{setting-manage-UHelpLrr.js → setting-manage-BIiyA0Mh.js} +0 -0
- /package/dist/{stores-C-zbXsms.js → stores-kAilSV2k.js} +0 -0
- /package/dist/{theme-check-mark-DRzx4sTs.js → theme-check-mark-C2J6cCwx.js} +0 -0
- /package/dist/{theme-title-BRvQ_qPg.js → theme-title-D5K9nUws.js} +0 -0
- /package/dist/{vanilla-picker-2HFham9c.js → vanilla-picker-yba16Mqn.js} +0 -0
- /package/dist/{view-Cridj7u2.js → view-Bckjhd1X.js} +0 -0
- /package/dist/{zddata-CnvPWtIW.js → zddata-DSibBPmo.js} +0 -0
- /package/dist/{zy_checked-C25HQlnr.js → zy_checked-CeABq1Mr.js} +0 -0
- /package/dist/{zy_default-B7RKtyqy.js → zy_default-DhiBHEmX.js} +0 -0
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
import { ACTION } from '../enum';
|
|
9
10
|
|
|
10
11
|
defineOptions({
|
|
@@ -41,13 +42,25 @@ getDictItemList({ dictCode: 'orgType' }).then((res: API.ResponseDataListDictItem
|
|
|
41
42
|
});
|
|
42
43
|
});
|
|
43
44
|
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
|
+
}[]>([]);
|
|
44
51
|
async function onOpen(key: ACTION, record?: API.PubOrg) {
|
|
45
52
|
setOpen(true);
|
|
46
53
|
state.title = key;
|
|
54
|
+
selectedUsers.value = [];
|
|
47
55
|
if (key === ACTION.EDIT) {
|
|
48
56
|
const res = await getRbacOrgInfo({ id: record?.id as string });
|
|
49
57
|
if (res.success) {
|
|
50
58
|
form.value = res.data ?? {};
|
|
59
|
+
selectedUsers.value = [{
|
|
60
|
+
orgId: res.data?.leaderUserOrgId ?? '',
|
|
61
|
+
userId: res.data?.leaderUserId ?? '',
|
|
62
|
+
userName: res.data?.leaderUserName ?? '',
|
|
63
|
+
}];
|
|
51
64
|
}
|
|
52
65
|
}
|
|
53
66
|
else if (key === ACTION.ADDNEXT) {
|
|
@@ -67,12 +80,34 @@ async function onOpen(key: ACTION, record?: API.PubOrg) {
|
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
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
|
+
|
|
70
100
|
const [loading, setLoading] = useToggle(false);
|
|
71
101
|
function onSubmit() {
|
|
72
102
|
const request = state.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
|
|
73
103
|
formRef.value?.validate().then(() => {
|
|
74
104
|
setLoading(true);
|
|
75
105
|
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
|
+
}
|
|
76
111
|
request(params)
|
|
77
112
|
.then((res: API.ResponseDataPubOrg) => {
|
|
78
113
|
if (res.success) {
|
|
@@ -137,6 +172,14 @@ defineExpose({
|
|
|
137
172
|
<a-form-item label="排序">
|
|
138
173
|
<a-input-number v-model:value="form.sort" />
|
|
139
174
|
</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>
|
|
140
183
|
<a-form-item label="统一社会信用代码" name="creditCode">
|
|
141
184
|
<a-input v-model:value="form.creditCode" />
|
|
142
185
|
</a-form-item>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "./view-lBxqXfPW.js";
|
|
2
|
-
import "./request-7X2hpUru.js";
|
|
3
|
-
import "./MetaForm-ZLzLz68d.js";
|
|
4
|
-
import "./ComponentSelect-CYmAgdm3.js";
|
|
5
|
-
import "./rbac-B59CVHDt.js";
|
|
6
|
-
import "./enum-CYCebJeC.js";
|
|
7
|
-
import "./enum-CR5ztb5v2.js";
|
|
8
|
-
import "./DynamicRoutesForm-CMF3oh8h.js";
|
|
9
|
-
import "./HoverCard-B-uU48hF.js";
|
|
10
|
-
import "./IconSelect-CvxGRN_O.js";
|
|
11
|
-
import "./LayoutForm-Bpdyi_2o.js";
|
|
12
|
-
import { t as e } from "./ResourceEdit-9fvxbd0K.js";
|
|
13
|
-
export { e as default };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { basic as request } from '@/api/request';
|
|
2
|
-
/**
|
|
3
|
-
* @description 删除公告服务
|
|
4
|
-
* @url /notice/deleteNotice
|
|
5
|
-
* @method GET
|
|
6
|
-
* @author @pubinfo/openapi
|
|
7
|
-
*/
|
|
8
|
-
export declare function getNoticeDeleteNotice<R = API.ResponseData, T = API.ResponseData>(params: API.getNoticeDeleteNoticeParams, options?: Parameters<typeof request.Get<R, T>>[1]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo-pr").AG, R, T>>;
|
|
9
|
-
/**
|
|
10
|
-
* @description 删除公告推送基本信息
|
|
11
|
-
* @url /notice/deleteNoticeSend
|
|
12
|
-
* @method GET
|
|
13
|
-
* @author @pubinfo/openapi
|
|
14
|
-
*/
|
|
15
|
-
export declare function getNoticeDeleteNoticeSend<R = API.ResponseData, T = API.ResponseData>(params: API.getNoticeDeleteNoticeSendParams, options?: Parameters<typeof request.Get<R, T>>[1]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo-pr").AG, R, T>>;
|
|
16
|
-
/**
|
|
17
|
-
* @description 公告服务详情
|
|
18
|
-
* @url /notice/detailNotice
|
|
19
|
-
* @method GET
|
|
20
|
-
* @author @pubinfo/openapi
|
|
21
|
-
*/
|
|
22
|
-
export declare function getNoticeDetailNotice<R = API.ResponseData, T = API.ResponseData>(params: API.getNoticeDetailNoticeParams, options?: Parameters<typeof request.Get<R, T>>[1]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo-pr").AG, R, T>>;
|
|
23
|
-
/**
|
|
24
|
-
* @description 公告分页查询
|
|
25
|
-
* @url /notice/pageNotice
|
|
26
|
-
* @method POST
|
|
27
|
-
* @author @pubinfo/openapi
|
|
28
|
-
*/
|
|
29
|
-
export declare function postNoticePageNotice<R = API.ResponseDataPageDataPubNotice, T = API.ResponseDataPageDataPubNotice>(body: API.PubNoticePageDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo-pr").AG, R, T>>;
|
|
30
|
-
/**
|
|
31
|
-
* @description 新增或编辑公告服务
|
|
32
|
-
* @url /notice/saveOrUpdateNotice
|
|
33
|
-
* @method POST
|
|
34
|
-
* @author @pubinfo/openapi
|
|
35
|
-
*/
|
|
36
|
-
export declare function postNoticeSaveOrUpdateNotice<R = API.ResponseData, T = API.ResponseData>(body: API.PubNoticeDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo-pr").AG, R, T>>;
|
|
37
|
-
/**
|
|
38
|
-
* @description 新增或编辑公告推送基本信息
|
|
39
|
-
* @url /notice/saveOrUpdateNoticeSend
|
|
40
|
-
* @method POST
|
|
41
|
-
* @author @pubinfo/openapi
|
|
42
|
-
*/
|
|
43
|
-
export declare function postNoticeSaveOrUpdateNoticeSend<R = API.ResponseData, T = API.ResponseData>(body: API.PubNoticeSendDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo-pr").AG, R, T>>;
|
|
@@ -1,253 +0,0 @@
|
|
|
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 } from "./index.js";
|
|
5
|
-
import { createBlock as o, createCommentVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, isRef as d, openBlock as f, reactive as p, ref as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
6
|
-
import { message as v } from "ant-design-vue";
|
|
7
|
-
import { Button as y, Drawer as b, Form as x, FormItem as S, Input as C, InputNumber as w, Select as T, Space as E, Switch as D } from "ant-design-vue/es";
|
|
8
|
-
//#region src/views/organization/enum.ts
|
|
9
|
-
var O = /* @__PURE__ */ function(e) {
|
|
10
|
-
return e.AUTHORIZE = "授权", e.ADD = "新增", e.ADDNEXT = "新增下级", e.EDIT = "编辑", e.REMOVE = "删除", e;
|
|
11
|
-
}({}), k = /* @__PURE__ */ function(e) {
|
|
12
|
-
return e.OWNER = "1", e.ALL = "2", e;
|
|
13
|
-
}({}), A = /* @__PURE__ */ function(e) {
|
|
14
|
-
return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
|
|
15
|
-
}({});
|
|
16
|
-
k.OWNER, k.ALL, A.ON, A.OFF;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/views/organization/components/drawerOrganization.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
-
var j = /* @__PURE__ */ u({
|
|
20
|
-
name: "OrganizationEdit",
|
|
21
|
-
__name: "drawerOrganization",
|
|
22
|
-
emits: ["submit"],
|
|
23
|
-
setup(e, { expose: u, emit: k }) {
|
|
24
|
-
let A = k, j = {
|
|
25
|
-
name: [{
|
|
26
|
-
required: !0,
|
|
27
|
-
message: "请输入组织名称",
|
|
28
|
-
trigger: "blur"
|
|
29
|
-
}, {
|
|
30
|
-
max: 128,
|
|
31
|
-
message: "长度不能超过128位",
|
|
32
|
-
trigger: "change"
|
|
33
|
-
}],
|
|
34
|
-
code: [{
|
|
35
|
-
required: !0,
|
|
36
|
-
message: "请输入组织编码",
|
|
37
|
-
trigger: "blur"
|
|
38
|
-
}, {
|
|
39
|
-
max: 50,
|
|
40
|
-
message: "长度不能超过50位",
|
|
41
|
-
trigger: "change"
|
|
42
|
-
}],
|
|
43
|
-
type: [{
|
|
44
|
-
required: !0,
|
|
45
|
-
message: "请输入组织类型",
|
|
46
|
-
trigger: "blur"
|
|
47
|
-
}],
|
|
48
|
-
areaCode: [{
|
|
49
|
-
max: 16,
|
|
50
|
-
message: "长度不能超过16位",
|
|
51
|
-
trigger: "change"
|
|
52
|
-
}],
|
|
53
|
-
creditCode: [{
|
|
54
|
-
max: 50,
|
|
55
|
-
message: "长度不能超过50位",
|
|
56
|
-
trigger: "change"
|
|
57
|
-
}],
|
|
58
|
-
contactPerson: [{
|
|
59
|
-
max: 50,
|
|
60
|
-
message: "长度不能超过50位",
|
|
61
|
-
trigger: "change"
|
|
62
|
-
}],
|
|
63
|
-
contactMobile: [{
|
|
64
|
-
max: 20,
|
|
65
|
-
message: "长度不能超过20位",
|
|
66
|
-
trigger: "change"
|
|
67
|
-
}]
|
|
68
|
-
}, M = p({
|
|
69
|
-
title: "",
|
|
70
|
-
type: ""
|
|
71
|
-
}), [N, P] = t(!1), F = m(), I = m([]);
|
|
72
|
-
a({ dictCode: "orgType" }).then((e) => {
|
|
73
|
-
I.value = e.data?.map((e) => ({
|
|
74
|
-
label: e.dictLabel,
|
|
75
|
-
value: e.dictValue
|
|
76
|
-
}));
|
|
77
|
-
});
|
|
78
|
-
let L = m({
|
|
79
|
-
parentId: "",
|
|
80
|
-
enable: !0
|
|
81
|
-
});
|
|
82
|
-
async function R(e, t) {
|
|
83
|
-
if (P(!0), M.title = e, e === O.EDIT) {
|
|
84
|
-
let e = await r({ id: t?.id });
|
|
85
|
-
e.success && (L.value = e.data ?? {});
|
|
86
|
-
} else e === O.ADDNEXT ? L.value = {
|
|
87
|
-
parentName: t?.name,
|
|
88
|
-
parentId: t?.id,
|
|
89
|
-
enable: !0,
|
|
90
|
-
district: !1
|
|
91
|
-
} : L.value = {
|
|
92
|
-
parentId: "",
|
|
93
|
-
enable: !0,
|
|
94
|
-
district: !1
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
let [z, B] = t(!1);
|
|
98
|
-
function V() {
|
|
99
|
-
let e = M.title === O.EDIT ? n : i;
|
|
100
|
-
F.value?.validate().then(() => {
|
|
101
|
-
B(!0), e({ ...L.value }).then((e) => {
|
|
102
|
-
e.success && (v.success(`${M.title}成功!`), P(!1), A("submit", { ...L.value }));
|
|
103
|
-
}).finally(() => B(!1));
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
function H() {
|
|
107
|
-
L.value = { enable: !1 }, P(!1);
|
|
108
|
-
}
|
|
109
|
-
return u({ open: R }), (e, t) => {
|
|
110
|
-
let n = S, r = C, i = T, a = D, u = w, p = x, m = y, v = E, O = b;
|
|
111
|
-
return f(), o(O, {
|
|
112
|
-
open: g(N),
|
|
113
|
-
"onUpdate:open": t[11] ||= (e) => d(N) ? N.value = e : null,
|
|
114
|
-
title: `${g(M).title}组织`,
|
|
115
|
-
placement: "right",
|
|
116
|
-
width: 600,
|
|
117
|
-
"destroy-on-close": "",
|
|
118
|
-
"footer-style": { textAlign: "right" },
|
|
119
|
-
onClose: H
|
|
120
|
-
}, {
|
|
121
|
-
footer: _(() => [l(v, null, {
|
|
122
|
-
default: _(() => [l(m, { onClick: H }, {
|
|
123
|
-
default: _(() => [...t[12] ||= [c(" 取消 ", -1)]]),
|
|
124
|
-
_: 1
|
|
125
|
-
}), l(m, {
|
|
126
|
-
type: "primary",
|
|
127
|
-
loading: g(z),
|
|
128
|
-
onClick: t[10] ||= (e) => V()
|
|
129
|
-
}, {
|
|
130
|
-
default: _(() => [...t[13] ||= [c(" 提交 ", -1)]]),
|
|
131
|
-
_: 1
|
|
132
|
-
}, 8, ["loading"])]),
|
|
133
|
-
_: 1
|
|
134
|
-
})]),
|
|
135
|
-
default: _(() => [l(p, {
|
|
136
|
-
ref_key: "formRef",
|
|
137
|
-
ref: F,
|
|
138
|
-
model: g(L),
|
|
139
|
-
rules: j,
|
|
140
|
-
"label-col": { span: 6 },
|
|
141
|
-
"label-wrap": !0
|
|
142
|
-
}, {
|
|
143
|
-
default: _(() => [
|
|
144
|
-
g(L).parentId !== "" && g(L).parentId !== "0" ? (f(), o(n, {
|
|
145
|
-
key: 0,
|
|
146
|
-
label: "所属上级"
|
|
147
|
-
}, {
|
|
148
|
-
default: _(() => [c(h(g(L).parentName), 1)]),
|
|
149
|
-
_: 1
|
|
150
|
-
})) : s("", !0),
|
|
151
|
-
l(n, {
|
|
152
|
-
label: "组织名称",
|
|
153
|
-
name: "name"
|
|
154
|
-
}, {
|
|
155
|
-
default: _(() => [l(r, {
|
|
156
|
-
value: g(L).name,
|
|
157
|
-
"onUpdate:value": t[0] ||= (e) => g(L).name = e
|
|
158
|
-
}, null, 8, ["value"])]),
|
|
159
|
-
_: 1
|
|
160
|
-
}),
|
|
161
|
-
l(n, {
|
|
162
|
-
label: "组织编码",
|
|
163
|
-
name: "code"
|
|
164
|
-
}, {
|
|
165
|
-
default: _(() => [l(r, {
|
|
166
|
-
value: g(L).code,
|
|
167
|
-
"onUpdate:value": t[1] ||= (e) => g(L).code = e
|
|
168
|
-
}, null, 8, ["value"])]),
|
|
169
|
-
_: 1
|
|
170
|
-
}),
|
|
171
|
-
l(n, {
|
|
172
|
-
label: "组织类型",
|
|
173
|
-
name: "type"
|
|
174
|
-
}, {
|
|
175
|
-
default: _(() => [l(i, {
|
|
176
|
-
value: g(L).type,
|
|
177
|
-
"onUpdate:value": t[2] ||= (e) => g(L).type = e,
|
|
178
|
-
options: g(I)
|
|
179
|
-
}, null, 8, ["value", "options"])]),
|
|
180
|
-
_: 1
|
|
181
|
-
}),
|
|
182
|
-
l(n, { label: "是否行政区划" }, {
|
|
183
|
-
default: _(() => [l(a, {
|
|
184
|
-
checked: g(L).district,
|
|
185
|
-
"onUpdate:checked": t[3] ||= (e) => g(L).district = e
|
|
186
|
-
}, null, 8, ["checked"])]),
|
|
187
|
-
_: 1
|
|
188
|
-
}),
|
|
189
|
-
g(L).district ? (f(), o(n, {
|
|
190
|
-
key: 1,
|
|
191
|
-
label: "行政区划编码",
|
|
192
|
-
name: "areaCode"
|
|
193
|
-
}, {
|
|
194
|
-
default: _(() => [l(r, {
|
|
195
|
-
value: g(L).areaCode,
|
|
196
|
-
"onUpdate:value": t[4] ||= (e) => g(L).areaCode = e
|
|
197
|
-
}, null, 8, ["value"])]),
|
|
198
|
-
_: 1
|
|
199
|
-
})) : s("", !0),
|
|
200
|
-
l(n, { label: "是否启用" }, {
|
|
201
|
-
default: _(() => [l(a, {
|
|
202
|
-
checked: g(L).enable,
|
|
203
|
-
"onUpdate:checked": t[5] ||= (e) => g(L).enable = e
|
|
204
|
-
}, null, 8, ["checked"])]),
|
|
205
|
-
_: 1
|
|
206
|
-
}),
|
|
207
|
-
l(n, { label: "排序" }, {
|
|
208
|
-
default: _(() => [l(u, {
|
|
209
|
-
value: g(L).sort,
|
|
210
|
-
"onUpdate:value": t[6] ||= (e) => g(L).sort = e
|
|
211
|
-
}, null, 8, ["value"])]),
|
|
212
|
-
_: 1
|
|
213
|
-
}),
|
|
214
|
-
l(n, {
|
|
215
|
-
label: "统一社会信用代码",
|
|
216
|
-
name: "creditCode"
|
|
217
|
-
}, {
|
|
218
|
-
default: _(() => [l(r, {
|
|
219
|
-
value: g(L).creditCode,
|
|
220
|
-
"onUpdate:value": t[7] ||= (e) => g(L).creditCode = e
|
|
221
|
-
}, null, 8, ["value"])]),
|
|
222
|
-
_: 1
|
|
223
|
-
}),
|
|
224
|
-
l(n, {
|
|
225
|
-
label: "联系人",
|
|
226
|
-
name: "contactPerson"
|
|
227
|
-
}, {
|
|
228
|
-
default: _(() => [l(r, {
|
|
229
|
-
value: g(L).contactPerson,
|
|
230
|
-
"onUpdate:value": t[8] ||= (e) => g(L).contactPerson = e
|
|
231
|
-
}, null, 8, ["value"])]),
|
|
232
|
-
_: 1
|
|
233
|
-
}),
|
|
234
|
-
l(n, {
|
|
235
|
-
label: "联系方式",
|
|
236
|
-
name: "contactMobile"
|
|
237
|
-
}, {
|
|
238
|
-
default: _(() => [l(r, {
|
|
239
|
-
value: g(L).contactMobile,
|
|
240
|
-
"onUpdate:value": t[9] ||= (e) => g(L).contactMobile = e
|
|
241
|
-
}, null, 8, ["value"])]),
|
|
242
|
-
_: 1
|
|
243
|
-
})
|
|
244
|
-
]),
|
|
245
|
-
_: 1
|
|
246
|
-
}, 8, ["model"])]),
|
|
247
|
-
_: 1
|
|
248
|
-
}, 8, ["open", "title"]);
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
}), M = /* @__PURE__ */ e({ default: () => N }), N = j;
|
|
252
|
-
//#endregion
|
|
253
|
-
export { M as n, O as r, N as t };
|
package/dist/setItem-BwXZ5Uqx.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { basic as request } from '@/api/request';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description 删除公告服务
|
|
5
|
-
* @url /notice/deleteNotice
|
|
6
|
-
* @method GET
|
|
7
|
-
* @author @pubinfo/openapi
|
|
8
|
-
*/
|
|
9
|
-
export function getNoticeDeleteNotice<
|
|
10
|
-
R = API.ResponseData,
|
|
11
|
-
T = API.ResponseData,
|
|
12
|
-
>(
|
|
13
|
-
params: API.getNoticeDeleteNoticeParams,
|
|
14
|
-
options?: Parameters<typeof request.Get<R, T>>[1],
|
|
15
|
-
) {
|
|
16
|
-
return request.Get<R, T>('/notice/deleteNotice', {
|
|
17
|
-
params: {
|
|
18
|
-
...params,
|
|
19
|
-
},
|
|
20
|
-
...(options || {}),
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @description 删除公告推送基本信息
|
|
26
|
-
* @url /notice/deleteNoticeSend
|
|
27
|
-
* @method GET
|
|
28
|
-
* @author @pubinfo/openapi
|
|
29
|
-
*/
|
|
30
|
-
export function getNoticeDeleteNoticeSend<
|
|
31
|
-
R = API.ResponseData,
|
|
32
|
-
T = API.ResponseData,
|
|
33
|
-
>(
|
|
34
|
-
params: API.getNoticeDeleteNoticeSendParams,
|
|
35
|
-
options?: Parameters<typeof request.Get<R, T>>[1],
|
|
36
|
-
) {
|
|
37
|
-
return request.Get<R, T>('/notice/deleteNoticeSend', {
|
|
38
|
-
params: {
|
|
39
|
-
...params,
|
|
40
|
-
},
|
|
41
|
-
...(options || {}),
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @description 公告服务详情
|
|
47
|
-
* @url /notice/detailNotice
|
|
48
|
-
* @method GET
|
|
49
|
-
* @author @pubinfo/openapi
|
|
50
|
-
*/
|
|
51
|
-
export function getNoticeDetailNotice<
|
|
52
|
-
R = API.ResponseData,
|
|
53
|
-
T = API.ResponseData,
|
|
54
|
-
>(
|
|
55
|
-
params: API.getNoticeDetailNoticeParams,
|
|
56
|
-
options?: Parameters<typeof request.Get<R, T>>[1],
|
|
57
|
-
) {
|
|
58
|
-
return request.Get<R, T>('/notice/detailNotice', {
|
|
59
|
-
params: {
|
|
60
|
-
...params,
|
|
61
|
-
},
|
|
62
|
-
...(options || {}),
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @description 公告分页查询
|
|
68
|
-
* @url /notice/pageNotice
|
|
69
|
-
* @method POST
|
|
70
|
-
* @author @pubinfo/openapi
|
|
71
|
-
*/
|
|
72
|
-
export function postNoticePageNotice<
|
|
73
|
-
R = API.ResponseDataPageDataPubNotice,
|
|
74
|
-
T = API.ResponseDataPageDataPubNotice,
|
|
75
|
-
>(
|
|
76
|
-
body: API.PubNoticePageDto,
|
|
77
|
-
options?: Parameters<typeof request.Post<R, T>>[2],
|
|
78
|
-
) {
|
|
79
|
-
return request.Post<R, T>('/notice/pageNotice', body, {
|
|
80
|
-
headers: {
|
|
81
|
-
'Content-Type': 'application/json',
|
|
82
|
-
},
|
|
83
|
-
...(options || {}),
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @description 新增或编辑公告服务
|
|
89
|
-
* @url /notice/saveOrUpdateNotice
|
|
90
|
-
* @method POST
|
|
91
|
-
* @author @pubinfo/openapi
|
|
92
|
-
*/
|
|
93
|
-
export function postNoticeSaveOrUpdateNotice<
|
|
94
|
-
R = API.ResponseData,
|
|
95
|
-
T = API.ResponseData,
|
|
96
|
-
>(body: API.PubNoticeDto, options?: Parameters<typeof request.Post<R, T>>[2]) {
|
|
97
|
-
return request.Post<R, T>('/notice/saveOrUpdateNotice', body, {
|
|
98
|
-
headers: {
|
|
99
|
-
'Content-Type': 'application/json',
|
|
100
|
-
},
|
|
101
|
-
...(options || {}),
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @description 新增或编辑公告推送基本信息
|
|
107
|
-
* @url /notice/saveOrUpdateNoticeSend
|
|
108
|
-
* @method POST
|
|
109
|
-
* @author @pubinfo/openapi
|
|
110
|
-
*/
|
|
111
|
-
export function postNoticeSaveOrUpdateNoticeSend<
|
|
112
|
-
R = API.ResponseData,
|
|
113
|
-
T = API.ResponseData,
|
|
114
|
-
>(
|
|
115
|
-
body: API.PubNoticeSendDto,
|
|
116
|
-
options?: Parameters<typeof request.Post<R, T>>[2],
|
|
117
|
-
) {
|
|
118
|
-
return request.Post<R, T>('/notice/saveOrUpdateNoticeSend', body, {
|
|
119
|
-
headers: {
|
|
120
|
-
'Content-Type': 'application/json',
|
|
121
|
-
},
|
|
122
|
-
...(options || {}),
|
|
123
|
-
});
|
|
124
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|