@jeecg/online 3.5.3-beta3 → 3.6.0-beta
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-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -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-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -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 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- 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 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- 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 };
|