@jeecg/online 3.6.2-GA → 3.7.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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
|
@@ -1,3926 +0,0 @@
|
|
|
1
|
-
var on = Object.defineProperty, rn = Object.defineProperties;
|
|
2
|
-
var an = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var at = Object.getOwnPropertySymbols;
|
|
4
|
-
var un = Object.prototype.hasOwnProperty, cn = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ut = (n, e, t) => e in n ? on(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, me = (n, e) => {
|
|
6
|
-
for (var t in e || (e = {}))
|
|
7
|
-
un.call(e, t) && ut(n, t, e[t]);
|
|
8
|
-
if (at)
|
|
9
|
-
for (var t of at(e))
|
|
10
|
-
cn.call(e, t) && ut(n, t, e[t]);
|
|
11
|
-
return n;
|
|
12
|
-
}, Ue = (n, e) => rn(n, an(e));
|
|
13
|
-
var Y = (n, e, t) => new Promise((i, m) => {
|
|
14
|
-
var d = (b) => {
|
|
15
|
-
try {
|
|
16
|
-
w(t.next(b));
|
|
17
|
-
} catch (I) {
|
|
18
|
-
m(I);
|
|
19
|
-
}
|
|
20
|
-
}, h = (b) => {
|
|
21
|
-
try {
|
|
22
|
-
w(t.throw(b));
|
|
23
|
-
} catch (I) {
|
|
24
|
-
m(I);
|
|
25
|
-
}
|
|
26
|
-
}, w = (b) => b.done ? i(b.value) : Promise.resolve(b.value).then(d, h);
|
|
27
|
-
w((t = t.apply(n, e)).next());
|
|
28
|
-
});
|
|
29
|
-
import { add as dn } from "/@/components/Form/src/componentMap";
|
|
30
|
-
import { propTypes as se } from "/@/utils/propTypes";
|
|
31
|
-
import { ref as F, reactive as Se, watch as he, toRaw as be, nextTick as Ee, computed as de, resolveComponent as ee, openBlock as G, createBlock as Oe, unref as Pe, createElementBlock as ue, createVNode as re, defineComponent as gt, h as $e, mergeProps as bt, withCtx as le, createTextVNode as _e, toDisplayString as Te, createCommentVNode as we, watchEffect as fn, inject as mn, onMounted as pn, onBeforeUnmount as hn, createElementVNode as fe, Fragment as je, renderList as Qe, markRaw as gn, defineAsyncComponent as bn, normalizeClass as ct } from "vue";
|
|
32
|
-
import { PrinterOutlined as vn, DiffOutlined as yn, FormOutlined as wn, PlusOutlined as Ge, EditOutlined as Sn, MinusCircleFilled as Fn } from "@ant-design/icons-vue";
|
|
33
|
-
import { useModal as xe, useModalInner as vt, BasicModal as yt } from "/@/components/Modal";
|
|
34
|
-
import { useMessage as Xe } from "/@/hooks/web/useMessage";
|
|
35
|
-
import { BasicForm as wt, useForm as St } from "/@/components/Form/index";
|
|
36
|
-
import { defHttp as ge } from "/@/utils/http/axios";
|
|
37
|
-
import { pick as Le } from "lodash-es";
|
|
38
|
-
import { L as Cn } from "./constant-754f1a9d.mjs";
|
|
39
|
-
import { UploadTypeEnum as _n } from "/@/components/Form/src/jeecg/components/JUpload";
|
|
40
|
-
import { duplicateCheck as Tn } from "/@/views/system/user/user.api";
|
|
41
|
-
import { useUserStore as On } from "/@/store/modules/user";
|
|
42
|
-
import { replaceAll as Pn, _eval as et, goJmReportViewPage as xn, importViewsFile as In } from "/@/utils";
|
|
43
|
-
import * as Ft from "/@/utils/desform/customExpression";
|
|
44
|
-
import { usePermissionStore as Dn } from "/@/store/modules/permission";
|
|
45
|
-
import { filterMultiDictText as Ct } from "/@/utils/dict/JDictSelectUtil";
|
|
46
|
-
import { getFileAccessHttpUrl as Ae } from "/@/utils/common/compUtils";
|
|
47
|
-
import { BasicTable as Mn, TableAction as Rn } from "/@/components/Table";
|
|
48
|
-
import { useListPage as $n } from "/@/hooks/system/useListPage";
|
|
49
|
-
import { useRouter as kn } from "vue-router";
|
|
50
|
-
import { getAreaTextByCode as En } from "/@/components/Form/src/utils/Area";
|
|
51
|
-
import { createImgPreview as An } from "/@/components/Preview/index";
|
|
52
|
-
import jn from "./LinkTableListPiece-46e8af51.mjs";
|
|
53
|
-
import { _ as Me } from "./index-73993b18.mjs";
|
|
54
|
-
import Ln from "./OnlineSelectCascade-abc345f9.mjs";
|
|
55
|
-
import { Loading as _t } from "/@/components/Loading";
|
|
56
|
-
import { getToken as Nn } from "/@/utils/auth";
|
|
57
|
-
import Vn from "./JModalTip-0413ad6a.mjs";
|
|
58
|
-
import { Button as Je } from "ant-design-vue";
|
|
59
|
-
import { useDebounceFn as Bn } from "@vueuse/core";
|
|
60
|
-
const Wn = "jeecg_submit_form_and_flow", us = "flow_submit_id", Un = "online_form_table_name", Re = "validate-failed", cs = "setup", ds = "EnhanceJS", fs = {
|
|
61
|
-
password: "text",
|
|
62
|
-
file: "text",
|
|
63
|
-
image: "text",
|
|
64
|
-
textarea: "text",
|
|
65
|
-
umeditor: "text",
|
|
66
|
-
markdown: "text",
|
|
67
|
-
checkbox: "list_multi",
|
|
68
|
-
radio: "list"
|
|
69
|
-
}, Jn = ".jeecg-online-modal .ant-modal-content", Hn = "online_";
|
|
70
|
-
class K {
|
|
71
|
-
constructor(e, t) {
|
|
72
|
-
this._data = t, this.field = e, this.label = t.title, this.hidden = !1, this.order = t.order || 999, this.required = !1, this.onlyValidator = "", this.setFieldsValue = "", this.hasChange = !0, e.indexOf("@") > 0 ? this.pre = e.substring(0, e.indexOf("@") + 1) : this.pre = "", this.schemaProp = {}, this.searchForm = !1, this.disabled = !1, this.popContainer = "", this.handleWidgetAttr(t), this.inPopover = !1, this.labelLength = Cn, this.initLabelLength();
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* 获取最终的表单配置项,外面获取调用此方法
|
|
76
|
-
*/
|
|
77
|
-
getFormItemSchema() {
|
|
78
|
-
let e = this.getItem();
|
|
79
|
-
return this.addDefaultChangeEvent(e), e;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* 获取表单配置,子类重写此方法
|
|
83
|
-
*/
|
|
84
|
-
getItem() {
|
|
85
|
-
let e = {
|
|
86
|
-
field: this.field,
|
|
87
|
-
label: this.label,
|
|
88
|
-
labelLength: this.labelLength,
|
|
89
|
-
component: "Input",
|
|
90
|
-
itemProps: {
|
|
91
|
-
labelCol: {
|
|
92
|
-
class: "online-form-label"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, t = this.getRule();
|
|
96
|
-
return t.length > 0 && this.onlyValidator && (e.rules = t), this.hidden === !0 && (e.show = !1), e;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* 设置表单ref
|
|
100
|
-
* popup、分类树需要关联设置其他表单值的时候用到
|
|
101
|
-
* @param ref
|
|
102
|
-
*/
|
|
103
|
-
setFormRef(e) {
|
|
104
|
-
this.formRef = e;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* 设置表单元素隐藏
|
|
108
|
-
*/
|
|
109
|
-
isHidden() {
|
|
110
|
-
return this.hidden = !0, this;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* 设置是否必填项
|
|
114
|
-
* @param array
|
|
115
|
-
*/
|
|
116
|
-
isRequired(e) {
|
|
117
|
-
return e && e.length > 0 && e.indexOf(this.field) >= 0 && (this.required = !0), this;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* 初始化 label长度
|
|
121
|
-
*/
|
|
122
|
-
initLabelLength() {
|
|
123
|
-
let e = this.getExtendData();
|
|
124
|
-
e && e.labelLength && (this.labelLength = e.labelLength);
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* 获取扩展参数
|
|
128
|
-
*/
|
|
129
|
-
getExtendData() {
|
|
130
|
-
let e = {}, { fieldExtendJson: t } = this._data;
|
|
131
|
-
if (t && typeof t == "string")
|
|
132
|
-
try {
|
|
133
|
-
let i = JSON.parse(t);
|
|
134
|
-
e = me({}, i);
|
|
135
|
-
} catch (i) {
|
|
136
|
-
}
|
|
137
|
-
return e;
|
|
138
|
-
}
|
|
139
|
-
/***
|
|
140
|
-
* 获取和此字段相关的其他字段 需要设置其为隐藏
|
|
141
|
-
*/
|
|
142
|
-
getRelatedHideFields() {
|
|
143
|
-
return [];
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* placeholder
|
|
147
|
-
*/
|
|
148
|
-
getPlaceholder() {
|
|
149
|
-
return "请输入" + this.label;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* 唯一校验
|
|
153
|
-
*/
|
|
154
|
-
setOnlyValidateFun(e) {
|
|
155
|
-
e && (this.onlyValidator = (t, i) => Y(this, null, function* () {
|
|
156
|
-
let m = yield e(t, i);
|
|
157
|
-
return m ? Promise.reject(m) : Promise.resolve();
|
|
158
|
-
}));
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* 获取校验规则
|
|
162
|
-
*/
|
|
163
|
-
getRule() {
|
|
164
|
-
let e = [];
|
|
165
|
-
const { view: t, errorInfo: i, pattern: m, type: d } = this._data;
|
|
166
|
-
if (this.required === !0) {
|
|
167
|
-
let h = this.getPlaceholder();
|
|
168
|
-
i && (h = i), t == "sel_depart" || t == "sel_user" ? this.schemaProp.required = !0 : e.push({ required: !0, message: h });
|
|
169
|
-
}
|
|
170
|
-
if (t == "sel_user" && m === "only" && this.onlyValidator && e.push({ validator: this.onlyValidator }), t === "list" || t === "radio" || t === "markdown" || t === "pca" || t.indexOf("sel") >= 0 || t === "time" || t.indexOf("upload") >= 0 || t.indexOf("file") >= 0 || t.indexOf("image") >= 0)
|
|
171
|
-
return e;
|
|
172
|
-
if (m)
|
|
173
|
-
if (m === "only")
|
|
174
|
-
this.onlyValidator && e.push({ validator: this.onlyValidator });
|
|
175
|
-
else if (m === "z")
|
|
176
|
-
d == "number" || d == "integer" || e.push({ pattern: /^-?\d+$/, message: "请输入整数" });
|
|
177
|
-
else {
|
|
178
|
-
let h = i || "正则校验失败", w;
|
|
179
|
-
try {
|
|
180
|
-
w = new RegExp(m), w || (w = m);
|
|
181
|
-
} catch (b) {
|
|
182
|
-
w = m;
|
|
183
|
-
}
|
|
184
|
-
e.push({ pattern: w, message: h });
|
|
185
|
-
}
|
|
186
|
-
return e;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* 添加默认的change事件
|
|
190
|
-
* @param schema
|
|
191
|
-
*/
|
|
192
|
-
addDefaultChangeEvent(e) {
|
|
193
|
-
this.hasChange && (e.componentProps || (e.componentProps = {}), this.disabled == !0 && (e.componentProps.disabled = !0), e.componentProps.hasOwnProperty("onChange") || (e.componentProps.onChange = (t, i) => {
|
|
194
|
-
t instanceof Event && (t = t.target.value), t instanceof Array && (t = t.join(",")), !this.formRef || !this.formRef.value || !this.formRef.value.$formValueChange || this.formRef.value.$formValueChange(this.field, t, i);
|
|
195
|
-
})), Object.keys(this.schemaProp).map((t) => {
|
|
196
|
-
e[t] = this.schemaProp[t];
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
noChange() {
|
|
200
|
-
this.hasChange = !1;
|
|
201
|
-
}
|
|
202
|
-
updateField(e) {
|
|
203
|
-
this.field = e;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* 高级查询 没有表单ref对象 手动设置setFieldValue方法用于 popup设置表单值
|
|
207
|
-
*/
|
|
208
|
-
setFunctionForFieldValue(e) {
|
|
209
|
-
e && (this.setFieldsValue = e);
|
|
210
|
-
}
|
|
211
|
-
asSearchForm() {
|
|
212
|
-
this.searchForm = !0;
|
|
213
|
-
}
|
|
214
|
-
/**获取modal作为类下拉组件pop的父容器*/
|
|
215
|
-
getModalAsContainer() {
|
|
216
|
-
let e = this.getPopContainer();
|
|
217
|
-
if (e != "body") {
|
|
218
|
-
const t = document.querySelectorAll(e);
|
|
219
|
-
if (t && t.length > 1) {
|
|
220
|
-
const i = [];
|
|
221
|
-
if (t.forEach((m) => {
|
|
222
|
-
m.offsetWidth == 0 && m.offsetHeight == 0 || i.push(m);
|
|
223
|
-
}), i.length === 1)
|
|
224
|
-
return i[0];
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
return document.querySelector(e);
|
|
228
|
-
}
|
|
229
|
-
/**区分modal表单和查询表单*/
|
|
230
|
-
getPopContainer() {
|
|
231
|
-
return this.searchForm === !0 ? "body" : this.inPopover === !0 ? `.${this.popContainer}` : this.popContainer ? `.${this.popContainer} .ant-modal-content` : Jn;
|
|
232
|
-
}
|
|
233
|
-
handleWidgetAttr(e) {
|
|
234
|
-
e.ui && e.ui.widgetattrs && e.ui.widgetattrs.disabled == !0 && (this.disabled = !0);
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* 设置 popContainer
|
|
238
|
-
*/
|
|
239
|
-
setCustomPopContainer(e) {
|
|
240
|
-
this.popContainer = e;
|
|
241
|
-
}
|
|
242
|
-
//update-begin-author:taoyan date:2022-8-5 for: 他表字段/关联记录用
|
|
243
|
-
// 获取他表字段的 配置信息
|
|
244
|
-
getLinkFieldInfo() {
|
|
245
|
-
return "";
|
|
246
|
-
}
|
|
247
|
-
// 1.将他表字段的配置信息设置到关联记录字段上
|
|
248
|
-
setOtherInfo(e) {
|
|
249
|
-
}
|
|
250
|
-
//update-end-author:taoyan date:2022-8-5 for: 他表字段/关联记录用
|
|
251
|
-
// 表单设计器高级查询用
|
|
252
|
-
isInPopover() {
|
|
253
|
-
this.inPopover = !0;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
class dt extends K {
|
|
257
|
-
getItem() {
|
|
258
|
-
let e = super.getItem();
|
|
259
|
-
return this.hidden === !0 && (e.show = !1), e;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
var Tt = /* @__PURE__ */ ((n) => (n.datetime = "YYYY-MM-DD HH:mm:ss", n.date = "YYYY-MM-DD", n))(Tt || {});
|
|
263
|
-
class qn extends K {
|
|
264
|
-
constructor(e, t) {
|
|
265
|
-
super(e, t), this.format = Tt[t.view], this.showTime = t.view != "date";
|
|
266
|
-
}
|
|
267
|
-
getItem() {
|
|
268
|
-
let e = super.getItem();
|
|
269
|
-
return Object.assign({}, e, {
|
|
270
|
-
component: "DatePicker",
|
|
271
|
-
componentProps: {
|
|
272
|
-
placeholder: `请选择${this.label}`,
|
|
273
|
-
showTime: this.showTime,
|
|
274
|
-
valueFormat: this.format,
|
|
275
|
-
style: {
|
|
276
|
-
width: "100%"
|
|
277
|
-
},
|
|
278
|
-
getPopupContainer: (t) => this.getModalAsContainer()
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
class Yn extends K {
|
|
284
|
-
constructor(e, t) {
|
|
285
|
-
super(e, t), this.options = this.getOptions(t.enum, t.type), this.dictTable = t.dictTable, this.dictText = t.dictText, this.dictCode = t.dictCode, this.multi = t.multi || !1;
|
|
286
|
-
}
|
|
287
|
-
getItem() {
|
|
288
|
-
let e = super.getItem(), t = this.getFormComponent(), i = this.getComponentProps();
|
|
289
|
-
return Object.assign({}, e, {
|
|
290
|
-
component: t,
|
|
291
|
-
componentProps: i
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
getFormComponent() {
|
|
295
|
-
return this.options.length > 0 ? "Select" : "JDictSelectTag";
|
|
296
|
-
}
|
|
297
|
-
getComponentProps() {
|
|
298
|
-
let t = {
|
|
299
|
-
allowClear: !0,
|
|
300
|
-
mode: this.multi === !0 ? "multiple" : "combobox",
|
|
301
|
-
style: {
|
|
302
|
-
width: "100%"
|
|
303
|
-
},
|
|
304
|
-
getPopupContainer: (i) => this.getModalAsContainer()
|
|
305
|
-
};
|
|
306
|
-
if (this.options.length > 0)
|
|
307
|
-
t.options = this.options;
|
|
308
|
-
else if (!this.dictTable)
|
|
309
|
-
t.dictCode = this.dictCode;
|
|
310
|
-
else {
|
|
311
|
-
let i = `${this.dictTable},${this.dictText},${this.dictCode}`;
|
|
312
|
-
t.dictCode = encodeURI(i);
|
|
313
|
-
}
|
|
314
|
-
return t;
|
|
315
|
-
}
|
|
316
|
-
getOptions(e, t) {
|
|
317
|
-
if (!e || e.length == 0)
|
|
318
|
-
return [];
|
|
319
|
-
let i = t == "number", m = [];
|
|
320
|
-
for (let d of e) {
|
|
321
|
-
let h = d.value;
|
|
322
|
-
i && (h = parseInt(h)), m.push({
|
|
323
|
-
value: h,
|
|
324
|
-
label: d.title
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
return m;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
class zn extends K {
|
|
331
|
-
getItem() {
|
|
332
|
-
let e = super.getItem();
|
|
333
|
-
return Object.assign({}, e, {
|
|
334
|
-
component: "InputPassword"
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
class Qn extends K {
|
|
339
|
-
getItem() {
|
|
340
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
341
|
-
return Object.assign({}, e, {
|
|
342
|
-
component: "JUpload",
|
|
343
|
-
componentProps: t
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
getComponentProps() {
|
|
347
|
-
let e = this.getExtendData();
|
|
348
|
-
return e && e.uploadnum ? {
|
|
349
|
-
maxCount: Number(e.uploadnum)
|
|
350
|
-
} : {};
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
class Kn extends K {
|
|
354
|
-
getItem() {
|
|
355
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
356
|
-
return Object.assign({}, e, {
|
|
357
|
-
component: "JUpload",
|
|
358
|
-
componentProps: t
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
getComponentProps() {
|
|
362
|
-
let e = {
|
|
363
|
-
fileType: _n.image
|
|
364
|
-
}, t = this.getExtendData();
|
|
365
|
-
return t && t.uploadnum && (e.maxCount = Number(t.uploadnum)), e;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
class Zn extends K {
|
|
369
|
-
getItem() {
|
|
370
|
-
let e = super.getItem();
|
|
371
|
-
return Object.assign({}, e, {
|
|
372
|
-
component: "InputTextArea",
|
|
373
|
-
componentProps: {
|
|
374
|
-
autoSize: {
|
|
375
|
-
minRows: 4,
|
|
376
|
-
maxRows: 10
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
class Gn extends K {
|
|
383
|
-
constructor(e, t) {
|
|
384
|
-
super(e, t), this.dictTable = t.dictTable, this.dictText = t.dictText, this.dictCode = t.dictCode;
|
|
385
|
-
}
|
|
386
|
-
getItem() {
|
|
387
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
388
|
-
return Object.assign({}, e, {
|
|
389
|
-
component: "JSelectMultiple",
|
|
390
|
-
componentProps: t
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
getComponentProps() {
|
|
394
|
-
if (!this.dictTable && !this.dictCode)
|
|
395
|
-
return {};
|
|
396
|
-
{
|
|
397
|
-
let e = {};
|
|
398
|
-
if (!this.dictTable)
|
|
399
|
-
e.dictCode = this.dictCode;
|
|
400
|
-
else {
|
|
401
|
-
let t = `${this.dictTable},${this.dictText},${this.dictCode}`;
|
|
402
|
-
e.dictCode = encodeURI(t);
|
|
403
|
-
}
|
|
404
|
-
return e.triggerChange = !0, e.popContainer = this.getPopContainer(), e;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
class Xn extends K {
|
|
409
|
-
constructor(e, t) {
|
|
410
|
-
super(e, t), this.dict = encodeURI(`${t.dictTable},${t.dictText},${t.dictCode}`);
|
|
411
|
-
}
|
|
412
|
-
getItem() {
|
|
413
|
-
let e = super.getItem(), t = this.getPopContainer();
|
|
414
|
-
return Object.assign({}, e, {
|
|
415
|
-
component: "JSearchSelect",
|
|
416
|
-
componentProps: {
|
|
417
|
-
dict: this.dict,
|
|
418
|
-
pageSize: 10,
|
|
419
|
-
async: !0,
|
|
420
|
-
popContainer: t
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
class ei extends K {
|
|
426
|
-
constructor(e, t) {
|
|
427
|
-
super(e, t), this.code = t.code, this.multi = t.popupMulti, this.fieldConfig = this.getFieldConfig(t);
|
|
428
|
-
}
|
|
429
|
-
getItem() {
|
|
430
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
431
|
-
return Object.assign({}, e, {
|
|
432
|
-
component: "JPopup",
|
|
433
|
-
componentProps: t
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
getComponentProps() {
|
|
437
|
-
let e = {
|
|
438
|
-
code: this.code,
|
|
439
|
-
multi: this.multi,
|
|
440
|
-
fieldConfig: this.fieldConfig
|
|
441
|
-
};
|
|
442
|
-
return this.formRef ? e.formElRef = this.formRef : e.setFieldsValue = this.setFieldsValue, this.inPopover === !0 && (e.getContainer = () => this.getModalAsContainer()), e;
|
|
443
|
-
}
|
|
444
|
-
getFieldConfig(e) {
|
|
445
|
-
let { destFields: t, orgFields: i } = e;
|
|
446
|
-
if (!t || t.length == 0)
|
|
447
|
-
return [];
|
|
448
|
-
let m = t.split(","), d = i.split(","), h = [];
|
|
449
|
-
const w = this.pre;
|
|
450
|
-
for (let b = 0; b < m.length; b++)
|
|
451
|
-
h.push({
|
|
452
|
-
target: w + m[b],
|
|
453
|
-
source: d[b]
|
|
454
|
-
});
|
|
455
|
-
return h;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
class ti extends K {
|
|
459
|
-
constructor(e, t) {
|
|
460
|
-
super(e, t), this.multi = !1, this.pid = t.pidValue, this.pcode = t.pcode, this.textField = t.textField;
|
|
461
|
-
}
|
|
462
|
-
getItem() {
|
|
463
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
464
|
-
return Object.assign({}, e, {
|
|
465
|
-
componentProps: t,
|
|
466
|
-
component: "JCategorySelect"
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* 1. 不带返回值的
|
|
471
|
-
* 2. 带文本返回的
|
|
472
|
-
*/
|
|
473
|
-
getComponentProps() {
|
|
474
|
-
let e = {
|
|
475
|
-
placeholder: "请选择" + this.label
|
|
476
|
-
};
|
|
477
|
-
if (this.pcode)
|
|
478
|
-
e.pcode = this.pcode;
|
|
479
|
-
else {
|
|
480
|
-
let t = this.pid || "EMPTY_PID";
|
|
481
|
-
e.pid = t;
|
|
482
|
-
}
|
|
483
|
-
return this.textField ? Ue(me({
|
|
484
|
-
loadTriggleChange: !0,
|
|
485
|
-
multiple: this.multi
|
|
486
|
-
}, e), {
|
|
487
|
-
back: this.textField,
|
|
488
|
-
onChange: (t, i) => {
|
|
489
|
-
this.formRef && (this.formRef.value.setFieldsValue(i), this.formRef.value.$formValueChange(this.field, t));
|
|
490
|
-
}
|
|
491
|
-
}) : me({
|
|
492
|
-
multiple: this.multi
|
|
493
|
-
}, e);
|
|
494
|
-
}
|
|
495
|
-
getRelatedHideFields() {
|
|
496
|
-
let e = [];
|
|
497
|
-
return this.textField && e.push(this.textField), e;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
class ni extends K {
|
|
501
|
-
getItem() {
|
|
502
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
503
|
-
return Object.assign({}, e, {
|
|
504
|
-
component: "JSelectDept",
|
|
505
|
-
componentProps: t
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
getComponentProps() {
|
|
509
|
-
let e = this.getExtendData(), t = {
|
|
510
|
-
checkStrictly: !0,
|
|
511
|
-
showButton: !1
|
|
512
|
-
};
|
|
513
|
-
return e.text && (t.labelKey = e.text), e.store && (t.rowKey = e.store), e.multiSelect === !1 && (t.multiple = !1), e.multiSelect === !0 && (t.multiple = !0), this.inPopover === !0 && (t.getContainer = () => this.getModalAsContainer()), t;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
class ii extends K {
|
|
517
|
-
constructor(e, t) {
|
|
518
|
-
super(e, t), this.showButton = t.showButton !== !1;
|
|
519
|
-
}
|
|
520
|
-
getItem() {
|
|
521
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
522
|
-
return Object.assign({}, e, {
|
|
523
|
-
component: "JSelectUser",
|
|
524
|
-
componentProps: t
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
getComponentProps() {
|
|
528
|
-
let e = this.getExtendData(), t = {
|
|
529
|
-
showSelected: !1,
|
|
530
|
-
allowClear: !0,
|
|
531
|
-
isRadioSelection: !1,
|
|
532
|
-
showButton: this.showButton
|
|
533
|
-
};
|
|
534
|
-
return e.text && (t.labelKey = e.text), e.store && (t.rowKey = e.store), e.multiSelect === !1 && (t.isRadioSelection = !0), this.inPopover === !0 && (t.getContainer = () => this.getModalAsContainer()), t;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
class li extends K {
|
|
538
|
-
getItem() {
|
|
539
|
-
let e = super.getItem();
|
|
540
|
-
return Object.assign({}, e, {
|
|
541
|
-
component: "JEditor",
|
|
542
|
-
componentProps: {
|
|
543
|
-
//update-begin-author:taoyan date:2022-6-1 for: VUEN-1159 第一次加载时,点击第一个输入框,光标会跑到富文本输入框
|
|
544
|
-
options: {
|
|
545
|
-
auto_focus: !1
|
|
546
|
-
}
|
|
547
|
-
//update-end-author:taoyan date:2022-6-1 for: VUEN-1159 第一次加载时,点击第一个输入框,光标会跑到富文本输入框
|
|
548
|
-
// fileMax:1,
|
|
549
|
-
// showImageUpload:false,
|
|
550
|
-
// width:"966px",
|
|
551
|
-
// height:"200px"
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
class si extends K {
|
|
557
|
-
getItem() {
|
|
558
|
-
let e = super.getItem();
|
|
559
|
-
return Object.assign({}, e, {
|
|
560
|
-
component: "JMarkdownEditor",
|
|
561
|
-
componentProps: {
|
|
562
|
-
// height: 300,
|
|
563
|
-
}
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
class oi extends K {
|
|
568
|
-
getItem() {
|
|
569
|
-
let e = super.getItem();
|
|
570
|
-
return Object.assign({}, e, {
|
|
571
|
-
component: "JAreaSelect"
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
class ri extends K {
|
|
576
|
-
constructor(e, t) {
|
|
577
|
-
super(e, t), this.dict = t.dict, this.pidField = t.pidField, this.pidValue = t.pidValue;
|
|
578
|
-
}
|
|
579
|
-
getItem() {
|
|
580
|
-
let e = super.getItem();
|
|
581
|
-
return Object.assign({}, e, {
|
|
582
|
-
component: "JTreeSelect",
|
|
583
|
-
componentProps: {
|
|
584
|
-
dict: this.dict,
|
|
585
|
-
pidField: this.pidField,
|
|
586
|
-
pidValue: this.pidValue
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
class ai extends K {
|
|
592
|
-
constructor(e, t) {
|
|
593
|
-
super(e, t), this.dictTable = t.dictTable, this.dictText = t.dictText, this.dictCode = t.dictCode;
|
|
594
|
-
}
|
|
595
|
-
getItem() {
|
|
596
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
597
|
-
return Object.assign({}, e, {
|
|
598
|
-
component: "JDictSelectTag",
|
|
599
|
-
componentProps: t
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
getComponentProps() {
|
|
603
|
-
if (!this.dictTable && !this.dictCode)
|
|
604
|
-
return {};
|
|
605
|
-
if (this.dictTable) {
|
|
606
|
-
let e = `${this.dictTable},${this.dictText},${this.dictCode}`;
|
|
607
|
-
return {
|
|
608
|
-
dictCode: encodeURI(e),
|
|
609
|
-
type: "radio"
|
|
610
|
-
};
|
|
611
|
-
} else
|
|
612
|
-
return {
|
|
613
|
-
dictCode: this.dictCode,
|
|
614
|
-
type: "radio"
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
class ui extends K {
|
|
619
|
-
constructor(e, t) {
|
|
620
|
-
super(e, t), this.options = this.getOptions(t.enum);
|
|
621
|
-
}
|
|
622
|
-
getItem() {
|
|
623
|
-
let e = super.getItem();
|
|
624
|
-
return Object.assign({}, e, {
|
|
625
|
-
component: "JCheckbox",
|
|
626
|
-
componentProps: {
|
|
627
|
-
options: this.options,
|
|
628
|
-
triggerChange: !0
|
|
629
|
-
}
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
getOptions(e) {
|
|
633
|
-
if (!e || e.length == 0)
|
|
634
|
-
return [];
|
|
635
|
-
let t = [];
|
|
636
|
-
for (let i of e)
|
|
637
|
-
t.push({
|
|
638
|
-
value: i.value,
|
|
639
|
-
label: i.title
|
|
640
|
-
});
|
|
641
|
-
return t;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
class ci extends K {
|
|
645
|
-
constructor(e, t) {
|
|
646
|
-
super(e, t), this.hasChange = !1;
|
|
647
|
-
}
|
|
648
|
-
getItem() {
|
|
649
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
650
|
-
return Object.assign({}, e, {
|
|
651
|
-
component: "JSwitch",
|
|
652
|
-
componentProps: t
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
getComponentProps() {
|
|
656
|
-
let { fieldExtendJson: e } = this._data, t = ["Y", "N"];
|
|
657
|
-
if (e && typeof e == "string") {
|
|
658
|
-
let i = JSON.parse(e);
|
|
659
|
-
i.length == 2 && (t = i);
|
|
660
|
-
}
|
|
661
|
-
return {
|
|
662
|
-
options: t
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
class di extends K {
|
|
667
|
-
getItem() {
|
|
668
|
-
let e = super.getItem();
|
|
669
|
-
return Object.assign({}, e, {
|
|
670
|
-
component: "TimePicker",
|
|
671
|
-
componentProps: {
|
|
672
|
-
placeholder: `请选择${this.label}`,
|
|
673
|
-
valueFormat: "HH:mm:ss",
|
|
674
|
-
getPopupContainer: (t) => this.getModalAsContainer(),
|
|
675
|
-
style: {
|
|
676
|
-
width: "100%"
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
class fi extends K {
|
|
683
|
-
constructor(e, t) {
|
|
684
|
-
super(e, t);
|
|
685
|
-
const { dictTable: i, dictText: m, dictCode: d, pidField: h, idField: w, origin: b, condition: I } = t;
|
|
686
|
-
this.table = i, this.txt = m, this.store = d, this.idField = w, this.pidField = h, this.origin = b, this.condition = I, this.options = [], this.next = t.next || "", this.type = t.type;
|
|
687
|
-
}
|
|
688
|
-
getItem() {
|
|
689
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
690
|
-
return Object.assign({}, e, {
|
|
691
|
-
component: "OnlineSelectCascade",
|
|
692
|
-
componentProps: t
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
getComponentProps() {
|
|
696
|
-
let e = {
|
|
697
|
-
table: this.table,
|
|
698
|
-
txt: this.txt,
|
|
699
|
-
store: this.store,
|
|
700
|
-
pidField: this.pidField,
|
|
701
|
-
idField: this.idField,
|
|
702
|
-
origin: this.origin,
|
|
703
|
-
pidValue: "-1",
|
|
704
|
-
style: {
|
|
705
|
-
width: "100%"
|
|
706
|
-
},
|
|
707
|
-
onChange: (t) => {
|
|
708
|
-
this.valueChange(t);
|
|
709
|
-
},
|
|
710
|
-
onNext: (t) => {
|
|
711
|
-
this.nextOptionsChange(t);
|
|
712
|
-
}
|
|
713
|
-
};
|
|
714
|
-
return this._data.origin === !0 && (e.condition = this.condition), e;
|
|
715
|
-
}
|
|
716
|
-
nextOptionsChange(e) {
|
|
717
|
-
return Y(this, null, function* () {
|
|
718
|
-
if (!this.formRef || !this.next)
|
|
719
|
-
return;
|
|
720
|
-
yield this.formRef.value.updateSchema({
|
|
721
|
-
field: this.next,
|
|
722
|
-
componentProps: {
|
|
723
|
-
pidValue: e
|
|
724
|
-
}
|
|
725
|
-
});
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
valueChange(e) {
|
|
729
|
-
return Y(this, null, function* () {
|
|
730
|
-
if (!this.formRef || !this.next)
|
|
731
|
-
return;
|
|
732
|
-
let t = this.formRef.value;
|
|
733
|
-
t.$formValueChange(this.field, e), yield t.setFieldsValue({ [this.next]: "" });
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
class ft extends K {
|
|
738
|
-
constructor(e, t) {
|
|
739
|
-
super(e, t), this.slot = "";
|
|
740
|
-
}
|
|
741
|
-
getItem() {
|
|
742
|
-
let e = super.getItem(), t = this.slot;
|
|
743
|
-
return Object.assign({}, e, { slot: t });
|
|
744
|
-
}
|
|
745
|
-
groupDate() {
|
|
746
|
-
return this.slot = "groupDate", this;
|
|
747
|
-
}
|
|
748
|
-
groupDatetime() {
|
|
749
|
-
return this.slot = "groupDatetime", this;
|
|
750
|
-
}
|
|
751
|
-
groupNumber() {
|
|
752
|
-
return this.slot = "groupNumber", this;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
class mi extends K {
|
|
756
|
-
constructor(e, t) {
|
|
757
|
-
super(e, t), this.dbPointLength = t.dbPointLength;
|
|
758
|
-
}
|
|
759
|
-
getItem() {
|
|
760
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
761
|
-
return Object.assign({}, e, {
|
|
762
|
-
component: "InputNumber",
|
|
763
|
-
componentProps: t
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
getComponentProps() {
|
|
767
|
-
const e = {
|
|
768
|
-
style: {
|
|
769
|
-
width: "100%"
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
return this.dbPointLength >= 0 && (e.precision = this.dbPointLength), e;
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
class pi extends K {
|
|
776
|
-
constructor(e, t) {
|
|
777
|
-
super(e, t), this.dictTable = t.dictTable, this.dictText = t.dictText, this.dictCode = t.dictCode, this.view = t.view, this.componentString = "", this.linkFields = [];
|
|
778
|
-
}
|
|
779
|
-
getItem() {
|
|
780
|
-
let e = super.getItem();
|
|
781
|
-
const t = this.getComponentProps();
|
|
782
|
-
return Object.assign({}, e, {
|
|
783
|
-
component: this.componentString,
|
|
784
|
-
componentProps: t
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
getComponentProps() {
|
|
788
|
-
let e = {
|
|
789
|
-
textField: this.dictText,
|
|
790
|
-
tableName: this.dictTable,
|
|
791
|
-
valueField: this.dictCode
|
|
792
|
-
}, t = this.getExtendData();
|
|
793
|
-
if (t.multiSelect ? e.multi = !0 : e.multi = !1, t.imageField ? e.imageField = t.imageField : e.imageField = "", t.showType == "select") {
|
|
794
|
-
this.componentString = "LinkTableSelect";
|
|
795
|
-
let i = this.getPopContainer();
|
|
796
|
-
e.popContainer = i;
|
|
797
|
-
} else
|
|
798
|
-
this.componentString = "LinkTableCard";
|
|
799
|
-
return this.linkFields.length > 0 && (e.linkFields = this.linkFields), e;
|
|
800
|
-
}
|
|
801
|
-
// 他表字段用于翻译
|
|
802
|
-
setOtherInfo(e) {
|
|
803
|
-
this.linkFields = e;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
class hi extends K {
|
|
807
|
-
constructor(e, t) {
|
|
808
|
-
super(e, t), this.dictTable = t.dictTable, this.dictText = t.dictText;
|
|
809
|
-
}
|
|
810
|
-
getItem() {
|
|
811
|
-
let e = super.getItem();
|
|
812
|
-
return Object.assign({}, e, {
|
|
813
|
-
componentProps: {
|
|
814
|
-
readOnly: !0,
|
|
815
|
-
allowClear: !1,
|
|
816
|
-
disabled: !0,
|
|
817
|
-
style: {
|
|
818
|
-
background: "none",
|
|
819
|
-
color: "rgba(0, 0, 0, 0.85)",
|
|
820
|
-
border: "none"
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* 获取他表字段的关联信息
|
|
827
|
-
*/
|
|
828
|
-
getLinkFieldInfo() {
|
|
829
|
-
return [this.dictTable, `${this.field},${this.dictText}`];
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
class gi extends K {
|
|
833
|
-
constructor(e, t) {
|
|
834
|
-
super(e, t), this.code = t.code, this.titleField = t.titleField, this.multi = t.multi || !1;
|
|
835
|
-
}
|
|
836
|
-
getItem() {
|
|
837
|
-
let e = super.getItem();
|
|
838
|
-
return Object.assign({}, e, {
|
|
839
|
-
component: "LinkTableForQuery",
|
|
840
|
-
componentProps: {
|
|
841
|
-
code: this.code,
|
|
842
|
-
multi: this.multi,
|
|
843
|
-
field: this.titleField,
|
|
844
|
-
style: {
|
|
845
|
-
width: "100%"
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
});
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
class bi extends K {
|
|
852
|
-
getItem() {
|
|
853
|
-
let e = super.getItem();
|
|
854
|
-
return Object.assign({}, e, {
|
|
855
|
-
component: "CascaderPcaForQuery",
|
|
856
|
-
componentProps: {
|
|
857
|
-
style: {
|
|
858
|
-
width: "100%"
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
class vi extends K {
|
|
865
|
-
constructor(e, t) {
|
|
866
|
-
super(e, t), this.multi = t.multi === !0, this.store = t.store || "", this.query = t.query || !1;
|
|
867
|
-
}
|
|
868
|
-
getItem() {
|
|
869
|
-
let e = super.getItem(), t = this.getComponentProps();
|
|
870
|
-
return Object.assign({}, e, {
|
|
871
|
-
component: "UserSelect",
|
|
872
|
-
componentProps: t
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
getComponentProps() {
|
|
876
|
-
let e = {
|
|
877
|
-
multi: this.multi,
|
|
878
|
-
store: this.store,
|
|
879
|
-
query: this.query
|
|
880
|
-
};
|
|
881
|
-
return this.inPopover === !0 && (e.getContainer = () => this.getModalAsContainer()), e;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
class yi extends K {
|
|
885
|
-
constructor(e, t) {
|
|
886
|
-
super(e, t);
|
|
887
|
-
let i = t.view;
|
|
888
|
-
this.format = t.format, this.datetime = !1, i === "rangeNumber" ? this.componentType = "JRangeNumber" : i === "rangeTime" ? this.componentType = "RangeTime" : (this.componentType = "RangeDate", t.datetime === !0 && (this.datetime = !0));
|
|
889
|
-
}
|
|
890
|
-
getItem() {
|
|
891
|
-
let e = super.getItem();
|
|
892
|
-
return Object.assign({}, e, {
|
|
893
|
-
component: this.componentType,
|
|
894
|
-
componentProps: {
|
|
895
|
-
datetime: this.datetime,
|
|
896
|
-
format: this.format,
|
|
897
|
-
getPopupContainer: (t) => this.getModalAsContainer()
|
|
898
|
-
}
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
class He {
|
|
903
|
-
static createFormSchema(e, t) {
|
|
904
|
-
switch (t.view) {
|
|
905
|
-
case "password":
|
|
906
|
-
return new zn(e, t);
|
|
907
|
-
case "list":
|
|
908
|
-
return new Yn(e, t);
|
|
909
|
-
case "radio":
|
|
910
|
-
return new ai(e, t);
|
|
911
|
-
case "checkbox":
|
|
912
|
-
return new ui(e, t);
|
|
913
|
-
case "date":
|
|
914
|
-
case "datetime":
|
|
915
|
-
return new qn(e, t);
|
|
916
|
-
case "time":
|
|
917
|
-
return new di(e, t);
|
|
918
|
-
case "file":
|
|
919
|
-
return new Qn(e, t);
|
|
920
|
-
case "image":
|
|
921
|
-
return new Kn(e, t);
|
|
922
|
-
case "textarea":
|
|
923
|
-
return new Zn(e, t);
|
|
924
|
-
case "list_multi":
|
|
925
|
-
return new Gn(e, t);
|
|
926
|
-
case "sel_search":
|
|
927
|
-
return new Xn(e, t);
|
|
928
|
-
case "popup":
|
|
929
|
-
return new ei(e, t);
|
|
930
|
-
case "cat_tree":
|
|
931
|
-
return new ti(e, t);
|
|
932
|
-
case "sel_depart":
|
|
933
|
-
return new ni(e, t);
|
|
934
|
-
case "sel_user":
|
|
935
|
-
return new ii(e, t);
|
|
936
|
-
case "umeditor":
|
|
937
|
-
return new li(e, t);
|
|
938
|
-
case "markdown":
|
|
939
|
-
return new si(e, t);
|
|
940
|
-
case "pca":
|
|
941
|
-
return new oi(e, t);
|
|
942
|
-
case "link_down":
|
|
943
|
-
return new fi(e, t);
|
|
944
|
-
case "sel_tree":
|
|
945
|
-
return new ri(e, t);
|
|
946
|
-
case "switch":
|
|
947
|
-
return new ci(e, t);
|
|
948
|
-
case "link_table":
|
|
949
|
-
return new pi(e, t);
|
|
950
|
-
case "link_table_field":
|
|
951
|
-
return new hi(e, t);
|
|
952
|
-
case "slot":
|
|
953
|
-
return new ft(e, t);
|
|
954
|
-
case "LinkTableForQuery":
|
|
955
|
-
return new gi(e, t);
|
|
956
|
-
case "CascaderPcaForQuery":
|
|
957
|
-
return new bi(e, t);
|
|
958
|
-
case "select_user2":
|
|
959
|
-
return new vi(e, t);
|
|
960
|
-
case "rangeDate":
|
|
961
|
-
case "rangeTime":
|
|
962
|
-
case "rangeNumber":
|
|
963
|
-
return new yi(e, t);
|
|
964
|
-
case "hidden":
|
|
965
|
-
return new dt(e, t).isHidden();
|
|
966
|
-
default:
|
|
967
|
-
return t.type == "number" ? new mi(e, t) : new dt(e, t);
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
static createSlotFormSchema(e, t) {
|
|
971
|
-
let i = new ft(e, t), m = t.view;
|
|
972
|
-
if (m == "date")
|
|
973
|
-
i.groupDate();
|
|
974
|
-
else if (m == "datetime")
|
|
975
|
-
i.groupDatetime();
|
|
976
|
-
else {
|
|
977
|
-
let d = t.type;
|
|
978
|
-
(d == "number" || d == "integer") && i.groupNumber();
|
|
979
|
-
}
|
|
980
|
-
return i;
|
|
981
|
-
}
|
|
982
|
-
/**
|
|
983
|
-
* 表单ID 默认是隐藏的
|
|
984
|
-
*/
|
|
985
|
-
static createIdField() {
|
|
986
|
-
return {
|
|
987
|
-
label: "",
|
|
988
|
-
field: "id",
|
|
989
|
-
component: "Input",
|
|
990
|
-
show: !1
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
var wi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
995
|
-
function Si(n) {
|
|
996
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
997
|
-
}
|
|
998
|
-
var Ot = { exports: {} };
|
|
999
|
-
(function(n, e) {
|
|
1000
|
-
(function(t, i) {
|
|
1001
|
-
n.exports = i();
|
|
1002
|
-
})(wi, function() {
|
|
1003
|
-
var t = 1e3, i = 6e4, m = 36e5, d = "millisecond", h = "second", w = "minute", b = "hour", I = "day", R = "week", y = "month", S = "quarter", _ = "year", $ = "date", V = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, W = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
|
|
1004
|
-
var o = ["th", "st", "nd", "rd"], u = a % 100;
|
|
1005
|
-
return "[" + a + (o[(u - 20) % 10] || o[u] || o[0]) + "]";
|
|
1006
|
-
} }, T = function(a, o, u) {
|
|
1007
|
-
var l = String(a);
|
|
1008
|
-
return !l || l.length >= o ? a : "" + Array(o + 1 - l.length).join(u) + a;
|
|
1009
|
-
}, A = { s: T, z: function(a) {
|
|
1010
|
-
var o = -a.utcOffset(), u = Math.abs(o), l = Math.floor(u / 60), s = u % 60;
|
|
1011
|
-
return (o <= 0 ? "+" : "-") + T(l, 2, "0") + ":" + T(s, 2, "0");
|
|
1012
|
-
}, m: function a(o, u) {
|
|
1013
|
-
if (o.date() < u.date())
|
|
1014
|
-
return -a(u, o);
|
|
1015
|
-
var l = 12 * (u.year() - o.year()) + (u.month() - o.month()), s = o.clone().add(l, y), r = u - s < 0, C = o.clone().add(l + (r ? -1 : 1), y);
|
|
1016
|
-
return +(-(l + (u - s) / (r ? s - C : C - s)) || 0);
|
|
1017
|
-
}, a: function(a) {
|
|
1018
|
-
return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
|
|
1019
|
-
}, p: function(a) {
|
|
1020
|
-
return { M: y, y: _, w: R, d: I, D: $, h: b, m: w, s: h, ms: d, Q: S }[a] || String(a || "").toLowerCase().replace(/s$/, "");
|
|
1021
|
-
}, u: function(a) {
|
|
1022
|
-
return a === void 0;
|
|
1023
|
-
} }, H = "en", q = {};
|
|
1024
|
-
q[H] = W;
|
|
1025
|
-
var B = function(a) {
|
|
1026
|
-
return a instanceof D;
|
|
1027
|
-
}, O = function a(o, u, l) {
|
|
1028
|
-
var s;
|
|
1029
|
-
if (!o)
|
|
1030
|
-
return H;
|
|
1031
|
-
if (typeof o == "string") {
|
|
1032
|
-
var r = o.toLowerCase();
|
|
1033
|
-
q[r] && (s = r), u && (q[r] = u, s = r);
|
|
1034
|
-
var C = o.split("-");
|
|
1035
|
-
if (!s && C.length > 1)
|
|
1036
|
-
return a(C[0]);
|
|
1037
|
-
} else {
|
|
1038
|
-
var j = o.name;
|
|
1039
|
-
q[j] = o, s = j;
|
|
1040
|
-
}
|
|
1041
|
-
return !l && s && (H = s), s || !l && H;
|
|
1042
|
-
}, v = function(a, o) {
|
|
1043
|
-
if (B(a))
|
|
1044
|
-
return a.clone();
|
|
1045
|
-
var u = typeof o == "object" ? o : {};
|
|
1046
|
-
return u.date = a, u.args = arguments, new D(u);
|
|
1047
|
-
}, g = A;
|
|
1048
|
-
g.l = O, g.i = B, g.w = function(a, o) {
|
|
1049
|
-
return v(a, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
|
|
1050
|
-
};
|
|
1051
|
-
var D = function() {
|
|
1052
|
-
function a(u) {
|
|
1053
|
-
this.$L = O(u.locale, null, !0), this.parse(u);
|
|
1054
|
-
}
|
|
1055
|
-
var o = a.prototype;
|
|
1056
|
-
return o.parse = function(u) {
|
|
1057
|
-
this.$d = function(l) {
|
|
1058
|
-
var s = l.date, r = l.utc;
|
|
1059
|
-
if (s === null)
|
|
1060
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
1061
|
-
if (g.u(s))
|
|
1062
|
-
return /* @__PURE__ */ new Date();
|
|
1063
|
-
if (s instanceof Date)
|
|
1064
|
-
return new Date(s);
|
|
1065
|
-
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
1066
|
-
var C = s.match(E);
|
|
1067
|
-
if (C) {
|
|
1068
|
-
var j = C[2] - 1 || 0, k = (C[7] || "0").substring(0, 3);
|
|
1069
|
-
return r ? new Date(Date.UTC(C[1], j, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, k)) : new Date(C[1], j, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, k);
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
return new Date(s);
|
|
1073
|
-
}(u), this.$x = u.x || {}, this.init();
|
|
1074
|
-
}, o.init = function() {
|
|
1075
|
-
var u = this.$d;
|
|
1076
|
-
this.$y = u.getFullYear(), this.$M = u.getMonth(), this.$D = u.getDate(), this.$W = u.getDay(), this.$H = u.getHours(), this.$m = u.getMinutes(), this.$s = u.getSeconds(), this.$ms = u.getMilliseconds();
|
|
1077
|
-
}, o.$utils = function() {
|
|
1078
|
-
return g;
|
|
1079
|
-
}, o.isValid = function() {
|
|
1080
|
-
return this.$d.toString() !== V;
|
|
1081
|
-
}, o.isSame = function(u, l) {
|
|
1082
|
-
var s = v(u);
|
|
1083
|
-
return this.startOf(l) <= s && s <= this.endOf(l);
|
|
1084
|
-
}, o.isAfter = function(u, l) {
|
|
1085
|
-
return v(u) < this.startOf(l);
|
|
1086
|
-
}, o.isBefore = function(u, l) {
|
|
1087
|
-
return this.endOf(l) < v(u);
|
|
1088
|
-
}, o.$g = function(u, l, s) {
|
|
1089
|
-
return g.u(u) ? this[l] : this.set(s, u);
|
|
1090
|
-
}, o.unix = function() {
|
|
1091
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
1092
|
-
}, o.valueOf = function() {
|
|
1093
|
-
return this.$d.getTime();
|
|
1094
|
-
}, o.startOf = function(u, l) {
|
|
1095
|
-
var s = this, r = !!g.u(l) || l, C = g.p(u), j = function(J, z) {
|
|
1096
|
-
var ae = g.w(s.$u ? Date.UTC(s.$y, z, J) : new Date(s.$y, z, J), s);
|
|
1097
|
-
return r ? ae : ae.endOf(I);
|
|
1098
|
-
}, k = function(J, z) {
|
|
1099
|
-
return g.w(s.toDate()[J].apply(s.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), s);
|
|
1100
|
-
}, M = this.$W, U = this.$M, Q = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
1101
|
-
switch (C) {
|
|
1102
|
-
case _:
|
|
1103
|
-
return r ? j(1, 0) : j(31, 11);
|
|
1104
|
-
case y:
|
|
1105
|
-
return r ? j(1, U) : j(0, U + 1);
|
|
1106
|
-
case R:
|
|
1107
|
-
var Z = this.$locale().weekStart || 0, te = (M < Z ? M + 7 : M) - Z;
|
|
1108
|
-
return j(r ? Q - te : Q + (6 - te), U);
|
|
1109
|
-
case I:
|
|
1110
|
-
case $:
|
|
1111
|
-
return k(ce + "Hours", 0);
|
|
1112
|
-
case b:
|
|
1113
|
-
return k(ce + "Minutes", 1);
|
|
1114
|
-
case w:
|
|
1115
|
-
return k(ce + "Seconds", 2);
|
|
1116
|
-
case h:
|
|
1117
|
-
return k(ce + "Milliseconds", 3);
|
|
1118
|
-
default:
|
|
1119
|
-
return this.clone();
|
|
1120
|
-
}
|
|
1121
|
-
}, o.endOf = function(u) {
|
|
1122
|
-
return this.startOf(u, !1);
|
|
1123
|
-
}, o.$set = function(u, l) {
|
|
1124
|
-
var s, r = g.p(u), C = "set" + (this.$u ? "UTC" : ""), j = (s = {}, s[I] = C + "Date", s[$] = C + "Date", s[y] = C + "Month", s[_] = C + "FullYear", s[b] = C + "Hours", s[w] = C + "Minutes", s[h] = C + "Seconds", s[d] = C + "Milliseconds", s)[r], k = r === I ? this.$D + (l - this.$W) : l;
|
|
1125
|
-
if (r === y || r === _) {
|
|
1126
|
-
var M = this.clone().set($, 1);
|
|
1127
|
-
M.$d[j](k), M.init(), this.$d = M.set($, Math.min(this.$D, M.daysInMonth())).$d;
|
|
1128
|
-
} else
|
|
1129
|
-
j && this.$d[j](k);
|
|
1130
|
-
return this.init(), this;
|
|
1131
|
-
}, o.set = function(u, l) {
|
|
1132
|
-
return this.clone().$set(u, l);
|
|
1133
|
-
}, o.get = function(u) {
|
|
1134
|
-
return this[g.p(u)]();
|
|
1135
|
-
}, o.add = function(u, l) {
|
|
1136
|
-
var s, r = this;
|
|
1137
|
-
u = Number(u);
|
|
1138
|
-
var C = g.p(l), j = function(U) {
|
|
1139
|
-
var Q = v(r);
|
|
1140
|
-
return g.w(Q.date(Q.date() + Math.round(U * u)), r);
|
|
1141
|
-
};
|
|
1142
|
-
if (C === y)
|
|
1143
|
-
return this.set(y, this.$M + u);
|
|
1144
|
-
if (C === _)
|
|
1145
|
-
return this.set(_, this.$y + u);
|
|
1146
|
-
if (C === I)
|
|
1147
|
-
return j(1);
|
|
1148
|
-
if (C === R)
|
|
1149
|
-
return j(7);
|
|
1150
|
-
var k = (s = {}, s[w] = i, s[b] = m, s[h] = t, s)[C] || 1, M = this.$d.getTime() + u * k;
|
|
1151
|
-
return g.w(M, this);
|
|
1152
|
-
}, o.subtract = function(u, l) {
|
|
1153
|
-
return this.add(-1 * u, l);
|
|
1154
|
-
}, o.format = function(u) {
|
|
1155
|
-
var l = this, s = this.$locale();
|
|
1156
|
-
if (!this.isValid())
|
|
1157
|
-
return s.invalidDate || V;
|
|
1158
|
-
var r = u || "YYYY-MM-DDTHH:mm:ssZ", C = g.z(this), j = this.$H, k = this.$m, M = this.$M, U = s.weekdays, Q = s.months, ce = s.meridiem, Z = function(z, ae, ie, ne) {
|
|
1159
|
-
return z && (z[ae] || z(l, r)) || ie[ae].slice(0, ne);
|
|
1160
|
-
}, te = function(z) {
|
|
1161
|
-
return g.s(j % 12 || 12, z, "0");
|
|
1162
|
-
}, J = ce || function(z, ae, ie) {
|
|
1163
|
-
var ne = z < 12 ? "AM" : "PM";
|
|
1164
|
-
return ie ? ne.toLowerCase() : ne;
|
|
1165
|
-
};
|
|
1166
|
-
return r.replace(x, function(z, ae) {
|
|
1167
|
-
return ae || function(ie) {
|
|
1168
|
-
switch (ie) {
|
|
1169
|
-
case "YY":
|
|
1170
|
-
return String(l.$y).slice(-2);
|
|
1171
|
-
case "YYYY":
|
|
1172
|
-
return g.s(l.$y, 4, "0");
|
|
1173
|
-
case "M":
|
|
1174
|
-
return M + 1;
|
|
1175
|
-
case "MM":
|
|
1176
|
-
return g.s(M + 1, 2, "0");
|
|
1177
|
-
case "MMM":
|
|
1178
|
-
return Z(s.monthsShort, M, Q, 3);
|
|
1179
|
-
case "MMMM":
|
|
1180
|
-
return Z(Q, M);
|
|
1181
|
-
case "D":
|
|
1182
|
-
return l.$D;
|
|
1183
|
-
case "DD":
|
|
1184
|
-
return g.s(l.$D, 2, "0");
|
|
1185
|
-
case "d":
|
|
1186
|
-
return String(l.$W);
|
|
1187
|
-
case "dd":
|
|
1188
|
-
return Z(s.weekdaysMin, l.$W, U, 2);
|
|
1189
|
-
case "ddd":
|
|
1190
|
-
return Z(s.weekdaysShort, l.$W, U, 3);
|
|
1191
|
-
case "dddd":
|
|
1192
|
-
return U[l.$W];
|
|
1193
|
-
case "H":
|
|
1194
|
-
return String(j);
|
|
1195
|
-
case "HH":
|
|
1196
|
-
return g.s(j, 2, "0");
|
|
1197
|
-
case "h":
|
|
1198
|
-
return te(1);
|
|
1199
|
-
case "hh":
|
|
1200
|
-
return te(2);
|
|
1201
|
-
case "a":
|
|
1202
|
-
return J(j, k, !0);
|
|
1203
|
-
case "A":
|
|
1204
|
-
return J(j, k, !1);
|
|
1205
|
-
case "m":
|
|
1206
|
-
return String(k);
|
|
1207
|
-
case "mm":
|
|
1208
|
-
return g.s(k, 2, "0");
|
|
1209
|
-
case "s":
|
|
1210
|
-
return String(l.$s);
|
|
1211
|
-
case "ss":
|
|
1212
|
-
return g.s(l.$s, 2, "0");
|
|
1213
|
-
case "SSS":
|
|
1214
|
-
return g.s(l.$ms, 3, "0");
|
|
1215
|
-
case "Z":
|
|
1216
|
-
return C;
|
|
1217
|
-
}
|
|
1218
|
-
return null;
|
|
1219
|
-
}(z) || C.replace(":", "");
|
|
1220
|
-
});
|
|
1221
|
-
}, o.utcOffset = function() {
|
|
1222
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1223
|
-
}, o.diff = function(u, l, s) {
|
|
1224
|
-
var r, C = this, j = g.p(l), k = v(u), M = (k.utcOffset() - this.utcOffset()) * i, U = this - k, Q = function() {
|
|
1225
|
-
return g.m(C, k);
|
|
1226
|
-
};
|
|
1227
|
-
switch (j) {
|
|
1228
|
-
case _:
|
|
1229
|
-
r = Q() / 12;
|
|
1230
|
-
break;
|
|
1231
|
-
case y:
|
|
1232
|
-
r = Q();
|
|
1233
|
-
break;
|
|
1234
|
-
case S:
|
|
1235
|
-
r = Q() / 3;
|
|
1236
|
-
break;
|
|
1237
|
-
case R:
|
|
1238
|
-
r = (U - M) / 6048e5;
|
|
1239
|
-
break;
|
|
1240
|
-
case I:
|
|
1241
|
-
r = (U - M) / 864e5;
|
|
1242
|
-
break;
|
|
1243
|
-
case b:
|
|
1244
|
-
r = U / m;
|
|
1245
|
-
break;
|
|
1246
|
-
case w:
|
|
1247
|
-
r = U / i;
|
|
1248
|
-
break;
|
|
1249
|
-
case h:
|
|
1250
|
-
r = U / t;
|
|
1251
|
-
break;
|
|
1252
|
-
default:
|
|
1253
|
-
r = U;
|
|
1254
|
-
}
|
|
1255
|
-
return s ? r : g.a(r);
|
|
1256
|
-
}, o.daysInMonth = function() {
|
|
1257
|
-
return this.endOf(y).$D;
|
|
1258
|
-
}, o.$locale = function() {
|
|
1259
|
-
return q[this.$L];
|
|
1260
|
-
}, o.locale = function(u, l) {
|
|
1261
|
-
if (!u)
|
|
1262
|
-
return this.$L;
|
|
1263
|
-
var s = this.clone(), r = O(u, l, !0);
|
|
1264
|
-
return r && (s.$L = r), s;
|
|
1265
|
-
}, o.clone = function() {
|
|
1266
|
-
return g.w(this.$d, this);
|
|
1267
|
-
}, o.toDate = function() {
|
|
1268
|
-
return new Date(this.valueOf());
|
|
1269
|
-
}, o.toJSON = function() {
|
|
1270
|
-
return this.isValid() ? this.toISOString() : null;
|
|
1271
|
-
}, o.toISOString = function() {
|
|
1272
|
-
return this.$d.toISOString();
|
|
1273
|
-
}, o.toString = function() {
|
|
1274
|
-
return this.$d.toUTCString();
|
|
1275
|
-
}, a;
|
|
1276
|
-
}(), c = D.prototype;
|
|
1277
|
-
return v.prototype = c, [["$ms", d], ["$s", h], ["$m", w], ["$H", b], ["$W", I], ["$M", y], ["$y", _], ["$D", $]].forEach(function(a) {
|
|
1278
|
-
c[a[1]] = function(o) {
|
|
1279
|
-
return this.$g(o, a[0], a[1]);
|
|
1280
|
-
};
|
|
1281
|
-
}), v.extend = function(a, o) {
|
|
1282
|
-
return a.$i || (a(o, D, v), a.$i = !0), v;
|
|
1283
|
-
}, v.locale = O, v.isDayjs = B, v.unix = function(a) {
|
|
1284
|
-
return v(1e3 * a);
|
|
1285
|
-
}, v.en = q[H], v.Ls = q, v.p = {}, v;
|
|
1286
|
-
});
|
|
1287
|
-
})(Ot);
|
|
1288
|
-
var Fi = Ot.exports;
|
|
1289
|
-
const qe = /* @__PURE__ */ Si(Fi), Pt = Object.keys(Ft), Ci = Pt.join(","), _i = Pt.map((n) => Ft[n]), xt = /#{([^}]+)?}/g, It = /{{([^}]+)?}}/g, Ke = /\${([^}]+)?}/g, ke = { ADD: "add", EDIT: "edit", DETAIL: "detail", RELOAD: "reload" };
|
|
1290
|
-
function Ti(n, e, t) {
|
|
1291
|
-
tt(e.defVal) && t.push({ field: n, type: e.type, value: e.defVal });
|
|
1292
|
-
}
|
|
1293
|
-
function Oi(n, e) {
|
|
1294
|
-
tt(n.fieldDefaultValue) && e.push({ field: n.key, type: n.type, value: n.fieldDefaultValue });
|
|
1295
|
-
}
|
|
1296
|
-
function Ze(n, e, t) {
|
|
1297
|
-
return Y(this, null, function* () {
|
|
1298
|
-
if (Array.isArray(n) && n.length > 0) {
|
|
1299
|
-
let i = {};
|
|
1300
|
-
for (let m of n) {
|
|
1301
|
-
let { value: d, type: h, field: w } = m;
|
|
1302
|
-
d = yield Dt(d, ke.ADD, t || {}), h === "number" && d && (d = Number.parseFloat(d)), i[w] = d;
|
|
1303
|
-
}
|
|
1304
|
-
e(i);
|
|
1305
|
-
}
|
|
1306
|
-
});
|
|
1307
|
-
}
|
|
1308
|
-
function ms(n, e, t) {
|
|
1309
|
-
return Y(this, null, function* () {
|
|
1310
|
-
let { defVal: i, type: m } = e;
|
|
1311
|
-
if (tt(i)) {
|
|
1312
|
-
let d = yield Dt(i, ke.ADD, {});
|
|
1313
|
-
m === "number" && d && (d = Number.parseFloat(d)), t[n] = d;
|
|
1314
|
-
}
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
function tt(n) {
|
|
1318
|
-
return !!(n || n === 0);
|
|
1319
|
-
}
|
|
1320
|
-
function Dt(n, e, t) {
|
|
1321
|
-
return Y(this, null, function* () {
|
|
1322
|
-
if (n != null && Pi(n)) {
|
|
1323
|
-
let i = yield Ii(n, e, t);
|
|
1324
|
-
if (i != null)
|
|
1325
|
-
return i;
|
|
1326
|
-
}
|
|
1327
|
-
return n;
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
function Pi(n) {
|
|
1331
|
-
let e = 0, t = 0, i = 0;
|
|
1332
|
-
if (n.replace(Ke, () => i++), i > 1)
|
|
1333
|
-
return !1;
|
|
1334
|
-
n.replace(xt, () => e++), n.replace(It, () => t++);
|
|
1335
|
-
let m = e + t;
|
|
1336
|
-
return !(i > 0 && m > 0);
|
|
1337
|
-
}
|
|
1338
|
-
function xi(n, e) {
|
|
1339
|
-
let t = /* @__PURE__ */ new Map();
|
|
1340
|
-
return n.replace(e, function(i, m) {
|
|
1341
|
-
return t.set(i, m.trim()), i;
|
|
1342
|
-
}), t;
|
|
1343
|
-
}
|
|
1344
|
-
function Ii(n, e, t) {
|
|
1345
|
-
return Y(this, null, function* () {
|
|
1346
|
-
return (e === ke.ADD || e === ke.RELOAD) && Ke.test(n) ? yield Ye(n, Ke, $i, [t]) : e === ke.ADD ? (n = yield Ye(n, xt, Di), n = yield Ye(n, It, Ri), n) : null;
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
function Ye(m, d, h) {
|
|
1350
|
-
return Y(this, arguments, function* (n, e, t, i = []) {
|
|
1351
|
-
let w = xi(n, e);
|
|
1352
|
-
for (let b of w.keys()) {
|
|
1353
|
-
let I = w.get(b), R = yield t.apply(null, [I, b, ...i]);
|
|
1354
|
-
if (b === n)
|
|
1355
|
-
return R;
|
|
1356
|
-
n = Pn(n, b, R);
|
|
1357
|
-
}
|
|
1358
|
-
return n;
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
function Di(n, e) {
|
|
1362
|
-
return Y(this, null, function* () {
|
|
1363
|
-
switch (n) {
|
|
1364
|
-
case "date":
|
|
1365
|
-
return qe().format("YYYY-MM-DD");
|
|
1366
|
-
case "time":
|
|
1367
|
-
return qe().format("HH:mm:ss");
|
|
1368
|
-
case "datetime":
|
|
1369
|
-
return qe().format("YYYY-MM-DD HH:mm:ss");
|
|
1370
|
-
default:
|
|
1371
|
-
let t = Mi(n);
|
|
1372
|
-
return t != null ? t : e;
|
|
1373
|
-
}
|
|
1374
|
-
});
|
|
1375
|
-
}
|
|
1376
|
-
function Mi(n) {
|
|
1377
|
-
let t = On().getUserInfo;
|
|
1378
|
-
if (t)
|
|
1379
|
-
switch (n) {
|
|
1380
|
-
case "sysUserId":
|
|
1381
|
-
return t.id;
|
|
1382
|
-
case "sysUserCode":
|
|
1383
|
-
case "sys_user_code":
|
|
1384
|
-
return t.username;
|
|
1385
|
-
case "sysUserName":
|
|
1386
|
-
return t.realname;
|
|
1387
|
-
case "sysOrgCode":
|
|
1388
|
-
case "sys_org_code":
|
|
1389
|
-
return t.orgCode;
|
|
1390
|
-
}
|
|
1391
|
-
return null;
|
|
1392
|
-
}
|
|
1393
|
-
function Ri(n, e) {
|
|
1394
|
-
return Y(this, null, function* () {
|
|
1395
|
-
let t = et(`(function (${Ci}){ return ${n} })`);
|
|
1396
|
-
try {
|
|
1397
|
-
return t.apply(null, _i);
|
|
1398
|
-
} catch (i) {
|
|
1399
|
-
return e;
|
|
1400
|
-
}
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
function $i(n, e, t) {
|
|
1404
|
-
return Y(this, null, function* () {
|
|
1405
|
-
let i = `/sys/fillRule/executeRuleByCode/${n}`, m = {};
|
|
1406
|
-
typeof t == "function" ? m = t() : t && (m = me({}, t));
|
|
1407
|
-
let { success: d, message: h, result: w } = yield ge.put({ url: i, params: m }, { isTransformResponse: !1 });
|
|
1408
|
-
return d ? w : e;
|
|
1409
|
-
});
|
|
1410
|
-
}
|
|
1411
|
-
const nt = "link_down", ki = "link_table_field", Ei = "link_table";
|
|
1412
|
-
function Mt(n, e) {
|
|
1413
|
-
Ml();
|
|
1414
|
-
const t = n.modalClass, i = F([]), m = F(""), d = F({}), h = Se({}), w = F(!1), b = F([]), I = F({}), R = {}, y = F([]), S = Se({}), _ = F("");
|
|
1415
|
-
_.value = { sm: 24, xs: 24, md: 12, lg: 12, xl: 12, xxl: 12 };
|
|
1416
|
-
function $(T, A, H) {
|
|
1417
|
-
var c;
|
|
1418
|
-
Li(S), S[m.value] = [];
|
|
1419
|
-
let q = [], B = [], O = [], v = {}, g = {};
|
|
1420
|
-
Object.keys(T).map((a) => {
|
|
1421
|
-
const o = T[a];
|
|
1422
|
-
if (o.view == "tab") {
|
|
1423
|
-
w.value = !0, S[a] = [];
|
|
1424
|
-
let u = {
|
|
1425
|
-
key: a,
|
|
1426
|
-
// 这个foreignKey是主表的字段
|
|
1427
|
-
foreignKey: o.foreignKey,
|
|
1428
|
-
describe: o.describe,
|
|
1429
|
-
relationType: o.relationType,
|
|
1430
|
-
requiredFields: o.required || [],
|
|
1431
|
-
order: o.order,
|
|
1432
|
-
id: o.id
|
|
1433
|
-
};
|
|
1434
|
-
o.relationType == 1 ? (R[a] = F(null), u.properties = o.properties) : (V(o), R[a] = F(), u.columns = o.columns, v[a] = []), q.push(u), Vi(a, o);
|
|
1435
|
-
} else if (Ti(a, o, S[m.value]), o.view === nt) {
|
|
1436
|
-
let u = ji(o, a);
|
|
1437
|
-
for (let l of u) {
|
|
1438
|
-
h[l.key] = !0, h[l.key + "_load"] = !0;
|
|
1439
|
-
let s = He.createFormSchema(l.key, l);
|
|
1440
|
-
H && s.setOnlyValidateFun(H), s.isRequired(A), s.setFormRef(e), s.handleWidgetAttr(o);
|
|
1441
|
-
let r = mt(B, l.key);
|
|
1442
|
-
r == -1 ? B.push(s) : B[r] = s;
|
|
1443
|
-
}
|
|
1444
|
-
} else if (h[a] = !0, h[a + "_load"] = !0, mt(B, a) == -1) {
|
|
1445
|
-
let l = He.createFormSchema(a, o);
|
|
1446
|
-
if (H && l.setOnlyValidateFun(H), l.isRequired(A), l.setFormRef(e), B.push(l), O.push(...l.getRelatedHideFields()), o.view === ki) {
|
|
1447
|
-
let s = l.getLinkFieldInfo();
|
|
1448
|
-
s && (g[s[0]] ? g[s[0]].push(s[1]) : g[s[0]] = [s[1]]);
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
}), B.sort(function(a, o) {
|
|
1452
|
-
return a.order - o.order;
|
|
1453
|
-
});
|
|
1454
|
-
let D = [];
|
|
1455
|
-
D.push(He.createIdField());
|
|
1456
|
-
for (let a of B) {
|
|
1457
|
-
a.view && a.view == Ei && g[a.field] && a.setOtherInfo(g[a.field]), O.indexOf(a.field) >= 0 && a.isHidden(), t && a.setCustomPopContainer(t);
|
|
1458
|
-
const o = a.getFormItemSchema();
|
|
1459
|
-
o.component === "JDictSelectTag" && ((c = a == null ? void 0 : a._data) == null ? void 0 : c.type) === "number" && (o.componentProps.stringToNumber = !0), D.push(o);
|
|
1460
|
-
}
|
|
1461
|
-
i.value = D, q.sort(function(a, o) {
|
|
1462
|
-
return a.order - o.order;
|
|
1463
|
-
}), q.forEach((a) => {
|
|
1464
|
-
const o = a.columns;
|
|
1465
|
-
a.columns && o.forEach((u) => {
|
|
1466
|
-
u.type === "popup" && u.fieldExtendJson && JSON.parse(u.fieldExtendJson).popupMulti && (u.props ? Object.assign(u.props, { multi: !0 }) : u.props = { multi: !0 });
|
|
1467
|
-
});
|
|
1468
|
-
}), b.value = q, I.value = v;
|
|
1469
|
-
}
|
|
1470
|
-
he(
|
|
1471
|
-
h,
|
|
1472
|
-
(T) => {
|
|
1473
|
-
let A = e.value, H = [], q = be(T);
|
|
1474
|
-
Object.keys(q).map((B) => {
|
|
1475
|
-
if (!B.endsWith("_load")) {
|
|
1476
|
-
let O = {
|
|
1477
|
-
field: B,
|
|
1478
|
-
show: q[B]
|
|
1479
|
-
}, v = B + "_load";
|
|
1480
|
-
q.hasOwnProperty(v) && (O.ifShow = q[v]), H.push(O);
|
|
1481
|
-
}
|
|
1482
|
-
}), A && A.updateSchema(H);
|
|
1483
|
-
},
|
|
1484
|
-
{ immediate: !1 }
|
|
1485
|
-
);
|
|
1486
|
-
function V(T) {
|
|
1487
|
-
Rt(T, (A) => {
|
|
1488
|
-
Oi(A, S[T.key]);
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
he(
|
|
1492
|
-
() => n.formTemplate,
|
|
1493
|
-
() => {
|
|
1494
|
-
_.value = E();
|
|
1495
|
-
},
|
|
1496
|
-
{ immediate: !0 }
|
|
1497
|
-
);
|
|
1498
|
-
function E() {
|
|
1499
|
-
let T = n.formTemplate;
|
|
1500
|
-
return T == 2 ? { sm: 24, xs: 24, md: 12, lg: 12, xl: 12, xxl: 12 } : T == 3 ? { sm: 24, xs: 24, md: 8, lg: 8, xl: 8, xxl: 8 } : T == 4 ? { sm: 24, xs: 24, md: 6, lg: 6, xl: 6, xxl: 6 } : { sm: 24, xs: 24, md: 24, lg: 24, xl: 24, xxl: 24 };
|
|
1501
|
-
}
|
|
1502
|
-
function x(T, A) {
|
|
1503
|
-
return new Promise((H) => {
|
|
1504
|
-
A || H("");
|
|
1505
|
-
let B = {
|
|
1506
|
-
tableName: m.value.replace(/\$\d+/, ""),
|
|
1507
|
-
fieldName: T.field,
|
|
1508
|
-
fieldVal: A
|
|
1509
|
-
}, O = d.value;
|
|
1510
|
-
O.id && (B.dataId = O.id), Tn(B).then((v) => {
|
|
1511
|
-
v.success ? H("") : H(v.message);
|
|
1512
|
-
}).catch((v) => {
|
|
1513
|
-
H(v);
|
|
1514
|
-
});
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
function W(T) {
|
|
1518
|
-
return Object.keys(T).map((A) => {
|
|
1519
|
-
T[A] && T[A] instanceof Array && (T[A] = T[A].join(","));
|
|
1520
|
-
}), T;
|
|
1521
|
-
}
|
|
1522
|
-
return {
|
|
1523
|
-
formSchemas: i,
|
|
1524
|
-
defaultValueFields: S,
|
|
1525
|
-
tableName: m,
|
|
1526
|
-
dbData: d,
|
|
1527
|
-
checkOnlyFieldValue: x,
|
|
1528
|
-
createFormSchemas: $,
|
|
1529
|
-
fieldDisplayStatus: h,
|
|
1530
|
-
subTabInfo: b,
|
|
1531
|
-
hasSubTable: w,
|
|
1532
|
-
subDataSource: I,
|
|
1533
|
-
baseColProps: _,
|
|
1534
|
-
changeDataIfArray2String: W,
|
|
1535
|
-
linkDownList: y,
|
|
1536
|
-
refMap: R
|
|
1537
|
-
};
|
|
1538
|
-
}
|
|
1539
|
-
function Rt(n, e) {
|
|
1540
|
-
const t = {
|
|
1541
|
-
inputNumber: "input-number",
|
|
1542
|
-
sel_depart: "depart-select",
|
|
1543
|
-
sel_user: "user-select",
|
|
1544
|
-
list_multi: "select-multiple",
|
|
1545
|
-
input_pop: "textarea",
|
|
1546
|
-
sel_search: "select-search",
|
|
1547
|
-
"select-dict-search": "selectDictSearch"
|
|
1548
|
-
};
|
|
1549
|
-
n.columns.forEach((d) => {
|
|
1550
|
-
d.type === "radio" ? d.type = "select" : t[d.type] ? d.type = t[d.type] : d.type === "popup" && i(d), d.type === "depart-select" && (d.checkStrictly = !0), d.type === "user-select" && m(d), d.type === "pca" && (d.width = "230px"), (d.width == 120 || d.width == "120px") && (d.type == "image" || d.type == "file") && (d.width = "130px"), d.width || (d.width = "200px"), e && e(d);
|
|
1551
|
-
});
|
|
1552
|
-
function i(d) {
|
|
1553
|
-
let { destFields: h, orgFields: w } = d, b = [];
|
|
1554
|
-
if (!(!h || h.length == 0)) {
|
|
1555
|
-
let I = h.split(","), R = w.split(",");
|
|
1556
|
-
for (let y = 0; y < I.length; y++)
|
|
1557
|
-
b.push({
|
|
1558
|
-
target: I[y],
|
|
1559
|
-
source: R[y]
|
|
1560
|
-
});
|
|
1561
|
-
}
|
|
1562
|
-
d.fieldConfig = b;
|
|
1563
|
-
}
|
|
1564
|
-
function m(d) {
|
|
1565
|
-
let h = d.fieldExtendJson, w = !1;
|
|
1566
|
-
if (h)
|
|
1567
|
-
try {
|
|
1568
|
-
JSON.parse(h).multiSelect === !1 && (w = !0);
|
|
1569
|
-
} catch (b) {
|
|
1570
|
-
}
|
|
1571
|
-
d.isRadioSelection = w;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
function Ai() {
|
|
1575
|
-
let n = {};
|
|
1576
|
-
const e = {
|
|
1577
|
-
addSubRows: "<m> 一对多子表,新增自定义行",
|
|
1578
|
-
changeOptions: "<m> 改变下拉框选项",
|
|
1579
|
-
clearSubRows: "<m> 清空一对多子表行",
|
|
1580
|
-
clearThenAddRows: "<m> 清空一对多子表行,然后新增自定义行",
|
|
1581
|
-
executeMainFillRule: "<m> 刷新主表的增值规制值",
|
|
1582
|
-
executeSubFillRule: "<m> 刷新子表的增值规制值",
|
|
1583
|
-
getFieldsValue: "<m> 获取表单控件的值",
|
|
1584
|
-
getSubTableInstance: "<m> 获取子表实例",
|
|
1585
|
-
isUpdate: "<p> 判断是否为编辑模式",
|
|
1586
|
-
loading: "<p> 页面加载状态",
|
|
1587
|
-
onlineFormRef: "<p> 当前表单ref对象",
|
|
1588
|
-
refMap: "<p> 子表ref对象map",
|
|
1589
|
-
setFieldsValue: "<m> 设置表单控件的值",
|
|
1590
|
-
sh: "<p> 表单控件的显示隐藏状态",
|
|
1591
|
-
subActiveKey: "<p> 子表激活tab,对应子表表名",
|
|
1592
|
-
subFormHeight: "<p> 一对一子表表单高度",
|
|
1593
|
-
submitFlowFlag: "<p> 是否提交流程状态",
|
|
1594
|
-
subTableHeight: "<p> 一对多子表表格高度",
|
|
1595
|
-
tableName: "<p> 当前表名",
|
|
1596
|
-
triggleChangeValues: "<m> 修改多个表单值",
|
|
1597
|
-
triggleChangeValue: "<m> 修改表单值",
|
|
1598
|
-
updateSchema: "<m> 修改表单控件配置"
|
|
1599
|
-
}, t = new Proxy(e, {
|
|
1600
|
-
get(d, h) {
|
|
1601
|
-
return Reflect.get(n, h);
|
|
1602
|
-
}
|
|
1603
|
-
});
|
|
1604
|
-
function i(d, h) {
|
|
1605
|
-
n[d] = h;
|
|
1606
|
-
}
|
|
1607
|
-
function m(d) {
|
|
1608
|
-
Object.keys(d).map((h) => {
|
|
1609
|
-
n[h] = d[h];
|
|
1610
|
-
});
|
|
1611
|
-
}
|
|
1612
|
-
return i("$nextTick", Ee), i("addObject2Context", i), { onlineFormContext: t, addObject2Context: i, resetContext: m };
|
|
1613
|
-
}
|
|
1614
|
-
function ji(n, e) {
|
|
1615
|
-
const {
|
|
1616
|
-
config: { table: t, key: i, txt: m, linkField: d, idField: h, pidField: w, condition: b },
|
|
1617
|
-
others: I,
|
|
1618
|
-
order: R,
|
|
1619
|
-
title: y
|
|
1620
|
-
} = n;
|
|
1621
|
-
let S = {
|
|
1622
|
-
dictTable: t,
|
|
1623
|
-
dictText: m,
|
|
1624
|
-
dictCode: i,
|
|
1625
|
-
pidField: w,
|
|
1626
|
-
idField: h,
|
|
1627
|
-
view: nt,
|
|
1628
|
-
type: n.type
|
|
1629
|
-
}, _ = [], $ = me({
|
|
1630
|
-
key: e,
|
|
1631
|
-
title: y,
|
|
1632
|
-
order: R,
|
|
1633
|
-
condition: b,
|
|
1634
|
-
origin: !0
|
|
1635
|
-
}, S);
|
|
1636
|
-
if (d && d.length > 0) {
|
|
1637
|
-
let V = d.split(",");
|
|
1638
|
-
$.next = V[0];
|
|
1639
|
-
for (let E = 0; E < V.length; E++)
|
|
1640
|
-
for (let x of I)
|
|
1641
|
-
if (x.field == V[E]) {
|
|
1642
|
-
let W = me({
|
|
1643
|
-
key: x.field,
|
|
1644
|
-
title: x.title,
|
|
1645
|
-
order: x.order,
|
|
1646
|
-
origin: !1
|
|
1647
|
-
}, S);
|
|
1648
|
-
E + 1 < V.length && (W.next = V[E + 1]), _.push(W);
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
return _.push($), _;
|
|
1652
|
-
}
|
|
1653
|
-
function mt(n, e) {
|
|
1654
|
-
let t = -1;
|
|
1655
|
-
for (let i = 0; i < n.length; i++)
|
|
1656
|
-
if (n[i].field === e) {
|
|
1657
|
-
t = i;
|
|
1658
|
-
break;
|
|
1659
|
-
}
|
|
1660
|
-
return t;
|
|
1661
|
-
}
|
|
1662
|
-
function De(n) {
|
|
1663
|
-
return new Promise((e) => {
|
|
1664
|
-
(function t() {
|
|
1665
|
-
let i = n.value;
|
|
1666
|
-
i ? e(i) : setTimeout(() => {
|
|
1667
|
-
t();
|
|
1668
|
-
}, 100);
|
|
1669
|
-
})();
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
function Li(n) {
|
|
1673
|
-
Object.keys(n).map((e) => {
|
|
1674
|
-
delete n[e];
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
const Ni = Dn();
|
|
1678
|
-
function Vi(n, e) {
|
|
1679
|
-
let t = e.hideButtons, i = Hn + n + ":";
|
|
1680
|
-
t || (t = []), Ni.setOnlineSubTableAuth(i, t);
|
|
1681
|
-
}
|
|
1682
|
-
function ps(n) {
|
|
1683
|
-
const e = F([]), t = {}, i = Se({}), m = F(!1), d = F([]), h = F({}), w = de(() => {
|
|
1684
|
-
let S = n.formTemplate;
|
|
1685
|
-
return S == "2" ? 12 : S == "3" ? 8 : S == "4" ? 6 : 24;
|
|
1686
|
-
});
|
|
1687
|
-
function b(S) {
|
|
1688
|
-
let _ = [], $ = [], V = {};
|
|
1689
|
-
Object.keys(S).map((E) => {
|
|
1690
|
-
const x = S[E];
|
|
1691
|
-
if (x.view == "tab") {
|
|
1692
|
-
m.value = !0;
|
|
1693
|
-
let W = {
|
|
1694
|
-
key: E,
|
|
1695
|
-
// 这个foreignKey是主表的字段
|
|
1696
|
-
foreignKey: x.foreignKey,
|
|
1697
|
-
describe: x.describe,
|
|
1698
|
-
relationType: x.relationType,
|
|
1699
|
-
requiredFields: x.required || [],
|
|
1700
|
-
order: x.order
|
|
1701
|
-
};
|
|
1702
|
-
x.relationType == 1 ? (t[E] = F(null), W.properties = x.properties) : (I(x), t[E] = F(), W.columns = x.columns, V[E] = [], i[E] = !1), _.push(W);
|
|
1703
|
-
} else if (x.view === nt) {
|
|
1704
|
-
let W = y(x, E);
|
|
1705
|
-
for (let T of W) {
|
|
1706
|
-
let A = R($, T.key), H = {
|
|
1707
|
-
field: T.key,
|
|
1708
|
-
label: T.title,
|
|
1709
|
-
view: T.view,
|
|
1710
|
-
order: T.order,
|
|
1711
|
-
dictTable: T.dictTable,
|
|
1712
|
-
linkField: T.linkField || ""
|
|
1713
|
-
};
|
|
1714
|
-
A == -1 ? $.push(H) : $[A] = H;
|
|
1715
|
-
}
|
|
1716
|
-
} else if (x.view != "hidden") {
|
|
1717
|
-
if (R($, E) == -1) {
|
|
1718
|
-
let T = Object.assign(
|
|
1719
|
-
{
|
|
1720
|
-
field: E,
|
|
1721
|
-
label: x.title
|
|
1722
|
-
},
|
|
1723
|
-
Le(x, ["view", "order", "fieldExtendJson", "dictTable", "dictText", "dictCode", "dict"])
|
|
1724
|
-
);
|
|
1725
|
-
if (x.view == "file" && (T.span = 24, T.isFile = !0), x.view == "image" && (T.span = 24, T.isImage = !0), x.view == "link_table" && x.fieldExtendJson)
|
|
1726
|
-
try {
|
|
1727
|
-
let A = JSON.parse(x.fieldExtendJson);
|
|
1728
|
-
A.showType != "select" && (T.isCard = !0), A.multiSelect == !0 && (T.multi = !0);
|
|
1729
|
-
} catch (A) {
|
|
1730
|
-
}
|
|
1731
|
-
(x.view == "umeditor" || x.view == "markdown") && (T.isHtml = !0, T.span = 24), $.push(T);
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
}), $.sort(function(E, x) {
|
|
1735
|
-
return E.order - x.order;
|
|
1736
|
-
}), _.sort(function(E, x) {
|
|
1737
|
-
return E.order - x.order;
|
|
1738
|
-
}), d.value = _;
|
|
1739
|
-
for (let E = 0; E < $.length; E++) {
|
|
1740
|
-
let x = $[E];
|
|
1741
|
-
if ((x.isFile === !0 || x.isImage === !0 || x.isHtml === !0) && E > 0) {
|
|
1742
|
-
let W = $[E - 1], T = W.span || w.value;
|
|
1743
|
-
W.span = T;
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
e.value = $, h.value = V;
|
|
1747
|
-
}
|
|
1748
|
-
function I(S) {
|
|
1749
|
-
Rt(S);
|
|
1750
|
-
}
|
|
1751
|
-
function R(S, _) {
|
|
1752
|
-
let $ = -1;
|
|
1753
|
-
for (let V = 0; V < S.length; V++)
|
|
1754
|
-
if (S[V].field === _) {
|
|
1755
|
-
$ = V;
|
|
1756
|
-
break;
|
|
1757
|
-
}
|
|
1758
|
-
return $;
|
|
1759
|
-
}
|
|
1760
|
-
function y(S, _) {
|
|
1761
|
-
let $ = [];
|
|
1762
|
-
const {
|
|
1763
|
-
config: { table: V, key: E, txt: x, linkField: W },
|
|
1764
|
-
order: T,
|
|
1765
|
-
title: A,
|
|
1766
|
-
others: H
|
|
1767
|
-
} = S;
|
|
1768
|
-
let B = {
|
|
1769
|
-
view: "link_down",
|
|
1770
|
-
order: T,
|
|
1771
|
-
title: A,
|
|
1772
|
-
dictTable: JSON.stringify({
|
|
1773
|
-
table: V,
|
|
1774
|
-
key: E,
|
|
1775
|
-
txt: x
|
|
1776
|
-
})
|
|
1777
|
-
};
|
|
1778
|
-
if ($.push(Object.assign({}, { linkField: W, key: _ }, B)), W) {
|
|
1779
|
-
let O = W.split(",");
|
|
1780
|
-
for (let v of O) {
|
|
1781
|
-
let g = "";
|
|
1782
|
-
for (let D of H)
|
|
1783
|
-
D.field == v && (g = D.title);
|
|
1784
|
-
$.push(Object.assign({}, { key: v }, B, { title: g }));
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
return $;
|
|
1788
|
-
}
|
|
1789
|
-
return {
|
|
1790
|
-
detailFormSchemas: e,
|
|
1791
|
-
hasSubTable: m,
|
|
1792
|
-
subTabInfo: d,
|
|
1793
|
-
refMap: t,
|
|
1794
|
-
showStatus: i,
|
|
1795
|
-
createFormSchemas: b,
|
|
1796
|
-
formSpan: w,
|
|
1797
|
-
subDataSource: h
|
|
1798
|
-
};
|
|
1799
|
-
}
|
|
1800
|
-
function Bi(n, e = !0) {
|
|
1801
|
-
let t = Se({});
|
|
1802
|
-
const i = (y, S) => ge.get({ url: y, params: S }, { isTransformResponse: !1 }), m = (y, S) => ge.post({ url: y, params: S }, { isTransformResponse: !1 }), d = (y, S) => ge.put({ url: y, params: S }, { isTransformResponse: !1 }), h = (y, S) => ge.delete({ url: y, params: S }, { isTransformResponse: !1 });
|
|
1803
|
-
e === !0 ? (n._getAction = i, n._postAction = m, n._putAction = d, n._deleteAction = h) : (n.addObject2Context("_getAction", i), n.addObject2Context("_postAction", m), n.addObject2Context("_putAction", d), n.addObject2Context("_deleteAction", h));
|
|
1804
|
-
function w(y) {
|
|
1805
|
-
if (y) {
|
|
1806
|
-
const S = et(y);
|
|
1807
|
-
return new S(i, m, h);
|
|
1808
|
-
} else
|
|
1809
|
-
return {};
|
|
1810
|
-
}
|
|
1811
|
-
function b(y, S) {
|
|
1812
|
-
t && t[S] && t[S](y);
|
|
1813
|
-
}
|
|
1814
|
-
function I(y, S) {
|
|
1815
|
-
return t && t.beforeSubmit ? t.beforeSubmit(y, S) : Promise.resolve();
|
|
1816
|
-
}
|
|
1817
|
-
function R(y, S) {
|
|
1818
|
-
return t && t.beforeDelete ? t.beforeDelete(y, S) : Promise.resolve();
|
|
1819
|
-
}
|
|
1820
|
-
return e === !0 && n && (n.beforeDelete = (y) => {
|
|
1821
|
-
const S = n.EnhanceJS;
|
|
1822
|
-
return S && S.beforeDelete ? S.beforeDelete(n, y) : Promise.resolve();
|
|
1823
|
-
}, n.beforeEdit = (y) => {
|
|
1824
|
-
const S = n.EnhanceJS;
|
|
1825
|
-
return S && S.beforeEdit ? S.beforeEdit(n, y) : Promise.resolve();
|
|
1826
|
-
}), {
|
|
1827
|
-
EnhanceJS: t,
|
|
1828
|
-
initCgEnhanceJs: w,
|
|
1829
|
-
customBeforeSubmit: I,
|
|
1830
|
-
beforeDelete: R,
|
|
1831
|
-
triggerJsFun: b
|
|
1832
|
-
};
|
|
1833
|
-
}
|
|
1834
|
-
const Wi = "/online/cgform/api/subform", Ui = {
|
|
1835
|
-
name: "OnlineSubForm",
|
|
1836
|
-
components: {
|
|
1837
|
-
BasicForm: wt,
|
|
1838
|
-
Loading: _t
|
|
1839
|
-
},
|
|
1840
|
-
props: {
|
|
1841
|
-
properties: {
|
|
1842
|
-
type: Object,
|
|
1843
|
-
required: !0
|
|
1844
|
-
},
|
|
1845
|
-
mainId: {
|
|
1846
|
-
type: String,
|
|
1847
|
-
default: ""
|
|
1848
|
-
},
|
|
1849
|
-
table: {
|
|
1850
|
-
type: String,
|
|
1851
|
-
default: ""
|
|
1852
|
-
},
|
|
1853
|
-
formTemplate: {
|
|
1854
|
-
type: Number,
|
|
1855
|
-
default: 1
|
|
1856
|
-
},
|
|
1857
|
-
requiredFields: {
|
|
1858
|
-
type: Array,
|
|
1859
|
-
default: []
|
|
1860
|
-
},
|
|
1861
|
-
isUpdate: {
|
|
1862
|
-
type: Boolean,
|
|
1863
|
-
default: !1
|
|
1864
|
-
},
|
|
1865
|
-
disabled: {
|
|
1866
|
-
type: Boolean,
|
|
1867
|
-
default: !1
|
|
1868
|
-
}
|
|
1869
|
-
},
|
|
1870
|
-
emits: ["formChange"],
|
|
1871
|
-
setup(n, { emit: e }) {
|
|
1872
|
-
const t = F(null), i = F(!1);
|
|
1873
|
-
Xe();
|
|
1874
|
-
const {
|
|
1875
|
-
formSchemas: m,
|
|
1876
|
-
defaultValueFields: d,
|
|
1877
|
-
changeDataIfArray2String: h,
|
|
1878
|
-
tableName: w,
|
|
1879
|
-
dbData: b,
|
|
1880
|
-
checkOnlyFieldValue: I,
|
|
1881
|
-
fieldDisplayStatus: R,
|
|
1882
|
-
createFormSchemas: y,
|
|
1883
|
-
baseColProps: S
|
|
1884
|
-
} = Mt(n, t), [_, { setProps: $, validate: V, resetFields: E, setFieldsValue: x, getFieldsValue: W }] = St({
|
|
1885
|
-
schemas: m,
|
|
1886
|
-
showActionButtonGroup: !1,
|
|
1887
|
-
baseColProps: S
|
|
1888
|
-
});
|
|
1889
|
-
he(
|
|
1890
|
-
() => n.table,
|
|
1891
|
-
() => {
|
|
1892
|
-
w.value = n.table;
|
|
1893
|
-
},
|
|
1894
|
-
{ immediate: !0 }
|
|
1895
|
-
), he(
|
|
1896
|
-
() => n.properties,
|
|
1897
|
-
(c) => {
|
|
1898
|
-
i.value = !1, T(), y(n.properties, n.requiredFields, I), i.value = !0;
|
|
1899
|
-
},
|
|
1900
|
-
{ deep: !0, immediate: !0 }
|
|
1901
|
-
), he(
|
|
1902
|
-
() => n.mainId,
|
|
1903
|
-
(c) => {
|
|
1904
|
-
setTimeout(() => {
|
|
1905
|
-
H();
|
|
1906
|
-
}, 100);
|
|
1907
|
-
},
|
|
1908
|
-
{ immediate: !0 }
|
|
1909
|
-
), he(
|
|
1910
|
-
() => n.disabled,
|
|
1911
|
-
(c) => {
|
|
1912
|
-
$({ disabled: c });
|
|
1913
|
-
}
|
|
1914
|
-
);
|
|
1915
|
-
function T() {
|
|
1916
|
-
return Y(this, null, function* () {
|
|
1917
|
-
let c = yield De(t);
|
|
1918
|
-
c.$formValueChange = (a, o) => {
|
|
1919
|
-
let u = { [a]: o };
|
|
1920
|
-
e("formChange", u);
|
|
1921
|
-
};
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
function A() {
|
|
1925
|
-
if (Pe(n.isUpdate) === !1) {
|
|
1926
|
-
let c = be(d[w.value]);
|
|
1927
|
-
Ze(c, (a) => {
|
|
1928
|
-
x(a);
|
|
1929
|
-
});
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
function H() {
|
|
1933
|
-
return Y(this, null, function* () {
|
|
1934
|
-
yield De(i), yield E(), A();
|
|
1935
|
-
const { table: c, mainId: a } = n;
|
|
1936
|
-
if (!c || !a)
|
|
1937
|
-
return;
|
|
1938
|
-
let o = yield q(c, a);
|
|
1939
|
-
b.value = o, yield x(o);
|
|
1940
|
-
});
|
|
1941
|
-
}
|
|
1942
|
-
function q(c, a) {
|
|
1943
|
-
let o = `${Wi}/${c}/${a}`;
|
|
1944
|
-
return new Promise((u, l) => {
|
|
1945
|
-
ge.get({ url: o }, { isTransformResponse: !1 }).then((s) => {
|
|
1946
|
-
s.success ? u(s.result) : l();
|
|
1947
|
-
});
|
|
1948
|
-
}).finally(() => {
|
|
1949
|
-
b.value = "";
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
function B() {
|
|
1953
|
-
return new Promise((c, a) => {
|
|
1954
|
-
V().then(() => {
|
|
1955
|
-
let o = W();
|
|
1956
|
-
o = h(o), c(o);
|
|
1957
|
-
}).catch((o) => {
|
|
1958
|
-
a(o);
|
|
1959
|
-
});
|
|
1960
|
-
});
|
|
1961
|
-
}
|
|
1962
|
-
function O() {
|
|
1963
|
-
let c = W();
|
|
1964
|
-
return c.id || (c.id = "sub-change-temp-id"), {
|
|
1965
|
-
row: c,
|
|
1966
|
-
target: D
|
|
1967
|
-
};
|
|
1968
|
-
}
|
|
1969
|
-
function v(c) {
|
|
1970
|
-
x(c);
|
|
1971
|
-
}
|
|
1972
|
-
function g() {
|
|
1973
|
-
let c = W(), a = be(d[w.value]);
|
|
1974
|
-
Ze(a, (o) => {
|
|
1975
|
-
x(o);
|
|
1976
|
-
}, c);
|
|
1977
|
-
}
|
|
1978
|
-
const D = {
|
|
1979
|
-
onlineFormRef: t,
|
|
1980
|
-
baseColProps: S,
|
|
1981
|
-
formSchemas: m,
|
|
1982
|
-
registerForm: _,
|
|
1983
|
-
setFieldsValue: x,
|
|
1984
|
-
getFieldsValue: W,
|
|
1985
|
-
getFormEvent: O,
|
|
1986
|
-
setValues: v,
|
|
1987
|
-
getAll: B,
|
|
1988
|
-
executeFillRule: g,
|
|
1989
|
-
sh: R
|
|
1990
|
-
};
|
|
1991
|
-
return D;
|
|
1992
|
-
}
|
|
1993
|
-
};
|
|
1994
|
-
function Ji(n, e, t, i, m, d) {
|
|
1995
|
-
const h = ee("BasicForm");
|
|
1996
|
-
return G(), Oe(h, {
|
|
1997
|
-
ref: "onlineFormRef",
|
|
1998
|
-
onRegister: n.registerForm
|
|
1999
|
-
}, null, 8, ["onRegister"]);
|
|
2000
|
-
}
|
|
2001
|
-
const $t = /* @__PURE__ */ Me(Ui, [["render", Ji]]), hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2002
|
-
__proto__: null,
|
|
2003
|
-
default: $t
|
|
2004
|
-
}, Symbol.toStringTag, { value: "Module" })), ze = {
|
|
2005
|
-
optPre: "/online/cgform/api/form/",
|
|
2006
|
-
urlButtonAction: "/online/cgform/api/doButton"
|
|
2007
|
-
}, Hi = {
|
|
2008
|
-
name: "OnlinePopForm",
|
|
2009
|
-
components: {
|
|
2010
|
-
BasicForm: wt,
|
|
2011
|
-
Loading: _t,
|
|
2012
|
-
OnlineSubForm: $t,
|
|
2013
|
-
PrinterOutlined: vn,
|
|
2014
|
-
DiffOutlined: yn,
|
|
2015
|
-
FormOutlined: wn
|
|
2016
|
-
},
|
|
2017
|
-
props: {
|
|
2018
|
-
id: {
|
|
2019
|
-
type: String,
|
|
2020
|
-
default: ""
|
|
2021
|
-
},
|
|
2022
|
-
formTemplate: {
|
|
2023
|
-
type: Number,
|
|
2024
|
-
default: 1
|
|
2025
|
-
},
|
|
2026
|
-
disabled: {
|
|
2027
|
-
type: Boolean,
|
|
2028
|
-
default: !1
|
|
2029
|
-
},
|
|
2030
|
-
isTree: {
|
|
2031
|
-
type: Boolean,
|
|
2032
|
-
default: !1
|
|
2033
|
-
},
|
|
2034
|
-
pidField: {
|
|
2035
|
-
type: String,
|
|
2036
|
-
default: ""
|
|
2037
|
-
},
|
|
2038
|
-
submitTip: {
|
|
2039
|
-
type: Boolean,
|
|
2040
|
-
default: !0
|
|
2041
|
-
},
|
|
2042
|
-
modalClass: {
|
|
2043
|
-
type: String,
|
|
2044
|
-
default: ""
|
|
2045
|
-
},
|
|
2046
|
-
//是否发送请求-即表单的保存/编辑请求,false则只将表单数据抛出去
|
|
2047
|
-
request: {
|
|
2048
|
-
type: Boolean,
|
|
2049
|
-
default: !0
|
|
2050
|
-
},
|
|
2051
|
-
// 是否是vxeTable上方按钮点击打开的表单数据
|
|
2052
|
-
isVxeTableData: {
|
|
2053
|
-
type: Boolean,
|
|
2054
|
-
default: !1
|
|
2055
|
-
}
|
|
2056
|
-
},
|
|
2057
|
-
emits: ["success", "rendered", "dataChange"],
|
|
2058
|
-
setup(n, { emit: e }) {
|
|
2059
|
-
const { createMessage: t } = Xe(), [i, { openModal: m }] = xe(), d = F(""), h = F(null), w = F(!0), b = F(!1), I = F(1), R = F(!1), y = F(!1), S = Se({
|
|
2060
|
-
reportPrintShow: 0,
|
|
2061
|
-
reportPrintUrl: "",
|
|
2062
|
-
joinQuery: 0,
|
|
2063
|
-
modelFullscreen: 0,
|
|
2064
|
-
modalMinWidth: ""
|
|
2065
|
-
}), { onlineFormContext: _, resetContext: $ } = Ai(), {
|
|
2066
|
-
formSchemas: V,
|
|
2067
|
-
defaultValueFields: E,
|
|
2068
|
-
changeDataIfArray2String: x,
|
|
2069
|
-
tableName: W,
|
|
2070
|
-
dbData: T,
|
|
2071
|
-
checkOnlyFieldValue: A,
|
|
2072
|
-
hasSubTable: H,
|
|
2073
|
-
subTabInfo: q,
|
|
2074
|
-
refMap: B,
|
|
2075
|
-
subDataSource: O,
|
|
2076
|
-
baseColProps: v,
|
|
2077
|
-
createFormSchemas: g,
|
|
2078
|
-
fieldDisplayStatus: D
|
|
2079
|
-
} = Mt(n, h);
|
|
2080
|
-
let { EnhanceJS: c, initCgEnhanceJs: a } = Bi(_, !1);
|
|
2081
|
-
const [o, { setProps: u, validate: l, resetFields: s, setFieldsValue: r, updateSchema: C, getFieldsValue: j, scrollToField: k }] = St({
|
|
2082
|
-
schemas: V,
|
|
2083
|
-
showActionButtonGroup: !1,
|
|
2084
|
-
baseColProps: v
|
|
2085
|
-
}), M = F(!1);
|
|
2086
|
-
function U() {
|
|
2087
|
-
let f = n.disabled;
|
|
2088
|
-
M.value = f, u({ disabled: f });
|
|
2089
|
-
}
|
|
2090
|
-
function Q(f, p, P) {
|
|
2091
|
-
return Y(this, null, function* () {
|
|
2092
|
-
yield s(), T.value = "";
|
|
2093
|
-
let L = Pe(f);
|
|
2094
|
-
y.value = L, L && (yield Z(p)), yield Ee(() => {
|
|
2095
|
-
!L && P && r(P), ce(), Be("js", "loaded"), U();
|
|
2096
|
-
});
|
|
2097
|
-
});
|
|
2098
|
-
}
|
|
2099
|
-
function ce() {
|
|
2100
|
-
if (Pe(y) === !1) {
|
|
2101
|
-
let f = be(E[W.value]);
|
|
2102
|
-
Ze(f, (p) => {
|
|
2103
|
-
r(p);
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
function Z(f) {
|
|
2108
|
-
return Y(this, null, function* () {
|
|
2109
|
-
let p = yield J(f.id);
|
|
2110
|
-
(!p || Object.keys(p).length == 0) && (p = me({}, be(f))), T.value = Object.assign({}, p);
|
|
2111
|
-
let P = te.value, L = Le(p, ...P);
|
|
2112
|
-
n.isVxeTableData === !0 && (L = Object.assign({}, L, f)), yield r(L);
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
let te = de(() => {
|
|
2116
|
-
let f = V.value, p = [];
|
|
2117
|
-
for (let P of f)
|
|
2118
|
-
p.push(P.field);
|
|
2119
|
-
return p;
|
|
2120
|
-
});
|
|
2121
|
-
function J(f) {
|
|
2122
|
-
let p = `${ze.optPre}${n.id}/${f}`;
|
|
2123
|
-
return new Promise((P, L) => {
|
|
2124
|
-
ge.get({ url: p }, { isTransformResponse: !1 }).then((X) => {
|
|
2125
|
-
X.success ? P(X.result) : (L(), t.warning(X.message));
|
|
2126
|
-
}).catch(() => {
|
|
2127
|
-
L();
|
|
2128
|
-
});
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
function z(f) {
|
|
2132
|
-
return Y(this, null, function* () {
|
|
2133
|
-
I.value = f.head.tableType, W.value = f.head.tableName, w.value = f.head.tableType == 1, ae(f.head.extConfigJson), g(f.schema.properties, f.schema.required, A), c = a(f.enhanceJs), e("rendered", S);
|
|
2134
|
-
let p = yield De(h);
|
|
2135
|
-
p.$formValueChange = (P, L, X) => {
|
|
2136
|
-
Yt(P, L), X && r(X);
|
|
2137
|
-
};
|
|
2138
|
-
});
|
|
2139
|
-
}
|
|
2140
|
-
function ae(f) {
|
|
2141
|
-
let p = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
|
|
2142
|
-
f && (p = JSON.parse(f)), Object.keys(p).map((P) => {
|
|
2143
|
-
S[P] = p[P];
|
|
2144
|
-
});
|
|
2145
|
-
}
|
|
2146
|
-
function ie() {
|
|
2147
|
-
w.value === !0 ? pe() : ne();
|
|
2148
|
-
}
|
|
2149
|
-
function ne() {
|
|
2150
|
-
N().then((f) => {
|
|
2151
|
-
Fe(f);
|
|
2152
|
-
});
|
|
2153
|
-
}
|
|
2154
|
-
function N() {
|
|
2155
|
-
let f = {};
|
|
2156
|
-
return new Promise((p, P) => {
|
|
2157
|
-
l().then(
|
|
2158
|
-
(L) => p(L),
|
|
2159
|
-
({ errorFields: L }) => {
|
|
2160
|
-
L && L.length > 0 && k(L[0][0]), P(Re);
|
|
2161
|
-
}
|
|
2162
|
-
);
|
|
2163
|
-
}).then((p) => (Object.assign(f, x(p)), ve())).then((p) => (Object.assign(f, p), Promise.resolve(f))).catch((p) => ((p === Re || (p == null ? void 0 : p.code) === Re) && (t.warning("校验未通过"), p.key && oe(p.key)), Promise.reject(null)));
|
|
2164
|
-
}
|
|
2165
|
-
function oe(f) {
|
|
2166
|
-
let p = q.value;
|
|
2167
|
-
for (let P = 0; P < p.length; P++)
|
|
2168
|
-
if (f == p[P].key) {
|
|
2169
|
-
Ve.value = P + "";
|
|
2170
|
-
break;
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
function ve() {
|
|
2174
|
-
return new Promise((f, p) => Y(this, null, function* () {
|
|
2175
|
-
let P = {};
|
|
2176
|
-
try {
|
|
2177
|
-
let L = q.value;
|
|
2178
|
-
for (let X = 0; X < L.length; X++) {
|
|
2179
|
-
let ye = L[X].key, Ce = B[ye].value;
|
|
2180
|
-
if (Ce instanceof Array && (Ce = Ce[0]), L[X].relationType == 1)
|
|
2181
|
-
try {
|
|
2182
|
-
let We = yield Ce.getAll();
|
|
2183
|
-
P[ye] = [], P[ye].push(We);
|
|
2184
|
-
} catch (We) {
|
|
2185
|
-
throw { code: Re, key: ye };
|
|
2186
|
-
}
|
|
2187
|
-
else {
|
|
2188
|
-
if (yield Ce.fullValidateTable())
|
|
2189
|
-
throw { code: Re, key: ye };
|
|
2190
|
-
P[ye] = Ce.getTableData();
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
} catch (L) {
|
|
2194
|
-
p(L);
|
|
2195
|
-
}
|
|
2196
|
-
f(P);
|
|
2197
|
-
}));
|
|
2198
|
-
}
|
|
2199
|
-
function pe() {
|
|
2200
|
-
return Y(this, null, function* () {
|
|
2201
|
-
try {
|
|
2202
|
-
let f = yield l();
|
|
2203
|
-
f = Object.assign({}, T.value, f), f = x(f), b.value = !0, Fe(f);
|
|
2204
|
-
} finally {
|
|
2205
|
-
b.value = !1;
|
|
2206
|
-
}
|
|
2207
|
-
});
|
|
2208
|
-
}
|
|
2209
|
-
function Fe(f) {
|
|
2210
|
-
Kt(rt, f).then(() => {
|
|
2211
|
-
ln(f);
|
|
2212
|
-
}).catch((p) => {
|
|
2213
|
-
t.warning(p);
|
|
2214
|
-
});
|
|
2215
|
-
}
|
|
2216
|
-
function Ie(f, p, P) {
|
|
2217
|
-
p && P ? P.setValues ? P.setValues(f) : P.setValues([
|
|
2218
|
-
{
|
|
2219
|
-
rowKey: p,
|
|
2220
|
-
values: f
|
|
2221
|
-
}
|
|
2222
|
-
]) : r(f);
|
|
2223
|
-
}
|
|
2224
|
-
function Vt(f, p) {
|
|
2225
|
-
let P = {};
|
|
2226
|
-
P[f] = p, r(P);
|
|
2227
|
-
}
|
|
2228
|
-
const Ve = F("0"), it = F(300), lt = F(340);
|
|
2229
|
-
function Bt(f) {
|
|
2230
|
-
if (y.value === !0) {
|
|
2231
|
-
let p = T.value;
|
|
2232
|
-
return Wt(p, f);
|
|
2233
|
-
}
|
|
2234
|
-
return "";
|
|
2235
|
-
}
|
|
2236
|
-
function Wt(f, p) {
|
|
2237
|
-
if (f) {
|
|
2238
|
-
let P = f[p];
|
|
2239
|
-
return !P && P !== 0 && (P = f[p.toLowerCase()], !P && P !== 0 && (P = f[p.toUpperCase()])), P;
|
|
2240
|
-
}
|
|
2241
|
-
return "";
|
|
2242
|
-
}
|
|
2243
|
-
function Ut(f, p) {
|
|
2244
|
-
if (c && c[p + "_onlChange"]) {
|
|
2245
|
-
let P = c[p + "_onlChange"](), L = Object.keys(f)[0];
|
|
2246
|
-
if (P[L]) {
|
|
2247
|
-
let X = B[p].value;
|
|
2248
|
-
X instanceof Array && (X = X[0]);
|
|
2249
|
-
let ye = X.getFormEvent(), Ce = me({
|
|
2250
|
-
column: { key: L },
|
|
2251
|
-
value: f[L]
|
|
2252
|
-
}, ye);
|
|
2253
|
-
P[L].call(_, _, Ce);
|
|
2254
|
-
}
|
|
2255
|
-
}
|
|
2256
|
-
}
|
|
2257
|
-
function Jt(f, p) {
|
|
2258
|
-
if (c && c[p + "_onlChange"]) {
|
|
2259
|
-
let P = c[p + "_onlChange"](_);
|
|
2260
|
-
P[f.column.key] && P[f.column.key].call(_, _, f);
|
|
2261
|
-
}
|
|
2262
|
-
}
|
|
2263
|
-
function Ht(f, p) {
|
|
2264
|
-
}
|
|
2265
|
-
function qt(f) {
|
|
2266
|
-
return "online_" + f + ":";
|
|
2267
|
-
}
|
|
2268
|
-
function Yt(f, p) {
|
|
2269
|
-
return Y(this, null, function* () {
|
|
2270
|
-
if (T.value[f] != p && e("dataChange", f), !c || !c.onlChange || !f)
|
|
2271
|
-
return !1;
|
|
2272
|
-
let L = c.onlChange();
|
|
2273
|
-
if (L[f]) {
|
|
2274
|
-
let ye = {
|
|
2275
|
-
row: yield j(),
|
|
2276
|
-
column: { key: f },
|
|
2277
|
-
value: p
|
|
2278
|
-
};
|
|
2279
|
-
L[f].call(_, _, ye);
|
|
2280
|
-
}
|
|
2281
|
-
});
|
|
2282
|
-
}
|
|
2283
|
-
function Be(f, p) {
|
|
2284
|
-
if (f == "js")
|
|
2285
|
-
c && c[p] && c[p].call(_, _);
|
|
2286
|
-
else if (f == "action") {
|
|
2287
|
-
let P = T.value, L = {
|
|
2288
|
-
formId: n.id,
|
|
2289
|
-
buttonCode: p,
|
|
2290
|
-
dataId: P.id,
|
|
2291
|
-
uiFormData: Object.assign({}, P)
|
|
2292
|
-
};
|
|
2293
|
-
ge.post(
|
|
2294
|
-
{
|
|
2295
|
-
url: `${ze.urlButtonAction}`,
|
|
2296
|
-
params: L
|
|
2297
|
-
},
|
|
2298
|
-
{ isTransformResponse: !1 }
|
|
2299
|
-
).then((X) => {
|
|
2300
|
-
X.success ? t.success("处理完成!") : t.warning("处理失败!");
|
|
2301
|
-
});
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
function st(f) {
|
|
2305
|
-
let p = B[f].value, P = [...p.getNewDataWithId(), ...O.value[f]];
|
|
2306
|
-
if (!P || P.length == 0)
|
|
2307
|
-
return !1;
|
|
2308
|
-
let L = [];
|
|
2309
|
-
for (let X of P)
|
|
2310
|
-
L.push(X.id);
|
|
2311
|
-
p.removeRowsById(L);
|
|
2312
|
-
}
|
|
2313
|
-
function ot(f, p) {
|
|
2314
|
-
if (!p)
|
|
2315
|
-
return !1;
|
|
2316
|
-
let P = B[f].value;
|
|
2317
|
-
typeof p == "object" ? P.addRows(p, !0) : t.error("添加子表数据,参数不识别!");
|
|
2318
|
-
}
|
|
2319
|
-
function zt(f, p) {
|
|
2320
|
-
st(f), ot(f, p);
|
|
2321
|
-
}
|
|
2322
|
-
function Qt(f, p) {
|
|
2323
|
-
!p && p.length <= 0 && (p = []), p.map((P) => {
|
|
2324
|
-
P.hasOwnProperty("label") || (P.label = P.text);
|
|
2325
|
-
}), C({
|
|
2326
|
-
field: f,
|
|
2327
|
-
componentProps: {
|
|
2328
|
-
options: p
|
|
2329
|
-
}
|
|
2330
|
-
});
|
|
2331
|
-
}
|
|
2332
|
-
function Kt(f, p) {
|
|
2333
|
-
return c && c.beforeSubmit ? c.beforeSubmit(f, p) : Promise.resolve();
|
|
2334
|
-
}
|
|
2335
|
-
function Zt(f, p) {
|
|
2336
|
-
let P = be(D);
|
|
2337
|
-
f && f.length > 0 ? Object.keys(P).map((L) => {
|
|
2338
|
-
!L.endsWith("_load") && f.indexOf(L) < 0 && (D[L] = !1);
|
|
2339
|
-
}) : p && p.length > 0 && Object.keys(P).map((L) => {
|
|
2340
|
-
p.indexOf(L) >= 0 && (D[L] = !1);
|
|
2341
|
-
});
|
|
2342
|
-
}
|
|
2343
|
-
function Gt(f) {
|
|
2344
|
-
return Y(this, null, function* () {
|
|
2345
|
-
yield s(), T.value = "", y.value = !0, yield Z(f), yield Ee(() => {
|
|
2346
|
-
Be("js", "loaded");
|
|
2347
|
-
});
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
function Xt(f) {
|
|
2351
|
-
let p = B[f].value;
|
|
2352
|
-
return p instanceof Array && (p = p[0]), p;
|
|
2353
|
-
}
|
|
2354
|
-
function en() {
|
|
2355
|
-
let f = S.reportPrintUrl, p = T.value.id, P = Nn();
|
|
2356
|
-
xn(f, p, P);
|
|
2357
|
-
}
|
|
2358
|
-
function tn(f) {
|
|
2359
|
-
d.value = f.id, m(!0);
|
|
2360
|
-
}
|
|
2361
|
-
function nn(f) {
|
|
2362
|
-
}
|
|
2363
|
-
function ln(f) {
|
|
2364
|
-
if (Object.keys(f).map((p) => {
|
|
2365
|
-
Array.isArray(f[p]) && f[p].length == 0 && (f[p] = "");
|
|
2366
|
-
}), n.request == !1)
|
|
2367
|
-
e("success", f);
|
|
2368
|
-
else {
|
|
2369
|
-
let p = `${ze.optPre}${n.id}?tabletype=${I.value}`;
|
|
2370
|
-
R.value === !0 && (f[Wn] = 1);
|
|
2371
|
-
let P = y.value === !0 ? "put" : "post";
|
|
2372
|
-
ge.request({ url: p, method: P, params: f }, { isTransformResponse: !1 }).then((L) => {
|
|
2373
|
-
L.success ? (L.result && (f.id || (f.id = L.result)), e("success", f), T.value = f, y.value = !0, t.success("操作成功!")) : t.warning(L.message);
|
|
2374
|
-
}).finally(() => {
|
|
2375
|
-
b.value = !1;
|
|
2376
|
-
});
|
|
2377
|
-
}
|
|
2378
|
-
}
|
|
2379
|
-
function sn() {
|
|
2380
|
-
return Y(this, null, function* () {
|
|
2381
|
-
let f = T.value, p = te.value, P = Le(f, ...p);
|
|
2382
|
-
if (f)
|
|
2383
|
-
yield r(P);
|
|
2384
|
-
else {
|
|
2385
|
-
let L = {};
|
|
2386
|
-
for (let X of p)
|
|
2387
|
-
L[X] = "";
|
|
2388
|
-
yield r(L);
|
|
2389
|
-
}
|
|
2390
|
-
});
|
|
2391
|
-
}
|
|
2392
|
-
let rt = {
|
|
2393
|
-
tableName: W,
|
|
2394
|
-
loading: b,
|
|
2395
|
-
subActiveKey: Ve,
|
|
2396
|
-
onlineFormRef: h,
|
|
2397
|
-
getFieldsValue: j,
|
|
2398
|
-
setFieldsValue: r,
|
|
2399
|
-
submitFlowFlag: R,
|
|
2400
|
-
subFormHeight: it,
|
|
2401
|
-
subTableHeight: lt,
|
|
2402
|
-
refMap: B,
|
|
2403
|
-
triggleChangeValues: Ie,
|
|
2404
|
-
triggleChangeValue: Vt,
|
|
2405
|
-
sh: D,
|
|
2406
|
-
clearSubRows: st,
|
|
2407
|
-
addSubRows: ot,
|
|
2408
|
-
clearThenAddRows: zt,
|
|
2409
|
-
changeOptions: Qt,
|
|
2410
|
-
isUpdate: y,
|
|
2411
|
-
getSubTableInstance: Xt
|
|
2412
|
-
};
|
|
2413
|
-
return $(rt), {
|
|
2414
|
-
//主表
|
|
2415
|
-
tableName: W,
|
|
2416
|
-
onlineFormRef: h,
|
|
2417
|
-
registerForm: o,
|
|
2418
|
-
loading: b,
|
|
2419
|
-
//子表
|
|
2420
|
-
subActiveKey: Ve,
|
|
2421
|
-
hasSubTable: H,
|
|
2422
|
-
subTabInfo: q,
|
|
2423
|
-
refMap: B,
|
|
2424
|
-
//一对一子表
|
|
2425
|
-
subFormHeight: it,
|
|
2426
|
-
getSubTableForeignKeyValue: Bt,
|
|
2427
|
-
isUpdate: y,
|
|
2428
|
-
handleSubFormChange: Ut,
|
|
2429
|
-
//一对多子表
|
|
2430
|
-
subTableHeight: lt,
|
|
2431
|
-
onlineFormDisabled: M,
|
|
2432
|
-
subDataSource: O,
|
|
2433
|
-
getSubTableAuthPre: qt,
|
|
2434
|
-
handleAdded: Ht,
|
|
2435
|
-
handleValueChange: Jt,
|
|
2436
|
-
openSubFormModalForAdd: tn,
|
|
2437
|
-
openSubFormModalForEdit: nn,
|
|
2438
|
-
registerVxeFormModal: i,
|
|
2439
|
-
vxeTableId: d,
|
|
2440
|
-
//父组件调用
|
|
2441
|
-
show: Q,
|
|
2442
|
-
createRootProperties: z,
|
|
2443
|
-
handleSubmit: ie,
|
|
2444
|
-
sh: D,
|
|
2445
|
-
handleCgButtonClick: Be,
|
|
2446
|
-
handleCustomFormSh: Zt,
|
|
2447
|
-
handleCustomFormEdit: Gt,
|
|
2448
|
-
//跳转
|
|
2449
|
-
dbData: T,
|
|
2450
|
-
onOpenReportPrint: en,
|
|
2451
|
-
onlineExtConfigJson: S,
|
|
2452
|
-
recoverFormData: sn
|
|
2453
|
-
};
|
|
2454
|
-
}
|
|
2455
|
-
}, qi = ["id"];
|
|
2456
|
-
function Yi(n, e, t, i, m, d) {
|
|
2457
|
-
const h = ee("BasicForm");
|
|
2458
|
-
return G(), ue("div", {
|
|
2459
|
-
id: i.tableName + "_form"
|
|
2460
|
-
}, [
|
|
2461
|
-
re(h, {
|
|
2462
|
-
ref: "onlineFormRef",
|
|
2463
|
-
onRegister: i.registerForm
|
|
2464
|
-
}, null, 8, ["onRegister"])
|
|
2465
|
-
], 8, qi);
|
|
2466
|
-
}
|
|
2467
|
-
const kt = /* @__PURE__ */ Me(Hi, [["render", Yi]]), gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2468
|
-
__proto__: null,
|
|
2469
|
-
default: kt
|
|
2470
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2471
|
-
function zi(n, { emit: e } = {}, t) {
|
|
2472
|
-
const i = F(null), m = F(!1), d = F(1), h = F([]), w = F(!1), b = F(0), I = F(!1), R = F(""), y = F(!1), S = F(!1), _ = F(!0), $ = Se({}), V = F(!0), E = F(""), x = F(!0), W = F(!1), { popModalFixedWidth: T, resetBodyStyle: A, popBodyStyle: H } = Et(), q = F(!1), B = F(""), O = {
|
|
2473
|
-
handleOpenModal: (N) => {
|
|
2474
|
-
}
|
|
2475
|
-
}, v = F(""), g = F(""), D = F(!1);
|
|
2476
|
-
let c = {};
|
|
2477
|
-
const a = de(() => {
|
|
2478
|
-
let N = E.value;
|
|
2479
|
-
return N || (Pe(m) === !0 ? "详情" : Pe(S) === !0 ? "编辑" : "新增");
|
|
2480
|
-
}), [o, { setModalProps: u, closeModal: l }] = vt((N) => Y(this, null, function* () {
|
|
2481
|
-
E.value = "", W.value = !1, n === !0 ? yield O.handleOpenModal(N) : yield C(N), A(), t && t();
|
|
2482
|
-
})), s = F(!1);
|
|
2483
|
-
function r() {
|
|
2484
|
-
return Y(this, null, function* () {
|
|
2485
|
-
return yield De(s), q.value;
|
|
2486
|
-
});
|
|
2487
|
-
}
|
|
2488
|
-
function C(N) {
|
|
2489
|
-
return Y(this, null, function* () {
|
|
2490
|
-
u({ confirmLoading: !1 }), S.value = N.isUpdate, m.value = N.disableSubmit || !1, (N == null ? void 0 : N.hideSub) === !0 && (V.value = !1), N != null && N.title && (E.value = N.title), N != null && N.record ? g.value = N.record.id : g.value = "", yield Ee(() => Y(this, null, function* () {
|
|
2491
|
-
yield De(w), k(), yield i.value.show(N == null ? void 0 : N.isUpdate, N == null ? void 0 : N.record, N == null ? void 0 : N.param);
|
|
2492
|
-
}));
|
|
2493
|
-
});
|
|
2494
|
-
}
|
|
2495
|
-
function j(N) {
|
|
2496
|
-
w.value = !0, b.value = N.modalMinWidth, N.modelFullscreen == 1 ? u({ defaultFullscreen: !0 }) : u({ defaultFullscreen: !1 }), c = N;
|
|
2497
|
-
}
|
|
2498
|
-
function k() {
|
|
2499
|
-
let N = g.value;
|
|
2500
|
-
c.commentStatus == 1 && N ? (D.value = !0, u({ defaultFullscreen: !0 })) : D.value = !1;
|
|
2501
|
-
}
|
|
2502
|
-
const M = 800, U = 1100, Q = de(() => {
|
|
2503
|
-
let N = 200 * (d.value - 1), oe = (Pe(_) ? M : U) + N;
|
|
2504
|
-
oe = ce(oe);
|
|
2505
|
-
let ve = b.value;
|
|
2506
|
-
return ve && oe < ve && (oe = ve), oe;
|
|
2507
|
-
});
|
|
2508
|
-
function ce(N) {
|
|
2509
|
-
let oe = $.modalMinWidth;
|
|
2510
|
-
if (oe != null && oe !== "")
|
|
2511
|
-
try {
|
|
2512
|
-
if (oe = Number.parseInt(oe), N < oe)
|
|
2513
|
-
return oe;
|
|
2514
|
-
} catch (ve) {
|
|
2515
|
-
}
|
|
2516
|
-
return N;
|
|
2517
|
-
}
|
|
2518
|
-
function Z(N, oe) {
|
|
2519
|
-
i.value.handleCgButtonClick(N, oe);
|
|
2520
|
-
}
|
|
2521
|
-
function te() {
|
|
2522
|
-
y.value = !0, setTimeout(() => {
|
|
2523
|
-
y.value = !1;
|
|
2524
|
-
}, 1500), i.value.handleSubmit();
|
|
2525
|
-
}
|
|
2526
|
-
function J() {
|
|
2527
|
-
l();
|
|
2528
|
-
}
|
|
2529
|
-
function z(N, oe = {}) {
|
|
2530
|
-
let ve = `/online/cgform/api/getFormItem/${N}`;
|
|
2531
|
-
return new Promise((pe, Fe) => {
|
|
2532
|
-
ge.get({ url: ve, params: oe }, { isTransformResponse: !1 }).then((Ie) => {
|
|
2533
|
-
Ie.success ? pe(Ie.result) : Fe(Ie.message);
|
|
2534
|
-
}).catch(() => {
|
|
2535
|
-
Fe();
|
|
2536
|
-
});
|
|
2537
|
-
});
|
|
2538
|
-
}
|
|
2539
|
-
function ae(N, oe, ve) {
|
|
2540
|
-
return Y(this, null, function* () {
|
|
2541
|
-
let pe = yield z(N, oe), Fe = pe.head.formTemplate;
|
|
2542
|
-
d.value = Fe ? Number(Fe) : 1, h.value = pe.cgButtonList, I.value = pe.head.isTree === "Y", R.value = pe.head.treeParentIdField || "", v.value = pe.head.tableName, B.value = pe.head.themeTemplate, pe.form_disable_update === !0 ? q.value = !0 : q.value = !1, s.value = !0, e && e("formConfig", pe), ve && ve(pe), yield Ee(() => Y(this, null, function* () {
|
|
2543
|
-
yield (yield De(i)).createRootProperties(pe);
|
|
2544
|
-
}));
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
|
-
function ie(N) {
|
|
2548
|
-
N[Un] = v.value, e("success", N), x.value == !0 && l(), W.value = !1, x.value = !0;
|
|
2549
|
-
}
|
|
2550
|
-
function ne() {
|
|
2551
|
-
i.value && i.value.onCloseModal();
|
|
2552
|
-
}
|
|
2553
|
-
return {
|
|
2554
|
-
// modal
|
|
2555
|
-
title: a,
|
|
2556
|
-
modalWidth: Q,
|
|
2557
|
-
registerModal: o,
|
|
2558
|
-
closeModal: l,
|
|
2559
|
-
modalObject: O,
|
|
2560
|
-
onCloseEvent: ne,
|
|
2561
|
-
// 自定义按钮
|
|
2562
|
-
cgButtonList: h,
|
|
2563
|
-
handleCgButtonClick: Z,
|
|
2564
|
-
// 提交/关闭按钮
|
|
2565
|
-
disableSubmit: m,
|
|
2566
|
-
handleSubmit: te,
|
|
2567
|
-
submitLoading: y,
|
|
2568
|
-
handleCancel: J,
|
|
2569
|
-
successThenClose: x,
|
|
2570
|
-
handleSuccess: ie,
|
|
2571
|
-
topTipVisible: W,
|
|
2572
|
-
//表单
|
|
2573
|
-
handleFormConfig: ae,
|
|
2574
|
-
onlineFormCompRef: i,
|
|
2575
|
-
formTemplate: d,
|
|
2576
|
-
isTreeForm: I,
|
|
2577
|
-
pidFieldName: R,
|
|
2578
|
-
renderSuccess: j,
|
|
2579
|
-
formRendered: w,
|
|
2580
|
-
isUpdate: S,
|
|
2581
|
-
showSub: V,
|
|
2582
|
-
themeTemplate: B,
|
|
2583
|
-
// 评论区域参数
|
|
2584
|
-
tableName: v,
|
|
2585
|
-
formDataId: g,
|
|
2586
|
-
enableComment: D,
|
|
2587
|
-
popBodyStyle: H,
|
|
2588
|
-
popModalFixedWidth: T,
|
|
2589
|
-
getFormStatus: r
|
|
2590
|
-
};
|
|
2591
|
-
}
|
|
2592
|
-
function Et() {
|
|
2593
|
-
const e = F(800);
|
|
2594
|
-
let t = window.innerWidth - 300;
|
|
2595
|
-
t < 800 && (t = 800), e.value = t;
|
|
2596
|
-
const i = F({});
|
|
2597
|
-
function m() {
|
|
2598
|
-
let d = window.innerHeight - 210;
|
|
2599
|
-
i.value = {
|
|
2600
|
-
height: d + "px",
|
|
2601
|
-
overflowY: "auto"
|
|
2602
|
-
};
|
|
2603
|
-
}
|
|
2604
|
-
return {
|
|
2605
|
-
popModalFixedWidth: e,
|
|
2606
|
-
popBodyStyle: i,
|
|
2607
|
-
resetBodyStyle: m
|
|
2608
|
-
};
|
|
2609
|
-
}
|
|
2610
|
-
const Qi = gt({
|
|
2611
|
-
name: "OnlinePopModal",
|
|
2612
|
-
props: {
|
|
2613
|
-
/**可以是表名 可以是ID*/
|
|
2614
|
-
id: {
|
|
2615
|
-
type: String,
|
|
2616
|
-
default: ""
|
|
2617
|
-
},
|
|
2618
|
-
/*展示字段名*/
|
|
2619
|
-
showFields: {
|
|
2620
|
-
type: Array,
|
|
2621
|
-
default: () => []
|
|
2622
|
-
},
|
|
2623
|
-
/*隐藏字段名*/
|
|
2624
|
-
hideFields: {
|
|
2625
|
-
type: Array,
|
|
2626
|
-
default: () => []
|
|
2627
|
-
},
|
|
2628
|
-
topTip: {
|
|
2629
|
-
type: Boolean,
|
|
2630
|
-
default: !1
|
|
2631
|
-
},
|
|
2632
|
-
request: {
|
|
2633
|
-
type: Boolean,
|
|
2634
|
-
default: !0
|
|
2635
|
-
},
|
|
2636
|
-
saveClose: {
|
|
2637
|
-
type: Boolean,
|
|
2638
|
-
default: !1
|
|
2639
|
-
},
|
|
2640
|
-
// 是否是vxeTable上方按钮点击打开的表单数据
|
|
2641
|
-
isVxeTableData: {
|
|
2642
|
-
type: Boolean,
|
|
2643
|
-
default: !1
|
|
2644
|
-
},
|
|
2645
|
-
formTableType: {
|
|
2646
|
-
type: String,
|
|
2647
|
-
default: ""
|
|
2648
|
-
}
|
|
2649
|
-
},
|
|
2650
|
-
components: {
|
|
2651
|
-
BasicModal: yt,
|
|
2652
|
-
OnlinePopForm: kt,
|
|
2653
|
-
JModalTip: Vn,
|
|
2654
|
-
Button: Je
|
|
2655
|
-
},
|
|
2656
|
-
emits: ["success", "register", "formConfig"],
|
|
2657
|
-
setup(n, { emit: e }) {
|
|
2658
|
-
const {
|
|
2659
|
-
title: t,
|
|
2660
|
-
registerModal: i,
|
|
2661
|
-
cgButtonList: m,
|
|
2662
|
-
handleCgButtonClick: d,
|
|
2663
|
-
disableSubmit: h,
|
|
2664
|
-
handleSubmit: w,
|
|
2665
|
-
submitLoading: b,
|
|
2666
|
-
handleCancel: I,
|
|
2667
|
-
handleFormConfig: R,
|
|
2668
|
-
onlineFormCompRef: y,
|
|
2669
|
-
formTemplate: S,
|
|
2670
|
-
isTreeForm: _,
|
|
2671
|
-
pidFieldName: $,
|
|
2672
|
-
renderSuccess: V,
|
|
2673
|
-
formRendered: E,
|
|
2674
|
-
handleSuccess: x,
|
|
2675
|
-
topTipVisible: W,
|
|
2676
|
-
successThenClose: T,
|
|
2677
|
-
isUpdate: A,
|
|
2678
|
-
popBodyStyle: H,
|
|
2679
|
-
popModalFixedWidth: q,
|
|
2680
|
-
getFormStatus: B
|
|
2681
|
-
} = zi(!1, { emit: e });
|
|
2682
|
-
he(() => n.id, O, { immediate: !0 });
|
|
2683
|
-
function O() {
|
|
2684
|
-
return Y(this, null, function* () {
|
|
2685
|
-
if (E.value = !1, !n.id)
|
|
2686
|
-
return;
|
|
2687
|
-
let u = {};
|
|
2688
|
-
n.formTableType && (u.tabletype = n.formTableType), yield R(n.id, u);
|
|
2689
|
-
});
|
|
2690
|
-
}
|
|
2691
|
-
function v() {
|
|
2692
|
-
n.saveClose === !1 && (T.value = !1), w();
|
|
2693
|
-
}
|
|
2694
|
-
function g() {
|
|
2695
|
-
W.value = !1, y.value.recoverFormData();
|
|
2696
|
-
}
|
|
2697
|
-
function D() {
|
|
2698
|
-
W.value = !0;
|
|
2699
|
-
}
|
|
2700
|
-
const c = de(() => A.value ? n.topTip : !1), a = de(() => {
|
|
2701
|
-
if (A.value == !0)
|
|
2702
|
-
return null;
|
|
2703
|
-
{
|
|
2704
|
-
let u = b.value;
|
|
2705
|
-
return [
|
|
2706
|
-
$e(Je, { type: "primary", loading: u, onClick: w }, () => "确定"),
|
|
2707
|
-
$e(Je, { onClick: I }, () => "关闭")
|
|
2708
|
-
];
|
|
2709
|
-
}
|
|
2710
|
-
});
|
|
2711
|
-
return {
|
|
2712
|
-
title: t,
|
|
2713
|
-
topTipVisible: W,
|
|
2714
|
-
handleSaveData: v,
|
|
2715
|
-
handleRecover: g,
|
|
2716
|
-
onlineFormCompRef: y,
|
|
2717
|
-
renderSuccess: V,
|
|
2718
|
-
registerModal: i,
|
|
2719
|
-
handleSubmit: w,
|
|
2720
|
-
handleSuccess: x,
|
|
2721
|
-
handleCancel: I,
|
|
2722
|
-
formTemplate: S,
|
|
2723
|
-
disableSubmit: h,
|
|
2724
|
-
cgButtonList: m,
|
|
2725
|
-
handleCgButtonClick: d,
|
|
2726
|
-
isTreeForm: _,
|
|
2727
|
-
pidFieldName: $,
|
|
2728
|
-
submitLoading: b,
|
|
2729
|
-
handleDataChange: D,
|
|
2730
|
-
isUpdate: A,
|
|
2731
|
-
showTopTip: c,
|
|
2732
|
-
modalFooter: a,
|
|
2733
|
-
popBodyStyle: H,
|
|
2734
|
-
popModalFixedWidth: q,
|
|
2735
|
-
getFormStatus: B
|
|
2736
|
-
};
|
|
2737
|
-
}
|
|
2738
|
-
});
|
|
2739
|
-
function Ki(n, e, t, i, m, d) {
|
|
2740
|
-
const h = ee("j-modal-tip"), w = ee("online-pop-form"), b = ee("BasicModal");
|
|
2741
|
-
return G(), Oe(b, bt({
|
|
2742
|
-
width: n.popModalFixedWidth,
|
|
2743
|
-
dialogStyle: { top: "70px" },
|
|
2744
|
-
bodyStyle: n.popBodyStyle
|
|
2745
|
-
}, n.$attrs, {
|
|
2746
|
-
footer: n.modalFooter,
|
|
2747
|
-
cancelText: "关闭",
|
|
2748
|
-
onRegister: n.registerModal,
|
|
2749
|
-
wrapClassName: "jeecg-online-pop-modal",
|
|
2750
|
-
onOk: n.handleSubmit
|
|
2751
|
-
}), {
|
|
2752
|
-
title: le(() => [
|
|
2753
|
-
_e(Te(n.title) + " ", 1),
|
|
2754
|
-
n.showTopTip ? (G(), Oe(h, {
|
|
2755
|
-
key: 0,
|
|
2756
|
-
visible: n.topTipVisible,
|
|
2757
|
-
onSave: n.handleSaveData,
|
|
2758
|
-
onCancel: n.handleRecover
|
|
2759
|
-
}, null, 8, ["visible", "onSave", "onCancel"])) : we("", !0)
|
|
2760
|
-
]),
|
|
2761
|
-
default: le(() => [
|
|
2762
|
-
re(w, {
|
|
2763
|
-
ref: "onlineFormCompRef",
|
|
2764
|
-
id: n.id,
|
|
2765
|
-
disabled: n.disableSubmit,
|
|
2766
|
-
"form-template": n.formTemplate,
|
|
2767
|
-
isTree: n.isTreeForm,
|
|
2768
|
-
pidField: n.pidFieldName,
|
|
2769
|
-
request: n.request,
|
|
2770
|
-
isVxeTableData: n.isVxeTableData,
|
|
2771
|
-
onRendered: n.renderSuccess,
|
|
2772
|
-
onSuccess: n.handleSuccess,
|
|
2773
|
-
onDataChange: n.handleDataChange,
|
|
2774
|
-
"modal-class": "jeecg-online-pop-modal"
|
|
2775
|
-
}, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "request", "isVxeTableData", "onRendered", "onSuccess", "onDataChange"])
|
|
2776
|
-
]),
|
|
2777
|
-
_: 1
|
|
2778
|
-
}, 16, ["width", "bodyStyle", "footer", "onRegister", "onOk"]);
|
|
2779
|
-
}
|
|
2780
|
-
const Ne = /* @__PURE__ */ Me(Qi, [["render", Ki]]), bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2781
|
-
__proto__: null,
|
|
2782
|
-
default: Ne
|
|
2783
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2784
|
-
function pt(n, e) {
|
|
2785
|
-
const t = "/online/cgform/api/getData/" + n;
|
|
2786
|
-
return ge.get({ url: t, params: e });
|
|
2787
|
-
}
|
|
2788
|
-
function Zi(n, e) {
|
|
2789
|
-
const t = "/online/cgform/api/getColumns/" + n;
|
|
2790
|
-
return ge.get({ url: t, params: e });
|
|
2791
|
-
}
|
|
2792
|
-
function At(n) {
|
|
2793
|
-
const e = F("1"), t = F({}), i = F({}), m = F(""), d = Se({
|
|
2794
|
-
add: !0,
|
|
2795
|
-
update: !0
|
|
2796
|
-
}), h = de(() => n.textField ? n.textField.split(",") : []), w = F([]), b = de(() => {
|
|
2797
|
-
let O = w.value;
|
|
2798
|
-
return n.multi == !0 ? O.slice(0, 3) : O.slice(0, 6);
|
|
2799
|
-
});
|
|
2800
|
-
fn(() => Y(this, null, function* () {
|
|
2801
|
-
if (n.tableName) {
|
|
2802
|
-
let v = n.valueField || "", g = n.textField || "", D = [];
|
|
2803
|
-
if (v && D.push(v), g) {
|
|
2804
|
-
let a = g.split(",");
|
|
2805
|
-
m.value = a[0];
|
|
2806
|
-
for (let o of a)
|
|
2807
|
-
D.push(o);
|
|
2808
|
-
}
|
|
2809
|
-
let c = n.imageField || "";
|
|
2810
|
-
c && D.push(c), t.value = {
|
|
2811
|
-
linkTableSelectFields: D.join(",")
|
|
2812
|
-
}, yield _(), yield $();
|
|
2813
|
-
}
|
|
2814
|
-
}));
|
|
2815
|
-
const I = de(() => {
|
|
2816
|
-
let O = n.textField || "", v = [], g = "";
|
|
2817
|
-
if (O) {
|
|
2818
|
-
let D = O.split(",");
|
|
2819
|
-
g = D[0];
|
|
2820
|
-
for (let c = 0; c < D.length; c++)
|
|
2821
|
-
c > 0 && v.push(D[c]);
|
|
2822
|
-
}
|
|
2823
|
-
return {
|
|
2824
|
-
others: v,
|
|
2825
|
-
labelField: g
|
|
2826
|
-
};
|
|
2827
|
-
}), R = F([]), y = F([]), S = F({});
|
|
2828
|
-
function _() {
|
|
2829
|
-
return Y(this, null, function* () {
|
|
2830
|
-
let O = t.value;
|
|
2831
|
-
const v = yield Zi(n.tableName, O);
|
|
2832
|
-
if (y.value = v.columns, v.columns) {
|
|
2833
|
-
let g = n.imageField, D = v.columns.filter((c) => c.dataIndex != m.value && c.dataIndex != g);
|
|
2834
|
-
w.value = D;
|
|
2835
|
-
}
|
|
2836
|
-
if (S.value = v.dictOptions, v.hideColumns) {
|
|
2837
|
-
let g = v.hideColumns;
|
|
2838
|
-
g.indexOf("add") >= 0 ? d.add = !1 : d.add = !0, g.indexOf("update") >= 0 ? d.update = !1 : d.update = !0;
|
|
2839
|
-
}
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
function $() {
|
|
2843
|
-
return Y(this, null, function* () {
|
|
2844
|
-
let O = E(), g = (yield pt(n.tableName, O)).records, D = [], { others: c, labelField: a } = I.value, o = n.imageField;
|
|
2845
|
-
if (g && g.length > 0)
|
|
2846
|
-
for (let u of g) {
|
|
2847
|
-
let l = me({}, u);
|
|
2848
|
-
V(l);
|
|
2849
|
-
let s = Object.assign({}, Le(l, c), { id: l.id, label: l[a], value: l[n.valueField] });
|
|
2850
|
-
o && (s[o] = l[o]), D.push(s);
|
|
2851
|
-
}
|
|
2852
|
-
D.push({}), R.value = D;
|
|
2853
|
-
});
|
|
2854
|
-
}
|
|
2855
|
-
function V(O) {
|
|
2856
|
-
let v = y.value, g = S.value;
|
|
2857
|
-
for (let D of v) {
|
|
2858
|
-
const { dataIndex: c, customRender: a } = D;
|
|
2859
|
-
(O[c] || O[c] === 0) && a && a == c && g[a] && (O[c] = Ct(g[a], O[c]));
|
|
2860
|
-
}
|
|
2861
|
-
}
|
|
2862
|
-
function E() {
|
|
2863
|
-
return Object.assign({ pageSize: 10, pageNo: e.value }, t.value, i.value);
|
|
2864
|
-
}
|
|
2865
|
-
function x(O) {
|
|
2866
|
-
if (!O)
|
|
2867
|
-
i.value = {};
|
|
2868
|
-
else {
|
|
2869
|
-
let v = h.value, g = [], D = [];
|
|
2870
|
-
for (let c = 0; c < v.length; c++)
|
|
2871
|
-
c <= 1 && (D.push(v[c]), g.push({ field: v[c], rule: "like", val: O }));
|
|
2872
|
-
g.superQueryMatchType = "or", g.superQueryParams = encodeURI(JSON.stringify(g)), i.value = g;
|
|
2873
|
-
}
|
|
2874
|
-
}
|
|
2875
|
-
function W(O) {
|
|
2876
|
-
return Y(this, null, function* () {
|
|
2877
|
-
if (!O)
|
|
2878
|
-
return [];
|
|
2879
|
-
let v = n.valueField, g = Ue(me({}, t.value), {
|
|
2880
|
-
pageSize: 10,
|
|
2881
|
-
pageNo: e.value
|
|
2882
|
-
});
|
|
2883
|
-
g.superQueryMatchType = "and";
|
|
2884
|
-
let D = [{ field: v, rule: "in", val: O }];
|
|
2885
|
-
g.superQueryParams = encodeURI(JSON.stringify(D));
|
|
2886
|
-
let a = (yield pt(n.tableName, g)).records, o = [];
|
|
2887
|
-
if (a && a.length > 0)
|
|
2888
|
-
for (let u of a) {
|
|
2889
|
-
let l = me({}, u);
|
|
2890
|
-
V(l), o.push(l);
|
|
2891
|
-
}
|
|
2892
|
-
return o;
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
function T(O, v) {
|
|
2896
|
-
if (!O || O.length == 0)
|
|
2897
|
-
return !1;
|
|
2898
|
-
let g = v.split(",");
|
|
2899
|
-
if (g.length != O.length)
|
|
2900
|
-
return !1;
|
|
2901
|
-
let D = !0;
|
|
2902
|
-
for (let c of O) {
|
|
2903
|
-
let a = c[n.valueField];
|
|
2904
|
-
g.indexOf(a) < 0 && (D = !1);
|
|
2905
|
-
}
|
|
2906
|
-
return D;
|
|
2907
|
-
}
|
|
2908
|
-
function A(O) {
|
|
2909
|
-
Object.keys(O).map((v) => {
|
|
2910
|
-
O[v] instanceof Array && (O[v] = O[v].join(","));
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
function H(O, v, g) {
|
|
2914
|
-
if (g || (g = {}), v && v.length > 0)
|
|
2915
|
-
for (let D of v) {
|
|
2916
|
-
let c = D.split(","), a = c[0], o = c[1];
|
|
2917
|
-
if (O[a])
|
|
2918
|
-
O[a].push(g[o]);
|
|
2919
|
-
else {
|
|
2920
|
-
let u = g[o] || "";
|
|
2921
|
-
O[a] = [u];
|
|
2922
|
-
}
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
function q(O) {
|
|
2926
|
-
if (n.imageField) {
|
|
2927
|
-
let v = O[n.imageField];
|
|
2928
|
-
return Ae(v);
|
|
2929
|
-
}
|
|
2930
|
-
return "";
|
|
2931
|
-
}
|
|
2932
|
-
const B = de(() => !!n.imageField);
|
|
2933
|
-
return {
|
|
2934
|
-
pageNo: e,
|
|
2935
|
-
otherColumns: w,
|
|
2936
|
-
realShowColumns: b,
|
|
2937
|
-
selectOptions: R,
|
|
2938
|
-
reloadTableLinkOptions: $,
|
|
2939
|
-
textFieldArray: h,
|
|
2940
|
-
addQueryParams: x,
|
|
2941
|
-
tableColumns: y,
|
|
2942
|
-
transData: V,
|
|
2943
|
-
mainContentField: m,
|
|
2944
|
-
loadOne: W,
|
|
2945
|
-
compareData: T,
|
|
2946
|
-
formatData: A,
|
|
2947
|
-
initFormData: H,
|
|
2948
|
-
getImageSrc: q,
|
|
2949
|
-
showImage: B,
|
|
2950
|
-
auths: d
|
|
2951
|
-
};
|
|
2952
|
-
}
|
|
2953
|
-
const Gi = {
|
|
2954
|
-
name: "LinkTableSelect",
|
|
2955
|
-
components: {
|
|
2956
|
-
PlusOutlined: Ge,
|
|
2957
|
-
EditOutlined: Sn,
|
|
2958
|
-
OnlinePopModal: Ne
|
|
2959
|
-
},
|
|
2960
|
-
props: {
|
|
2961
|
-
valueField: se.string.def(""),
|
|
2962
|
-
textField: se.string.def(""),
|
|
2963
|
-
tableName: se.string.def(""),
|
|
2964
|
-
multi: se.bool.def(!1),
|
|
2965
|
-
value: se.oneOfType([se.string, se.number, se.array]),
|
|
2966
|
-
linkFields: se.array.def([]),
|
|
2967
|
-
imageField: se.string.def("")
|
|
2968
|
-
},
|
|
2969
|
-
emits: ["change", "update:value"],
|
|
2970
|
-
setup(n, { emit: e }) {
|
|
2971
|
-
const t = mn("tableId", F(null)), i = F(), m = F([]), { auths: d, mainContentField: h, textFieldArray: w, selectOptions: b, reloadTableLinkOptions: I, addQueryParams: R, formatData: y, initFormData: S, getImageSrc: _, showImage: $ } = At(n), [V, { openModal: E }] = xe(), x = de(() => n.tableName), W = de(() => n.multi === !0 ? {
|
|
2972
|
-
mode: "multiple"
|
|
2973
|
-
} : {});
|
|
2974
|
-
function T(c) {
|
|
2975
|
-
c == null || c.stopPropagation(), c == null || c.preventDefault(), E(!0, {});
|
|
2976
|
-
}
|
|
2977
|
-
function A(c, a) {
|
|
2978
|
-
c == null || c.stopPropagation(), c == null || c.preventDefault(), d.update != !1 && E(!0, {
|
|
2979
|
-
isUpdate: !0,
|
|
2980
|
-
record: a
|
|
2981
|
-
});
|
|
2982
|
-
}
|
|
2983
|
-
const H = "custom:online:reload";
|
|
2984
|
-
pn(() => {
|
|
2985
|
-
i.value && i.value.addEventListener(H, q);
|
|
2986
|
-
}), hn(() => {
|
|
2987
|
-
i.value && i.value.removeEventListener(H, q);
|
|
2988
|
-
});
|
|
2989
|
-
function q() {
|
|
2990
|
-
I();
|
|
2991
|
-
}
|
|
2992
|
-
function B(c) {
|
|
2993
|
-
return Y(this, null, function* () {
|
|
2994
|
-
try {
|
|
2995
|
-
const o = document.querySelectorAll(`.online-list-${t.value} .jeecg-basic-table-form-container.online-query-form .link-table-select-box`);
|
|
2996
|
-
o && o.length > 0 && o.forEach((u) => u.dispatchEvent(new Event(H)));
|
|
2997
|
-
} catch (o) {
|
|
2998
|
-
}
|
|
2999
|
-
yield I();
|
|
3000
|
-
let a = c[n.valueField];
|
|
3001
|
-
n.multi === !0 ? m.value = [a] : m.value = a, v(m.value);
|
|
3002
|
-
});
|
|
3003
|
-
}
|
|
3004
|
-
function O(c) {
|
|
3005
|
-
R(c), I();
|
|
3006
|
-
}
|
|
3007
|
-
function v(c) {
|
|
3008
|
-
g(c), c || (R(), I());
|
|
3009
|
-
}
|
|
3010
|
-
function g(c) {
|
|
3011
|
-
let a = {}, o = n.linkFields, u = [];
|
|
3012
|
-
if (!c)
|
|
3013
|
-
S(a, o);
|
|
3014
|
-
else {
|
|
3015
|
-
let l = be(b.value), s = be(c);
|
|
3016
|
-
s instanceof Array ? u = [...s] : n.multi == !0 ? u = s.split(",") : u = [s];
|
|
3017
|
-
let r = l.filter((C) => u.indexOf(C[n.valueField]) >= 0);
|
|
3018
|
-
if (r && r.length > 0) {
|
|
3019
|
-
let C = me({}, r[0]);
|
|
3020
|
-
if (r.length > 1)
|
|
3021
|
-
for (let k = 1; k < r.length; k++)
|
|
3022
|
-
C = D(C, r[k]);
|
|
3023
|
-
let j = h.value;
|
|
3024
|
-
C[j] = C.label, S(a, o, C);
|
|
3025
|
-
}
|
|
3026
|
-
}
|
|
3027
|
-
y(a), e("change", u.join(",") || "", a), e("update:value", u.join(",") || "");
|
|
3028
|
-
}
|
|
3029
|
-
function D(c, a) {
|
|
3030
|
-
let o = {};
|
|
3031
|
-
return Object.keys(c).map((u) => {
|
|
3032
|
-
o[u] = (c[u] || "") + "," + (a[u] || "");
|
|
3033
|
-
}), o;
|
|
3034
|
-
}
|
|
3035
|
-
return he(() => n.value, (c) => Y(this, null, function* () {
|
|
3036
|
-
c ? (n.multi == !0 ? m.value = c.split(",") : m.value = c, n.linkFields && n.linkFields.length > 0 && g(c)) : m.value = [];
|
|
3037
|
-
}), { immediate: !0 }), he(() => b.value, (c) => {
|
|
3038
|
-
c && c.length > 0 && n.linkFields && n.linkFields.length > 0 && m.value && m.value.length > 0 && g(m.value);
|
|
3039
|
-
}), {
|
|
3040
|
-
boxRef: i,
|
|
3041
|
-
selectValue: m,
|
|
3042
|
-
selectOptions: b,
|
|
3043
|
-
registerPopModal: V,
|
|
3044
|
-
popTableName: x,
|
|
3045
|
-
textFieldArray: w,
|
|
3046
|
-
handleClickAdd: T,
|
|
3047
|
-
handleClickEdit: A,
|
|
3048
|
-
getFormData: B,
|
|
3049
|
-
handleSearch: Bn(O, 800),
|
|
3050
|
-
handleChange: v,
|
|
3051
|
-
bindValue: W,
|
|
3052
|
-
showImage: $,
|
|
3053
|
-
getImageSrc: _,
|
|
3054
|
-
auths: d
|
|
3055
|
-
};
|
|
3056
|
-
}
|
|
3057
|
-
};
|
|
3058
|
-
const Xi = {
|
|
3059
|
-
class: "link-table-select-box",
|
|
3060
|
-
ref: "boxRef"
|
|
3061
|
-
}, el = {
|
|
3062
|
-
key: 1,
|
|
3063
|
-
class: "online-select-item"
|
|
3064
|
-
}, tl = {
|
|
3065
|
-
key: 0,
|
|
3066
|
-
class: "left-avatar"
|
|
3067
|
-
}, nl = ["src"], il = { class: "right-content" }, ll = { class: "label" }, sl = { class: "others" }, ol = { class: "other-item ellipsis" };
|
|
3068
|
-
function rl(n, e, t, i, m, d) {
|
|
3069
|
-
const h = ee("PlusOutlined"), w = ee("EditOutlined"), b = ee("a-select"), I = ee("online-pop-modal");
|
|
3070
|
-
return G(), ue("div", Xi, [
|
|
3071
|
-
re(b, bt({
|
|
3072
|
-
value: i.selectValue,
|
|
3073
|
-
"onUpdate:value": e[1] || (e[1] = (R) => i.selectValue = R),
|
|
3074
|
-
style: { width: "100%" },
|
|
3075
|
-
placeholder: "请选择",
|
|
3076
|
-
"option-label-prop": "label",
|
|
3077
|
-
popupClassName: "table-link-select",
|
|
3078
|
-
allowClear: "",
|
|
3079
|
-
"show-search": ""
|
|
3080
|
-
}, i.bindValue, {
|
|
3081
|
-
options: i.selectOptions,
|
|
3082
|
-
"filter-option": !1,
|
|
3083
|
-
"not-found-content": null,
|
|
3084
|
-
onSearch: i.handleSearch,
|
|
3085
|
-
onChange: i.handleChange
|
|
3086
|
-
}), {
|
|
3087
|
-
option: le((R) => [
|
|
3088
|
-
!R.value && i.auths.add ? (G(), ue("div", {
|
|
3089
|
-
key: 0,
|
|
3090
|
-
class: "opt-add",
|
|
3091
|
-
onClick: e[0] || (e[0] = (...y) => i.handleClickAdd && i.handleClickAdd(...y))
|
|
3092
|
-
}, [
|
|
3093
|
-
re(h),
|
|
3094
|
-
_e(" 记录 ")
|
|
3095
|
-
])) : (G(), ue("div", el, [
|
|
3096
|
-
i.showImage ? (G(), ue("div", tl, [
|
|
3097
|
-
i.getImageSrc(R) ? (G(), ue("img", {
|
|
3098
|
-
key: 0,
|
|
3099
|
-
src: i.getImageSrc(R),
|
|
3100
|
-
alt: ""
|
|
3101
|
-
}, null, 8, nl)) : we("", !0)
|
|
3102
|
-
])) : we("", !0),
|
|
3103
|
-
fe("div", il, [
|
|
3104
|
-
fe("div", ll, [
|
|
3105
|
-
i.auths.update ? (G(), Oe(w, {
|
|
3106
|
-
key: 0,
|
|
3107
|
-
onClick: (y) => i.handleClickEdit(y, R)
|
|
3108
|
-
}, null, 8, ["onClick"])) : we("", !0),
|
|
3109
|
-
_e(" " + Te(R.label), 1)
|
|
3110
|
-
]),
|
|
3111
|
-
fe("div", sl, [
|
|
3112
|
-
(G(!0), ue(je, null, Qe(i.textFieldArray, (y) => (G(), ue("div", ol, Te(R[y]), 1))), 256))
|
|
3113
|
-
])
|
|
3114
|
-
])
|
|
3115
|
-
]))
|
|
3116
|
-
]),
|
|
3117
|
-
_: 1
|
|
3118
|
-
}, 16, ["value", "options", "onSearch", "onChange"]),
|
|
3119
|
-
re(I, {
|
|
3120
|
-
id: i.popTableName,
|
|
3121
|
-
onRegister: i.registerPopModal,
|
|
3122
|
-
onSuccess: i.getFormData,
|
|
3123
|
-
topTip: ""
|
|
3124
|
-
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
3125
|
-
], 512);
|
|
3126
|
-
}
|
|
3127
|
-
const jt = /* @__PURE__ */ Me(Gi, [["render", rl], ["__scopeId", "data-v-4d29cbcc"]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3128
|
-
__proto__: null,
|
|
3129
|
-
default: jt
|
|
3130
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3131
|
-
function al(n, e) {
|
|
3132
|
-
let t = kn();
|
|
3133
|
-
const i = F([]), m = F({}), d = F([]), h = F(null);
|
|
3134
|
-
let w = F(!0), b = de(() => {
|
|
3135
|
-
if (w.value != !0)
|
|
3136
|
-
return { x: !1 };
|
|
3137
|
-
});
|
|
3138
|
-
const [I, { openModal: R }] = xe(), y = F(""), [S, { openModal: _ }] = xe(), $ = F("");
|
|
3139
|
-
function V(l, s = "checkbox") {
|
|
3140
|
-
m.value = l.dictOptions, l.checkboxFlag == "Y" ? h.value = {
|
|
3141
|
-
selectedRowKeys: d,
|
|
3142
|
-
onChange: E,
|
|
3143
|
-
type: s
|
|
3144
|
-
} : h.value = null, w.value = l.scrollFlag == 1;
|
|
3145
|
-
let r = l.columns;
|
|
3146
|
-
r.forEach((M) => {
|
|
3147
|
-
M.fieldExtendJson && JSON.parse(M.fieldExtendJson).isFixed && (M.fixed = "left"), Object.keys(M).map((U) => {
|
|
3148
|
-
M[U] == null && delete M[U];
|
|
3149
|
-
});
|
|
3150
|
-
});
|
|
3151
|
-
let C = l.fieldHrefSlots;
|
|
3152
|
-
const j = {};
|
|
3153
|
-
C.forEach((M) => j[M.slotName] = M);
|
|
3154
|
-
let k = [];
|
|
3155
|
-
if (k = x(r, j), O(k), n.isTree() === !0) {
|
|
3156
|
-
let M = l.textField, U = -1;
|
|
3157
|
-
for (let Q = 0; Q < k.length; Q++)
|
|
3158
|
-
if (k[Q].dataIndex == M) {
|
|
3159
|
-
U = Q;
|
|
3160
|
-
break;
|
|
3161
|
-
}
|
|
3162
|
-
if (U > 0) {
|
|
3163
|
-
let Q = k.splice(U, 1);
|
|
3164
|
-
k.unshift(Q[0]);
|
|
3165
|
-
}
|
|
3166
|
-
k.length > 0 && (k[0].align = "left");
|
|
3167
|
-
}
|
|
3168
|
-
i.value = k, n.reloadTable();
|
|
3169
|
-
}
|
|
3170
|
-
function E(l, s) {
|
|
3171
|
-
d.value = l, n.selectedRows = be(s), n.selectedRowKeys = be(l);
|
|
3172
|
-
}
|
|
3173
|
-
function x(l, s) {
|
|
3174
|
-
for (let r of l) {
|
|
3175
|
-
let { customRender: C, hrefSlotName: j, fieldType: k } = r;
|
|
3176
|
-
if (k == "date" || k == "Date")
|
|
3177
|
-
r.customRender = ({ text: M }) => M ? M.length > 10 ? M.substring(0, 10) : M : "";
|
|
3178
|
-
else if (k == "link_table")
|
|
3179
|
-
r.customRender = ({ text: M, record: U }) => {
|
|
3180
|
-
if (!M)
|
|
3181
|
-
return "";
|
|
3182
|
-
if (n.isPopList === !0)
|
|
3183
|
-
return U[r.dataIndex + "_dictText"];
|
|
3184
|
-
{
|
|
3185
|
-
let Q = (M + "").split(","), ce = [];
|
|
3186
|
-
U[r.dataIndex + "_dictText"] && (ce = U[r.dataIndex + "_dictText"].split(","));
|
|
3187
|
-
let Z = [];
|
|
3188
|
-
for (let te = 0; te < Q.length; te++) {
|
|
3189
|
-
let J = $e(
|
|
3190
|
-
jn,
|
|
3191
|
-
{
|
|
3192
|
-
id: Q[te],
|
|
3193
|
-
text: ce[te],
|
|
3194
|
-
onTab: (z) => u(z, j)
|
|
3195
|
-
}
|
|
3196
|
-
);
|
|
3197
|
-
Z.push(J);
|
|
3198
|
-
}
|
|
3199
|
-
return Z.length == 0 ? "" : $e("div", { style: { overflow: "hidden" } }, Z);
|
|
3200
|
-
}
|
|
3201
|
-
};
|
|
3202
|
-
else {
|
|
3203
|
-
if (!j && r.scopedSlots && r.scopedSlots.customRender && s.hasOwnProperty(r.scopedSlots.customRender) && (j = r.scopedSlots.customRender), C || j) {
|
|
3204
|
-
let M = C, U = "_replace_text_";
|
|
3205
|
-
r.ellipsis = !0, r.customRender = ({ text: Q, record: ce }) => {
|
|
3206
|
-
let Z = Q;
|
|
3207
|
-
if (M)
|
|
3208
|
-
if (M.startsWith(U)) {
|
|
3209
|
-
let te = M.replace(U, "");
|
|
3210
|
-
Z = ce[te];
|
|
3211
|
-
} else
|
|
3212
|
-
Z = Ct(Pe(m)[M], Q + "");
|
|
3213
|
-
if (r.showLength && Z && Z.length > r.showLength && (Z = Z.substr(0, r.showLength) + "..."), j) {
|
|
3214
|
-
let te = s[j];
|
|
3215
|
-
if (te)
|
|
3216
|
-
return $e(
|
|
3217
|
-
"a",
|
|
3218
|
-
{
|
|
3219
|
-
onClick: () => W(te, ce)
|
|
3220
|
-
},
|
|
3221
|
-
Z
|
|
3222
|
-
);
|
|
3223
|
-
}
|
|
3224
|
-
return Z;
|
|
3225
|
-
};
|
|
3226
|
-
}
|
|
3227
|
-
if (r.scopedSlots) {
|
|
3228
|
-
r.ellipsis = !0;
|
|
3229
|
-
let M = r.scopedSlots;
|
|
3230
|
-
r.slots = M, delete r.scopedSlots;
|
|
3231
|
-
}
|
|
3232
|
-
}
|
|
3233
|
-
}
|
|
3234
|
-
return l;
|
|
3235
|
-
}
|
|
3236
|
-
function W(l, s) {
|
|
3237
|
-
let r = l.href, C = /(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?/, j = /\.vue(\?.*)?$/, k = /{{([^}]+)}}/g;
|
|
3238
|
-
if (typeof r == "string")
|
|
3239
|
-
if (r.startsWith("ONLINE:")) {
|
|
3240
|
-
let M = r.split(":");
|
|
3241
|
-
y.value = M[1];
|
|
3242
|
-
let U = M[2];
|
|
3243
|
-
R(!0, {
|
|
3244
|
-
isUpdate: !0,
|
|
3245
|
-
disableSubmit: !0,
|
|
3246
|
-
hideSub: !0,
|
|
3247
|
-
record: { id: s[U] }
|
|
3248
|
-
});
|
|
3249
|
-
} else
|
|
3250
|
-
r = r.trim().replace(/\${([^}]+)?}/g, (M, U) => s[U]), k.test(r) && (r = r.replace(k, function(M, U) {
|
|
3251
|
-
try {
|
|
3252
|
-
return et(U);
|
|
3253
|
-
} catch (Q) {
|
|
3254
|
-
return M;
|
|
3255
|
-
}
|
|
3256
|
-
})), C.test(r) ? window.open(r, "_blank") : j.test(r) ? H(r) : t.push(r);
|
|
3257
|
-
}
|
|
3258
|
-
const A = Se({
|
|
3259
|
-
model: {
|
|
3260
|
-
title: "",
|
|
3261
|
-
okText: "关闭",
|
|
3262
|
-
width: "100%",
|
|
3263
|
-
open: !1,
|
|
3264
|
-
destroyOnClose: !0,
|
|
3265
|
-
style: {
|
|
3266
|
-
top: 0,
|
|
3267
|
-
left: 0,
|
|
3268
|
-
height: "100%",
|
|
3269
|
-
margin: 0,
|
|
3270
|
-
padding: 0
|
|
3271
|
-
},
|
|
3272
|
-
// dialogStyle: dialogStyle,
|
|
3273
|
-
bodyStyle: { padding: "8px", height: "calc(100vh - 108px)", overflow: "auto", overflowX: "hidden" },
|
|
3274
|
-
// 隐藏掉取消按钮
|
|
3275
|
-
cancelButtonProps: { style: { display: "none" } }
|
|
3276
|
-
},
|
|
3277
|
-
on: {
|
|
3278
|
-
ok: () => A.model.open = !1,
|
|
3279
|
-
cancel: () => A.model.open = !1
|
|
3280
|
-
},
|
|
3281
|
-
is: null,
|
|
3282
|
-
params: {}
|
|
3283
|
-
});
|
|
3284
|
-
function H(l) {
|
|
3285
|
-
let s = l.indexOf("?"), r = l;
|
|
3286
|
-
if (s !== -1) {
|
|
3287
|
-
r = l.substring(0, s);
|
|
3288
|
-
let j = l.substring(s + 1, l.length).split("&"), k = {};
|
|
3289
|
-
j.forEach((M) => {
|
|
3290
|
-
let U = M.split("=");
|
|
3291
|
-
k[U[0]] = U[1];
|
|
3292
|
-
}), A.params = k;
|
|
3293
|
-
} else
|
|
3294
|
-
A.params = {};
|
|
3295
|
-
A.model.open = !0, A.model.title = "操作", A.is = gn(bn(() => In(r)));
|
|
3296
|
-
}
|
|
3297
|
-
let q = "left";
|
|
3298
|
-
n.isTree() && (q = "right");
|
|
3299
|
-
const B = Se({
|
|
3300
|
-
title: "操作",
|
|
3301
|
-
dataIndex: "action",
|
|
3302
|
-
slots: { customRender: "action" },
|
|
3303
|
-
fixed: q,
|
|
3304
|
-
align: "center",
|
|
3305
|
-
width: 150
|
|
3306
|
-
});
|
|
3307
|
-
he(() => e == null ? void 0 : e.value, () => {
|
|
3308
|
-
var l, s;
|
|
3309
|
-
((l = e == null ? void 0 : e.value) == null ? void 0 : l.tableFixedAction) === 1 && (B.fixed = ((s = e == null ? void 0 : e.value) == null ? void 0 : s.tableFixedActionType) || "right", n.isTree() && (B.fixed = "right"));
|
|
3310
|
-
});
|
|
3311
|
-
function O(l) {
|
|
3312
|
-
let s = !1;
|
|
3313
|
-
for (let r = 0; r < l.length; r++)
|
|
3314
|
-
if (l[r].dataIndex.toLowerCase() == "bpm_status") {
|
|
3315
|
-
s = !0;
|
|
3316
|
-
break;
|
|
3317
|
-
}
|
|
3318
|
-
return n.hasBpmStatus = s, s;
|
|
3319
|
-
}
|
|
3320
|
-
function v(l) {
|
|
3321
|
-
if (!l)
|
|
3322
|
-
return;
|
|
3323
|
-
l.indexOf(",") > 0 && (l = l.substring(0, l.indexOf(",")));
|
|
3324
|
-
let s = Ae(l);
|
|
3325
|
-
window.open(s);
|
|
3326
|
-
}
|
|
3327
|
-
function g(l) {
|
|
3328
|
-
return l && l.indexOf(",") > 0 && (l = l.substring(0, l.indexOf(","))), Ae(l);
|
|
3329
|
-
}
|
|
3330
|
-
function D(l) {
|
|
3331
|
-
return l ? En(l) : "";
|
|
3332
|
-
}
|
|
3333
|
-
function c(l) {
|
|
3334
|
-
if (!l)
|
|
3335
|
-
return "";
|
|
3336
|
-
let s = l;
|
|
3337
|
-
return s.length > 10 && (s = s.substring(0, 10)), s;
|
|
3338
|
-
}
|
|
3339
|
-
he(d, () => {
|
|
3340
|
-
n.selectedRowKeys = be(d.value);
|
|
3341
|
-
}), n.clearSelectedRow = () => {
|
|
3342
|
-
d.value = [], n.selectedRows = [], n.selectedRowKeys = [];
|
|
3343
|
-
};
|
|
3344
|
-
function a(l) {
|
|
3345
|
-
if (l) {
|
|
3346
|
-
let s = [], r = l.split(",");
|
|
3347
|
-
for (let C of r)
|
|
3348
|
-
C && s.push(Ae(C));
|
|
3349
|
-
An({ imageList: s });
|
|
3350
|
-
}
|
|
3351
|
-
}
|
|
3352
|
-
const o = F();
|
|
3353
|
-
function u(l, s) {
|
|
3354
|
-
return Y(this, null, function* () {
|
|
3355
|
-
$.value = s, (yield o.value.getFormStatus()) == !0 ? (y.value = s, R(!0, {
|
|
3356
|
-
isUpdate: !0,
|
|
3357
|
-
disableSubmit: !0,
|
|
3358
|
-
hideSub: !0,
|
|
3359
|
-
record: { id: l }
|
|
3360
|
-
})) : _(!0, {
|
|
3361
|
-
isUpdate: !0,
|
|
3362
|
-
record: {
|
|
3363
|
-
id: l
|
|
3364
|
-
}
|
|
3365
|
-
});
|
|
3366
|
-
});
|
|
3367
|
-
}
|
|
3368
|
-
return {
|
|
3369
|
-
columns: i,
|
|
3370
|
-
actionColumn: B,
|
|
3371
|
-
selectedKeys: d,
|
|
3372
|
-
rowSelection: h,
|
|
3373
|
-
enableScrollBar: w,
|
|
3374
|
-
tableScroll: b,
|
|
3375
|
-
downloadRowFile: v,
|
|
3376
|
-
getImgView: g,
|
|
3377
|
-
getPcaText: D,
|
|
3378
|
-
getFormatDate: c,
|
|
3379
|
-
handleColumnResult: V,
|
|
3380
|
-
onSelectChange: E,
|
|
3381
|
-
hrefComponent: A,
|
|
3382
|
-
viewOnlineCellImage: a,
|
|
3383
|
-
hrefMainTableId: y,
|
|
3384
|
-
registerOnlineHrefModal: I,
|
|
3385
|
-
registerPopModal: S,
|
|
3386
|
-
openPopModal: _,
|
|
3387
|
-
openOnlineHrefModal: R,
|
|
3388
|
-
onlinePopModalRef: o,
|
|
3389
|
-
popTableId: $
|
|
3390
|
-
};
|
|
3391
|
-
}
|
|
3392
|
-
const ul = gt({
|
|
3393
|
-
name: "OnlinePopListModal",
|
|
3394
|
-
props: {
|
|
3395
|
-
/**可以是表名 可以是ID*/
|
|
3396
|
-
id: {
|
|
3397
|
-
type: String,
|
|
3398
|
-
default: ""
|
|
3399
|
-
},
|
|
3400
|
-
multi: {
|
|
3401
|
-
type: Boolean,
|
|
3402
|
-
default: !1
|
|
3403
|
-
},
|
|
3404
|
-
addAuth: {
|
|
3405
|
-
type: Boolean,
|
|
3406
|
-
default: !0
|
|
3407
|
-
}
|
|
3408
|
-
},
|
|
3409
|
-
components: {
|
|
3410
|
-
BasicModal: yt,
|
|
3411
|
-
BasicTable: Mn,
|
|
3412
|
-
TableAction: Rn,
|
|
3413
|
-
PlusOutlined: Ge,
|
|
3414
|
-
OnlinePopModal: Ne
|
|
3415
|
-
},
|
|
3416
|
-
emits: ["success", "register"],
|
|
3417
|
-
setup(n, { emit: e }) {
|
|
3418
|
-
const { createMessage: t } = Xe(), { popModalFixedWidth: i, resetBodyStyle: m, popBodyStyle: d } = Et(), h = F(""), w = F(800), [b, { closeModal: I }] = vt(() => {
|
|
3419
|
-
h.value = "", C.value = [], j.value = [], s({ current: 1 }), l(), m();
|
|
3420
|
-
}), [R, { openModal: y }] = xe();
|
|
3421
|
-
function S() {
|
|
3422
|
-
I();
|
|
3423
|
-
}
|
|
3424
|
-
const _ = de(() => {
|
|
3425
|
-
const J = C.value;
|
|
3426
|
-
return !(J && J.length > 0);
|
|
3427
|
-
}), $ = F(!1);
|
|
3428
|
-
function V() {
|
|
3429
|
-
$.value = !0;
|
|
3430
|
-
let J = be(j.value);
|
|
3431
|
-
J && J.length > 0 && (e("success", J), I()), setTimeout(() => {
|
|
3432
|
-
$.value = !1;
|
|
3433
|
-
}, 200);
|
|
3434
|
-
}
|
|
3435
|
-
function E(J) {
|
|
3436
|
-
const z = "/online/cgform/api/getData/" + n.id;
|
|
3437
|
-
return ge.get({ url: z, params: J });
|
|
3438
|
-
}
|
|
3439
|
-
function x(J) {
|
|
3440
|
-
return J.column = "id", new Promise((z, ae) => Y(this, null, function* () {
|
|
3441
|
-
const ie = yield E(J);
|
|
3442
|
-
z(ie);
|
|
3443
|
-
}));
|
|
3444
|
-
}
|
|
3445
|
-
const W = {
|
|
3446
|
-
isPopList: !0,
|
|
3447
|
-
reloadTable() {
|
|
3448
|
-
},
|
|
3449
|
-
isTree() {
|
|
3450
|
-
return !1;
|
|
3451
|
-
}
|
|
3452
|
-
}, T = F({}), {
|
|
3453
|
-
columns: A,
|
|
3454
|
-
downloadRowFile: H,
|
|
3455
|
-
getImgView: q,
|
|
3456
|
-
getPcaText: B,
|
|
3457
|
-
getFormatDate: O,
|
|
3458
|
-
handleColumnResult: v,
|
|
3459
|
-
hrefComponent: g,
|
|
3460
|
-
viewOnlineCellImage: D
|
|
3461
|
-
} = al(W, T);
|
|
3462
|
-
function c() {
|
|
3463
|
-
const J = "/online/cgform/api/getColumns/" + n.id;
|
|
3464
|
-
return new Promise((z, ae) => {
|
|
3465
|
-
ge.get({ url: J }, { isTransformResponse: !1 }).then((ie) => {
|
|
3466
|
-
ie.success ? z(ie.result) : (t.warning(ie.message), ae());
|
|
3467
|
-
});
|
|
3468
|
-
});
|
|
3469
|
-
}
|
|
3470
|
-
const a = F("");
|
|
3471
|
-
he(() => n.id, () => Y(this, null, function* () {
|
|
3472
|
-
let J = yield c();
|
|
3473
|
-
v(J), a.value = J.description;
|
|
3474
|
-
}), { immediate: !0 });
|
|
3475
|
-
const { tableContext: o } = $n({
|
|
3476
|
-
designScope: "process-design",
|
|
3477
|
-
pagination: !0,
|
|
3478
|
-
tableProps: {
|
|
3479
|
-
title: "",
|
|
3480
|
-
api: x,
|
|
3481
|
-
clickToRowSelect: !0,
|
|
3482
|
-
columns: A,
|
|
3483
|
-
showTableSetting: !1,
|
|
3484
|
-
immediate: !1,
|
|
3485
|
-
//showIndexColumn: true,
|
|
3486
|
-
canResize: !1,
|
|
3487
|
-
showActionColumn: !1,
|
|
3488
|
-
actionColumn: {
|
|
3489
|
-
dataIndex: "action",
|
|
3490
|
-
slots: { customRender: "action" }
|
|
3491
|
-
},
|
|
3492
|
-
useSearchForm: !1,
|
|
3493
|
-
beforeFetch: (J) => ce(J)
|
|
3494
|
-
}
|
|
3495
|
-
}), [u, { reload: l, setPagination: s }, { rowSelection: r, selectedRowKeys: C, selectedRows: j }] = o;
|
|
3496
|
-
he(() => n.multi, (J) => {
|
|
3497
|
-
J == !0 ? r.type = "checkbox" : r.type = "radio";
|
|
3498
|
-
}, { immediate: !0 });
|
|
3499
|
-
function k(J) {
|
|
3500
|
-
return [
|
|
3501
|
-
{
|
|
3502
|
-
label: "编辑",
|
|
3503
|
-
onClick: M.bind(null, J)
|
|
3504
|
-
}
|
|
3505
|
-
];
|
|
3506
|
-
}
|
|
3507
|
-
function M(J) {
|
|
3508
|
-
}
|
|
3509
|
-
function U() {
|
|
3510
|
-
l();
|
|
3511
|
-
}
|
|
3512
|
-
const Q = ["int", "double", "Date", "Datetime", "BigDecimal"];
|
|
3513
|
-
function ce(J) {
|
|
3514
|
-
let z = h.value;
|
|
3515
|
-
if (!z)
|
|
3516
|
-
return J.superQueryMatchType = "or", J.superQueryParams = "", J;
|
|
3517
|
-
let ae = A.value, ie = [];
|
|
3518
|
-
if (ae && ae.length > 0)
|
|
3519
|
-
for (let ne of ae)
|
|
3520
|
-
ne.dbType && (ne.dbType == "string" ? ie.push({ field: ne.dataIndex, type: ne.dbType.toLowerCase(), rule: "like", val: z }) : ne.dbType == "Date" ? z.length == 10 && ie.push({ field: ne.dataIndex, type: ne.dbType.toLowerCase(), rule: "eq", val: z }) : ne.dbType == "Datetime" ? z.length == 19 && ie.push({ field: ne.dataIndex, type: ne.dbType.toLowerCase(), rule: "eq", val: z }) : Q.indexOf(ne.dbType) && ie.push({ field: ne.dataIndex, type: ne.dbType.toLowerCase(), rule: "eq", val: z }));
|
|
3521
|
-
return J.superQueryMatchType = "or", J.superQueryParams = encodeURI(JSON.stringify(ie)), J;
|
|
3522
|
-
}
|
|
3523
|
-
function Z() {
|
|
3524
|
-
y(!0, {});
|
|
3525
|
-
}
|
|
3526
|
-
function te(J) {
|
|
3527
|
-
e("success", [J]), I();
|
|
3528
|
-
}
|
|
3529
|
-
return {
|
|
3530
|
-
registerModal: b,
|
|
3531
|
-
modalWidth: w,
|
|
3532
|
-
handleCancel: S,
|
|
3533
|
-
submitDisabled: _,
|
|
3534
|
-
submitLoading: $,
|
|
3535
|
-
handleSubmit: V,
|
|
3536
|
-
registerTable: u,
|
|
3537
|
-
getTableAction: k,
|
|
3538
|
-
searchText: h,
|
|
3539
|
-
onSearch: U,
|
|
3540
|
-
downloadRowFile: H,
|
|
3541
|
-
getImgView: q,
|
|
3542
|
-
getPcaText: B,
|
|
3543
|
-
getFormatDate: O,
|
|
3544
|
-
hrefComponent: g,
|
|
3545
|
-
viewOnlineCellImage: D,
|
|
3546
|
-
rowSelection: r,
|
|
3547
|
-
modalTitle: a,
|
|
3548
|
-
registerPopModal: R,
|
|
3549
|
-
handleAdd: Z,
|
|
3550
|
-
reload: l,
|
|
3551
|
-
popModalFixedWidth: i,
|
|
3552
|
-
popBodyStyle: d,
|
|
3553
|
-
handleDataSave: te
|
|
3554
|
-
};
|
|
3555
|
-
}
|
|
3556
|
-
}), cl = { style: { display: "inline-block", width: "calc(100% - 140px)", "text-align": "left" } }, dl = {
|
|
3557
|
-
key: 0,
|
|
3558
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
3559
|
-
}, fl = {
|
|
3560
|
-
key: 0,
|
|
3561
|
-
style: { "font-size": "12px", "font-style": "italic" }
|
|
3562
|
-
}, ml = ["src", "onClick"], pl = ["innerHTML"], hl = ["title"];
|
|
3563
|
-
function gl(n, e, t, i, m, d) {
|
|
3564
|
-
const h = ee("PlusOutlined"), w = ee("a-button"), b = ee("a-input-search"), I = ee("TableAction"), R = ee("BasicTable"), y = ee("BasicModal"), S = ee("online-pop-modal");
|
|
3565
|
-
return G(), ue(je, null, [
|
|
3566
|
-
re(y, {
|
|
3567
|
-
onRegister: n.registerModal,
|
|
3568
|
-
width: n.popModalFixedWidth,
|
|
3569
|
-
dialogStyle: { top: "70px" },
|
|
3570
|
-
bodyStyle: n.popBodyStyle,
|
|
3571
|
-
title: n.modalTitle,
|
|
3572
|
-
wrapClassName: "jeecg-online-pop-list-modal"
|
|
3573
|
-
}, {
|
|
3574
|
-
footer: le(() => [
|
|
3575
|
-
fe("div", cl, [
|
|
3576
|
-
n.addAuth ? (G(), Oe(w, {
|
|
3577
|
-
key: 0,
|
|
3578
|
-
style: { "border-radius": "50px" },
|
|
3579
|
-
type: "primary",
|
|
3580
|
-
onClick: n.handleAdd
|
|
3581
|
-
}, {
|
|
3582
|
-
default: le(() => [
|
|
3583
|
-
re(h),
|
|
3584
|
-
_e("新增记录")
|
|
3585
|
-
]),
|
|
3586
|
-
_: 1
|
|
3587
|
-
}, 8, ["onClick"])) : we("", !0)
|
|
3588
|
-
]),
|
|
3589
|
-
re(w, {
|
|
3590
|
-
key: "back",
|
|
3591
|
-
onClick: n.handleCancel
|
|
3592
|
-
}, {
|
|
3593
|
-
default: le(() => [
|
|
3594
|
-
_e("关闭")
|
|
3595
|
-
]),
|
|
3596
|
-
_: 1
|
|
3597
|
-
}, 8, ["onClick"]),
|
|
3598
|
-
re(w, {
|
|
3599
|
-
disabled: n.submitDisabled,
|
|
3600
|
-
key: "submit",
|
|
3601
|
-
type: "primary",
|
|
3602
|
-
onClick: n.handleSubmit,
|
|
3603
|
-
loading: n.submitLoading
|
|
3604
|
-
}, {
|
|
3605
|
-
default: le(() => [
|
|
3606
|
-
_e("确定")
|
|
3607
|
-
]),
|
|
3608
|
-
_: 1
|
|
3609
|
-
}, 8, ["disabled", "onClick", "loading"])
|
|
3610
|
-
]),
|
|
3611
|
-
default: le(() => [
|
|
3612
|
-
re(R, {
|
|
3613
|
-
onRegister: n.registerTable,
|
|
3614
|
-
rowSelection: n.rowSelection
|
|
3615
|
-
}, {
|
|
3616
|
-
tableTitle: le(() => [
|
|
3617
|
-
re(b, {
|
|
3618
|
-
value: n.searchText,
|
|
3619
|
-
"onUpdate:value": e[0] || (e[0] = (_) => n.searchText = _),
|
|
3620
|
-
onSearch: n.onSearch,
|
|
3621
|
-
placeholder: "请输入关键词,按回车搜索",
|
|
3622
|
-
style: { width: "240px" }
|
|
3623
|
-
}, null, 8, ["value", "onSearch"])
|
|
3624
|
-
]),
|
|
3625
|
-
action: le(({ record: _ }) => [
|
|
3626
|
-
re(I, {
|
|
3627
|
-
actions: n.getTableAction(_)
|
|
3628
|
-
}, null, 8, ["actions"])
|
|
3629
|
-
]),
|
|
3630
|
-
fileSlot: le(({ text: _ }) => [
|
|
3631
|
-
_ ? (G(), Oe(w, {
|
|
3632
|
-
key: 1,
|
|
3633
|
-
ghost: !0,
|
|
3634
|
-
type: "primary",
|
|
3635
|
-
preIcon: "ant-design:download",
|
|
3636
|
-
size: "small",
|
|
3637
|
-
onClick: ($) => n.downloadRowFile(_)
|
|
3638
|
-
}, {
|
|
3639
|
-
default: le(() => [
|
|
3640
|
-
_e(" 下载 ")
|
|
3641
|
-
]),
|
|
3642
|
-
_: 2
|
|
3643
|
-
}, 1032, ["onClick"])) : (G(), ue("span", dl, "无文件"))
|
|
3644
|
-
]),
|
|
3645
|
-
imgSlot: le(({ text: _ }) => [
|
|
3646
|
-
_ ? (G(), ue("img", {
|
|
3647
|
-
key: 1,
|
|
3648
|
-
src: n.getImgView(_),
|
|
3649
|
-
alt: "图片不存在",
|
|
3650
|
-
class: "online-cell-image",
|
|
3651
|
-
onClick: ($) => n.viewOnlineCellImage(_)
|
|
3652
|
-
}, null, 8, ml)) : (G(), ue("span", fl, "无图片"))
|
|
3653
|
-
]),
|
|
3654
|
-
htmlSlot: le(({ text: _ }) => [
|
|
3655
|
-
fe("div", { innerHTML: _ }, null, 8, pl)
|
|
3656
|
-
]),
|
|
3657
|
-
pcaSlot: le(({ text: _ }) => [
|
|
3658
|
-
fe("div", {
|
|
3659
|
-
title: n.getPcaText(_)
|
|
3660
|
-
}, Te(n.getPcaText(_)), 9, hl)
|
|
3661
|
-
]),
|
|
3662
|
-
dateSlot: le(({ text: _ }) => [
|
|
3663
|
-
fe("span", null, Te(n.getFormatDate(_)), 1)
|
|
3664
|
-
]),
|
|
3665
|
-
_: 1
|
|
3666
|
-
}, 8, ["onRegister", "rowSelection"])
|
|
3667
|
-
]),
|
|
3668
|
-
_: 1
|
|
3669
|
-
}, 8, ["onRegister", "width", "bodyStyle", "title"]),
|
|
3670
|
-
re(S, {
|
|
3671
|
-
id: n.id,
|
|
3672
|
-
onRegister: n.registerPopModal,
|
|
3673
|
-
onSuccess: n.handleDataSave,
|
|
3674
|
-
topTip: ""
|
|
3675
|
-
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
3676
|
-
], 64);
|
|
3677
|
-
}
|
|
3678
|
-
const Lt = /* @__PURE__ */ Me(ul, [["render", gl]]), ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3679
|
-
__proto__: null,
|
|
3680
|
-
default: Lt
|
|
3681
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3682
|
-
const bl = {
|
|
3683
|
-
name: "LinkTableCard",
|
|
3684
|
-
props: {
|
|
3685
|
-
valueField: se.string.def(""),
|
|
3686
|
-
textField: se.string.def(""),
|
|
3687
|
-
tableName: se.string.def(""),
|
|
3688
|
-
multi: se.bool.def(!1),
|
|
3689
|
-
value: se.oneOfType([se.string, se.number]),
|
|
3690
|
-
// ["表单字段,表字典字段","表单字段,表字典字段"]
|
|
3691
|
-
linkFields: se.array.def([]),
|
|
3692
|
-
//是否是禁用页面
|
|
3693
|
-
disabled: se.bool.def(!1),
|
|
3694
|
-
// 是否是detail页面
|
|
3695
|
-
detail: se.bool.def(!1),
|
|
3696
|
-
imageField: se.string.def("")
|
|
3697
|
-
},
|
|
3698
|
-
components: {
|
|
3699
|
-
PlusOutlined: Ge,
|
|
3700
|
-
MinusCircleFilled: Fn,
|
|
3701
|
-
OnlinePopListModal: Lt,
|
|
3702
|
-
OnlinePopModal: Ne
|
|
3703
|
-
},
|
|
3704
|
-
emits: ["change", "update:value"],
|
|
3705
|
-
setup(n, { emit: e }) {
|
|
3706
|
-
const t = de(() => n.tableName), [i, { openModal: m }] = xe(), [d, { openModal: h }] = xe(), w = F([]), b = F([]), I = de(() => !(n.disabled == !0 || n.multi === !1 && b.value.length > 0)), { auths: R, otherColumns: y, realShowColumns: S, tableColumns: _, textFieldArray: $, transData: V, loadOne: E, compareData: x, formatData: W, initFormData: T, getImageSrc: A, showImage: H } = At(n), q = de(() => n.multi === !0 ? 12 : 24), B = de(() => n.multi === !0 ? 24 : 12);
|
|
3707
|
-
function O(l) {
|
|
3708
|
-
if (l && $.value.length > 0) {
|
|
3709
|
-
let s = $.value[0];
|
|
3710
|
-
return l[s];
|
|
3711
|
-
}
|
|
3712
|
-
}
|
|
3713
|
-
function v(l) {
|
|
3714
|
-
l == null || l.stopPropagation(), l == null || l.preventDefault();
|
|
3715
|
-
}
|
|
3716
|
-
function g(l, s) {
|
|
3717
|
-
v(l), R.update != !1 && n.disabled == !1 && h(!0, {
|
|
3718
|
-
isUpdate: !0,
|
|
3719
|
-
record: s
|
|
3720
|
-
});
|
|
3721
|
-
}
|
|
3722
|
-
function D(l) {
|
|
3723
|
-
m(!0, {});
|
|
3724
|
-
}
|
|
3725
|
-
function c(l) {
|
|
3726
|
-
let s = b.value;
|
|
3727
|
-
for (let r of l) {
|
|
3728
|
-
let C = me({}, r);
|
|
3729
|
-
V(C), s.push(C);
|
|
3730
|
-
}
|
|
3731
|
-
b.value = s, u();
|
|
3732
|
-
}
|
|
3733
|
-
function a(l) {
|
|
3734
|
-
let s = b.value;
|
|
3735
|
-
for (let r = 0; r < s.length; r++)
|
|
3736
|
-
if (s[r].id === l.id) {
|
|
3737
|
-
let C = me({}, l);
|
|
3738
|
-
V(C), s.splice(r, 1, C);
|
|
3739
|
-
}
|
|
3740
|
-
b.value = s, u();
|
|
3741
|
-
}
|
|
3742
|
-
function o(l, s) {
|
|
3743
|
-
v(l);
|
|
3744
|
-
let r = b.value;
|
|
3745
|
-
r && r.length > s && (r.splice(s, 1), b.value = r), u();
|
|
3746
|
-
}
|
|
3747
|
-
function u() {
|
|
3748
|
-
let l = b.value, s = [], r = {}, C = n.linkFields;
|
|
3749
|
-
if (l.length > 0)
|
|
3750
|
-
for (let k = 0; k < l.length; k++)
|
|
3751
|
-
s.push(l[k][n.valueField]), T(r, C, l[k]);
|
|
3752
|
-
else
|
|
3753
|
-
T(r, C);
|
|
3754
|
-
let j = s.join(",");
|
|
3755
|
-
W(r), e("change", j, r), e("update:value", j);
|
|
3756
|
-
}
|
|
3757
|
-
return he(() => n.value, (l) => Y(this, null, function* () {
|
|
3758
|
-
if (l) {
|
|
3759
|
-
if (x(b.value, l) === !1) {
|
|
3760
|
-
let r = yield E(l);
|
|
3761
|
-
b.value = r;
|
|
3762
|
-
}
|
|
3763
|
-
n.linkFields && n.linkFields.length > 0 && u();
|
|
3764
|
-
} else
|
|
3765
|
-
b.value = [];
|
|
3766
|
-
}), { immediate: !0 }), {
|
|
3767
|
-
popTableName: t,
|
|
3768
|
-
selectRecords: b,
|
|
3769
|
-
otherColumns: y,
|
|
3770
|
-
realShowColumns: S,
|
|
3771
|
-
showButton: I,
|
|
3772
|
-
selectValue: w,
|
|
3773
|
-
handleAddRecord: D,
|
|
3774
|
-
handleDeleteRecord: o,
|
|
3775
|
-
getMainContent: O,
|
|
3776
|
-
itemSpan: q,
|
|
3777
|
-
columnSpan: B,
|
|
3778
|
-
tableColumns: _,
|
|
3779
|
-
addCard: c,
|
|
3780
|
-
registerListModal: i,
|
|
3781
|
-
registerFormModal: d,
|
|
3782
|
-
handleClickEdit: g,
|
|
3783
|
-
updateCardData: a,
|
|
3784
|
-
getImageSrc: A,
|
|
3785
|
-
showImage: H,
|
|
3786
|
-
auths: R
|
|
3787
|
-
};
|
|
3788
|
-
}
|
|
3789
|
-
}, vl = { class: "table-link-card" }, yl = { style: { width: "100%", height: "100%" } }, wl = {
|
|
3790
|
-
key: 0,
|
|
3791
|
-
class: "card-button"
|
|
3792
|
-
}, Sl = ["onClick"], Fl = {
|
|
3793
|
-
key: 0,
|
|
3794
|
-
class: "card-delete"
|
|
3795
|
-
}, Cl = { class: "card-inner" }, _l = { class: "card-main-content" }, Tl = { class: "other-content" }, Ol = { class: "label ellipsis" }, Pl = { class: "text ellipsis" }, xl = {
|
|
3796
|
-
key: 0,
|
|
3797
|
-
class: "card-item-image"
|
|
3798
|
-
}, Il = ["src"];
|
|
3799
|
-
function Dl(n, e, t, i, m, d) {
|
|
3800
|
-
const h = ee("PlusOutlined"), w = ee("a-button"), b = ee("minus-circle-filled"), I = ee("a-col"), R = ee("a-row"), y = ee("online-pop-list-modal"), S = ee("online-pop-modal");
|
|
3801
|
-
return G(), ue("div", null, [
|
|
3802
|
-
fe("div", vl, [
|
|
3803
|
-
fe("div", yl, [
|
|
3804
|
-
i.showButton ? (G(), ue("div", wl, [
|
|
3805
|
-
re(w, { onClick: i.handleAddRecord }, {
|
|
3806
|
-
default: le(() => [
|
|
3807
|
-
re(h),
|
|
3808
|
-
_e("记 录")
|
|
3809
|
-
]),
|
|
3810
|
-
_: 1
|
|
3811
|
-
}, 8, ["onClick"])
|
|
3812
|
-
])) : we("", !0),
|
|
3813
|
-
re(R, null, {
|
|
3814
|
-
default: le(() => [
|
|
3815
|
-
(G(!0), ue(je, null, Qe(i.selectRecords, (_, $) => (G(), Oe(I, { span: i.itemSpan }, {
|
|
3816
|
-
default: le(() => [
|
|
3817
|
-
fe("div", {
|
|
3818
|
-
class: ct(["card-item", { "disabled-chunk": t.detail == !0 }]),
|
|
3819
|
-
onClick: (V) => i.handleClickEdit(V, _)
|
|
3820
|
-
}, [
|
|
3821
|
-
fe("div", {
|
|
3822
|
-
class: ct(["card-item-left", { "show-right-image": i.showImage }])
|
|
3823
|
-
}, [
|
|
3824
|
-
t.disabled == !1 ? (G(), ue("span", Fl, [
|
|
3825
|
-
re(b, {
|
|
3826
|
-
onClick: (V) => i.handleDeleteRecord(V, $)
|
|
3827
|
-
}, null, 8, ["onClick"])
|
|
3828
|
-
])) : we("", !0),
|
|
3829
|
-
fe("div", Cl, [
|
|
3830
|
-
fe("div", _l, Te(i.getMainContent(_)), 1),
|
|
3831
|
-
fe("div", Tl, [
|
|
3832
|
-
re(R, null, {
|
|
3833
|
-
default: le(() => [
|
|
3834
|
-
(G(!0), ue(je, null, Qe(i.realShowColumns, (V) => (G(), Oe(I, { span: i.columnSpan }, {
|
|
3835
|
-
default: le(() => [
|
|
3836
|
-
fe("span", Ol, Te(V.title), 1),
|
|
3837
|
-
fe("span", Pl, Te(_[V.dataIndex]), 1)
|
|
3838
|
-
]),
|
|
3839
|
-
_: 2
|
|
3840
|
-
}, 1032, ["span"]))), 256))
|
|
3841
|
-
]),
|
|
3842
|
-
_: 2
|
|
3843
|
-
}, 1024)
|
|
3844
|
-
])
|
|
3845
|
-
])
|
|
3846
|
-
], 2),
|
|
3847
|
-
i.showImage ? (G(), ue("div", xl, [
|
|
3848
|
-
i.getImageSrc(_) ? (G(), ue("img", {
|
|
3849
|
-
key: 0,
|
|
3850
|
-
src: i.getImageSrc(_),
|
|
3851
|
-
alt: ""
|
|
3852
|
-
}, null, 8, Il)) : we("", !0)
|
|
3853
|
-
])) : we("", !0)
|
|
3854
|
-
], 10, Sl)
|
|
3855
|
-
]),
|
|
3856
|
-
_: 2
|
|
3857
|
-
}, 1032, ["span"]))), 256))
|
|
3858
|
-
]),
|
|
3859
|
-
_: 1
|
|
3860
|
-
})
|
|
3861
|
-
])
|
|
3862
|
-
]),
|
|
3863
|
-
re(y, {
|
|
3864
|
-
onRegister: i.registerListModal,
|
|
3865
|
-
multi: t.multi,
|
|
3866
|
-
id: i.popTableName,
|
|
3867
|
-
addAuth: i.auths.add,
|
|
3868
|
-
onSuccess: i.addCard
|
|
3869
|
-
}, null, 8, ["onRegister", "multi", "id", "addAuth", "onSuccess"]),
|
|
3870
|
-
re(S, {
|
|
3871
|
-
id: i.popTableName,
|
|
3872
|
-
onRegister: i.registerFormModal,
|
|
3873
|
-
onSuccess: i.updateCardData,
|
|
3874
|
-
topTip: ""
|
|
3875
|
-
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
3876
|
-
]);
|
|
3877
|
-
}
|
|
3878
|
-
const Nt = /* @__PURE__ */ Me(bl, [["render", Dl], ["__scopeId", "data-v-447ec75a"]]), ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3879
|
-
__proto__: null,
|
|
3880
|
-
default: Nt
|
|
3881
|
-
}, Symbol.toStringTag, { value: "Module" })), ht = {};
|
|
3882
|
-
function Ml() {
|
|
3883
|
-
n("OnlineSelectCascade", Ln), n("LinkTableSelect", jt), n("LinkTableCard", Nt);
|
|
3884
|
-
function n(t, i) {
|
|
3885
|
-
ht[t] || (dn(t, i), ht[t] = 1);
|
|
3886
|
-
}
|
|
3887
|
-
function e(t) {
|
|
3888
|
-
t.component == "LinkTableCard" && (t.component = "LinkTableSelect", t.componentProps.popContainer = "body");
|
|
3889
|
-
}
|
|
3890
|
-
return {
|
|
3891
|
-
addComponent: n,
|
|
3892
|
-
linkTableCard2Select: e
|
|
3893
|
-
};
|
|
3894
|
-
}
|
|
3895
|
-
export {
|
|
3896
|
-
ds as E,
|
|
3897
|
-
He as F,
|
|
3898
|
-
nt as L,
|
|
3899
|
-
Ne as O,
|
|
3900
|
-
Wn as S,
|
|
3901
|
-
Re as V,
|
|
3902
|
-
al as a,
|
|
3903
|
-
zi as b,
|
|
3904
|
-
$t as c,
|
|
3905
|
-
Ai as d,
|
|
3906
|
-
Mt as e,
|
|
3907
|
-
us as f,
|
|
3908
|
-
De as g,
|
|
3909
|
-
Un as h,
|
|
3910
|
-
ps as i,
|
|
3911
|
-
Ml as j,
|
|
3912
|
-
fs as k,
|
|
3913
|
-
Ze as l,
|
|
3914
|
-
ms as m,
|
|
3915
|
-
ji as n,
|
|
3916
|
-
mt as o,
|
|
3917
|
-
cs as p,
|
|
3918
|
-
Nt as q,
|
|
3919
|
-
hs as r,
|
|
3920
|
-
gs as s,
|
|
3921
|
-
bs as t,
|
|
3922
|
-
Bi as u,
|
|
3923
|
-
vs as v,
|
|
3924
|
-
ys as w,
|
|
3925
|
-
ws as x
|
|
3926
|
-
};
|