@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
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/AuthButtonConfig-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
package/AuthManagerDrawer.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, createCommentVNode } from "vue";
|
|
2
|
-
import { BasicDrawer, useDrawerInner } from "/@/components/Drawer";
|
|
3
|
-
import AuthFieldConfig from "./AuthFieldConfig.js";
|
|
4
|
-
import AuthButtonConfig from "./AuthButtonConfig.js";
|
|
5
|
-
import AuthDataConfig from "./AuthDataConfig.js";
|
|
6
|
-
import { _ as _export_sfc } from "./index.js";
|
|
7
|
-
import "/@/components/Table";
|
|
8
|
-
import "./auth.api.js";
|
|
9
|
-
import "/@/utils/http/axios";
|
|
10
|
-
import "./auth.data.js";
|
|
11
|
-
import "./_baseClone.js";
|
|
12
|
-
import "./_arrayPush.js";
|
|
13
|
-
import "./isArray.js";
|
|
14
|
-
import "/@/components/Modal";
|
|
15
|
-
import "/@/components/Form";
|
|
16
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
17
|
-
import "/@/hooks/web/useMessage";
|
|
18
|
-
import "vue-router";
|
|
19
|
-
const _sfc_main = defineComponent({
|
|
20
|
-
name: "AuthManagerDrawer",
|
|
21
|
-
components: {
|
|
22
|
-
BasicDrawer,
|
|
23
|
-
AuthFieldConfig,
|
|
24
|
-
AuthButtonConfig,
|
|
25
|
-
AuthDataConfig
|
|
26
|
-
},
|
|
27
|
-
props: {
|
|
28
|
-
tableType: {
|
|
29
|
-
type: Number,
|
|
30
|
-
default: 1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["register"],
|
|
34
|
-
setup(props) {
|
|
35
|
-
const cgformId = ref("");
|
|
36
|
-
const headId = ref("");
|
|
37
|
-
const authFields = ref([]);
|
|
38
|
-
const activeKey = ref("field");
|
|
39
|
-
const hasDataAuth = computed(() => props.tableType == 1 || props.tableType == 2);
|
|
40
|
-
const [registerDrawer, { closeDrawer }] = useDrawerInner((data) => {
|
|
41
|
-
cgformId.value = data.cgformId;
|
|
42
|
-
headId.value = cgformId.value + "?" + new Date().getTime();
|
|
43
|
-
activeKey.value = "field";
|
|
44
|
-
});
|
|
45
|
-
function onClose() {
|
|
46
|
-
closeDrawer();
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
activeKey,
|
|
50
|
-
cgformId,
|
|
51
|
-
headId,
|
|
52
|
-
authFields,
|
|
53
|
-
hasDataAuth,
|
|
54
|
-
onClose,
|
|
55
|
-
registerDrawer
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
60
|
-
const _component_AuthFieldConfig = resolveComponent("AuthFieldConfig");
|
|
61
|
-
const _component_a_tab_pane = resolveComponent("a-tab-pane");
|
|
62
|
-
const _component_AuthButtonConfig = resolveComponent("AuthButtonConfig");
|
|
63
|
-
const _component_AuthDataConfig = resolveComponent("AuthDataConfig");
|
|
64
|
-
const _component_a_tabs = resolveComponent("a-tabs");
|
|
65
|
-
const _component_BasicDrawer = resolveComponent("BasicDrawer");
|
|
66
|
-
return openBlock(), createBlock(_component_BasicDrawer, {
|
|
67
|
-
onRegister: _ctx.registerDrawer,
|
|
68
|
-
title: "\u6743\u9650\u7BA1\u7406",
|
|
69
|
-
width: 800,
|
|
70
|
-
onClose: _ctx.onClose
|
|
71
|
-
}, {
|
|
72
|
-
default: withCtx(() => [
|
|
73
|
-
createVNode(_component_a_tabs, {
|
|
74
|
-
activeKey: _ctx.activeKey,
|
|
75
|
-
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => _ctx.activeKey = $event)
|
|
76
|
-
}, {
|
|
77
|
-
default: withCtx(() => [
|
|
78
|
-
createVNode(_component_a_tab_pane, {
|
|
79
|
-
tab: "\u5B57\u6BB5\u6743\u9650",
|
|
80
|
-
key: "field",
|
|
81
|
-
forceRender: ""
|
|
82
|
-
}, {
|
|
83
|
-
default: withCtx(() => [
|
|
84
|
-
createVNode(_component_AuthFieldConfig, {
|
|
85
|
-
headId: _ctx.headId,
|
|
86
|
-
authFields: _ctx.authFields,
|
|
87
|
-
"onUpdate:authFields": _cache[0] || (_cache[0] = ($event) => _ctx.authFields = $event)
|
|
88
|
-
}, null, 8, ["headId", "authFields"])
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}),
|
|
92
|
-
_ctx.hasDataAuth ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
93
|
-
createVNode(_component_a_tab_pane, {
|
|
94
|
-
tab: "\u6309\u94AE\u6743\u9650",
|
|
95
|
-
key: "button",
|
|
96
|
-
forceRender: ""
|
|
97
|
-
}, {
|
|
98
|
-
default: withCtx(() => [
|
|
99
|
-
createVNode(_component_AuthButtonConfig, { headId: _ctx.headId }, null, 8, ["headId"])
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
}),
|
|
103
|
-
createVNode(_component_a_tab_pane, {
|
|
104
|
-
tab: "\u6570\u636E\u6743\u9650",
|
|
105
|
-
key: "data",
|
|
106
|
-
forceRender: ""
|
|
107
|
-
}, {
|
|
108
|
-
default: withCtx(() => [
|
|
109
|
-
createVNode(_component_AuthDataConfig, {
|
|
110
|
-
cgformId: _ctx.cgformId,
|
|
111
|
-
authFields: _ctx.authFields
|
|
112
|
-
}, null, 8, ["cgformId", "authFields"])
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
})
|
|
116
|
-
], 64)) : createCommentVNode("", true)
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
}, 8, ["activeKey"])
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}, 8, ["onRegister", "onClose"]);
|
|
123
|
-
}
|
|
124
|
-
var AuthManagerDrawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
125
|
-
export { AuthManagerDrawer as default };
|
package/AuthSetterModal.js
DELETED
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __async = (__this, __arguments, generator) => {
|
|
21
|
-
return new Promise((resolve, reject) => {
|
|
22
|
-
var fulfilled = (value) => {
|
|
23
|
-
try {
|
|
24
|
-
step(generator.next(value));
|
|
25
|
-
} catch (e) {
|
|
26
|
-
reject(e);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
var rejected = (value) => {
|
|
30
|
-
try {
|
|
31
|
-
step(generator.throw(value));
|
|
32
|
-
} catch (e) {
|
|
33
|
-
reject(e);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
37
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
import LeftRole from "./LeftRole.js";
|
|
41
|
-
import LeftDepart from "./LeftDepart.js";
|
|
42
|
-
import LeftUser from "./LeftUser.js";
|
|
43
|
-
import AuthFieldTree from "./AuthFieldTree.js";
|
|
44
|
-
import AuthButtonTree from "./AuthButtonTree.js";
|
|
45
|
-
import AuthDataTree from "./AuthDataTree.js";
|
|
46
|
-
import { defineComponent, ref, computed, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, createCommentVNode } from "vue";
|
|
47
|
-
import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
48
|
-
import { _ as _export_sfc } from "./index.js";
|
|
49
|
-
import "/@/utils/http/axios";
|
|
50
|
-
import "/@/components/Table";
|
|
51
|
-
import "/@/hooks/system/useListPage";
|
|
52
|
-
import "/@/api/common/api";
|
|
53
|
-
import "/@/hooks/web/useMessage";
|
|
54
|
-
import "./auth.api.js";
|
|
55
|
-
import "@ant-design/icons-vue";
|
|
56
|
-
import "./auth.data.js";
|
|
57
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
58
|
-
import "vue-router";
|
|
59
|
-
const _sfc_main = defineComponent({
|
|
60
|
-
name: "AuthSetterModal",
|
|
61
|
-
components: {
|
|
62
|
-
BasicModal,
|
|
63
|
-
LeftRole,
|
|
64
|
-
LeftDepart,
|
|
65
|
-
LeftUser,
|
|
66
|
-
AuthFieldTree,
|
|
67
|
-
AuthButtonTree,
|
|
68
|
-
AuthDataTree
|
|
69
|
-
},
|
|
70
|
-
props: {
|
|
71
|
-
tableType: { type: Number, default: 1 }
|
|
72
|
-
},
|
|
73
|
-
setup(props) {
|
|
74
|
-
const cgformId = ref("");
|
|
75
|
-
const loading = ref(false);
|
|
76
|
-
const activeKey = ref("field");
|
|
77
|
-
const authMode = ref("role");
|
|
78
|
-
const refs = {
|
|
79
|
-
fieldRef: ref(),
|
|
80
|
-
buttonRef: ref(),
|
|
81
|
-
dataRef: ref(),
|
|
82
|
-
roleRef: ref(),
|
|
83
|
-
userRef: ref(),
|
|
84
|
-
departRef: ref()
|
|
85
|
-
};
|
|
86
|
-
const activeRole = ref("");
|
|
87
|
-
const hasDataAuth = computed(() => props.tableType == 1 || props.tableType == 2);
|
|
88
|
-
const [registerModal, { closeModal }] = useModalInner((data) => {
|
|
89
|
-
activeKey.value = "field";
|
|
90
|
-
cgformId.value = data.cgformId;
|
|
91
|
-
reset();
|
|
92
|
-
});
|
|
93
|
-
function getActiveRef(key = activeKey.value) {
|
|
94
|
-
var _a;
|
|
95
|
-
return (_a = refs[key + "Ref"]) == null ? void 0 : _a.value;
|
|
96
|
-
}
|
|
97
|
-
function reset() {
|
|
98
|
-
return __async(this, null, function* () {
|
|
99
|
-
yield nextTick();
|
|
100
|
-
clearLeftCurrentTabSelect();
|
|
101
|
-
getActiveRef().clear();
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function onSelectRole(roleId) {
|
|
105
|
-
activeRole.value = roleId;
|
|
106
|
-
onAuthTypeChange(activeKey.value);
|
|
107
|
-
clearLeftOtherTabSelect();
|
|
108
|
-
}
|
|
109
|
-
function onSelectDepart(departid) {
|
|
110
|
-
activeRole.value = departid;
|
|
111
|
-
onAuthTypeChange(activeKey.value);
|
|
112
|
-
clearLeftOtherTabSelect();
|
|
113
|
-
}
|
|
114
|
-
function onSelectUser(userId) {
|
|
115
|
-
activeRole.value = userId;
|
|
116
|
-
onAuthTypeChange(activeKey.value);
|
|
117
|
-
clearLeftOtherTabSelect();
|
|
118
|
-
}
|
|
119
|
-
function clearLeftOtherTabSelect() {
|
|
120
|
-
if (authMode.value == "role") {
|
|
121
|
-
refs.departRef.value.clearSelected();
|
|
122
|
-
refs.userRef.value.clearSelected();
|
|
123
|
-
} else if (authMode.value == "depart") {
|
|
124
|
-
refs.roleRef.value.clearSelected();
|
|
125
|
-
refs.userRef.value.clearSelected();
|
|
126
|
-
} else if (authMode.value == "user") {
|
|
127
|
-
refs.departRef.value.clearSelected();
|
|
128
|
-
refs.roleRef.value.clearSelected();
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
function clearLeftCurrentTabSelect() {
|
|
132
|
-
if (authMode.value == "role") {
|
|
133
|
-
refs.roleRef.value.clearSelected();
|
|
134
|
-
} else if (authMode.value == "depart") {
|
|
135
|
-
refs.departRef.value.clearSelected();
|
|
136
|
-
} else if (authMode.value == "user") {
|
|
137
|
-
refs.userRef.value.clearSelected();
|
|
138
|
-
}
|
|
139
|
-
getActiveRef().clearChecked();
|
|
140
|
-
}
|
|
141
|
-
function onAuthTypeChange(key) {
|
|
142
|
-
return __async(this, null, function* () {
|
|
143
|
-
yield nextTick();
|
|
144
|
-
if (activeRole.value) {
|
|
145
|
-
getActiveRef(key).loadChecked(activeRole.value, authMode.value);
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
function onAuthModeChange() {
|
|
150
|
-
clearLeftCurrentTabSelect();
|
|
151
|
-
}
|
|
152
|
-
return __spreadProps(__spreadValues({}, refs), {
|
|
153
|
-
cgformId,
|
|
154
|
-
loading,
|
|
155
|
-
activeKey,
|
|
156
|
-
hasDataAuth,
|
|
157
|
-
authMode,
|
|
158
|
-
onAuthModeChange,
|
|
159
|
-
onAuthTypeChange,
|
|
160
|
-
closeModal,
|
|
161
|
-
onSelectRole,
|
|
162
|
-
onSelectDepart,
|
|
163
|
-
onSelectUser,
|
|
164
|
-
registerModal
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
169
|
-
const _component_LeftRole = resolveComponent("LeftRole");
|
|
170
|
-
const _component_a_tab_pane = resolveComponent("a-tab-pane");
|
|
171
|
-
const _component_LeftDepart = resolveComponent("LeftDepart");
|
|
172
|
-
const _component_LeftUser = resolveComponent("LeftUser");
|
|
173
|
-
const _component_a_tabs = resolveComponent("a-tabs");
|
|
174
|
-
const _component_a_col = resolveComponent("a-col");
|
|
175
|
-
const _component_AuthFieldTree = resolveComponent("AuthFieldTree");
|
|
176
|
-
const _component_AuthButtonTree = resolveComponent("AuthButtonTree");
|
|
177
|
-
const _component_AuthDataTree = resolveComponent("AuthDataTree");
|
|
178
|
-
const _component_a_row = resolveComponent("a-row");
|
|
179
|
-
const _component_a_spin = resolveComponent("a-spin");
|
|
180
|
-
const _component_BasicModal = resolveComponent("BasicModal");
|
|
181
|
-
return openBlock(), createBlock(_component_BasicModal, {
|
|
182
|
-
title: "Online\u6743\u9650\u6388\u6743",
|
|
183
|
-
width: 900,
|
|
184
|
-
maskClosable: false,
|
|
185
|
-
defaultFullscreen: "",
|
|
186
|
-
okButtonProps: { style: { display: "none" } },
|
|
187
|
-
cancelText: "\u5173\u95ED",
|
|
188
|
-
onCancel: _ctx.closeModal,
|
|
189
|
-
onRegister: _ctx.registerModal
|
|
190
|
-
}, {
|
|
191
|
-
default: withCtx(() => [
|
|
192
|
-
createVNode(_component_a_spin, { spinning: _ctx.loading }, {
|
|
193
|
-
default: withCtx(() => [
|
|
194
|
-
createVNode(_component_a_row, null, {
|
|
195
|
-
default: withCtx(() => [
|
|
196
|
-
createVNode(_component_a_col, { span: 12 }, {
|
|
197
|
-
default: withCtx(() => [
|
|
198
|
-
createVNode(_component_a_tabs, {
|
|
199
|
-
activeKey: _ctx.authMode,
|
|
200
|
-
"onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => _ctx.authMode = $event),
|
|
201
|
-
onChange: _ctx.onAuthModeChange
|
|
202
|
-
}, {
|
|
203
|
-
default: withCtx(() => [
|
|
204
|
-
createVNode(_component_a_tab_pane, {
|
|
205
|
-
tab: "\u89D2\u8272\u6388\u6743",
|
|
206
|
-
key: "role",
|
|
207
|
-
forceRender: ""
|
|
208
|
-
}, {
|
|
209
|
-
default: withCtx(() => [
|
|
210
|
-
createVNode(_component_LeftRole, {
|
|
211
|
-
ref: "roleRef",
|
|
212
|
-
onSelect: _ctx.onSelectRole
|
|
213
|
-
}, null, 8, ["onSelect"])
|
|
214
|
-
]),
|
|
215
|
-
_: 1
|
|
216
|
-
}),
|
|
217
|
-
createVNode(_component_a_tab_pane, {
|
|
218
|
-
tab: "\u90E8\u95E8\u6388\u6743",
|
|
219
|
-
key: "depart",
|
|
220
|
-
forceRender: ""
|
|
221
|
-
}, {
|
|
222
|
-
default: withCtx(() => [
|
|
223
|
-
createVNode(_component_LeftDepart, {
|
|
224
|
-
ref: "departRef",
|
|
225
|
-
onSelect: _ctx.onSelectDepart
|
|
226
|
-
}, null, 8, ["onSelect"])
|
|
227
|
-
]),
|
|
228
|
-
_: 1
|
|
229
|
-
}),
|
|
230
|
-
createVNode(_component_a_tab_pane, {
|
|
231
|
-
tab: "\u4EBA\u5458\u6388\u6743",
|
|
232
|
-
key: "user",
|
|
233
|
-
forceRender: ""
|
|
234
|
-
}, {
|
|
235
|
-
default: withCtx(() => [
|
|
236
|
-
createVNode(_component_LeftUser, {
|
|
237
|
-
ref: "userRef",
|
|
238
|
-
onSelect: _ctx.onSelectUser
|
|
239
|
-
}, null, 8, ["onSelect"])
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
})
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
}, 8, ["activeKey", "onChange"])
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
}),
|
|
249
|
-
createVNode(_component_a_col, { span: 1 }),
|
|
250
|
-
createVNode(_component_a_col, { span: 11 }, {
|
|
251
|
-
default: withCtx(() => [
|
|
252
|
-
createVNode(_component_a_tabs, {
|
|
253
|
-
activeKey: _ctx.activeKey,
|
|
254
|
-
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => _ctx.activeKey = $event),
|
|
255
|
-
onChange: _ctx.onAuthTypeChange
|
|
256
|
-
}, {
|
|
257
|
-
default: withCtx(() => [
|
|
258
|
-
createVNode(_component_a_tab_pane, {
|
|
259
|
-
tab: "\u5B57\u6BB5\u6743\u9650",
|
|
260
|
-
key: "field",
|
|
261
|
-
forceRender: ""
|
|
262
|
-
}, {
|
|
263
|
-
default: withCtx(() => [
|
|
264
|
-
createVNode(_component_AuthFieldTree, {
|
|
265
|
-
ref: "fieldRef",
|
|
266
|
-
cgformId: _ctx.cgformId
|
|
267
|
-
}, null, 8, ["cgformId"])
|
|
268
|
-
]),
|
|
269
|
-
_: 1
|
|
270
|
-
}),
|
|
271
|
-
_ctx.hasDataAuth ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
272
|
-
createVNode(_component_a_tab_pane, {
|
|
273
|
-
tab: "\u6309\u94AE\u6743\u9650",
|
|
274
|
-
key: "button",
|
|
275
|
-
forceRender: ""
|
|
276
|
-
}, {
|
|
277
|
-
default: withCtx(() => [
|
|
278
|
-
createVNode(_component_AuthButtonTree, {
|
|
279
|
-
ref: "buttonRef",
|
|
280
|
-
cgformId: _ctx.cgformId
|
|
281
|
-
}, null, 8, ["cgformId"])
|
|
282
|
-
]),
|
|
283
|
-
_: 1
|
|
284
|
-
}),
|
|
285
|
-
createVNode(_component_a_tab_pane, {
|
|
286
|
-
tab: "\u6570\u636E\u6743\u9650",
|
|
287
|
-
key: "data",
|
|
288
|
-
forceRender: ""
|
|
289
|
-
}, {
|
|
290
|
-
default: withCtx(() => [
|
|
291
|
-
createVNode(_component_AuthDataTree, {
|
|
292
|
-
ref: "dataRef",
|
|
293
|
-
cgformId: _ctx.cgformId
|
|
294
|
-
}, null, 8, ["cgformId"])
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
})
|
|
298
|
-
], 64)) : createCommentVNode("", true)
|
|
299
|
-
]),
|
|
300
|
-
_: 1
|
|
301
|
-
}, 8, ["activeKey", "onChange"])
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
})
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
})
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
}, 8, ["spinning"])
|
|
311
|
-
]),
|
|
312
|
-
_: 1
|
|
313
|
-
}, 8, ["onCancel", "onRegister"]);
|
|
314
|
-
}
|
|
315
|
-
var AuthSetterModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
316
|
-
export { AuthSetterModal as default };
|