@jeecg/online 3.9.0-beta2 → 3.9.1-RC
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/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
- package/{AiModal-204a2146.mjs → AiModal-BgVzn074.mjs} +18 -20
- package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
- package/AppLogin-BMBmx2oq.mjs +272 -0
- package/AppLoginHeader-BtKXOMRR.mjs +23 -0
- package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
- package/{AppRegister-043efc45.mjs → AppRegister-C5iH-245.mjs} +33 -37
- package/{AppTenant-c7bb8700.mjs → AppTenant-etPXeUcW.mjs} +49 -55
- package/AppThirdForm-NMob-JaS.mjs +185 -0
- package/AuthButtonConfig-zUioaGwn.mjs +155 -0
- package/AuthButtonTree-DYZwphe6.mjs +159 -0
- package/{AuthDataConfig-3cd10ca2.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
- package/AuthDataTree-Cr28_YKx.mjs +134 -0
- package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
- package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
- package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
- package/{AuthSetterModal-f176c221.mjs → AuthSetterModal-BBFdNv1M.mjs} +89 -100
- package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
- package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
- package/{CgformAddressModal-a3903b24.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
- package/CgformCopyList-7e96RMbJ.mjs +176 -0
- package/{CgformModal-115710a6.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
- package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
- package/{CgreportModal-0cc48587.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
- package/{CheckDictTable-65157c48.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
- package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
- package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
- package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
- package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
- package/{DBAttributeTable-56701599.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
- package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
- package/DetailForm-CnfJBMys.mjs +472 -0
- package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
- package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
- package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
- package/{EnhanceJsModal-b0527cbf.mjs → EnhanceJsModal-Djb5ItH4.mjs} +95 -104
- package/EnhanceSqlModal-DxPdRcQc.mjs +258 -0
- package/ErrorTip-BDS1uxkW.mjs +4 -0
- package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
- package/ExtendConfigModal-CxJIWvV4.mjs +102 -0
- package/{FieldExtendJsonModal-536e6d5b.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
- package/{FileSelectModal-eb026170.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
- package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
- package/{IndexTable-4d350e4e.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
- package/JModalTip-DHrn6ksJ.mjs +46 -0
- package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
- package/{LeftDepart-a727aab7.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
- package/{LeftRole-b533dcf6.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
- package/{LeftUser-aaac52cb.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
- package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
- package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
- package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
- package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
- package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -199
- package/OnlCgformErpSubTable-D3QM8oWi.mjs +382 -0
- package/OnlCgformInnerSubTable-BqmooFqy.mjs +213 -0
- package/OnlCgformInnerTableList-Dr1KdoSC.mjs +421 -0
- package/OnlCgformTabList-DCy3oudh.mjs +371 -0
- package/OnlineAutoList-C4pkORGb.mjs +500 -0
- package/OnlineAutoModal-Cuf_wcbU.mjs +222 -0
- package/{OnlineAutoTreeList-624106c1.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -181
- package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
- package/OnlineDetailModal-So0YEah1.mjs +160 -0
- package/{OnlineForm-86b5966d.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -73
- package/OnlineFormDetail-KaD6cV31.mjs +321 -0
- package/OnlineFormUrlAdd-CktstdFD.mjs +86 -0
- package/OnlineFormUrlDetail-C4qptuTQ.mjs +85 -0
- package/OnlineFormUrlEdit-C06vTiM_.mjs +84 -0
- package/{OnlineFormUrlSuccess-0c2431a4.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
- package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -167
- package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
- package/{OnlineSelectCascade-fab4426d.mjs → OnlineSelectCascade-O7iXAgdH.mjs} +31 -33
- package/OnlineSubFormDetail-DcMpAk8Z.mjs +109 -0
- package/OnlineTabAutoModal-DSOVDlOz.mjs +285 -0
- package/OnlineTabDetailModal-OXQ_2VLI.mjs +187 -0
- package/{OnlineTabForm-5c04cbc5.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -253
- package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
- package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
- package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
- package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
- package/{QueryTable-342fd89a.mjs → QueryTable-DHYaYbKC.mjs} +23 -31
- package/SetSwitchOptions-B4Q6l-54.mjs +58 -0
- package/ShareAddView-CxZuNTQB.mjs +11 -0
- package/ShareEditView-Dqdzjmpc.mjs +17 -0
- package/ShareView-B9TiMmkR.mjs +4 -0
- package/{ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs → ShareView.vue_vue_type_script_setup_true_lang-BCdP9KMD.mjs} +21 -21
- package/SingleView-BDXeMLV-.mjs +4 -0
- package/{SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
- package/{SuperQuery-270b0968.mjs → SuperQuery-CgkajEWI.mjs} +342 -370
- package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
- package/TaskOpinionList-C8rcU6ee.mjs +10 -0
- package/{aiModal-e7362c3f.mjs → aiModal-DTU-w5Xx.mjs} +33 -36
- package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
- package/index-0kQBIHx0.mjs +58 -0
- package/{index-b811abb9.mjs → index-B1H394jP.mjs} +35 -38
- package/index-CXD6__bJ.mjs +195 -0
- package/{index-6d1a78e2.mjs → index-DIjQbz6A.mjs} +37 -41
- package/{index-e2c3e6f3.mjs → index-Dbr1qL3H.mjs} +474 -608
- package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
- package/{index-d95bb7c2.mjs → index-pGbTziKP.mjs} +32 -44
- package/{index-b5fe9bd4.mjs → index-siZ6JDIW.mjs} +17 -20
- package/main.index.js +8 -9
- package/online.css +1 -0
- package/package.json +1 -1
- package/{useCgformList-6d5547ff.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
- package/useExtendComponent-P9wrWQwT.mjs +4479 -0
- package/{useListButton-73071548.mjs → useListButton-DyOAscwT.mjs} +7 -9
- package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
- package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
- package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
- package/AppLogin-bf783eab.mjs +0 -287
- package/AppLoginHeader-55594326.mjs +0 -27
- package/AppThirdForm-5e7e1144.mjs +0 -189
- package/AuthButtonConfig-4887be0d.mjs +0 -160
- package/AuthButtonTree-7e47b44b.mjs +0 -165
- package/AuthDataTree-714c259c.mjs +0 -139
- package/AuthManagerDrawer-dee39b07.mjs +0 -119
- package/BuiltInButtonList-bb6cf95c.mjs +0 -10
- package/CgformCopyList-4be1000f.mjs +0 -259
- package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
- package/DetailForm-7d4f630e.mjs +0 -497
- package/EnhanceJavaModal-469e645e.mjs +0 -264
- package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
- package/ErrorTip-bb616e32.mjs +0 -7
- package/ExtendConfigModal-7b00b49a.mjs +0 -117
- package/JModalTip-c3e6726c.mjs +0 -49
- package/LinkTableListPiece-0f4ca559.mjs +0 -34
- package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
- package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
- package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
- package/OnlCgformTabList-882a0e0c.mjs +0 -431
- package/OnlineAutoList-caedb54a.mjs +0 -558
- package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
- package/OnlineCustomModal-f4e17bed.mjs +0 -246
- package/OnlineDetailModal-35394778.mjs +0 -198
- package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
- package/OnlineFormDetail-4b3ad130.mjs +0 -349
- package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
- package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
- package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
- package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
- package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
- package/OnlineTabDetailModal-401a26ad.mjs +0 -226
- package/OnlineTabFormDetail-2a28febf.mjs +0 -328
- package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
- package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
- package/ShareAddView-a5154da3.mjs +0 -88
- package/ShareEditView-cf761cf3.mjs +0 -94
- package/ShareView-3b2f5457.mjs +0 -82
- package/SingleView-3cab20a9.mjs +0 -70
- package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
- package/TaskOpinionList-60cf4080.mjs +0 -13
- package/index-740b2c4a.mjs +0 -57
- package/index-8fd12d0f.mjs +0 -219
- package/style.css +0 -1
- package/useExtendComponent-95ce0719.mjs +0 -4460
- /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
- /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
- /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
- /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
- /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
- /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
- /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
- /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
- /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
- /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
- /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
- /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
- /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
- /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var T = (s,
|
|
1
|
+
var T = (s, U, p) => new Promise((c, g) => {
|
|
2
2
|
var C = (l) => {
|
|
3
3
|
try {
|
|
4
4
|
m(p.next(l));
|
|
@@ -12,20 +12,17 @@ var T = (s, _, p) => new Promise((c, g) => {
|
|
|
12
12
|
g(i);
|
|
13
13
|
}
|
|
14
14
|
}, m = (l) => l.done ? c(l.value) : Promise.resolve(l.value).then(C, u);
|
|
15
|
-
m((p = p.apply(s,
|
|
15
|
+
m((p = p.apply(s, U)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as ae, ref as r, reactive as
|
|
18
|
-
import oe from "./AppLoginHeader-
|
|
17
|
+
import { defineComponent as ae, ref as r, reactive as P, computed as R, unref as h, watch as ne, resolveComponent as k, createElementBlock as f, openBlock as b, createElementVNode as t, normalizeClass as x, createVNode as a, createCommentVNode as j, Fragment as w, createTextVNode as S, withCtx as v } from "vue";
|
|
18
|
+
import oe from "./AppLoginHeader-BtKXOMRR.mjs";
|
|
19
19
|
import { useI18n as se } from "/@/hooks/web/useI18n";
|
|
20
20
|
import { defHttp as q } from "/@/utils/http/axios";
|
|
21
21
|
import { useMessage as ie } from "/@/hooks/web/useMessage";
|
|
22
|
-
import { router as
|
|
23
|
-
import { PageEnum as
|
|
22
|
+
import { router as V } from "/@/router";
|
|
23
|
+
import { PageEnum as _ } from "/@/enums/pageEnum";
|
|
24
24
|
import { useUserStore as re } from "/@/store/modules/user";
|
|
25
|
-
import { _ as ue } from "./index-
|
|
26
|
-
import "/@/assets/images/logo.png";
|
|
27
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
28
|
-
import "vue-router";
|
|
25
|
+
import { _ as ue } from "./index-0kQBIHx0.mjs";
|
|
29
26
|
const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, { isTransformResponse: !1 }), ve = (s) => q.post({ url: "/sys/tenant/joinTenantByHouseNumber", params: s }, { isTransformResponse: !1 }), pe = { class: "organ-box" }, ce = {
|
|
30
27
|
class: "align-items-center",
|
|
31
28
|
style: { "margin-top": "20px" }
|
|
@@ -38,21 +35,19 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
38
35
|
tenantType: { type: String, default: "" }
|
|
39
36
|
},
|
|
40
37
|
emits: ["success"],
|
|
41
|
-
setup(s, { emit:
|
|
42
|
-
const p = s, { createMessage: c } = ie(), g = r(), C = r(), u = r("home"), m =
|
|
38
|
+
setup(s, { emit: U }) {
|
|
39
|
+
const p = s, { createMessage: c } = ie(), g = r(), C = r(), u = r("home"), m = P({
|
|
43
40
|
houseNumber: ""
|
|
44
|
-
}), l =
|
|
41
|
+
}), l = P({
|
|
45
42
|
name: "",
|
|
46
43
|
trade: void 0,
|
|
47
44
|
companySize: void 0,
|
|
48
45
|
position: void 0,
|
|
49
46
|
department: void 0
|
|
50
|
-
}), i = r(""), M = R(() => m.houseNumber != "" ||
|
|
47
|
+
}), i = r(""), M = R(() => m.houseNumber != "" || h(i) === "houseNumber" ? "current-active" : ""), L = R(() => l.name != "" || h(i) === "name" ? "current-active" : ""), I = r(), O = r(), $ = {
|
|
51
48
|
houseNumber: [{ required: !0, message: "请输入组织门牌号" }]
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const K = R(() => Y("请输入组织名称")), D = R(() => ({
|
|
55
|
-
name: U(K)
|
|
49
|
+
}, { t: xe } = se(), K = R(() => Y("请输入组织名称")), D = R(() => ({
|
|
50
|
+
name: h(K)
|
|
56
51
|
})), G = r([
|
|
57
52
|
{ label: "信息传输、软件和信息技术服务业", value: "1" },
|
|
58
53
|
{ label: "制造业", value: "2" },
|
|
@@ -99,7 +94,7 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
99
94
|
{ label: "人事/财务/行政", value: "5" },
|
|
100
95
|
{ label: "资源/仓储/采购", value: "6" },
|
|
101
96
|
{ label: "其他", value: "7" }
|
|
102
|
-
]),
|
|
97
|
+
]), B = U, y = re();
|
|
103
98
|
function Y(n) {
|
|
104
99
|
return [
|
|
105
100
|
{
|
|
@@ -115,31 +110,31 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
115
110
|
function ee() {
|
|
116
111
|
u.value = "create";
|
|
117
112
|
}
|
|
118
|
-
function
|
|
119
|
-
i.value = n, n === "houseNumber" ?
|
|
113
|
+
function E(n) {
|
|
114
|
+
i.value = n, n === "houseNumber" ? I.value.focus() : O.value.focus();
|
|
120
115
|
}
|
|
121
|
-
function
|
|
116
|
+
function H() {
|
|
122
117
|
i.value = "";
|
|
123
118
|
}
|
|
124
119
|
function te() {
|
|
125
120
|
return T(this, null, function* () {
|
|
126
|
-
g.value.validateFields().then((n) => T(
|
|
121
|
+
g.value.validateFields().then((n) => T(null, null, function* () {
|
|
127
122
|
n.status = "1", yield me(n).then((e) => {
|
|
128
|
-
e.success ? (c.success(e.message), y.setTenant(e.result),
|
|
123
|
+
e.success ? (c.success(e.message), y.setTenant(e.result), V.replace(y.getUserInfo && y.getUserInfo.homePath || _.BASE_HOME), B("success")) : c.warning(e.message);
|
|
129
124
|
});
|
|
130
125
|
}));
|
|
131
126
|
});
|
|
132
127
|
}
|
|
133
128
|
function le() {
|
|
134
|
-
C.value.validateFields().then((n) => T(
|
|
129
|
+
C.value.validateFields().then((n) => T(null, null, function* () {
|
|
135
130
|
yield ve(n).then((e) => {
|
|
136
|
-
e.success ? (c.success(e.message), p.tenantType ||
|
|
131
|
+
e.success ? (c.success(e.message), p.tenantType || V.replace(y.getUserInfo && y.getUserInfo.homePath || _.BASE_HOME), B("success")) : c.warning(e.message);
|
|
137
132
|
}).catch((e) => {
|
|
138
133
|
c.warning(e.message);
|
|
139
134
|
});
|
|
140
135
|
}));
|
|
141
136
|
}
|
|
142
|
-
function
|
|
137
|
+
function z() {
|
|
143
138
|
u.value = "home";
|
|
144
139
|
}
|
|
145
140
|
return ne(
|
|
@@ -149,13 +144,13 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
149
144
|
},
|
|
150
145
|
{ immediate: !0 }
|
|
151
146
|
), (n, e) => {
|
|
152
|
-
const
|
|
153
|
-
return
|
|
147
|
+
const A = k("Icon"), F = k("a-input"), d = k("a-form-item"), J = k("a-form"), N = k("a-select");
|
|
148
|
+
return b(), f("div", pe, [
|
|
154
149
|
t("div", {
|
|
155
150
|
class: x(["organ-subject", s.tenantType !== "" ? "subject-margin" : ""])
|
|
156
151
|
}, [
|
|
157
152
|
a(oe, { showLocalePicker: !1 }),
|
|
158
|
-
u.value === "home" ? (
|
|
153
|
+
u.value === "home" ? (b(), f(w, { key: 0 }, [
|
|
159
154
|
e[10] || (e[10] = t("div", {
|
|
160
155
|
class: "flex-row align-items-center",
|
|
161
156
|
style: { "margin-top": "20px" }
|
|
@@ -166,35 +161,35 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
166
161
|
t("div", {
|
|
167
162
|
class: "content-box pointer",
|
|
168
163
|
onClick: Z
|
|
169
|
-
}, e[8] || (e[8] = [
|
|
164
|
+
}, [...e[8] || (e[8] = [
|
|
170
165
|
t("div", { class: "organ-title-desc" }, [
|
|
171
166
|
S(" 加入"),
|
|
172
167
|
t("span", { style: { color: "rgb(141, 198, 216)" } }, "已有"),
|
|
173
168
|
S("组织 ")
|
|
174
169
|
], -1),
|
|
175
170
|
t("div", null, " 如果被告知要使用,或有同事已经在用,请选择此项。 ", -1)
|
|
176
|
-
])),
|
|
171
|
+
])]),
|
|
177
172
|
t("div", {
|
|
178
173
|
class: "content-box pointer",
|
|
179
174
|
style: { "margin-top": "35px" },
|
|
180
175
|
onClick: ee
|
|
181
|
-
}, e[9] || (e[9] = [
|
|
176
|
+
}, [...e[9] || (e[9] = [
|
|
182
177
|
t("div", { class: "organ-title-desc" }, [
|
|
183
178
|
S(" 创建"),
|
|
184
179
|
t("span", { style: { color: "rgb(74, 79, 175)" } }, "新的"),
|
|
185
180
|
S("组织 ")
|
|
186
181
|
], -1),
|
|
187
182
|
t("div", null, " 如果想为企业或者组织创建账号,请选择此项。 ", -1)
|
|
188
|
-
]))
|
|
183
|
+
])])
|
|
189
184
|
])
|
|
190
|
-
], 64)) : u.value === "join" ? (
|
|
191
|
-
s.tenantType === "" ? (
|
|
185
|
+
], 64)) : u.value === "join" ? (b(), f(w, { key: 1 }, [
|
|
186
|
+
s.tenantType === "" ? (b(), f("div", {
|
|
192
187
|
key: 0,
|
|
193
188
|
class: "margin-top40 pointer",
|
|
194
189
|
style: { display: "flex" },
|
|
195
|
-
onClick:
|
|
190
|
+
onClick: z
|
|
196
191
|
}, [
|
|
197
|
-
a(
|
|
192
|
+
a(A, {
|
|
198
193
|
icon: "ant-design:arrow-left-outlined",
|
|
199
194
|
style: { color: "#757575", "margin-top": "2px" }
|
|
200
195
|
}),
|
|
@@ -205,7 +200,7 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
205
200
|
e[14] || (e[14] = t("div", { class: "organ-join-desc" }, [
|
|
206
201
|
t("span", { style: { color: "#9e9e9e" } }, "组织门牌号可以通过管理员获取")
|
|
207
202
|
], -1)),
|
|
208
|
-
a(
|
|
203
|
+
a(J, {
|
|
209
204
|
ref_key: "joinRef",
|
|
210
205
|
ref: C,
|
|
211
206
|
model: m,
|
|
@@ -214,17 +209,17 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
214
209
|
default: v(() => [
|
|
215
210
|
t("div", {
|
|
216
211
|
class: x(["content-item", M.value]),
|
|
217
|
-
onClick: e[1] || (e[1] = (o) =>
|
|
212
|
+
onClick: e[1] || (e[1] = (o) => E("houseNumber"))
|
|
218
213
|
}, [
|
|
219
214
|
a(d, { name: "houseNumber" }, {
|
|
220
215
|
default: v(() => [
|
|
221
|
-
a(
|
|
216
|
+
a(F, {
|
|
222
217
|
ref_key: "hoseNumberRef",
|
|
223
|
-
ref:
|
|
218
|
+
ref: I,
|
|
224
219
|
value: m.houseNumber,
|
|
225
220
|
"onUpdate:value": e[0] || (e[0] = (o) => m.houseNumber = o),
|
|
226
221
|
style: { height: "40px" },
|
|
227
|
-
onBlur:
|
|
222
|
+
onBlur: H
|
|
228
223
|
}, null, 8, ["value"]),
|
|
229
224
|
t("div", {
|
|
230
225
|
class: x(["form-title", i.value === "houseNumber" ? "active-title" : ""])
|
|
@@ -247,14 +242,14 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
247
242
|
_: 1
|
|
248
243
|
}, 8, ["model"])
|
|
249
244
|
])
|
|
250
|
-
], 64)) : u.value === "create" ? (
|
|
251
|
-
s.tenantType === "" ? (
|
|
245
|
+
], 64)) : u.value === "create" ? (b(), f(w, { key: 2 }, [
|
|
246
|
+
s.tenantType === "" ? (b(), f("div", {
|
|
252
247
|
key: 0,
|
|
253
248
|
class: "margin-top40 pointer",
|
|
254
249
|
style: { display: "flex" },
|
|
255
|
-
onClick:
|
|
250
|
+
onClick: z
|
|
256
251
|
}, [
|
|
257
|
-
a(
|
|
252
|
+
a(A, {
|
|
258
253
|
icon: "ant-design:arrow-left-outlined",
|
|
259
254
|
style: { color: "#757575", "margin-top": "2px" }
|
|
260
255
|
}),
|
|
@@ -265,7 +260,7 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
265
260
|
e[21] || (e[21] = t("div", { class: "organ-join-desc" }, [
|
|
266
261
|
t("span", { style: { color: "#9e9e9e" } }, "您当前账号默认成为组织的管理员")
|
|
267
262
|
], -1)),
|
|
268
|
-
a(
|
|
263
|
+
a(J, {
|
|
269
264
|
ref_key: "createRef",
|
|
270
265
|
ref: g,
|
|
271
266
|
model: l,
|
|
@@ -274,17 +269,17 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
274
269
|
default: v(() => [
|
|
275
270
|
t("div", {
|
|
276
271
|
class: x(["content-item", L.value]),
|
|
277
|
-
onClick: e[3] || (e[3] = (o) =>
|
|
272
|
+
onClick: e[3] || (e[3] = (o) => E("name"))
|
|
278
273
|
}, [
|
|
279
274
|
a(d, { name: "name" }, {
|
|
280
275
|
default: v(() => [
|
|
281
|
-
a(
|
|
276
|
+
a(F, {
|
|
282
277
|
ref_key: "nameRef",
|
|
283
|
-
ref:
|
|
278
|
+
ref: O,
|
|
284
279
|
value: l.name,
|
|
285
280
|
"onUpdate:value": e[2] || (e[2] = (o) => l.name = o),
|
|
286
281
|
style: { height: "40px", "font-size": "13px", color: "rgba(0, 0, 0, 0.65)" },
|
|
287
|
-
onBlur:
|
|
282
|
+
onBlur: H
|
|
288
283
|
}, null, 8, ["value"]),
|
|
289
284
|
t("div", {
|
|
290
285
|
class: x(["form-title", i.value === "name" ? "active-title" : ""])
|
|
@@ -366,8 +361,7 @@ const me = (s) => q.post({ url: "/sys/tenant/saveTenantJoinUser", params: s }, {
|
|
|
366
361
|
]);
|
|
367
362
|
};
|
|
368
363
|
}
|
|
369
|
-
});
|
|
370
|
-
const Be = /* @__PURE__ */ ue(ke, [["__scopeId", "data-v-5bf68799"]]);
|
|
364
|
+
}), Oe = /* @__PURE__ */ ue(ke, [["__scopeId", "data-v-5bf68799"]]);
|
|
371
365
|
export {
|
|
372
|
-
|
|
366
|
+
Oe as default
|
|
373
367
|
};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var A = Object.getOwnPropertySymbols;
|
|
3
|
+
var R = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var L = (t, e, n) => e in t ? O(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, w = (t, e) => {
|
|
5
|
+
for (var n in e || (e = {}))
|
|
6
|
+
R.call(e, n) && L(t, n, e[n]);
|
|
7
|
+
if (A)
|
|
8
|
+
for (var n of A(e))
|
|
9
|
+
q.call(e, n) && L(t, n, e[n]);
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
var I = (t, e, n) => new Promise((m, g) => {
|
|
13
|
+
var h = (s) => {
|
|
14
|
+
try {
|
|
15
|
+
p(n.next(s));
|
|
16
|
+
} catch (r) {
|
|
17
|
+
g(r);
|
|
18
|
+
}
|
|
19
|
+
}, u = (s) => {
|
|
20
|
+
try {
|
|
21
|
+
p(n.throw(s));
|
|
22
|
+
} catch (r) {
|
|
23
|
+
g(r);
|
|
24
|
+
}
|
|
25
|
+
}, p = (s) => s.done ? m(s.value) : Promise.resolve(s.value).then(h, u);
|
|
26
|
+
p((n = n.apply(t, e)).next());
|
|
27
|
+
});
|
|
28
|
+
import { ref as d, unref as l, defineComponent as z, resolveComponent as G, withDirectives as Q, createElementBlock as J, openBlock as K, createElementVNode as f, createVNode as $, withCtx as S, createTextVNode as U, vShow as W } from "vue";
|
|
29
|
+
import { Input as X, Form as x } from "ant-design-vue";
|
|
30
|
+
import { CountdownInput as Y } from "/@/components/CountDown";
|
|
31
|
+
import { defHttp as F } from "/@/utils/http/axios";
|
|
32
|
+
import { useGlobSetting as Z } from "/@/hooks/setting";
|
|
33
|
+
import { useMessage as ee } from "/@/hooks/web/useMessage";
|
|
34
|
+
import { useUserStore as ne } from "/@/store/modules/user";
|
|
35
|
+
import { useI18n as te } from "/@/hooks/web/useI18n";
|
|
36
|
+
import { QuestionCircleFilled as oe } from "@ant-design/icons-vue";
|
|
37
|
+
import { _ as ie } from "./index-0kQBIHx0.mjs";
|
|
38
|
+
function se(t) {
|
|
39
|
+
const { createMessage: e, notification: n } = ee(), { t: m } = te(), g = Z(), h = ne(), u = d(""), p = d({}), s = d(!1), r = d(!1), y = d(""), C = d(!1), v = d(""), b = d("");
|
|
40
|
+
function B(o) {
|
|
41
|
+
let i = `${g.uploadUrl}/sys/thirdLogin/render/${o}`;
|
|
42
|
+
window.open(
|
|
43
|
+
i,
|
|
44
|
+
`login ${o}`,
|
|
45
|
+
"height=500, width=500, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no"
|
|
46
|
+
), u.value = o, p.value = {}, s.value = !1;
|
|
47
|
+
let c = function(D) {
|
|
48
|
+
let a = D.data;
|
|
49
|
+
if (typeof a == "string")
|
|
50
|
+
if (a === "登录失败")
|
|
51
|
+
e.warning(a);
|
|
52
|
+
else if (a.includes("绑定手机号")) {
|
|
53
|
+
r.value = !0;
|
|
54
|
+
let H = a.split(",");
|
|
55
|
+
y.value = H[1], t("type", { loginType: "thirdLogin" });
|
|
56
|
+
} else
|
|
57
|
+
T(a);
|
|
58
|
+
else typeof a == "object" ? a.isObj === !0 && (C.value = !0, p.value = w({}, a)) : e.warning("不识别的信息传递");
|
|
59
|
+
window.removeEventListener("message", l(c), !1);
|
|
60
|
+
};
|
|
61
|
+
window.addEventListener("message", c, !1);
|
|
62
|
+
}
|
|
63
|
+
function T(o) {
|
|
64
|
+
l(s) === !1 && (s.value = !0, h.ThirdLogin({ token: o, thirdType: l(u) }).then((i) => {
|
|
65
|
+
i && i.userInfo ? n.success({
|
|
66
|
+
message: m("sys.login.loginSuccessTitle"),
|
|
67
|
+
description: `${m("sys.login.loginSuccessDesc")}: ${i.userInfo.realname}`,
|
|
68
|
+
duration: 3
|
|
69
|
+
}) : E(i);
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
function E(o) {
|
|
73
|
+
n.error({
|
|
74
|
+
message: "登录失败",
|
|
75
|
+
description: ((o.response || {}).data || {}).message || o.message || "请求出现错误,请稍后再试",
|
|
76
|
+
duration: 4
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function _() {
|
|
80
|
+
l(v) || k("请输入手机号"), l(b) || k("请输入验证码");
|
|
81
|
+
let o = {
|
|
82
|
+
mobile: l(v),
|
|
83
|
+
captcha: l(b),
|
|
84
|
+
thirdUserUuid: l(y)
|
|
85
|
+
};
|
|
86
|
+
F.post({ url: "/sys/thirdLogin/bindingThirdPhone", params: o }, { isTransformResponse: !1 }).then((i) => {
|
|
87
|
+
i.success ? (r.value = !1, T(i.result)) : e.warning(i.message);
|
|
88
|
+
}).catch((i) => {
|
|
89
|
+
e.warning(i.message);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function k(o) {
|
|
93
|
+
n.error({
|
|
94
|
+
message: "登录失败",
|
|
95
|
+
description: o,
|
|
96
|
+
duration: 4
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function P() {
|
|
100
|
+
t("type", { loginType: "login" });
|
|
101
|
+
}
|
|
102
|
+
function M() {
|
|
103
|
+
t("type", { loginType: "register" });
|
|
104
|
+
}
|
|
105
|
+
function N() {
|
|
106
|
+
r.value = !1;
|
|
107
|
+
}
|
|
108
|
+
function V(o) {
|
|
109
|
+
return I(this, null, function* () {
|
|
110
|
+
let i = w({}, o);
|
|
111
|
+
i.thirdUserUuid = l(y), yield F.put({ url: "/sys/thirdLogin/registerBindThirdAccount", params: i }, { isTransformResponse: !1 }).then((c) => {
|
|
112
|
+
c.success ? (r.value = !1, T(c.result)) : e.warning(c.message);
|
|
113
|
+
}).catch((c) => {
|
|
114
|
+
e.warning(c.message);
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function j(o) {
|
|
119
|
+
v.value = o.mobile, b.value = o.sms, _();
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
thirdConfirmShow: C,
|
|
123
|
+
bindingAccount: r,
|
|
124
|
+
thirdHandleOk: _,
|
|
125
|
+
thirdPhone: v,
|
|
126
|
+
thirdCaptcha: b,
|
|
127
|
+
onThirdLogin: B,
|
|
128
|
+
loginAccountClick: P,
|
|
129
|
+
registerAccountClick: M,
|
|
130
|
+
hideBindThirdAccount: N,
|
|
131
|
+
bindThirdAccount: j,
|
|
132
|
+
createAccountBindThird: V
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
const re = x.Item, ae = X.Password, le = z({
|
|
136
|
+
name: "AppThirdForm",
|
|
137
|
+
components: { FormItem: re, Form: x, InputPassword: ae, CountdownInput: Y, QuestionCircleFilled: oe },
|
|
138
|
+
setup(t, { emit: e }) {
|
|
139
|
+
return w({}, se(e));
|
|
140
|
+
}
|
|
141
|
+
}), ce = { class: "third-account" }, de = { class: "content" }, ue = { class: "enter-x bind-btn" }, fe = {
|
|
142
|
+
class: "enter-x bind-btn",
|
|
143
|
+
style: { "margin-top": "20px" }
|
|
144
|
+
};
|
|
145
|
+
function pe(t, e, n, m, g, h) {
|
|
146
|
+
const u = G("a-button");
|
|
147
|
+
return Q((K(), J("div", ce, [
|
|
148
|
+
f("div", de, [
|
|
149
|
+
e[2] || (e[2] = f("div", { class: "bind-title" }, [
|
|
150
|
+
f("span", null, "还未绑定敲敲云账号")
|
|
151
|
+
], -1)),
|
|
152
|
+
e[3] || (e[3] = f("div", { class: "bind-title-desc" }, [
|
|
153
|
+
f("span", null, "请选择绑定已有帐户,或创建新帐号")
|
|
154
|
+
], -1)),
|
|
155
|
+
f("div", ue, [
|
|
156
|
+
$(u, {
|
|
157
|
+
type: "primary",
|
|
158
|
+
onClick: t.loginAccountClick
|
|
159
|
+
}, {
|
|
160
|
+
default: S(() => [...e[0] || (e[0] = [
|
|
161
|
+
U("登录并绑定", -1)
|
|
162
|
+
])]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["onClick"])
|
|
165
|
+
]),
|
|
166
|
+
f("div", fe, [
|
|
167
|
+
$(u, {
|
|
168
|
+
type: "primary",
|
|
169
|
+
onClick: t.registerAccountClick
|
|
170
|
+
}, {
|
|
171
|
+
default: S(() => [...e[1] || (e[1] = [
|
|
172
|
+
U("注册新账号", -1)
|
|
173
|
+
])]),
|
|
174
|
+
_: 1
|
|
175
|
+
}, 8, ["onClick"])
|
|
176
|
+
])
|
|
177
|
+
])
|
|
178
|
+
], 512)), [
|
|
179
|
+
[W, t.bindingAccount]
|
|
180
|
+
]);
|
|
181
|
+
}
|
|
182
|
+
const Ae = /* @__PURE__ */ ie(le, [["render", pe], ["__scopeId", "data-v-c98a927f"]]);
|
|
183
|
+
export {
|
|
184
|
+
Ae as default
|
|
185
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
var h = (i, u, d) => new Promise((p, m) => {
|
|
2
|
+
var g = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
r(d.next(o));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
m(l);
|
|
7
|
+
}
|
|
8
|
+
}, b = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
r(d.throw(o));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
m(l);
|
|
13
|
+
}
|
|
14
|
+
}, r = (o) => o.done ? p(o.value) : Promise.resolve(o.value).then(g, b);
|
|
15
|
+
r((d = d.apply(i, u)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as S, ref as T, watch as A, resolveComponent as x, createElementBlock as $, openBlock as q, createVNode as w, withCtx as I, createTextVNode as E } from "vue";
|
|
18
|
+
import { cloneDeep as j } from "lodash-es";
|
|
19
|
+
import { BasicTable as z, useTable as F } from "/@/components/Table";
|
|
20
|
+
import { f as O, g as U, h as V } from "./auth.api-2QmzY0ji.mjs";
|
|
21
|
+
import { b as K, c as P } from "./auth.data-Cp8D9uZ7.mjs";
|
|
22
|
+
import { _ as G } from "./index-0kQBIHx0.mjs";
|
|
23
|
+
const H = S({
|
|
24
|
+
name: "AuthButtonConfig",
|
|
25
|
+
components: { BasicTable: z },
|
|
26
|
+
props: {
|
|
27
|
+
headId: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "",
|
|
30
|
+
required: !0
|
|
31
|
+
},
|
|
32
|
+
// 1单表 2主表 3附表
|
|
33
|
+
tableType: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: 1
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(i) {
|
|
39
|
+
const u = T(""), d = T(2), p = T(3), m = T(5), [g, { reload: b, getTableRef: r, setPagination: o }] = F({
|
|
40
|
+
api: y,
|
|
41
|
+
rowKey: "code",
|
|
42
|
+
bordered: !0,
|
|
43
|
+
columns: K,
|
|
44
|
+
showIndexColumn: !1
|
|
45
|
+
});
|
|
46
|
+
A(
|
|
47
|
+
() => i.headId,
|
|
48
|
+
(t) => {
|
|
49
|
+
u.value = t.split("?")[0], r().value && o({ current: 1, pageSize: 10 }), b().catch(() => null);
|
|
50
|
+
},
|
|
51
|
+
{ immediate: !0 }
|
|
52
|
+
);
|
|
53
|
+
const l = (t) => {
|
|
54
|
+
const e = j(P);
|
|
55
|
+
if (t.mainRelationType != null && t.mainThemeTemplate != null && i.tableType == 3) {
|
|
56
|
+
let s = [];
|
|
57
|
+
switch (t.mainThemeTemplate) {
|
|
58
|
+
case "normal":
|
|
59
|
+
case "innerTable":
|
|
60
|
+
case "tab":
|
|
61
|
+
t.mainRelationType == 1 ? s = [] : s = e.filter((n) => ["add", "update", "batch_delete"].includes(n.code));
|
|
62
|
+
break;
|
|
63
|
+
case "erp":
|
|
64
|
+
s = e.filter((n) => !["super_query"].includes(n.code));
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
return s;
|
|
68
|
+
} else
|
|
69
|
+
return e;
|
|
70
|
+
};
|
|
71
|
+
function y(t) {
|
|
72
|
+
return h(this, null, function* () {
|
|
73
|
+
let e = yield O(u.value, t), { authList: s, buttonList: n } = e, c = [];
|
|
74
|
+
const B = l(e);
|
|
75
|
+
for (let a of B) {
|
|
76
|
+
const f = n.findIndex((_) => _.buttonCode === a.code), C = {};
|
|
77
|
+
f !== -1 && (C.title = n[f].buttonName, n.splice(f, 1));
|
|
78
|
+
let N = {
|
|
79
|
+
status: 0,
|
|
80
|
+
page: p.value
|
|
81
|
+
}, R = s.find((_) => _.code == a.code);
|
|
82
|
+
Object.assign(a, N, R, C), c.push(a);
|
|
83
|
+
}
|
|
84
|
+
if (i.tableType == 3) {
|
|
85
|
+
const a = c.findIndex((f) => f.code === "super_query");
|
|
86
|
+
a != -1 && c.splice(a, 1);
|
|
87
|
+
}
|
|
88
|
+
if ([2, 3].includes(+i.tableType)) {
|
|
89
|
+
const a = c.findIndex((f) => f.code == "aigc_mock_data");
|
|
90
|
+
a != -1 && c.splice(a, 1);
|
|
91
|
+
}
|
|
92
|
+
return v(s, n, c);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function v(t, e, s) {
|
|
96
|
+
for (let n of e) {
|
|
97
|
+
let c = t.find((a) => a.code == n.buttonCode), B = {
|
|
98
|
+
code: n.buttonCode,
|
|
99
|
+
title: n.buttonName,
|
|
100
|
+
status: 0,
|
|
101
|
+
page: n.buttonStyle == "form" ? m.value : p.value
|
|
102
|
+
};
|
|
103
|
+
s.push(Object.assign(B, c));
|
|
104
|
+
}
|
|
105
|
+
return s;
|
|
106
|
+
}
|
|
107
|
+
function k(t, e) {
|
|
108
|
+
return h(this, null, function* () {
|
|
109
|
+
t ? L(e) : D(e);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function L(t) {
|
|
113
|
+
return h(this, null, function* () {
|
|
114
|
+
let e = yield U({
|
|
115
|
+
id: t.id,
|
|
116
|
+
code: t.code,
|
|
117
|
+
page: t.page,
|
|
118
|
+
cgformId: u.value,
|
|
119
|
+
type: d.value,
|
|
120
|
+
control: 5,
|
|
121
|
+
status: 1
|
|
122
|
+
});
|
|
123
|
+
t.id = e.id, t.status = 1;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function D(t) {
|
|
127
|
+
return h(this, null, function* () {
|
|
128
|
+
yield V(t.id), t.status = 0;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return { registerTable: g, onUpdateStatus: k };
|
|
132
|
+
}
|
|
133
|
+
}), J = { class: "auth-field-config" };
|
|
134
|
+
function M(i, u, d, p, m, g) {
|
|
135
|
+
const b = x("a-switch"), r = x("BasicTable");
|
|
136
|
+
return q(), $("div", J, [
|
|
137
|
+
w(r, { onRegister: i.registerTable }, {
|
|
138
|
+
switch: I(({ text: o, record: l }) => [
|
|
139
|
+
w(b, {
|
|
140
|
+
size: "small",
|
|
141
|
+
checked: l.status === 1,
|
|
142
|
+
onChange: (y) => i.onUpdateStatus(y, l)
|
|
143
|
+
}, null, 8, ["checked", "onChange"])
|
|
144
|
+
]),
|
|
145
|
+
control: I(() => [...u[0] || (u[0] = [
|
|
146
|
+
E(" 可见 ", -1)
|
|
147
|
+
])]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["onRegister"])
|
|
150
|
+
]);
|
|
151
|
+
}
|
|
152
|
+
const nt = /* @__PURE__ */ G(H, [["render", M]]);
|
|
153
|
+
export {
|
|
154
|
+
nt as default
|
|
155
|
+
};
|