@pubinfo/module-rbac 2.1.10-beta.2 → 2.1.11
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-A7uGTuHW.js +3498 -0
- package/dist/{DynamicRoutesForm-DP_sq_Uu.js → DynamicRoutesForm-DSzy_bh5.js} +43 -42
- package/dist/HCheckList-ODQHidN8.js +37 -0
- package/dist/HoverCard-CmJCoa2b.js +44 -0
- package/dist/{IconSelect-CiLpc63Z.js → IconSelect-DouEg3xY.js} +89 -88
- package/dist/ImportExport-DisdLoY8.js +342 -0
- package/dist/{LayoutForm-Cp4bBrYl.js → LayoutForm-Bdfs5WeK.js} +35 -34
- package/dist/{MetaForm-CVSgktB_.js → MetaForm-CcDwS8vh.js} +6128 -6143
- package/dist/{OrgAndPosition-ClASobEv.js → OrgAndPosition-jDX7m0HD.js} +61 -60
- package/dist/{ResourceEdit-w8qh1MFO.js → ResourceEdit-0BYZRye_.js} +128 -127
- package/dist/{ResourceRelation-ChEwIbWM.js → ResourceRelation-CU-QpUhP.js} +25 -25
- package/dist/{ResourceRelation-D_j898zp.js → ResourceRelation-roz0a8Td.js} +35 -34
- package/dist/{RoleRelation-DzyVn5dk.js → RoleRelation-BQQFaum0.js} +28 -27
- package/dist/{RoleSelector-Cd6_RUsc.js → RoleSelector-gkar_UGG.js} +89 -89
- package/dist/{TenantEdit-BOvXk7BZ.js → TenantEdit-BsahDUlf.js} +94 -93
- package/dist/{UserAuthorization-DLeivbs7.js → UserAuthorization-2Fl4IGw7.js} +81 -80
- package/dist/{UserEdit-YKS1FVW_.js → UserEdit-CX3Qau8T.js} +102 -101
- package/dist/{animation_item-BU-LInxP.js → animation_item-DBOz2rcX.js} +20 -22
- package/dist/{blackWhiteList-CNQltBqC.js → blackWhiteList-DbG7JH8n.js} +69 -69
- package/dist/blackWhiteList.css +1 -1
- package/dist/breadcrumb_setting-DTR6CPZQ.js +108 -0
- package/dist/{browserType-Dn_hQtAN.js → browserType-B8A1Osvk.js} +11 -10
- package/dist/chunk-DiMWNkAf.js +18 -0
- package/dist/cloneDeep-CSOSavu3.js +6 -0
- package/dist/components/GroupSelector/index.vue.d.ts +7 -1
- package/dist/components/ResourceIcones/Select.vue.d.ts +2 -1
- package/dist/components/ResourceSelector/index.vue.d.ts +7 -1
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +9 -1
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +7 -1
- package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js} +49 -48
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/{data-permission-ZRQ-Aoib.js → data-permission-LpuDLDm0.js} +41 -41
- package/dist/{dayjs.min-sGDSMYRj.js → dayjs.min-Cb7gQFd4.js} +1 -1
- package/dist/{dictionary-CtGgtPfc.js → dictionary-CEaxjqZe.js} +46 -46
- package/dist/drawerBlackWhiteList-DXLdWurZ.js +120 -0
- package/dist/drawerDictionary-DYJTAZr6.js +126 -0
- package/dist/drawerDictionaryItem-BChXD2-q.js +138 -0
- package/dist/{drawerGroup-DEuiiDPP.js → drawerGroup-CdnZkZxi.js} +67 -66
- package/dist/drawerOrganization-CwtSFUj0.js +247 -0
- package/dist/drawerPosition-CfyfeQCN.js +166 -0
- package/dist/drawerRegion-DAwY_29K.js +183 -0
- package/dist/drawerRole-B7uCfHk-.js +154 -0
- package/dist/{drawerRole-Dv61PBZR.js → drawerRole-DK6DrinO.js} +77 -76
- package/dist/{drawerRole-DNDyOvXw.js → drawerRole-DrzMHL0O.js} +69 -68
- package/dist/{group-BbkZjv5e.js → group-CaOhkh72.js} +48 -48
- package/dist/group.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +613 -689
- package/dist/isEmpty-BjEzPyCa.js +12 -0
- package/dist/{itemlist-By-FV6pN.js → itemlist-CFwRUV2Y.js} +44 -44
- package/dist/json-asset-03f0a035.json +1 -0
- package/dist/json-asset-0ee63e7f.json +1 -0
- package/dist/json-asset-10eef4fe.json +1 -0
- package/dist/json-asset-13f452f1.json +1 -0
- package/dist/json-asset-14b7b290.json +1 -0
- package/dist/json-asset-15b8cef1.json +1 -0
- package/dist/json-asset-15f77960.json +1 -0
- package/dist/json-asset-1ae9b726.json +1 -0
- package/dist/json-asset-1b02359f.json +1 -0
- package/dist/json-asset-1ef286cd.json +1 -0
- package/dist/json-asset-23cfd18c.json +1 -0
- package/dist/json-asset-265a0a5d.json +1 -0
- package/dist/json-asset-28d57c49.json +1 -0
- package/dist/json-asset-2b54ed10.json +1 -0
- package/dist/json-asset-2bb6f642.json +1 -0
- package/dist/json-asset-2cdc07bd.json +1 -0
- package/dist/json-asset-31c58607.json +1 -0
- package/dist/json-asset-32884f23.json +1 -0
- package/dist/json-asset-32fca43a.json +1 -0
- package/dist/json-asset-3a75445b.json +1 -0
- package/dist/json-asset-3f27d67c.json +1 -0
- package/dist/json-asset-4189453f.json +1 -0
- package/dist/json-asset-4702b37c.json +1 -0
- package/dist/json-asset-520a5c68.json +1 -0
- package/dist/json-asset-56bea508.json +1 -0
- package/dist/json-asset-57c732a3.json +1 -0
- package/dist/json-asset-5be4a28f.json +1 -0
- package/dist/json-asset-5e6d7cfa.json +1 -0
- package/dist/json-asset-64e176c9.json +1 -0
- package/dist/json-asset-6583dca6.json +1 -0
- package/dist/json-asset-66c640c6.json +1 -0
- package/dist/json-asset-68393156.json +1 -0
- package/dist/json-asset-688465aa.json +1 -0
- package/dist/json-asset-6bf334f4.json +1 -0
- package/dist/json-asset-7b4f72ce.json +1 -0
- package/dist/json-asset-837ec087.json +1 -0
- package/dist/json-asset-838ac1ba.json +1 -0
- package/dist/json-asset-8465c2cf.json +1 -0
- package/dist/json-asset-9e9f04a4.json +1 -0
- package/dist/json-asset-a13964cb.json +1 -0
- package/dist/json-asset-ab93a057.json +1 -0
- package/dist/json-asset-abe308fc.json +1 -0
- package/dist/json-asset-b24f2cd3.json +1 -0
- package/dist/json-asset-bf00eaed.json +1 -0
- package/dist/json-asset-cb22efd7.json +1 -0
- package/dist/json-asset-cb953f20.json +1 -0
- package/dist/json-asset-cc209e34.json +1 -0
- package/dist/json-asset-cfdffceb.json +1 -0
- package/dist/json-asset-d33c0299.json +1 -0
- package/dist/json-asset-d430c8ca.json +1 -0
- package/dist/json-asset-d8cfa560.json +1 -0
- package/dist/json-asset-da91beb6.json +1 -0
- package/dist/json-asset-e2bdf85c.json +1 -0
- package/dist/json-asset-e34ad826.json +1 -0
- package/dist/json-asset-e80720aa.json +1 -0
- package/dist/json-asset-e894bc92.json +1 -0
- package/dist/json-asset-f28020f2.json +1 -0
- package/dist/json-asset-f71ebbf4.json +1 -0
- package/dist/json-asset-fb1f4917.json +1 -0
- package/dist/json-asset-ff2e97c4.json +1 -0
- package/dist/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
- package/dist/layout_setting.css +1 -1
- package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
- package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
- package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
- package/dist/login_history.css +1 -1
- package/dist/menu_setting-C2GciMXz.js +155 -0
- package/dist/not-data-Bml86wdH.js +3 -0
- package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
- package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
- package/dist/operate_history.css +1 -1
- package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
- package/dist/organization.css +1 -1
- package/dist/other_setting-oVuhA70c.js +213 -0
- package/dist/other_setting.css +1 -1
- package/dist/page_animation_setting-D0CtzyOZ.js +108 -0
- package/dist/page_animation_setting.css +1 -1
- package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
- package/dist/page_w_setting.css +1 -1
- package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
- package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
- package/dist/{resource-C7dXB0EE.js → resource-DaQ7CvM_.js} +69 -69
- package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
- package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
- package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
- package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
- package/dist/setItem.css +1 -1
- package/dist/tabbar_setting-DhrW4Jj5.js +139 -0
- package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
- package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
- package/dist/theme_setting.css +1 -1
- package/dist/toolbar_setting-znESrYgi.js +140 -0
- package/dist/useAppAndResource-B7FmNfKG.js +52 -0
- package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
- package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
- package/dist/views/components/setItem.vue.d.ts +5 -1
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
- package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
- package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/other_setting/interface.d.ts +1 -2
- package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
- package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
- package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
- package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
- package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
- package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
- package/dist/watermark_setting-DYirSIAn.js +191 -0
- package/dist/watermark_setting.css +1 -1
- package/package.json +13 -13
- package/src/views/other_setting/index.vue +2 -2
- package/src/views/other_setting/interface.ts +1 -1
- package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
- package/dist/ComponentSelect-WO-3S5rH.js +0 -2
- package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
- package/dist/HCheckList-B5Qk_HBI.js +0 -2
- package/dist/HCheckList-DLBewmPw.js +0 -36
- package/dist/HoverCard-69ZIOivd.js +0 -2
- package/dist/HoverCard-BDFcxxvk.js +0 -43
- package/dist/IconSelect-C_Gj5G4I.js +0 -3
- package/dist/ImportExport-CL5uPlby.js +0 -342
- package/dist/ImportExport-CPy2rvv7.js +0 -4
- package/dist/LayoutForm-QFjwakyQ.js +0 -4
- package/dist/MetaForm-Bb-um1Zo.js +0 -4
- package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
- package/dist/ResourceEdit-BTaNdwC_.js +0 -10
- package/dist/ResourceRelation-BIOzTOKA.js +0 -2
- package/dist/RoleRelation-CyTcqRfZ.js +0 -2
- package/dist/TenantEdit-BlMmL6q5.js +0 -2
- package/dist/UserAuthorization-qGr1Sdat.js +0 -3
- package/dist/UserEdit-CwfyqNWf.js +0 -3
- package/dist/animation_item-GzGItm3s.js +0 -2
- package/dist/breadcrumb_setting-Ds-XJRR1.js +0 -108
- package/dist/browserType-BXTT4j6i.js +0 -2
- package/dist/chunk-Cpsc_9al.js +0 -18
- package/dist/cloneDeep-DDAtsK42.js +0 -7
- package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
- package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
- package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
- package/dist/drawerDictionary-D911w7pC.js +0 -2
- package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
- package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
- package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
- package/dist/drawerGroup-CEEDMBg9.js +0 -3
- package/dist/drawerOrganization-CqEMD3gE.js +0 -246
- package/dist/drawerOrganization-mks5NMd9.js +0 -2
- package/dist/drawerPosition-Bd0s7qze.js +0 -165
- package/dist/drawerPosition-DwlTrlGA.js +0 -2
- package/dist/drawerRegion-DUbQAZuV.js +0 -182
- package/dist/drawerRegion-DwVzsZfT.js +0 -2
- package/dist/drawerRole-BNrbcSmr.js +0 -3
- package/dist/drawerRole-BxUIekjh.js +0 -3
- package/dist/drawerRole-CyA2oFht.js +0 -4
- package/dist/drawerRole-D5X7oHB_.js +0 -153
- package/dist/isEmpty-BvRqbmpu.js +0 -13
- package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
- package/dist/menu_setting-5Jet091Q.js +0 -155
- package/dist/not-data-Cx--tk_h.js +0 -2
- package/dist/not-data-tyTawN37.js +0 -2
- package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
- package/dist/other_setting-DQ70WnZK.js +0 -213
- package/dist/page_animation_setting-Lp6cMuFM.js +0 -108
- package/dist/routeSystem-DXMoWhFo.js +0 -2
- package/dist/setItem-Qa7UapHO.js +0 -4
- package/dist/tabbar_setting-B3kMhRNm.js +0 -139
- package/dist/toolbar_setting-DNBdxeGP.js +0 -140
- package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
- package/dist/watermark_setting-CXp4Og0Y.js +0 -191
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
+
import { C as postRbacOrgUpdateOrg, Lt as useToggle, r as getDictItemList, v as getRbacOrgInfo, x as postRbacOrgAddOrg } from "./index.js";
|
|
3
|
+
import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { message } from "ant-design-vue";
|
|
5
|
+
import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, Select, Space as Space$1, Switch } from "ant-design-vue/es";
|
|
6
|
+
let ACTION = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.AUTHORIZE = "授权", e.ADD = "新增", e.ADDNEXT = "新增下级", e.EDIT = "编辑", e.REMOVE = "删除", e;
|
|
8
|
+
}({}), RESOURCE_TYPE = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.OWNER = "1", e.ALL = "2", e;
|
|
10
|
+
}({}), ENABLE_TYPE = /* @__PURE__ */ function(e) {
|
|
11
|
+
return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
|
|
12
|
+
}({});
|
|
13
|
+
RESOURCE_TYPE.OWNER, RESOURCE_TYPE.ALL, ENABLE_TYPE.ON, ENABLE_TYPE.OFF;
|
|
14
|
+
var drawerOrganization_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
15
|
+
name: "OrganizationEdit",
|
|
16
|
+
__name: "drawerOrganization",
|
|
17
|
+
emits: ["submit"],
|
|
18
|
+
setup(e, { expose: o, emit: l }) {
|
|
19
|
+
let d = l, f = {
|
|
20
|
+
name: [{
|
|
21
|
+
required: !0,
|
|
22
|
+
message: "请输入组织名称",
|
|
23
|
+
trigger: "blur"
|
|
24
|
+
}, {
|
|
25
|
+
max: 128,
|
|
26
|
+
message: "长度不能超过128位",
|
|
27
|
+
trigger: "change"
|
|
28
|
+
}],
|
|
29
|
+
code: [{
|
|
30
|
+
required: !0,
|
|
31
|
+
message: "请输入组织编码",
|
|
32
|
+
trigger: "blur"
|
|
33
|
+
}, {
|
|
34
|
+
max: 50,
|
|
35
|
+
message: "长度不能超过50位",
|
|
36
|
+
trigger: "change"
|
|
37
|
+
}],
|
|
38
|
+
type: [{
|
|
39
|
+
required: !0,
|
|
40
|
+
message: "请输入组织类型",
|
|
41
|
+
trigger: "blur"
|
|
42
|
+
}],
|
|
43
|
+
areaCode: [{
|
|
44
|
+
max: 16,
|
|
45
|
+
message: "长度不能超过16位",
|
|
46
|
+
trigger: "change"
|
|
47
|
+
}],
|
|
48
|
+
creditCode: [{
|
|
49
|
+
max: 50,
|
|
50
|
+
message: "长度不能超过50位",
|
|
51
|
+
trigger: "change"
|
|
52
|
+
}],
|
|
53
|
+
contactPerson: [{
|
|
54
|
+
max: 50,
|
|
55
|
+
message: "长度不能超过50位",
|
|
56
|
+
trigger: "change"
|
|
57
|
+
}],
|
|
58
|
+
contactMobile: [{
|
|
59
|
+
max: 20,
|
|
60
|
+
message: "长度不能超过20位",
|
|
61
|
+
trigger: "change"
|
|
62
|
+
}]
|
|
63
|
+
}, p = reactive({
|
|
64
|
+
title: "",
|
|
65
|
+
type: ""
|
|
66
|
+
}), [m, h] = useToggle(!1), g = ref(), _ = ref([]);
|
|
67
|
+
getDictItemList({ dictCode: "orgType" }).then((e) => {
|
|
68
|
+
_.value = e.data?.map((e) => ({
|
|
69
|
+
label: e.dictLabel,
|
|
70
|
+
value: e.dictValue
|
|
71
|
+
}));
|
|
72
|
+
});
|
|
73
|
+
let v = ref({
|
|
74
|
+
parentId: "",
|
|
75
|
+
enable: !0
|
|
76
|
+
});
|
|
77
|
+
async function y(e, t) {
|
|
78
|
+
if (h(!0), p.title = e, e === ACTION.EDIT) {
|
|
79
|
+
let e = await getRbacOrgInfo({ id: t?.id });
|
|
80
|
+
e.success && (v.value = e.data ?? {});
|
|
81
|
+
} else e === ACTION.ADDNEXT ? v.value = {
|
|
82
|
+
parentName: t?.name,
|
|
83
|
+
parentId: t?.id,
|
|
84
|
+
enable: !0,
|
|
85
|
+
district: !1
|
|
86
|
+
} : v.value = {
|
|
87
|
+
parentId: "",
|
|
88
|
+
enable: !0,
|
|
89
|
+
district: !1
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
let [b, x] = useToggle(!1);
|
|
93
|
+
function S() {
|
|
94
|
+
let e = p.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
|
|
95
|
+
g.value?.validate().then(() => {
|
|
96
|
+
x(!0), e({ ...v.value }).then((e) => {
|
|
97
|
+
e.success && (message.success(`${p.title}成功!`), h(!1), d("submit", { ...v.value }));
|
|
98
|
+
}).finally(() => x(!1));
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function C() {
|
|
102
|
+
v.value = { enable: !1 }, h(!1);
|
|
103
|
+
}
|
|
104
|
+
return o({ open: y }), (e, t) => {
|
|
105
|
+
let n = FormItem, r = Input$1, i = Select, a = Switch, o = InputNumber, s = Form$1, c = Button, l = Space$1, u = Drawer;
|
|
106
|
+
return openBlock(), createBlock(u, {
|
|
107
|
+
open: unref(m),
|
|
108
|
+
"onUpdate:open": t[11] ||= (e) => isRef(m) ? m.value = e : null,
|
|
109
|
+
title: `${unref(p).title}组织`,
|
|
110
|
+
placement: "right",
|
|
111
|
+
width: 600,
|
|
112
|
+
"destroy-on-close": "",
|
|
113
|
+
"footer-style": { textAlign: "right" },
|
|
114
|
+
onClose: C
|
|
115
|
+
}, {
|
|
116
|
+
footer: withCtx(() => [createVNode(l, null, {
|
|
117
|
+
default: withCtx(() => [createVNode(c, { onClick: C }, {
|
|
118
|
+
default: withCtx(() => [...t[12] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
119
|
+
_: 1
|
|
120
|
+
}), createVNode(c, {
|
|
121
|
+
type: "primary",
|
|
122
|
+
loading: unref(b),
|
|
123
|
+
onClick: t[10] ||= (e) => S()
|
|
124
|
+
}, {
|
|
125
|
+
default: withCtx(() => [...t[13] ||= [createTextVNode(" 提交 ", -1)]]),
|
|
126
|
+
_: 1
|
|
127
|
+
}, 8, ["loading"])]),
|
|
128
|
+
_: 1
|
|
129
|
+
})]),
|
|
130
|
+
default: withCtx(() => [createVNode(s, {
|
|
131
|
+
ref_key: "formRef",
|
|
132
|
+
ref: g,
|
|
133
|
+
model: unref(v),
|
|
134
|
+
rules: f,
|
|
135
|
+
"label-col": { span: 6 },
|
|
136
|
+
"label-wrap": !0
|
|
137
|
+
}, {
|
|
138
|
+
default: withCtx(() => [
|
|
139
|
+
unref(v).parentId !== "" && unref(v).parentId !== "0" ? (openBlock(), createBlock(n, {
|
|
140
|
+
key: 0,
|
|
141
|
+
label: "所属上级"
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(v).parentName), 1)]),
|
|
144
|
+
_: 1
|
|
145
|
+
})) : createCommentVNode("", !0),
|
|
146
|
+
createVNode(n, {
|
|
147
|
+
label: "组织名称",
|
|
148
|
+
name: "name"
|
|
149
|
+
}, {
|
|
150
|
+
default: withCtx(() => [createVNode(r, {
|
|
151
|
+
value: unref(v).name,
|
|
152
|
+
"onUpdate:value": t[0] ||= (e) => unref(v).name = e
|
|
153
|
+
}, null, 8, ["value"])]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
createVNode(n, {
|
|
157
|
+
label: "组织编码",
|
|
158
|
+
name: "code"
|
|
159
|
+
}, {
|
|
160
|
+
default: withCtx(() => [createVNode(r, {
|
|
161
|
+
value: unref(v).code,
|
|
162
|
+
"onUpdate:value": t[1] ||= (e) => unref(v).code = e
|
|
163
|
+
}, null, 8, ["value"])]),
|
|
164
|
+
_: 1
|
|
165
|
+
}),
|
|
166
|
+
createVNode(n, {
|
|
167
|
+
label: "组织类型",
|
|
168
|
+
name: "type"
|
|
169
|
+
}, {
|
|
170
|
+
default: withCtx(() => [createVNode(i, {
|
|
171
|
+
value: unref(v).type,
|
|
172
|
+
"onUpdate:value": t[2] ||= (e) => unref(v).type = e,
|
|
173
|
+
options: unref(_)
|
|
174
|
+
}, null, 8, ["value", "options"])]),
|
|
175
|
+
_: 1
|
|
176
|
+
}),
|
|
177
|
+
createVNode(n, { label: "是否行政区划" }, {
|
|
178
|
+
default: withCtx(() => [createVNode(a, {
|
|
179
|
+
checked: unref(v).district,
|
|
180
|
+
"onUpdate:checked": t[3] ||= (e) => unref(v).district = e
|
|
181
|
+
}, null, 8, ["checked"])]),
|
|
182
|
+
_: 1
|
|
183
|
+
}),
|
|
184
|
+
unref(v).district ? (openBlock(), createBlock(n, {
|
|
185
|
+
key: 1,
|
|
186
|
+
label: "行政区划编码",
|
|
187
|
+
name: "areaCode"
|
|
188
|
+
}, {
|
|
189
|
+
default: withCtx(() => [createVNode(r, {
|
|
190
|
+
value: unref(v).areaCode,
|
|
191
|
+
"onUpdate:value": t[4] ||= (e) => unref(v).areaCode = e
|
|
192
|
+
}, null, 8, ["value"])]),
|
|
193
|
+
_: 1
|
|
194
|
+
})) : createCommentVNode("", !0),
|
|
195
|
+
createVNode(n, { label: "是否启用" }, {
|
|
196
|
+
default: withCtx(() => [createVNode(a, {
|
|
197
|
+
checked: unref(v).enable,
|
|
198
|
+
"onUpdate:checked": t[5] ||= (e) => unref(v).enable = e
|
|
199
|
+
}, null, 8, ["checked"])]),
|
|
200
|
+
_: 1
|
|
201
|
+
}),
|
|
202
|
+
createVNode(n, { label: "排序" }, {
|
|
203
|
+
default: withCtx(() => [createVNode(o, {
|
|
204
|
+
value: unref(v).sort,
|
|
205
|
+
"onUpdate:value": t[6] ||= (e) => unref(v).sort = e
|
|
206
|
+
}, null, 8, ["value"])]),
|
|
207
|
+
_: 1
|
|
208
|
+
}),
|
|
209
|
+
createVNode(n, {
|
|
210
|
+
label: "统一社会信用代码",
|
|
211
|
+
name: "creditCode"
|
|
212
|
+
}, {
|
|
213
|
+
default: withCtx(() => [createVNode(r, {
|
|
214
|
+
value: unref(v).creditCode,
|
|
215
|
+
"onUpdate:value": t[7] ||= (e) => unref(v).creditCode = e
|
|
216
|
+
}, null, 8, ["value"])]),
|
|
217
|
+
_: 1
|
|
218
|
+
}),
|
|
219
|
+
createVNode(n, {
|
|
220
|
+
label: "联系人",
|
|
221
|
+
name: "contactPerson"
|
|
222
|
+
}, {
|
|
223
|
+
default: withCtx(() => [createVNode(r, {
|
|
224
|
+
value: unref(v).contactPerson,
|
|
225
|
+
"onUpdate:value": t[8] ||= (e) => unref(v).contactPerson = e
|
|
226
|
+
}, null, 8, ["value"])]),
|
|
227
|
+
_: 1
|
|
228
|
+
}),
|
|
229
|
+
createVNode(n, {
|
|
230
|
+
label: "联系方式",
|
|
231
|
+
name: "contactMobile"
|
|
232
|
+
}, {
|
|
233
|
+
default: withCtx(() => [createVNode(r, {
|
|
234
|
+
value: unref(v).contactMobile,
|
|
235
|
+
"onUpdate:value": t[9] ||= (e) => unref(v).contactMobile = e
|
|
236
|
+
}, null, 8, ["value"])]),
|
|
237
|
+
_: 1
|
|
238
|
+
})
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
}, 8, ["model"])]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["open", "title"]);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}), drawerOrganization_exports = /* @__PURE__ */ __exportAll({ default: () => drawerOrganization_default }), drawerOrganization_default = drawerOrganization_vue_vue_type_script_setup_true_lang_default;
|
|
247
|
+
export { drawerOrganization_exports as n, ACTION as r, drawerOrganization_default as t };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
+
import { Lt as useToggle, r as getDictItemList, wt as postRbacPostSave, xt as getRbacPostDetailById } from "./index.js";
|
|
3
|
+
import { createBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, unref, withCtx } from "vue";
|
|
4
|
+
import { message } from "ant-design-vue";
|
|
5
|
+
import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, Select, Space as Space$1, Switch, Textarea } from "ant-design-vue/es";
|
|
6
|
+
let ACTION = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e;
|
|
8
|
+
}({});
|
|
9
|
+
var drawerPosition_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "DrawerPosition",
|
|
11
|
+
__name: "drawerPosition",
|
|
12
|
+
emits: ["submit"],
|
|
13
|
+
setup(e, { expose: a, emit: c }) {
|
|
14
|
+
let u = c, d = {
|
|
15
|
+
name: [{
|
|
16
|
+
required: !0,
|
|
17
|
+
message: "请输入岗位名称",
|
|
18
|
+
trigger: "blur"
|
|
19
|
+
}, {
|
|
20
|
+
max: 64,
|
|
21
|
+
message: "长度不能超过64位",
|
|
22
|
+
trigger: "change"
|
|
23
|
+
}],
|
|
24
|
+
code: [{
|
|
25
|
+
required: !0,
|
|
26
|
+
message: "请输入岗位编码",
|
|
27
|
+
trigger: "blur"
|
|
28
|
+
}, {
|
|
29
|
+
max: 32,
|
|
30
|
+
message: "长度不能超过32位",
|
|
31
|
+
trigger: "change"
|
|
32
|
+
}],
|
|
33
|
+
type: [{
|
|
34
|
+
required: !0,
|
|
35
|
+
message: "请选择岗位类别",
|
|
36
|
+
trigger: ["blur", "change"]
|
|
37
|
+
}]
|
|
38
|
+
}, f = reactive({
|
|
39
|
+
title: "",
|
|
40
|
+
type: ""
|
|
41
|
+
}), [p, m] = useToggle(!1), h = ref([]);
|
|
42
|
+
getDictItemList({ dictCode: "positionType" }).then((e) => {
|
|
43
|
+
h.value = e.data?.map((e) => ({
|
|
44
|
+
label: e.dictLabel,
|
|
45
|
+
value: e.dictValue
|
|
46
|
+
}));
|
|
47
|
+
});
|
|
48
|
+
let g = ref(), _ = ref({ enable: !0 });
|
|
49
|
+
async function v(e, t) {
|
|
50
|
+
if (m(!0), f.title = e, e === ACTION.EDIT) {
|
|
51
|
+
let e = await getRbacPostDetailById({ id: t?.id });
|
|
52
|
+
e.success && (_.value = e.data ?? {});
|
|
53
|
+
} else _.value = { enable: !0 };
|
|
54
|
+
}
|
|
55
|
+
let [y, b] = useToggle(!1);
|
|
56
|
+
function x() {
|
|
57
|
+
g.value?.validate().then(() => {
|
|
58
|
+
b(!0), postRbacPostSave({ ..._.value }).then((e) => {
|
|
59
|
+
e.success && (message.success(`${f.title}成功!`), m(!1), u("submit"));
|
|
60
|
+
}).finally(() => b(!1));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function S() {
|
|
64
|
+
m(!1), _.value = { enable: !0 };
|
|
65
|
+
}
|
|
66
|
+
return a({ open: v }), (e, t) => {
|
|
67
|
+
let n = Input$1, r = FormItem, i = Select, a = Textarea, o = Switch, s = Form$1, c = Button, l = Space$1, u = Drawer;
|
|
68
|
+
return openBlock(), createBlock(u, {
|
|
69
|
+
open: unref(p),
|
|
70
|
+
"onUpdate:open": t[6] ||= (e) => isRef(p) ? p.value = e : null,
|
|
71
|
+
title: `${unref(f).title}岗位`,
|
|
72
|
+
placement: "right",
|
|
73
|
+
width: 600,
|
|
74
|
+
"destroy-on-close": "",
|
|
75
|
+
"footer-style": { textAlign: "right" },
|
|
76
|
+
onClose: S
|
|
77
|
+
}, {
|
|
78
|
+
footer: withCtx(() => [createVNode(l, null, {
|
|
79
|
+
default: withCtx(() => [createVNode(c, { onClick: S }, {
|
|
80
|
+
default: withCtx(() => [...t[7] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
81
|
+
_: 1
|
|
82
|
+
}), createVNode(c, {
|
|
83
|
+
type: "primary",
|
|
84
|
+
loading: unref(y),
|
|
85
|
+
onClick: t[5] ||= (e) => x()
|
|
86
|
+
}, {
|
|
87
|
+
default: withCtx(() => [...t[8] ||= [createTextVNode(" 提交 ", -1)]]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["loading"])]),
|
|
90
|
+
_: 1
|
|
91
|
+
})]),
|
|
92
|
+
default: withCtx(() => [createVNode(s, {
|
|
93
|
+
ref_key: "formRef",
|
|
94
|
+
ref: g,
|
|
95
|
+
model: unref(_),
|
|
96
|
+
rules: d,
|
|
97
|
+
"label-col": { span: 4 },
|
|
98
|
+
"label-wrap": !0
|
|
99
|
+
}, {
|
|
100
|
+
default: withCtx(() => [
|
|
101
|
+
createVNode(r, {
|
|
102
|
+
label: "岗位名称",
|
|
103
|
+
name: "name"
|
|
104
|
+
}, {
|
|
105
|
+
default: withCtx(() => [createVNode(n, {
|
|
106
|
+
value: unref(_).name,
|
|
107
|
+
"onUpdate:value": t[0] ||= (e) => unref(_).name = e,
|
|
108
|
+
maxlength: 64
|
|
109
|
+
}, null, 8, ["value"])]),
|
|
110
|
+
_: 1
|
|
111
|
+
}),
|
|
112
|
+
createVNode(r, {
|
|
113
|
+
label: "岗位编码",
|
|
114
|
+
name: "code"
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [createVNode(n, {
|
|
117
|
+
value: unref(_).code,
|
|
118
|
+
"onUpdate:value": t[1] ||= (e) => unref(_).code = e,
|
|
119
|
+
disabled: unref(f).title === unref(ACTION).EDIT,
|
|
120
|
+
maxlength: 32
|
|
121
|
+
}, null, 8, ["value", "disabled"])]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
createVNode(r, {
|
|
125
|
+
label: "岗位类别",
|
|
126
|
+
name: "type"
|
|
127
|
+
}, {
|
|
128
|
+
default: withCtx(() => [createVNode(i, {
|
|
129
|
+
value: unref(_).type,
|
|
130
|
+
"onUpdate:value": t[2] ||= (e) => unref(_).type = e,
|
|
131
|
+
options: unref(h)
|
|
132
|
+
}, null, 8, ["value", "options"])]),
|
|
133
|
+
_: 1
|
|
134
|
+
}),
|
|
135
|
+
createVNode(r, {
|
|
136
|
+
label: "描述",
|
|
137
|
+
name: "description"
|
|
138
|
+
}, {
|
|
139
|
+
default: withCtx(() => [createVNode(a, {
|
|
140
|
+
value: unref(_).description,
|
|
141
|
+
"onUpdate:value": t[3] ||= (e) => unref(_).description = e,
|
|
142
|
+
rows: 3,
|
|
143
|
+
"show-count": "",
|
|
144
|
+
maxlength: 120
|
|
145
|
+
}, null, 8, ["value"])]),
|
|
146
|
+
_: 1
|
|
147
|
+
}),
|
|
148
|
+
createVNode(r, {
|
|
149
|
+
label: "是否启动",
|
|
150
|
+
name: "enable"
|
|
151
|
+
}, {
|
|
152
|
+
default: withCtx(() => [createVNode(o, {
|
|
153
|
+
checked: unref(_).enable,
|
|
154
|
+
"onUpdate:checked": t[4] ||= (e) => unref(_).enable = e
|
|
155
|
+
}, null, 8, ["checked"])]),
|
|
156
|
+
_: 1
|
|
157
|
+
})
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["model"])]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["open", "title"]);
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}), drawerPosition_exports = /* @__PURE__ */ __exportAll({ default: () => drawerPosition_default }), drawerPosition_default = drawerPosition_vue_vue_type_script_setup_true_lang_default;
|
|
166
|
+
export { drawerPosition_exports as n, ACTION as r, drawerPosition_default as t };
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
+
import { Dt as getRegionGetRegionDetailByCode, Lt as useToggle, Ot as postRegionAddRegion, kt as postRegionUpdateRegion, r as getDictItemList } from "./index.js";
|
|
3
|
+
import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { message } from "ant-design-vue";
|
|
5
|
+
import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, Select, Space as Space$1 } from "ant-design-vue/es";
|
|
6
|
+
let ACTION = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e.ADDNEXT = "新建下级", e;
|
|
8
|
+
}({}), RANGE = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.PROVINCE = "1", e.CITY = "2", e.COUNTY = "3", e;
|
|
10
|
+
}({});
|
|
11
|
+
RANGE.PROVINCE, RANGE.CITY, RANGE.COUNTY;
|
|
12
|
+
var drawerRegion_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
13
|
+
name: "DrawerRegion",
|
|
14
|
+
__name: "drawerRegion",
|
|
15
|
+
emits: ["submit"],
|
|
16
|
+
setup(e, { expose: o, emit: l }) {
|
|
17
|
+
let u = l, d = {
|
|
18
|
+
name: [{
|
|
19
|
+
required: !0,
|
|
20
|
+
message: "请输入区域名称",
|
|
21
|
+
trigger: "blur"
|
|
22
|
+
}, {
|
|
23
|
+
max: 128,
|
|
24
|
+
message: "长度不能超过128位",
|
|
25
|
+
trigger: "change"
|
|
26
|
+
}],
|
|
27
|
+
type: [{
|
|
28
|
+
required: !0,
|
|
29
|
+
message: "请选择区域范围",
|
|
30
|
+
trigger: "blur"
|
|
31
|
+
}],
|
|
32
|
+
regionCode: [{
|
|
33
|
+
required: !0,
|
|
34
|
+
message: "请输入区域编码",
|
|
35
|
+
trigger: "blur"
|
|
36
|
+
}, {
|
|
37
|
+
max: 16,
|
|
38
|
+
message: "长度不能超过16位",
|
|
39
|
+
trigger: "change"
|
|
40
|
+
}],
|
|
41
|
+
code: [{
|
|
42
|
+
required: !0,
|
|
43
|
+
message: "请输入行政区划编码",
|
|
44
|
+
trigger: "blur"
|
|
45
|
+
}, {
|
|
46
|
+
max: 16,
|
|
47
|
+
message: "长度不能超过16位",
|
|
48
|
+
trigger: "change"
|
|
49
|
+
}]
|
|
50
|
+
}, f = reactive({
|
|
51
|
+
title: "",
|
|
52
|
+
type: ""
|
|
53
|
+
}), [p, m] = useToggle(!1), h = ref(), g = ref({ parentId: "" }), _ = ref([]);
|
|
54
|
+
getDictItemList({ dictCode: "regionType" }).then((e) => {
|
|
55
|
+
_.value = e.data?.map((e) => ({
|
|
56
|
+
label: e.dictLabel,
|
|
57
|
+
value: e.dictValue
|
|
58
|
+
}));
|
|
59
|
+
});
|
|
60
|
+
async function v(e, n) {
|
|
61
|
+
if (m(!0), f.title = e, e === ACTION.EDIT) {
|
|
62
|
+
let e = await getRegionGetRegionDetailByCode({ code: n?.code });
|
|
63
|
+
e.success && (g.value = e.data ?? {});
|
|
64
|
+
} else e === ACTION.ADDNEXT ? g.value = {
|
|
65
|
+
parentName: n?.name,
|
|
66
|
+
parentId: n?.id
|
|
67
|
+
} : g.value = { parentId: "" };
|
|
68
|
+
}
|
|
69
|
+
let [y, b] = useToggle(!1);
|
|
70
|
+
function x() {
|
|
71
|
+
let e = f.title === ACTION.EDIT ? postRegionUpdateRegion : postRegionAddRegion;
|
|
72
|
+
h.value?.validate().then(() => {
|
|
73
|
+
b(!0), e({ ...g.value }).then((e) => {
|
|
74
|
+
e.success && (message.success(`${f.title}成功!`), m(!1), u("submit"));
|
|
75
|
+
}).finally(() => b(!1));
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function S() {
|
|
79
|
+
g.value = { parentId: "" }, m(!1);
|
|
80
|
+
}
|
|
81
|
+
return o({ open: v }), (e, t) => {
|
|
82
|
+
let n = FormItem, r = Input$1, i = Select, a = InputNumber, o = Form$1, s = Button, c = Space$1, l = Drawer;
|
|
83
|
+
return openBlock(), createBlock(l, {
|
|
84
|
+
open: unref(p),
|
|
85
|
+
"onUpdate:open": t[6] ||= (e) => isRef(p) ? p.value = e : null,
|
|
86
|
+
title: `${unref(f).title}区域`,
|
|
87
|
+
placement: "right",
|
|
88
|
+
width: 600,
|
|
89
|
+
"destroy-on-close": "",
|
|
90
|
+
"footer-style": { textAlign: "right" },
|
|
91
|
+
onClose: S
|
|
92
|
+
}, {
|
|
93
|
+
footer: withCtx(() => [createVNode(c, null, {
|
|
94
|
+
default: withCtx(() => [createVNode(s, { onClick: S }, {
|
|
95
|
+
default: withCtx(() => [...t[7] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
96
|
+
_: 1
|
|
97
|
+
}), createVNode(s, {
|
|
98
|
+
type: "primary",
|
|
99
|
+
loading: unref(y),
|
|
100
|
+
onClick: t[5] ||= (e) => x()
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [...t[8] ||= [createTextVNode(" 提交 ", -1)]]),
|
|
103
|
+
_: 1
|
|
104
|
+
}, 8, ["loading"])]),
|
|
105
|
+
_: 1
|
|
106
|
+
})]),
|
|
107
|
+
default: withCtx(() => [createVNode(o, {
|
|
108
|
+
ref_key: "formRef",
|
|
109
|
+
ref: h,
|
|
110
|
+
model: unref(g),
|
|
111
|
+
rules: d,
|
|
112
|
+
"label-col": { span: 5 },
|
|
113
|
+
"label-wrap": !0
|
|
114
|
+
}, {
|
|
115
|
+
default: withCtx(() => [
|
|
116
|
+
unref(g).parentId !== "" && unref(g).parentId !== "0" ? (openBlock(), createBlock(n, {
|
|
117
|
+
key: 0,
|
|
118
|
+
label: "上级区域"
|
|
119
|
+
}, {
|
|
120
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(g).parentName), 1)]),
|
|
121
|
+
_: 1
|
|
122
|
+
})) : createCommentVNode("", !0),
|
|
123
|
+
createVNode(n, {
|
|
124
|
+
label: "区域名称",
|
|
125
|
+
name: "name"
|
|
126
|
+
}, {
|
|
127
|
+
default: withCtx(() => [createVNode(r, {
|
|
128
|
+
value: unref(g).name,
|
|
129
|
+
"onUpdate:value": t[0] ||= (e) => unref(g).name = e,
|
|
130
|
+
maxlength: 128
|
|
131
|
+
}, null, 8, ["value"])]),
|
|
132
|
+
_: 1
|
|
133
|
+
}),
|
|
134
|
+
createVNode(n, {
|
|
135
|
+
label: "区域范围",
|
|
136
|
+
name: "type"
|
|
137
|
+
}, {
|
|
138
|
+
default: withCtx(() => [createVNode(i, {
|
|
139
|
+
value: unref(g).type,
|
|
140
|
+
"onUpdate:value": t[1] ||= (e) => unref(g).type = e,
|
|
141
|
+
options: unref(_)
|
|
142
|
+
}, null, 8, ["value", "options"])]),
|
|
143
|
+
_: 1
|
|
144
|
+
}),
|
|
145
|
+
createVNode(n, {
|
|
146
|
+
label: "区域编码",
|
|
147
|
+
name: "regionCode"
|
|
148
|
+
}, {
|
|
149
|
+
default: withCtx(() => [createVNode(r, {
|
|
150
|
+
value: unref(g).regionCode,
|
|
151
|
+
"onUpdate:value": t[2] ||= (e) => unref(g).regionCode = e,
|
|
152
|
+
maxlength: 16
|
|
153
|
+
}, null, 8, ["value"])]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
createVNode(n, {
|
|
157
|
+
label: "行政区划编码",
|
|
158
|
+
name: "code"
|
|
159
|
+
}, {
|
|
160
|
+
default: withCtx(() => [createVNode(r, {
|
|
161
|
+
value: unref(g).code,
|
|
162
|
+
"onUpdate:value": t[3] ||= (e) => unref(g).code = e,
|
|
163
|
+
disabled: unref(f).title === unref(ACTION).EDIT,
|
|
164
|
+
maxlength: 16
|
|
165
|
+
}, null, 8, ["value", "disabled"])]),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
createVNode(n, { label: "排序" }, {
|
|
169
|
+
default: withCtx(() => [createVNode(a, {
|
|
170
|
+
value: unref(g).sort,
|
|
171
|
+
"onUpdate:value": t[4] ||= (e) => unref(g).sort = e
|
|
172
|
+
}, null, 8, ["value"])]),
|
|
173
|
+
_: 1
|
|
174
|
+
})
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["model"])]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["open", "title"]);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}), drawerRegion_exports = /* @__PURE__ */ __exportAll({ default: () => drawerRegion_default }), drawerRegion_default = drawerRegion_vue_vue_type_script_setup_true_lang_default;
|
|
183
|
+
export { drawerRegion_exports as n, ACTION as r, drawerRegion_default as t };
|