@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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
var _ = Object.defineProperty, x = Object.defineProperties;
|
|
2
|
+
var A = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var b = (e, o, n) => o in e ? _(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, a = (e, o) => {
|
|
6
|
+
for (var n in o || (o = {}))
|
|
7
|
+
E.call(o, n) && b(e, n, o[n]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var n of C(o))
|
|
10
|
+
N.call(o, n) && b(e, n, o[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, g = (e, o) => x(e, A(o));
|
|
13
|
+
import { defineComponent as S, computed as v, createVNode as M, unref as f } from "vue";
|
|
14
|
+
import { upperFirst as D } from "lodash-es";
|
|
15
|
+
import { componentMap as I } from "/@/components/Form/src/componentMap";
|
|
16
|
+
import { isFunction as K } from "/@/utils/is";
|
|
17
|
+
const G = /* @__PURE__ */ S({
|
|
18
|
+
name: "OnlineSuperQueryValComponent",
|
|
19
|
+
inheritAttrs: !1,
|
|
20
|
+
props: {
|
|
21
|
+
schema: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
formModel: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
},
|
|
29
|
+
setFormModel: {
|
|
30
|
+
type: Function,
|
|
31
|
+
default: null
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["submit"],
|
|
35
|
+
setup(e, {
|
|
36
|
+
emit: o
|
|
37
|
+
}) {
|
|
38
|
+
const n = v(() => {
|
|
39
|
+
var s;
|
|
40
|
+
const {
|
|
41
|
+
schema: t,
|
|
42
|
+
formModel: c
|
|
43
|
+
} = e;
|
|
44
|
+
let {
|
|
45
|
+
componentProps: l = {}
|
|
46
|
+
} = t;
|
|
47
|
+
return K(l) && (l = (s = l({
|
|
48
|
+
schema: t,
|
|
49
|
+
formModel: c
|
|
50
|
+
})) != null ? s : {}), l;
|
|
51
|
+
}), P = v(() => {
|
|
52
|
+
const {
|
|
53
|
+
formModel: t,
|
|
54
|
+
schema: c
|
|
55
|
+
} = e;
|
|
56
|
+
return {
|
|
57
|
+
field: c.field,
|
|
58
|
+
model: t,
|
|
59
|
+
values: a({}, t),
|
|
60
|
+
schema: c
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
function F() {
|
|
64
|
+
var h;
|
|
65
|
+
const {
|
|
66
|
+
component: t,
|
|
67
|
+
changeEvent: c = "change",
|
|
68
|
+
valueField: l
|
|
69
|
+
} = e.schema, s = "val", p = t && ["Switch", "Checkbox"].includes(t), u = `on${D(c)}`, k = {
|
|
70
|
+
[u]: (...i) => {
|
|
71
|
+
const [m] = i;
|
|
72
|
+
r[u] && r[u](...i);
|
|
73
|
+
const d = m ? m.target : null, O = d ? p ? d.checked : d.value : m;
|
|
74
|
+
e.setFormModel(s, O);
|
|
75
|
+
}
|
|
76
|
+
}, V = I.get(t), r = a({
|
|
77
|
+
allowClear: !0,
|
|
78
|
+
getPopupContainer: (i) => i.parentNode
|
|
79
|
+
}, f(n));
|
|
80
|
+
!r.disabled && t !== "RangePicker" && t && (r.placeholder = ((h = f(n)) == null ? void 0 : h.placeholder) || y(t) + e.schema.label), r.codeField = s, r.formValues = f(P);
|
|
81
|
+
const j = {
|
|
82
|
+
[l || (p ? "checked" : "value")]: e.formModel[s]
|
|
83
|
+
}, w = g(a(a(a({}, r), k), j), {
|
|
84
|
+
allowClear: !0,
|
|
85
|
+
onPressEnter() {
|
|
86
|
+
o("submit");
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
return M(V, w, null);
|
|
90
|
+
}
|
|
91
|
+
return () => M("div", {
|
|
92
|
+
style: "width:100%"
|
|
93
|
+
}, [F()]);
|
|
94
|
+
function y(t) {
|
|
95
|
+
return t.includes("Input") || t.includes("Complete") ? "请输入" : "请选择";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
G as _
|
|
101
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defHttp as o } from "/@/utils/http/axios";
|
|
2
|
+
const l = (t, a) => o.get({ url: `/online/cgform/api/authColumn/${t}`, params: a }), r = (t) => o.put({ url: "/online/cgform/api/authColumn", params: t }), s = (t) => o.post({ url: "/online/cgform/api/authColumn", params: t }), i = (t, a) => o.get({ url: `/online/cgform/api/authButton/${t}`, params: a }), c = (t) => o.post({ url: "/online/cgform/api/authButton", params: t }), h = (t, a) => o.put({ url: `/online/cgform/api/authButton/${t}`, params: a }), p = (t, a) => o.get({ url: `/online/cgform/api/authData/${t}`, params: a }), g = (t) => o.put({ url: "/online/cgform/api/authData", params: t }), $ = (t, a) => a ? o.put({ url: "/online/cgform/api/authData", params: t }) : o.post({ url: "/online/cgform/api/authData", params: t }), m = (t, a) => o.delete({ url: `/online/cgform/api/authData/${t}`, params: a }), f = (t, a, e) => {
|
|
3
|
+
let u = `/online/cgform/api/authPage/${t}/${a}`;
|
|
4
|
+
return o.get({ url: u, params: e });
|
|
5
|
+
}, d = (t, a) => {
|
|
6
|
+
let e = `/online/cgform/api/validAuthData/${t}`;
|
|
7
|
+
return o.get({ url: e, params: a });
|
|
8
|
+
}, D = (t, a, e) => {
|
|
9
|
+
let u = `/online/cgform/api/authPage/${t}/${a}`;
|
|
10
|
+
return o.get({ url: u, params: e });
|
|
11
|
+
}, A = (t) => o.get({ url: "/online/cgform/api/roleAuth", params: t }), B = (t, a, e) => {
|
|
12
|
+
let u = `/online/cgform/api/roleColumnAuth/${t}/${a}`;
|
|
13
|
+
return o.post({ url: u, params: e });
|
|
14
|
+
}, C = (t, a, e) => {
|
|
15
|
+
let u = `/online/cgform/api/roleDataAuth/${t}/${a}`;
|
|
16
|
+
return o.post({ url: u, params: e });
|
|
17
|
+
}, L = (t, a, e) => {
|
|
18
|
+
let u = `/online/cgform/api/roleButtonAuth/${t}/${a}`;
|
|
19
|
+
return o.post({ url: u, params: e });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
l as a,
|
|
23
|
+
r as b,
|
|
24
|
+
s as c,
|
|
25
|
+
i as d,
|
|
26
|
+
c as e,
|
|
27
|
+
h as f,
|
|
28
|
+
p as g,
|
|
29
|
+
$ as h,
|
|
30
|
+
g as i,
|
|
31
|
+
m as j,
|
|
32
|
+
f as k,
|
|
33
|
+
A as l,
|
|
34
|
+
D as m,
|
|
35
|
+
L as n,
|
|
36
|
+
d as o,
|
|
37
|
+
C as p,
|
|
38
|
+
B as s
|
|
39
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { computed as s } from "vue";
|
|
2
|
+
const n = [
|
|
3
|
+
{
|
|
4
|
+
title: "启用",
|
|
5
|
+
dataIndex: "switch",
|
|
6
|
+
width: 80,
|
|
7
|
+
align: "center",
|
|
8
|
+
slots: { customRender: "switch" }
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
title: "字段名称",
|
|
12
|
+
width: 200,
|
|
13
|
+
dataIndex: "code"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: "字段描述",
|
|
17
|
+
// width: 200,
|
|
18
|
+
dataIndex: "title"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: "列表控制",
|
|
22
|
+
dataIndex: "list",
|
|
23
|
+
width: 120,
|
|
24
|
+
slots: { customRender: "list" }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: "表单控制",
|
|
28
|
+
dataIndex: "form",
|
|
29
|
+
width: 180,
|
|
30
|
+
slots: { customRender: "form" }
|
|
31
|
+
}
|
|
32
|
+
], i = [
|
|
33
|
+
{
|
|
34
|
+
title: "启用",
|
|
35
|
+
dataIndex: "switch",
|
|
36
|
+
width: 80,
|
|
37
|
+
slots: { customRender: "switch" }
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "名称",
|
|
41
|
+
dataIndex: "title"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
title: "编码",
|
|
45
|
+
dataIndex: "code"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: "权限控制",
|
|
49
|
+
dataIndex: "control",
|
|
50
|
+
width: 180,
|
|
51
|
+
slots: { customRender: "control" }
|
|
52
|
+
}
|
|
53
|
+
], u = [
|
|
54
|
+
{ code: "add", title: "新增", status: 0 },
|
|
55
|
+
{ code: "update", title: "编辑", status: 0 },
|
|
56
|
+
{ code: "delete", title: "删除", status: 0 },
|
|
57
|
+
{ code: "batch_delete", title: "批量删除", status: 0 },
|
|
58
|
+
{ code: "export", title: "导出", status: 0 },
|
|
59
|
+
{ code: "import", title: "导入", status: 0 },
|
|
60
|
+
{ code: "bpm", title: "提交流程", status: 0 },
|
|
61
|
+
{ code: "super_query", title: "高级查询", status: 0 }
|
|
62
|
+
], a = "USE_SQL_RULES", r = [
|
|
63
|
+
{
|
|
64
|
+
title: "启用",
|
|
65
|
+
dataIndex: "switch",
|
|
66
|
+
width: 80,
|
|
67
|
+
slots: { customRender: "switch" }
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: "规则名称",
|
|
71
|
+
dataIndex: "ruleName",
|
|
72
|
+
width: 130
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: "规则描述",
|
|
76
|
+
dataIndex: "description",
|
|
77
|
+
customRender({ record: { ruleOperator: t, ruleValue: e, ruleColumn: d } }) {
|
|
78
|
+
return t == a ? `自定义SQL: ${e}` : `${d} ${t} ${e}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
function c(t, e) {
|
|
83
|
+
return { formSchemas: s(() => [
|
|
84
|
+
{
|
|
85
|
+
label: "规则名称",
|
|
86
|
+
field: "ruleName",
|
|
87
|
+
required: !0,
|
|
88
|
+
component: "Input"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: "规则字段",
|
|
92
|
+
field: "ruleColumn",
|
|
93
|
+
component: "JSearchSelect",
|
|
94
|
+
componentProps: {
|
|
95
|
+
dictOptions: t.authFields,
|
|
96
|
+
getPopupContainer: () => document.body
|
|
97
|
+
},
|
|
98
|
+
dynamicRules({ model: o }) {
|
|
99
|
+
return [{ required: o.ruleOperator != a, message: "请输入规则字段" }];
|
|
100
|
+
},
|
|
101
|
+
show: ({ model: o }) => o.ruleOperator != a
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "条件规则",
|
|
105
|
+
field: "ruleOperator",
|
|
106
|
+
required: !0,
|
|
107
|
+
component: "JDictSelectTag",
|
|
108
|
+
componentProps: {
|
|
109
|
+
dictCode: "rule_conditions",
|
|
110
|
+
onChange: e.onRuleOperatorChange
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
label: "规则值",
|
|
115
|
+
field: "ruleValue",
|
|
116
|
+
required: !0,
|
|
117
|
+
component: "Input"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: "状态",
|
|
121
|
+
field: "status",
|
|
122
|
+
required: !0,
|
|
123
|
+
component: "RadioButtonGroup",
|
|
124
|
+
componentProps: {
|
|
125
|
+
options: [
|
|
126
|
+
{ label: "有效", value: 1 },
|
|
127
|
+
{ label: "无效", value: 0 }
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
defaultValue: 1
|
|
131
|
+
}
|
|
132
|
+
]) };
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
a as U,
|
|
136
|
+
n as a,
|
|
137
|
+
i as b,
|
|
138
|
+
u as c,
|
|
139
|
+
r as d,
|
|
140
|
+
c as u
|
|
141
|
+
};
|
|
@@ -1,73 +1,60 @@
|
|
|
1
|
-
import { getDictItemsByCode } from "/@/utils/dict";
|
|
2
|
-
import { filterDictText } from "/@/utils/dict/JDictSelectUtil";
|
|
3
|
-
import { buildUUID } from "/@/utils/uuid";
|
|
4
|
-
const
|
|
5
|
-
const columns = [
|
|
1
|
+
import { getDictItemsByCode as l } from "/@/utils/dict";
|
|
2
|
+
import { filterDictText as n } from "/@/utils/dict/JDictSelectUtil";
|
|
3
|
+
import { buildUUID as s } from "/@/utils/uuid";
|
|
4
|
+
const r = "validate-failed", h = [
|
|
6
5
|
{
|
|
7
|
-
title: "
|
|
6
|
+
title: "表类型",
|
|
8
7
|
align: "center",
|
|
9
|
-
sorter:
|
|
8
|
+
sorter: !0,
|
|
10
9
|
dataIndex: "tableType",
|
|
11
10
|
width: 140,
|
|
12
|
-
customRender({ text, record }) {
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
if (record.isTree === "Y") {
|
|
16
|
-
tbTypeText += "(\u6811)";
|
|
17
|
-
}
|
|
18
|
-
if (record.themeTemplate === "innerTable") {
|
|
19
|
-
tbTypeText += "(\u5185\u5D4C)";
|
|
20
|
-
} else if (record.themeTemplate === "erp") {
|
|
21
|
-
tbTypeText += "(ERP)";
|
|
22
|
-
} else if (record.themeTemplate === "tab") {
|
|
23
|
-
tbTypeText += "(TAB)";
|
|
24
|
-
}
|
|
25
|
-
return tbTypeText;
|
|
11
|
+
customRender({ text: d, record: e }) {
|
|
12
|
+
let i = l("cgform_table_type"), t = n(i, d);
|
|
13
|
+
return e.isTree === "Y" && (t += "(树)"), e.themeTemplate === "innerTable" ? t += "(内嵌)" : e.themeTemplate === "erp" ? t += "(ERP)" : e.themeTemplate === "tab" && (t += "(TAB)"), t;
|
|
26
14
|
}
|
|
27
15
|
},
|
|
28
16
|
{
|
|
29
|
-
title: "
|
|
30
|
-
sorter:
|
|
17
|
+
title: "表名",
|
|
18
|
+
sorter: !0,
|
|
31
19
|
align: "center",
|
|
32
20
|
dataIndex: "tableName",
|
|
33
21
|
width: 240
|
|
34
22
|
},
|
|
35
23
|
{
|
|
36
|
-
title: "
|
|
24
|
+
title: "表描述",
|
|
37
25
|
align: "center",
|
|
38
26
|
dataIndex: "tableTxt",
|
|
39
27
|
width: 220
|
|
40
28
|
},
|
|
41
29
|
{
|
|
42
|
-
title: "
|
|
30
|
+
title: "版本",
|
|
43
31
|
align: "center",
|
|
44
32
|
dataIndex: "tableVersion",
|
|
45
33
|
width: 120
|
|
46
34
|
},
|
|
47
35
|
{
|
|
48
|
-
title: "
|
|
36
|
+
title: "同步状态",
|
|
49
37
|
align: "center",
|
|
50
|
-
sorter:
|
|
38
|
+
sorter: !0,
|
|
51
39
|
dataIndex: "isDbSynch",
|
|
52
40
|
slots: { customRender: "dbSync" },
|
|
53
41
|
width: 120
|
|
54
42
|
},
|
|
55
43
|
{
|
|
56
|
-
title: "
|
|
44
|
+
title: "创建时间",
|
|
57
45
|
align: "center",
|
|
58
|
-
sorter:
|
|
46
|
+
sorter: !0,
|
|
59
47
|
dataIndex: "createTime",
|
|
60
48
|
width: 240
|
|
61
49
|
}
|
|
62
|
-
]
|
|
63
|
-
const searchFormSchema = [
|
|
50
|
+
], u = [
|
|
64
51
|
{
|
|
65
|
-
label: "
|
|
52
|
+
label: "表名",
|
|
66
53
|
field: "tableName",
|
|
67
54
|
component: "JInput"
|
|
68
55
|
},
|
|
69
56
|
{
|
|
70
|
-
label: "
|
|
57
|
+
label: "表类型",
|
|
71
58
|
field: "tableType_MultiString",
|
|
72
59
|
component: "JDictSelectTag",
|
|
73
60
|
componentProps: {
|
|
@@ -76,12 +63,12 @@ const searchFormSchema = [
|
|
|
76
63
|
}
|
|
77
64
|
},
|
|
78
65
|
{
|
|
79
|
-
label: "
|
|
66
|
+
label: "表描述",
|
|
80
67
|
field: "tableTxt",
|
|
81
68
|
component: "JInput"
|
|
82
69
|
}
|
|
83
|
-
]
|
|
84
|
-
|
|
70
|
+
], m = {
|
|
71
|
+
// 对接报表打印
|
|
85
72
|
reportPrintShow: 0,
|
|
86
73
|
reportPrintUrl: "",
|
|
87
74
|
joinQuery: 0,
|
|
@@ -91,17 +78,18 @@ const ExtConfigDefaultJson = {
|
|
|
91
78
|
tableFixedAction: 1,
|
|
92
79
|
tableFixedActionType: "right"
|
|
93
80
|
};
|
|
94
|
-
function
|
|
95
|
-
let
|
|
81
|
+
function y() {
|
|
82
|
+
let d = [
|
|
96
83
|
{
|
|
97
84
|
dbFieldName: "id",
|
|
98
|
-
dbFieldTxt: "
|
|
85
|
+
dbFieldTxt: "主键",
|
|
99
86
|
dbLength: 36,
|
|
100
87
|
dbPointLength: 0,
|
|
101
88
|
dbDefaultVal: "",
|
|
102
89
|
dbType: "string",
|
|
103
90
|
dbIsKey: "1",
|
|
104
91
|
dbIsNull: "0",
|
|
92
|
+
// table2
|
|
105
93
|
isShowForm: "0",
|
|
106
94
|
isShowList: "0",
|
|
107
95
|
isReadOnly: "1",
|
|
@@ -112,13 +100,14 @@ function useInitialData() {
|
|
|
112
100
|
},
|
|
113
101
|
{
|
|
114
102
|
dbFieldName: "create_by",
|
|
115
|
-
dbFieldTxt: "
|
|
103
|
+
dbFieldTxt: "创建人",
|
|
116
104
|
dbLength: 50,
|
|
117
105
|
dbPointLength: 0,
|
|
118
106
|
dbDefaultVal: "",
|
|
119
107
|
dbType: "string",
|
|
120
108
|
dbIsKey: "0",
|
|
121
109
|
dbIsNull: "1",
|
|
110
|
+
// table2
|
|
122
111
|
isShowForm: "0",
|
|
123
112
|
isShowList: "0",
|
|
124
113
|
fieldShowType: "text",
|
|
@@ -128,13 +117,14 @@ function useInitialData() {
|
|
|
128
117
|
},
|
|
129
118
|
{
|
|
130
119
|
dbFieldName: "create_time",
|
|
131
|
-
dbFieldTxt: "
|
|
120
|
+
dbFieldTxt: "创建日期",
|
|
132
121
|
dbLength: 0,
|
|
133
122
|
dbPointLength: 0,
|
|
134
123
|
dbDefaultVal: "",
|
|
135
124
|
dbType: "Datetime",
|
|
136
125
|
dbIsKey: "0",
|
|
137
126
|
dbIsNull: "1",
|
|
127
|
+
// table2
|
|
138
128
|
isShowForm: "0",
|
|
139
129
|
isShowList: "0",
|
|
140
130
|
fieldShowType: "datetime",
|
|
@@ -144,13 +134,14 @@ function useInitialData() {
|
|
|
144
134
|
},
|
|
145
135
|
{
|
|
146
136
|
dbFieldName: "update_by",
|
|
147
|
-
dbFieldTxt: "
|
|
137
|
+
dbFieldTxt: "更新人",
|
|
148
138
|
dbLength: 50,
|
|
149
139
|
dbPointLength: 0,
|
|
150
140
|
dbDefaultVal: "",
|
|
151
141
|
dbType: "string",
|
|
152
142
|
dbIsKey: "0",
|
|
153
143
|
dbIsNull: "1",
|
|
144
|
+
// table2
|
|
154
145
|
isShowForm: "0",
|
|
155
146
|
isShowList: "0",
|
|
156
147
|
fieldShowType: "text",
|
|
@@ -160,13 +151,14 @@ function useInitialData() {
|
|
|
160
151
|
},
|
|
161
152
|
{
|
|
162
153
|
dbFieldName: "update_time",
|
|
163
|
-
dbFieldTxt: "
|
|
154
|
+
dbFieldTxt: "更新日期",
|
|
164
155
|
dbLength: 0,
|
|
165
156
|
dbPointLength: 0,
|
|
166
157
|
dbDefaultVal: "",
|
|
167
158
|
dbType: "Datetime",
|
|
168
159
|
dbIsKey: "0",
|
|
169
160
|
dbIsNull: "1",
|
|
161
|
+
// table2
|
|
170
162
|
isShowForm: "0",
|
|
171
163
|
isShowList: "0",
|
|
172
164
|
fieldShowType: "datetime",
|
|
@@ -176,13 +168,14 @@ function useInitialData() {
|
|
|
176
168
|
},
|
|
177
169
|
{
|
|
178
170
|
dbFieldName: "sys_org_code",
|
|
179
|
-
dbFieldTxt: "
|
|
171
|
+
dbFieldTxt: "所属部门",
|
|
180
172
|
dbLength: 64,
|
|
181
173
|
dbPointLength: 0,
|
|
182
174
|
dbDefaultVal: "",
|
|
183
175
|
dbType: "string",
|
|
184
176
|
dbIsKey: "0",
|
|
185
177
|
dbIsNull: "1",
|
|
178
|
+
// table2
|
|
186
179
|
isShowForm: "0",
|
|
187
180
|
isShowList: "0",
|
|
188
181
|
fieldShowType: "text",
|
|
@@ -190,25 +183,53 @@ function useInitialData() {
|
|
|
190
183
|
queryMode: "single",
|
|
191
184
|
dbIsSync: "1"
|
|
192
185
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
186
|
+
// {
|
|
187
|
+
// dbFieldName: 'sys_org_code',
|
|
188
|
+
// dbFieldTxt: '所属部门',
|
|
189
|
+
// dbLength: 50,
|
|
190
|
+
// dbPointLength: 0,
|
|
191
|
+
// dbDefaultVal: '',
|
|
192
|
+
// dbType: 'string',
|
|
193
|
+
// dbIsKey: false,
|
|
194
|
+
// dbIsNull: true
|
|
195
|
+
// },
|
|
196
|
+
// {
|
|
197
|
+
// dbFieldName: 'sys_company_code',
|
|
198
|
+
// dbFieldTxt: '所属公司',
|
|
199
|
+
// dbLength: 50,
|
|
200
|
+
// dbPointLength: 0,
|
|
201
|
+
// dbDefaultVal: '',
|
|
202
|
+
// dbType: 'string',
|
|
203
|
+
// dbIsKey: false,
|
|
204
|
+
// dbIsNull: true
|
|
205
|
+
// },
|
|
206
|
+
// {
|
|
207
|
+
// dbFieldName: 'bpm_status',
|
|
208
|
+
// dbFieldTxt: '流程状态',
|
|
209
|
+
// dbLength: 32,
|
|
210
|
+
// dbPointLength: 0,
|
|
211
|
+
// dbDefaultVal: '',
|
|
212
|
+
// dbType: 'string',
|
|
213
|
+
// dbIsKey: false,
|
|
214
|
+
// dbIsNull: true
|
|
215
|
+
// }
|
|
216
|
+
], e = [];
|
|
217
|
+
return d.forEach((i) => {
|
|
218
|
+
i.id = s(), e.push(i.id);
|
|
219
|
+
}), { initialData: d, tempIds: e };
|
|
200
220
|
}
|
|
201
|
-
function
|
|
221
|
+
function c() {
|
|
202
222
|
return [
|
|
203
223
|
{
|
|
204
224
|
dbFieldName: "pid",
|
|
205
|
-
dbFieldTxt: "
|
|
225
|
+
dbFieldTxt: "父级节点",
|
|
206
226
|
dbLength: 32,
|
|
207
227
|
dbPointLength: 0,
|
|
208
228
|
dbDefaultVal: "",
|
|
209
229
|
dbType: "string",
|
|
210
230
|
dbIsKey: "0",
|
|
211
231
|
dbIsNull: "1",
|
|
232
|
+
// table2
|
|
212
233
|
isShowForm: "1",
|
|
213
234
|
isShowList: "0",
|
|
214
235
|
fieldShowType: "text",
|
|
@@ -218,29 +239,39 @@ function useTreeNeedFields() {
|
|
|
218
239
|
},
|
|
219
240
|
{
|
|
220
241
|
dbFieldName: "has_child",
|
|
221
|
-
dbFieldTxt: "
|
|
242
|
+
dbFieldTxt: "是否有子节点",
|
|
222
243
|
dbLength: 3,
|
|
223
244
|
dbPointLength: 0,
|
|
224
245
|
dbDefaultVal: "",
|
|
225
246
|
dbType: "string",
|
|
226
247
|
dbIsKey: "0",
|
|
227
248
|
dbIsNull: "1",
|
|
249
|
+
// table2
|
|
228
250
|
isShowForm: "0",
|
|
229
251
|
isShowList: "0",
|
|
230
252
|
fieldShowType: "list",
|
|
231
253
|
fieldLength: "200",
|
|
232
254
|
queryMode: "single",
|
|
255
|
+
// table3
|
|
233
256
|
dictField: "yn",
|
|
234
257
|
dbIsSync: "1"
|
|
235
258
|
}
|
|
236
259
|
];
|
|
237
260
|
}
|
|
238
|
-
const
|
|
239
|
-
{ code: "add", title: "
|
|
240
|
-
{ code: "edit", title: "
|
|
241
|
-
{ code: "delete", title: "
|
|
242
|
-
{ code: "export", title: "
|
|
243
|
-
{ code: "import", title: "
|
|
244
|
-
{ code: "query", title: "
|
|
261
|
+
const g = [
|
|
262
|
+
{ code: "add", title: "新增", status: 0 },
|
|
263
|
+
{ code: "edit", title: "编辑", status: 0 },
|
|
264
|
+
{ code: "delete", title: "删除", status: 0 },
|
|
265
|
+
{ code: "export", title: "导出", status: 0 },
|
|
266
|
+
{ code: "import", title: "导入", status: 0 },
|
|
267
|
+
{ code: "query", title: "查询", status: 0 }
|
|
245
268
|
];
|
|
246
|
-
export {
|
|
269
|
+
export {
|
|
270
|
+
m as E,
|
|
271
|
+
r as V,
|
|
272
|
+
c as a,
|
|
273
|
+
h as c,
|
|
274
|
+
g as o,
|
|
275
|
+
u as s,
|
|
276
|
+
y as u
|
|
277
|
+
};
|