@jeecg/online 3.5.3-vite4 → 3.6.2-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
- package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
- package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
- package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
- package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
- package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
- package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
- package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
- package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
- package/CgformModal-eccfc38e.mjs +611 -0
- package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
- package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
- package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
- package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
- package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
- package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
- package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
- package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
- package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
- package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
- package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
- package/EnhanceJsModal-05c73a59.mjs +311 -0
- package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
- package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
- package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
- package/FileSelectModal-9a02560b.mjs +103 -0
- package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
- package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
- package/JModalTip-33c7dc44.mjs +49 -0
- package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
- package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
- package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
- package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
- package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
- package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
- package/LinkTableListPiece-8499a318.mjs +34 -0
- package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
- package/OnlCgformErpList-db45e22b.mjs +454 -0
- package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
- package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
- package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
- package/OnlCgformTabList-a9e1e36a.mjs +395 -0
- package/OnlineAutoList-0583a910.mjs +479 -0
- package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
- package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
- package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
- package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
- package/OnlineForm-1fa2d893.mjs +750 -0
- package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
- package/OnlineQueryForm-1bfc8320.mjs +386 -0
- package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
- package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
- package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
- package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
- package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
- package/OnlineTabForm-512d3951.mjs +766 -0
- package/OnlineTabFormDetail-5a70219d.mjs +324 -0
- package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
- package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
- package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
- package/README.md +5 -2
- package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
- package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
- package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
- package/cgformState-d9f8ec42.mjs +28 -0
- package/constant-754f1a9d.mjs +9 -0
- package/index-0e3ab3af.mjs +56 -0
- package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
- package/index-b7a05eef.mjs +1496 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-423282b7.mjs +400 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-325fe3f1.mjs +3926 -0
- package/useListButton-cdbab702.mjs +676 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
- package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
- package/CgformModal-6938d8c2.mjs +0 -613
- package/EnhanceJsModal-0b133341.mjs +0 -233
- package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
- package/FileSelectModal-64aaf623.mjs +0 -91
- package/JModalTip-abe1515a.mjs +0 -46
- package/LinkTableListPiece-34266919.mjs +0 -34
- package/OnlCgformErpList-7a0388d8.mjs +0 -425
- package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
- package/OnlineAutoList-85e6a30d.mjs +0 -472
- package/OnlineForm-630a22c2.mjs +0 -778
- package/OnlineQueryForm-1c5949a7.mjs +0 -378
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
- package/constant-fe20103a.mjs +0 -6
- package/index-6a09a912.mjs +0 -58
- package/index-9d32ae88.mjs +0 -313
- package/useCgformList-2d6a5955.mjs +0 -388
- package/useExtendComponent-48d37d9b.mjs +0 -3919
- package/useListButton-cef1371a.mjs +0 -656
- package/useOnlinePopEvent-e9a042f8.mjs +0 -19
- package/useOnlineTest-0df0ae86.mjs +0 -43
|
@@ -0,0 +1,3926 @@
|
|
|
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((l, f) => {
|
|
14
|
+
var c = (g) => {
|
|
15
|
+
try {
|
|
16
|
+
w(t.next(g));
|
|
17
|
+
} catch (R) {
|
|
18
|
+
f(R);
|
|
19
|
+
}
|
|
20
|
+
}, p = (g) => {
|
|
21
|
+
try {
|
|
22
|
+
w(t.throw(g));
|
|
23
|
+
} catch (R) {
|
|
24
|
+
f(R);
|
|
25
|
+
}
|
|
26
|
+
}, w = (g) => g.done ? l(g.value) : Promise.resolve(g.value).then(c, p);
|
|
27
|
+
w((t = t.apply(n, e)).next());
|
|
28
|
+
});
|
|
29
|
+
import { add as dn } from "/@/components/Form/src/componentMap";
|
|
30
|
+
import { propTypes as re } 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 se, openBlock as Z, createBlock as Oe, unref as Pe, createElementBlock as ce, createVNode as ue, defineComponent as gt, h as $e, mergeProps as bt, withCtx as oe, 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 Ae, 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 je } 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 jn } from "/@/components/Preview/index";
|
|
52
|
+
import An from "./LinkTableListPiece-8499a318.mjs";
|
|
53
|
+
import { _ as Me } from "./index-0e3ab3af.mjs";
|
|
54
|
+
import Ln from "./OnlineSelectCascade-4265c95d.mjs";
|
|
55
|
+
import { Loading as _t } from "/@/components/Loading";
|
|
56
|
+
import { getToken as Nn } from "/@/utils/auth";
|
|
57
|
+
import Vn from "./JModalTip-33c7dc44.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 Q {
|
|
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 l = JSON.parse(t);
|
|
134
|
+
e = me({}, l);
|
|
135
|
+
} catch (l) {
|
|
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, l) => Y(this, null, function* () {
|
|
156
|
+
let f = yield e(t, l);
|
|
157
|
+
return f ? Promise.reject(f) : Promise.resolve();
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 获取校验规则
|
|
162
|
+
*/
|
|
163
|
+
getRule() {
|
|
164
|
+
let e = [];
|
|
165
|
+
const { view: t, errorInfo: l, pattern: f, type: c } = this._data;
|
|
166
|
+
if (this.required === !0) {
|
|
167
|
+
let p = this.getPlaceholder();
|
|
168
|
+
l && (p = l), t == "sel_depart" || t == "sel_user" ? this.schemaProp.required = !0 : e.push({ required: !0, message: p });
|
|
169
|
+
}
|
|
170
|
+
if (t == "sel_user" && f === "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 (f)
|
|
173
|
+
if (f === "only")
|
|
174
|
+
this.onlyValidator && e.push({ validator: this.onlyValidator });
|
|
175
|
+
else if (f === "z")
|
|
176
|
+
c == "number" || c == "integer" || e.push({ pattern: /^-?\d+$/, message: "请输入整数" });
|
|
177
|
+
else {
|
|
178
|
+
let p = l || "正则校验失败", w;
|
|
179
|
+
try {
|
|
180
|
+
w = new RegExp(f), w || (w = f);
|
|
181
|
+
} catch (g) {
|
|
182
|
+
w = f;
|
|
183
|
+
}
|
|
184
|
+
e.push({ pattern: w, message: p });
|
|
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, l) => {
|
|
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, l);
|
|
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 l = [];
|
|
221
|
+
if (t.forEach((f) => {
|
|
222
|
+
f.offsetWidth == 0 && f.offsetHeight == 0 || l.push(f);
|
|
223
|
+
}), l.length === 1)
|
|
224
|
+
return l[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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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(), l = this.getComponentProps();
|
|
289
|
+
return Object.assign({}, e, {
|
|
290
|
+
component: t,
|
|
291
|
+
componentProps: l
|
|
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: (l) => 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 l = `${this.dictTable},${this.dictText},${this.dictCode}`;
|
|
312
|
+
t.dictCode = encodeURI(l);
|
|
313
|
+
}
|
|
314
|
+
return t;
|
|
315
|
+
}
|
|
316
|
+
getOptions(e, t) {
|
|
317
|
+
if (!e || e.length == 0)
|
|
318
|
+
return [];
|
|
319
|
+
let l = t == "number", f = [];
|
|
320
|
+
for (let c of e) {
|
|
321
|
+
let p = c.value;
|
|
322
|
+
l && (p = parseInt(p)), f.push({
|
|
323
|
+
value: p,
|
|
324
|
+
label: c.title
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
return f;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
class zn extends Q {
|
|
331
|
+
getItem() {
|
|
332
|
+
let e = super.getItem();
|
|
333
|
+
return Object.assign({}, e, {
|
|
334
|
+
component: "InputPassword"
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
class Qn extends Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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: l } = e;
|
|
446
|
+
if (!t || t.length == 0)
|
|
447
|
+
return [];
|
|
448
|
+
let f = t.split(","), c = l.split(","), p = [];
|
|
449
|
+
const w = this.pre;
|
|
450
|
+
for (let g = 0; g < f.length; g++)
|
|
451
|
+
p.push({
|
|
452
|
+
target: w + f[g],
|
|
453
|
+
source: c[g]
|
|
454
|
+
});
|
|
455
|
+
return p;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
class ti extends Q {
|
|
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, l) => {
|
|
489
|
+
this.formRef && (this.formRef.value.setFieldsValue(l), 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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
568
|
+
getItem() {
|
|
569
|
+
let e = super.getItem();
|
|
570
|
+
return Object.assign({}, e, {
|
|
571
|
+
component: "JAreaSelect"
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
class ri extends Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 l of e)
|
|
637
|
+
t.push({
|
|
638
|
+
value: l.value,
|
|
639
|
+
label: l.title
|
|
640
|
+
});
|
|
641
|
+
return t;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
class ci extends Q {
|
|
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 l = JSON.parse(e);
|
|
659
|
+
l.length == 2 && (t = l);
|
|
660
|
+
}
|
|
661
|
+
return {
|
|
662
|
+
options: t
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
class di extends Q {
|
|
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 Q {
|
|
683
|
+
constructor(e, t) {
|
|
684
|
+
super(e, t);
|
|
685
|
+
const { dictTable: l, dictText: f, dictCode: c, pidField: p, idField: w, origin: g, condition: R } = t;
|
|
686
|
+
this.table = l, this.txt = f, this.store = c, this.idField = w, this.pidField = p, this.origin = g, this.condition = R, 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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 l = this.getPopContainer();
|
|
796
|
+
e.popContainer = l;
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
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 Q {
|
|
885
|
+
constructor(e, t) {
|
|
886
|
+
super(e, t);
|
|
887
|
+
let l = t.view;
|
|
888
|
+
this.format = t.format, this.datetime = !1, l === "rangeNumber" ? this.componentType = "JRangeNumber" : l === "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 l = new ft(e, t), f = t.view;
|
|
972
|
+
if (f == "date")
|
|
973
|
+
l.groupDate();
|
|
974
|
+
else if (f == "datetime")
|
|
975
|
+
l.groupDatetime();
|
|
976
|
+
else {
|
|
977
|
+
let c = t.type;
|
|
978
|
+
(c == "number" || c == "integer") && l.groupNumber();
|
|
979
|
+
}
|
|
980
|
+
return l;
|
|
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, l) {
|
|
1001
|
+
n.exports = l();
|
|
1002
|
+
})(wi, function() {
|
|
1003
|
+
var t = 1e3, l = 6e4, f = 36e5, c = "millisecond", p = "second", w = "minute", g = "hour", R = "day", k = "week", b = "month", S = "quarter", _ = "year", E = "date", V = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, D = /\[([^\]]+)]|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, B = { 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 u = ["th", "st", "nd", "rd"], i = a % 100;
|
|
1005
|
+
return "[" + a + (u[(i - 20) % 10] || u[i] || u[0]) + "]";
|
|
1006
|
+
} }, T = function(a, u, i) {
|
|
1007
|
+
var o = String(a);
|
|
1008
|
+
return !o || o.length >= u ? a : "" + Array(u + 1 - o.length).join(i) + a;
|
|
1009
|
+
}, L = { s: T, z: function(a) {
|
|
1010
|
+
var u = -a.utcOffset(), i = Math.abs(u), o = Math.floor(i / 60), s = i % 60;
|
|
1011
|
+
return (u <= 0 ? "+" : "-") + T(o, 2, "0") + ":" + T(s, 2, "0");
|
|
1012
|
+
}, m: function a(u, i) {
|
|
1013
|
+
if (u.date() < i.date())
|
|
1014
|
+
return -a(i, u);
|
|
1015
|
+
var o = 12 * (i.year() - u.year()) + (i.month() - u.month()), s = u.clone().add(o, b), C = i - s < 0, I = u.clone().add(o + (C ? -1 : 1), b);
|
|
1016
|
+
return +(-(o + (i - s) / (C ? s - I : I - s)) || 0);
|
|
1017
|
+
}, a: function(a) {
|
|
1018
|
+
return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
|
|
1019
|
+
}, p: function(a) {
|
|
1020
|
+
return { M: b, y: _, w: k, d: R, D: E, h: g, m: w, s: p, ms: c, Q: S }[a] || String(a || "").toLowerCase().replace(/s$/, "");
|
|
1021
|
+
}, u: function(a) {
|
|
1022
|
+
return a === void 0;
|
|
1023
|
+
} }, H = "en", q = {};
|
|
1024
|
+
q[H] = B;
|
|
1025
|
+
var W = "$isDayjsObject", P = function(a) {
|
|
1026
|
+
return a instanceof r || !(!a || !a[W]);
|
|
1027
|
+
}, O = function a(u, i, o) {
|
|
1028
|
+
var s;
|
|
1029
|
+
if (!u)
|
|
1030
|
+
return H;
|
|
1031
|
+
if (typeof u == "string") {
|
|
1032
|
+
var C = u.toLowerCase();
|
|
1033
|
+
q[C] && (s = C), i && (q[C] = i, s = C);
|
|
1034
|
+
var I = u.split("-");
|
|
1035
|
+
if (!s && I.length > 1)
|
|
1036
|
+
return a(I[0]);
|
|
1037
|
+
} else {
|
|
1038
|
+
var $ = u.name;
|
|
1039
|
+
q[$] = u, s = $;
|
|
1040
|
+
}
|
|
1041
|
+
return !o && s && (H = s), s || !o && H;
|
|
1042
|
+
}, v = function(a, u) {
|
|
1043
|
+
if (P(a))
|
|
1044
|
+
return a.clone();
|
|
1045
|
+
var i = typeof u == "object" ? u : {};
|
|
1046
|
+
return i.date = a, i.args = arguments, new r(i);
|
|
1047
|
+
}, y = L;
|
|
1048
|
+
y.l = O, y.i = P, y.w = function(a, u) {
|
|
1049
|
+
return v(a, { locale: u.$L, utc: u.$u, x: u.$x, $offset: u.$offset });
|
|
1050
|
+
};
|
|
1051
|
+
var r = function() {
|
|
1052
|
+
function a(i) {
|
|
1053
|
+
this.$L = O(i.locale, null, !0), this.parse(i), this.$x = this.$x || i.x || {}, this[W] = !0;
|
|
1054
|
+
}
|
|
1055
|
+
var u = a.prototype;
|
|
1056
|
+
return u.parse = function(i) {
|
|
1057
|
+
this.$d = function(o) {
|
|
1058
|
+
var s = o.date, C = o.utc;
|
|
1059
|
+
if (s === null)
|
|
1060
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
1061
|
+
if (y.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 I = s.match(A);
|
|
1067
|
+
if (I) {
|
|
1068
|
+
var $ = I[2] - 1 || 0, M = (I[7] || "0").substring(0, 3);
|
|
1069
|
+
return C ? new Date(Date.UTC(I[1], $, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, M)) : new Date(I[1], $, I[3] || 1, I[4] || 0, I[5] || 0, I[6] || 0, M);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
return new Date(s);
|
|
1073
|
+
}(i), this.init();
|
|
1074
|
+
}, u.init = function() {
|
|
1075
|
+
var i = this.$d;
|
|
1076
|
+
this.$y = i.getFullYear(), this.$M = i.getMonth(), this.$D = i.getDate(), this.$W = i.getDay(), this.$H = i.getHours(), this.$m = i.getMinutes(), this.$s = i.getSeconds(), this.$ms = i.getMilliseconds();
|
|
1077
|
+
}, u.$utils = function() {
|
|
1078
|
+
return y;
|
|
1079
|
+
}, u.isValid = function() {
|
|
1080
|
+
return this.$d.toString() !== V;
|
|
1081
|
+
}, u.isSame = function(i, o) {
|
|
1082
|
+
var s = v(i);
|
|
1083
|
+
return this.startOf(o) <= s && s <= this.endOf(o);
|
|
1084
|
+
}, u.isAfter = function(i, o) {
|
|
1085
|
+
return v(i) < this.startOf(o);
|
|
1086
|
+
}, u.isBefore = function(i, o) {
|
|
1087
|
+
return this.endOf(o) < v(i);
|
|
1088
|
+
}, u.$g = function(i, o, s) {
|
|
1089
|
+
return y.u(i) ? this[o] : this.set(s, i);
|
|
1090
|
+
}, u.unix = function() {
|
|
1091
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
1092
|
+
}, u.valueOf = function() {
|
|
1093
|
+
return this.$d.getTime();
|
|
1094
|
+
}, u.startOf = function(i, o) {
|
|
1095
|
+
var s = this, C = !!y.u(o) || o, I = y.p(i), $ = function(K, X) {
|
|
1096
|
+
var ne = y.w(s.$u ? Date.UTC(s.$y, X, K) : new Date(s.$y, X, K), s);
|
|
1097
|
+
return C ? ne : ne.endOf(R);
|
|
1098
|
+
}, M = function(K, X) {
|
|
1099
|
+
return y.w(s.toDate()[K].apply(s.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), s);
|
|
1100
|
+
}, U = this.$W, z = this.$M, ee = this.$D, G = "set" + (this.$u ? "UTC" : "");
|
|
1101
|
+
switch (I) {
|
|
1102
|
+
case _:
|
|
1103
|
+
return C ? $(1, 0) : $(31, 11);
|
|
1104
|
+
case b:
|
|
1105
|
+
return C ? $(1, z) : $(0, z + 1);
|
|
1106
|
+
case k:
|
|
1107
|
+
var te = this.$locale().weekStart || 0, J = (U < te ? U + 7 : U) - te;
|
|
1108
|
+
return $(C ? ee - J : ee + (6 - J), z);
|
|
1109
|
+
case R:
|
|
1110
|
+
case E:
|
|
1111
|
+
return M(G + "Hours", 0);
|
|
1112
|
+
case g:
|
|
1113
|
+
return M(G + "Minutes", 1);
|
|
1114
|
+
case w:
|
|
1115
|
+
return M(G + "Seconds", 2);
|
|
1116
|
+
case p:
|
|
1117
|
+
return M(G + "Milliseconds", 3);
|
|
1118
|
+
default:
|
|
1119
|
+
return this.clone();
|
|
1120
|
+
}
|
|
1121
|
+
}, u.endOf = function(i) {
|
|
1122
|
+
return this.startOf(i, !1);
|
|
1123
|
+
}, u.$set = function(i, o) {
|
|
1124
|
+
var s, C = y.p(i), I = "set" + (this.$u ? "UTC" : ""), $ = (s = {}, s[R] = I + "Date", s[E] = I + "Date", s[b] = I + "Month", s[_] = I + "FullYear", s[g] = I + "Hours", s[w] = I + "Minutes", s[p] = I + "Seconds", s[c] = I + "Milliseconds", s)[C], M = C === R ? this.$D + (o - this.$W) : o;
|
|
1125
|
+
if (C === b || C === _) {
|
|
1126
|
+
var U = this.clone().set(E, 1);
|
|
1127
|
+
U.$d[$](M), U.init(), this.$d = U.set(E, Math.min(this.$D, U.daysInMonth())).$d;
|
|
1128
|
+
} else
|
|
1129
|
+
$ && this.$d[$](M);
|
|
1130
|
+
return this.init(), this;
|
|
1131
|
+
}, u.set = function(i, o) {
|
|
1132
|
+
return this.clone().$set(i, o);
|
|
1133
|
+
}, u.get = function(i) {
|
|
1134
|
+
return this[y.p(i)]();
|
|
1135
|
+
}, u.add = function(i, o) {
|
|
1136
|
+
var s, C = this;
|
|
1137
|
+
i = Number(i);
|
|
1138
|
+
var I = y.p(o), $ = function(z) {
|
|
1139
|
+
var ee = v(C);
|
|
1140
|
+
return y.w(ee.date(ee.date() + Math.round(z * i)), C);
|
|
1141
|
+
};
|
|
1142
|
+
if (I === b)
|
|
1143
|
+
return this.set(b, this.$M + i);
|
|
1144
|
+
if (I === _)
|
|
1145
|
+
return this.set(_, this.$y + i);
|
|
1146
|
+
if (I === R)
|
|
1147
|
+
return $(1);
|
|
1148
|
+
if (I === k)
|
|
1149
|
+
return $(7);
|
|
1150
|
+
var M = (s = {}, s[w] = l, s[g] = f, s[p] = t, s)[I] || 1, U = this.$d.getTime() + i * M;
|
|
1151
|
+
return y.w(U, this);
|
|
1152
|
+
}, u.subtract = function(i, o) {
|
|
1153
|
+
return this.add(-1 * i, o);
|
|
1154
|
+
}, u.format = function(i) {
|
|
1155
|
+
var o = this, s = this.$locale();
|
|
1156
|
+
if (!this.isValid())
|
|
1157
|
+
return s.invalidDate || V;
|
|
1158
|
+
var C = i || "YYYY-MM-DDTHH:mm:ssZ", I = y.z(this), $ = this.$H, M = this.$m, U = this.$M, z = s.weekdays, ee = s.months, G = s.meridiem, te = function(X, ne, ie, j) {
|
|
1159
|
+
return X && (X[ne] || X(o, C)) || ie[ne].slice(0, j);
|
|
1160
|
+
}, J = function(X) {
|
|
1161
|
+
return y.s($ % 12 || 12, X, "0");
|
|
1162
|
+
}, K = G || function(X, ne, ie) {
|
|
1163
|
+
var j = X < 12 ? "AM" : "PM";
|
|
1164
|
+
return ie ? j.toLowerCase() : j;
|
|
1165
|
+
};
|
|
1166
|
+
return C.replace(D, function(X, ne) {
|
|
1167
|
+
return ne || function(ie) {
|
|
1168
|
+
switch (ie) {
|
|
1169
|
+
case "YY":
|
|
1170
|
+
return String(o.$y).slice(-2);
|
|
1171
|
+
case "YYYY":
|
|
1172
|
+
return y.s(o.$y, 4, "0");
|
|
1173
|
+
case "M":
|
|
1174
|
+
return U + 1;
|
|
1175
|
+
case "MM":
|
|
1176
|
+
return y.s(U + 1, 2, "0");
|
|
1177
|
+
case "MMM":
|
|
1178
|
+
return te(s.monthsShort, U, ee, 3);
|
|
1179
|
+
case "MMMM":
|
|
1180
|
+
return te(ee, U);
|
|
1181
|
+
case "D":
|
|
1182
|
+
return o.$D;
|
|
1183
|
+
case "DD":
|
|
1184
|
+
return y.s(o.$D, 2, "0");
|
|
1185
|
+
case "d":
|
|
1186
|
+
return String(o.$W);
|
|
1187
|
+
case "dd":
|
|
1188
|
+
return te(s.weekdaysMin, o.$W, z, 2);
|
|
1189
|
+
case "ddd":
|
|
1190
|
+
return te(s.weekdaysShort, o.$W, z, 3);
|
|
1191
|
+
case "dddd":
|
|
1192
|
+
return z[o.$W];
|
|
1193
|
+
case "H":
|
|
1194
|
+
return String($);
|
|
1195
|
+
case "HH":
|
|
1196
|
+
return y.s($, 2, "0");
|
|
1197
|
+
case "h":
|
|
1198
|
+
return J(1);
|
|
1199
|
+
case "hh":
|
|
1200
|
+
return J(2);
|
|
1201
|
+
case "a":
|
|
1202
|
+
return K($, M, !0);
|
|
1203
|
+
case "A":
|
|
1204
|
+
return K($, M, !1);
|
|
1205
|
+
case "m":
|
|
1206
|
+
return String(M);
|
|
1207
|
+
case "mm":
|
|
1208
|
+
return y.s(M, 2, "0");
|
|
1209
|
+
case "s":
|
|
1210
|
+
return String(o.$s);
|
|
1211
|
+
case "ss":
|
|
1212
|
+
return y.s(o.$s, 2, "0");
|
|
1213
|
+
case "SSS":
|
|
1214
|
+
return y.s(o.$ms, 3, "0");
|
|
1215
|
+
case "Z":
|
|
1216
|
+
return I;
|
|
1217
|
+
}
|
|
1218
|
+
return null;
|
|
1219
|
+
}(X) || I.replace(":", "");
|
|
1220
|
+
});
|
|
1221
|
+
}, u.utcOffset = function() {
|
|
1222
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1223
|
+
}, u.diff = function(i, o, s) {
|
|
1224
|
+
var C, I = this, $ = y.p(o), M = v(i), U = (M.utcOffset() - this.utcOffset()) * l, z = this - M, ee = function() {
|
|
1225
|
+
return y.m(I, M);
|
|
1226
|
+
};
|
|
1227
|
+
switch ($) {
|
|
1228
|
+
case _:
|
|
1229
|
+
C = ee() / 12;
|
|
1230
|
+
break;
|
|
1231
|
+
case b:
|
|
1232
|
+
C = ee();
|
|
1233
|
+
break;
|
|
1234
|
+
case S:
|
|
1235
|
+
C = ee() / 3;
|
|
1236
|
+
break;
|
|
1237
|
+
case k:
|
|
1238
|
+
C = (z - U) / 6048e5;
|
|
1239
|
+
break;
|
|
1240
|
+
case R:
|
|
1241
|
+
C = (z - U) / 864e5;
|
|
1242
|
+
break;
|
|
1243
|
+
case g:
|
|
1244
|
+
C = z / f;
|
|
1245
|
+
break;
|
|
1246
|
+
case w:
|
|
1247
|
+
C = z / l;
|
|
1248
|
+
break;
|
|
1249
|
+
case p:
|
|
1250
|
+
C = z / t;
|
|
1251
|
+
break;
|
|
1252
|
+
default:
|
|
1253
|
+
C = z;
|
|
1254
|
+
}
|
|
1255
|
+
return s ? C : y.a(C);
|
|
1256
|
+
}, u.daysInMonth = function() {
|
|
1257
|
+
return this.endOf(b).$D;
|
|
1258
|
+
}, u.$locale = function() {
|
|
1259
|
+
return q[this.$L];
|
|
1260
|
+
}, u.locale = function(i, o) {
|
|
1261
|
+
if (!i)
|
|
1262
|
+
return this.$L;
|
|
1263
|
+
var s = this.clone(), C = O(i, o, !0);
|
|
1264
|
+
return C && (s.$L = C), s;
|
|
1265
|
+
}, u.clone = function() {
|
|
1266
|
+
return y.w(this.$d, this);
|
|
1267
|
+
}, u.toDate = function() {
|
|
1268
|
+
return new Date(this.valueOf());
|
|
1269
|
+
}, u.toJSON = function() {
|
|
1270
|
+
return this.isValid() ? this.toISOString() : null;
|
|
1271
|
+
}, u.toISOString = function() {
|
|
1272
|
+
return this.$d.toISOString();
|
|
1273
|
+
}, u.toString = function() {
|
|
1274
|
+
return this.$d.toUTCString();
|
|
1275
|
+
}, a;
|
|
1276
|
+
}(), h = r.prototype;
|
|
1277
|
+
return v.prototype = h, [["$ms", c], ["$s", p], ["$m", w], ["$H", g], ["$W", R], ["$M", b], ["$y", _], ["$D", E]].forEach(function(a) {
|
|
1278
|
+
h[a[1]] = function(u) {
|
|
1279
|
+
return this.$g(u, a[0], a[1]);
|
|
1280
|
+
};
|
|
1281
|
+
}), v.extend = function(a, u) {
|
|
1282
|
+
return a.$i || (a(u, r, v), a.$i = !0), v;
|
|
1283
|
+
}, v.locale = O, v.isDayjs = P, 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 l = {};
|
|
1300
|
+
for (let f of n) {
|
|
1301
|
+
let { value: c, type: p, field: w } = f;
|
|
1302
|
+
c = yield Dt(c, ke.ADD, t || {}), p === "number" && c && (c = Number.parseFloat(c)), l[w] = c;
|
|
1303
|
+
}
|
|
1304
|
+
e(l);
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
function ms(n, e, t) {
|
|
1309
|
+
return Y(this, null, function* () {
|
|
1310
|
+
let { defVal: l, type: f } = e;
|
|
1311
|
+
if (tt(l)) {
|
|
1312
|
+
let c = yield Dt(l, ke.ADD, {});
|
|
1313
|
+
f === "number" && c && (c = Number.parseFloat(c)), t[n] = c;
|
|
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 l = yield Ii(n, e, t);
|
|
1324
|
+
if (l != null)
|
|
1325
|
+
return l;
|
|
1326
|
+
}
|
|
1327
|
+
return n;
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
function Pi(n) {
|
|
1331
|
+
let e = 0, t = 0, l = 0;
|
|
1332
|
+
if (n.replace(Ke, () => l++), l > 1)
|
|
1333
|
+
return !1;
|
|
1334
|
+
n.replace(xt, () => e++), n.replace(It, () => t++);
|
|
1335
|
+
let f = e + t;
|
|
1336
|
+
return !(l > 0 && f > 0);
|
|
1337
|
+
}
|
|
1338
|
+
function xi(n, e) {
|
|
1339
|
+
let t = /* @__PURE__ */ new Map();
|
|
1340
|
+
return n.replace(e, function(l, f) {
|
|
1341
|
+
return t.set(l, f.trim()), l;
|
|
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(f, c, p) {
|
|
1350
|
+
return Y(this, arguments, function* (n, e, t, l = []) {
|
|
1351
|
+
let w = xi(n, e);
|
|
1352
|
+
for (let g of w.keys()) {
|
|
1353
|
+
let R = w.get(g), k = yield t.apply(null, [R, g, ...l]);
|
|
1354
|
+
if (g === n)
|
|
1355
|
+
return k;
|
|
1356
|
+
n = Pn(n, g, k);
|
|
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 (l) {
|
|
1399
|
+
return e;
|
|
1400
|
+
}
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
function $i(n, e, t) {
|
|
1404
|
+
return Y(this, null, function* () {
|
|
1405
|
+
let l = `/sys/fillRule/executeRuleByCode/${n}`, f = {};
|
|
1406
|
+
typeof t == "function" ? f = t() : t && (f = me({}, t));
|
|
1407
|
+
let { success: c, message: p, result: w } = yield ge.put({ url: l, params: f }, { isTransformResponse: !1 });
|
|
1408
|
+
return c ? 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, l = F([]), f = F(""), c = F({}), p = Se({}), w = F(!1), g = F([]), R = F({}), k = {}, b = F([]), S = Se({}), _ = F("");
|
|
1415
|
+
_.value = { sm: 24, xs: 24, md: 12, lg: 12, xl: 12, xxl: 12 };
|
|
1416
|
+
function E(T, L, H) {
|
|
1417
|
+
var r;
|
|
1418
|
+
Li(S), S[f.value] = [];
|
|
1419
|
+
let q = [], W = [], P = [], O = {}, v = {};
|
|
1420
|
+
Object.keys(T).map((h) => {
|
|
1421
|
+
const a = T[h];
|
|
1422
|
+
if (a.view == "tab") {
|
|
1423
|
+
w.value = !0, S[h] = [];
|
|
1424
|
+
let u = {
|
|
1425
|
+
key: h,
|
|
1426
|
+
// 这个foreignKey是主表的字段
|
|
1427
|
+
foreignKey: a.foreignKey,
|
|
1428
|
+
describe: a.describe,
|
|
1429
|
+
relationType: a.relationType,
|
|
1430
|
+
requiredFields: a.required || [],
|
|
1431
|
+
order: a.order,
|
|
1432
|
+
id: a.id
|
|
1433
|
+
};
|
|
1434
|
+
a.relationType == 1 ? (k[h] = F(null), u.properties = a.properties) : (V(a), k[h] = F(), u.columns = a.columns, O[h] = []), q.push(u), Vi(h, a);
|
|
1435
|
+
} else if (Ti(h, a, S[f.value]), a.view === nt) {
|
|
1436
|
+
let u = Ai(a, h);
|
|
1437
|
+
for (let i of u) {
|
|
1438
|
+
p[i.key] = !0, p[i.key + "_load"] = !0;
|
|
1439
|
+
let o = He.createFormSchema(i.key, i);
|
|
1440
|
+
H && o.setOnlyValidateFun(H), o.isRequired(L), o.setFormRef(e), o.handleWidgetAttr(a);
|
|
1441
|
+
let s = mt(W, i.key);
|
|
1442
|
+
s == -1 ? W.push(o) : W[s] = o;
|
|
1443
|
+
}
|
|
1444
|
+
} else if (p[h] = !0, p[h + "_load"] = !0, mt(W, h) == -1) {
|
|
1445
|
+
let i = He.createFormSchema(h, a);
|
|
1446
|
+
if (H && i.setOnlyValidateFun(H), i.isRequired(L), i.setFormRef(e), W.push(i), P.push(...i.getRelatedHideFields()), a.view === ki) {
|
|
1447
|
+
let o = i.getLinkFieldInfo();
|
|
1448
|
+
o && (v[o[0]] ? v[o[0]].push(o[1]) : v[o[0]] = [o[1]]);
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}), W.sort(function(h, a) {
|
|
1452
|
+
return h.order - a.order;
|
|
1453
|
+
});
|
|
1454
|
+
let y = [];
|
|
1455
|
+
y.push(He.createIdField());
|
|
1456
|
+
for (let h of W) {
|
|
1457
|
+
h.view && h.view == Ei && v[h.field] && h.setOtherInfo(v[h.field]), P.indexOf(h.field) >= 0 && h.isHidden(), t && h.setCustomPopContainer(t);
|
|
1458
|
+
const a = h.getFormItemSchema();
|
|
1459
|
+
a.component === "JDictSelectTag" && ((r = h == null ? void 0 : h._data) == null ? void 0 : r.type) === "number" && (a.componentProps.stringToNumber = !0), y.push(a);
|
|
1460
|
+
}
|
|
1461
|
+
l.value = y, q.sort(function(h, a) {
|
|
1462
|
+
return h.order - a.order;
|
|
1463
|
+
}), q.forEach((h) => {
|
|
1464
|
+
const a = h.columns;
|
|
1465
|
+
h.columns && a.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
|
+
}), g.value = q, R.value = O;
|
|
1469
|
+
}
|
|
1470
|
+
he(
|
|
1471
|
+
p,
|
|
1472
|
+
(T) => {
|
|
1473
|
+
let L = e.value, H = [], q = be(T);
|
|
1474
|
+
Object.keys(q).map((W) => {
|
|
1475
|
+
if (!W.endsWith("_load")) {
|
|
1476
|
+
let P = {
|
|
1477
|
+
field: W,
|
|
1478
|
+
show: q[W]
|
|
1479
|
+
}, O = W + "_load";
|
|
1480
|
+
q.hasOwnProperty(O) && (P.ifShow = q[O]), H.push(P);
|
|
1481
|
+
}
|
|
1482
|
+
}), L && L.updateSchema(H);
|
|
1483
|
+
},
|
|
1484
|
+
{ immediate: !1 }
|
|
1485
|
+
);
|
|
1486
|
+
function V(T) {
|
|
1487
|
+
Rt(T, (L) => {
|
|
1488
|
+
Oi(L, S[T.key]);
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
he(
|
|
1492
|
+
() => n.formTemplate,
|
|
1493
|
+
() => {
|
|
1494
|
+
_.value = A();
|
|
1495
|
+
},
|
|
1496
|
+
{ immediate: !0 }
|
|
1497
|
+
);
|
|
1498
|
+
function A() {
|
|
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 D(T, L) {
|
|
1503
|
+
return new Promise((H) => {
|
|
1504
|
+
L || H("");
|
|
1505
|
+
let W = {
|
|
1506
|
+
tableName: f.value.replace(/\$\d+/, ""),
|
|
1507
|
+
fieldName: T.field,
|
|
1508
|
+
fieldVal: L
|
|
1509
|
+
}, P = c.value;
|
|
1510
|
+
P.id && (W.dataId = P.id), Tn(W).then((O) => {
|
|
1511
|
+
O.success ? H("") : H(O.message);
|
|
1512
|
+
}).catch((O) => {
|
|
1513
|
+
H(O);
|
|
1514
|
+
});
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
function B(T) {
|
|
1518
|
+
return Object.keys(T).map((L) => {
|
|
1519
|
+
T[L] && T[L] instanceof Array && (T[L] = T[L].join(","));
|
|
1520
|
+
}), T;
|
|
1521
|
+
}
|
|
1522
|
+
return {
|
|
1523
|
+
formSchemas: l,
|
|
1524
|
+
defaultValueFields: S,
|
|
1525
|
+
tableName: f,
|
|
1526
|
+
dbData: c,
|
|
1527
|
+
checkOnlyFieldValue: D,
|
|
1528
|
+
createFormSchemas: E,
|
|
1529
|
+
fieldDisplayStatus: p,
|
|
1530
|
+
subTabInfo: g,
|
|
1531
|
+
hasSubTable: w,
|
|
1532
|
+
subDataSource: R,
|
|
1533
|
+
baseColProps: _,
|
|
1534
|
+
changeDataIfArray2String: B,
|
|
1535
|
+
linkDownList: b,
|
|
1536
|
+
refMap: k
|
|
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((c) => {
|
|
1550
|
+
c.type === "radio" ? c.type = "select" : t[c.type] ? c.type = t[c.type] : c.type === "popup" && l(c), c.type === "depart-select" && (c.checkStrictly = !0), c.type === "user-select" && f(c), c.type === "pca" && (c.width = "230px"), (c.width == 120 || c.width == "120px") && (c.type == "image" || c.type == "file") && (c.width = "130px"), c.width || (c.width = "200px"), e && e(c);
|
|
1551
|
+
});
|
|
1552
|
+
function l(c) {
|
|
1553
|
+
let { destFields: p, orgFields: w } = c, g = [];
|
|
1554
|
+
if (!(!p || p.length == 0)) {
|
|
1555
|
+
let R = p.split(","), k = w.split(",");
|
|
1556
|
+
for (let b = 0; b < R.length; b++)
|
|
1557
|
+
g.push({
|
|
1558
|
+
target: R[b],
|
|
1559
|
+
source: k[b]
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
c.fieldConfig = g;
|
|
1563
|
+
}
|
|
1564
|
+
function f(c) {
|
|
1565
|
+
let p = c.fieldExtendJson, w = !1;
|
|
1566
|
+
if (p)
|
|
1567
|
+
try {
|
|
1568
|
+
JSON.parse(p).multiSelect === !1 && (w = !0);
|
|
1569
|
+
} catch (g) {
|
|
1570
|
+
}
|
|
1571
|
+
c.isRadioSelection = w;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
function ji() {
|
|
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(c, p) {
|
|
1601
|
+
return Reflect.get(n, p);
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1604
|
+
function l(c, p) {
|
|
1605
|
+
n[c] = p;
|
|
1606
|
+
}
|
|
1607
|
+
function f(c) {
|
|
1608
|
+
Object.keys(c).map((p) => {
|
|
1609
|
+
n[p] = c[p];
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1612
|
+
return l("$nextTick", Ee), l("addObject2Context", l), { onlineFormContext: t, addObject2Context: l, resetContext: f };
|
|
1613
|
+
}
|
|
1614
|
+
function Ai(n, e) {
|
|
1615
|
+
const {
|
|
1616
|
+
config: { table: t, key: l, txt: f, linkField: c, idField: p, pidField: w, condition: g },
|
|
1617
|
+
others: R,
|
|
1618
|
+
order: k,
|
|
1619
|
+
title: b
|
|
1620
|
+
} = n;
|
|
1621
|
+
let S = {
|
|
1622
|
+
dictTable: t,
|
|
1623
|
+
dictText: f,
|
|
1624
|
+
dictCode: l,
|
|
1625
|
+
pidField: w,
|
|
1626
|
+
idField: p,
|
|
1627
|
+
view: nt,
|
|
1628
|
+
type: n.type
|
|
1629
|
+
}, _ = [], E = me({
|
|
1630
|
+
key: e,
|
|
1631
|
+
title: b,
|
|
1632
|
+
order: k,
|
|
1633
|
+
condition: g,
|
|
1634
|
+
origin: !0
|
|
1635
|
+
}, S);
|
|
1636
|
+
if (c && c.length > 0) {
|
|
1637
|
+
let V = c.split(",");
|
|
1638
|
+
E.next = V[0];
|
|
1639
|
+
for (let A = 0; A < V.length; A++)
|
|
1640
|
+
for (let D of R)
|
|
1641
|
+
if (D.field == V[A]) {
|
|
1642
|
+
let B = me({
|
|
1643
|
+
key: D.field,
|
|
1644
|
+
title: D.title,
|
|
1645
|
+
order: D.order,
|
|
1646
|
+
origin: !1
|
|
1647
|
+
}, S);
|
|
1648
|
+
A + 1 < V.length && (B.next = V[A + 1]), _.push(B);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
return _.push(E), _;
|
|
1652
|
+
}
|
|
1653
|
+
function mt(n, e) {
|
|
1654
|
+
let t = -1;
|
|
1655
|
+
for (let l = 0; l < n.length; l++)
|
|
1656
|
+
if (n[l].field === e) {
|
|
1657
|
+
t = l;
|
|
1658
|
+
break;
|
|
1659
|
+
}
|
|
1660
|
+
return t;
|
|
1661
|
+
}
|
|
1662
|
+
function De(n) {
|
|
1663
|
+
return new Promise((e) => {
|
|
1664
|
+
(function t() {
|
|
1665
|
+
let l = n.value;
|
|
1666
|
+
l ? e(l) : 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, l = Hn + n + ":";
|
|
1680
|
+
t || (t = []), Ni.setOnlineSubTableAuth(l, t);
|
|
1681
|
+
}
|
|
1682
|
+
function ps(n) {
|
|
1683
|
+
const e = F([]), t = {}, l = Se({}), f = F(!1), c = F([]), p = F({}), w = de(() => {
|
|
1684
|
+
let S = n.formTemplate;
|
|
1685
|
+
return S == "2" ? 12 : S == "3" ? 8 : S == "4" ? 6 : 24;
|
|
1686
|
+
});
|
|
1687
|
+
function g(S) {
|
|
1688
|
+
let _ = [], E = [], V = {};
|
|
1689
|
+
Object.keys(S).map((A) => {
|
|
1690
|
+
const D = S[A];
|
|
1691
|
+
if (D.view == "tab") {
|
|
1692
|
+
f.value = !0;
|
|
1693
|
+
let B = {
|
|
1694
|
+
key: A,
|
|
1695
|
+
// 这个foreignKey是主表的字段
|
|
1696
|
+
foreignKey: D.foreignKey,
|
|
1697
|
+
describe: D.describe,
|
|
1698
|
+
relationType: D.relationType,
|
|
1699
|
+
requiredFields: D.required || [],
|
|
1700
|
+
order: D.order
|
|
1701
|
+
};
|
|
1702
|
+
D.relationType == 1 ? (t[A] = F(null), B.properties = D.properties) : (R(D), t[A] = F(), B.columns = D.columns, V[A] = [], l[A] = !1), _.push(B);
|
|
1703
|
+
} else if (D.view === nt) {
|
|
1704
|
+
let B = b(D, A);
|
|
1705
|
+
for (let T of B) {
|
|
1706
|
+
let L = k(E, 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
|
+
L == -1 ? E.push(H) : E[L] = H;
|
|
1715
|
+
}
|
|
1716
|
+
} else if (D.view != "hidden") {
|
|
1717
|
+
if (k(E, A) == -1) {
|
|
1718
|
+
let T = Object.assign(
|
|
1719
|
+
{
|
|
1720
|
+
field: A,
|
|
1721
|
+
label: D.title
|
|
1722
|
+
},
|
|
1723
|
+
Le(D, ["view", "order", "fieldExtendJson", "dictTable", "dictText", "dictCode", "dict"])
|
|
1724
|
+
);
|
|
1725
|
+
if (D.view == "file" && (T.span = 24, T.isFile = !0), D.view == "image" && (T.span = 24, T.isImage = !0), D.view == "link_table" && D.fieldExtendJson)
|
|
1726
|
+
try {
|
|
1727
|
+
let L = JSON.parse(D.fieldExtendJson);
|
|
1728
|
+
L.showType != "select" && (T.isCard = !0), L.multiSelect == !0 && (T.multi = !0);
|
|
1729
|
+
} catch (L) {
|
|
1730
|
+
}
|
|
1731
|
+
(D.view == "umeditor" || D.view == "markdown") && (T.isHtml = !0, T.span = 24), E.push(T);
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}), E.sort(function(A, D) {
|
|
1735
|
+
return A.order - D.order;
|
|
1736
|
+
}), _.sort(function(A, D) {
|
|
1737
|
+
return A.order - D.order;
|
|
1738
|
+
}), c.value = _;
|
|
1739
|
+
for (let A = 0; A < E.length; A++) {
|
|
1740
|
+
let D = E[A];
|
|
1741
|
+
if ((D.isFile === !0 || D.isImage === !0 || D.isHtml === !0) && A > 0) {
|
|
1742
|
+
let B = E[A - 1], T = B.span || w.value;
|
|
1743
|
+
B.span = T;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
e.value = E, p.value = V;
|
|
1747
|
+
}
|
|
1748
|
+
function R(S) {
|
|
1749
|
+
Rt(S);
|
|
1750
|
+
}
|
|
1751
|
+
function k(S, _) {
|
|
1752
|
+
let E = -1;
|
|
1753
|
+
for (let V = 0; V < S.length; V++)
|
|
1754
|
+
if (S[V].field === _) {
|
|
1755
|
+
E = V;
|
|
1756
|
+
break;
|
|
1757
|
+
}
|
|
1758
|
+
return E;
|
|
1759
|
+
}
|
|
1760
|
+
function b(S, _) {
|
|
1761
|
+
let E = [];
|
|
1762
|
+
const {
|
|
1763
|
+
config: { table: V, key: A, txt: D, linkField: B },
|
|
1764
|
+
order: T,
|
|
1765
|
+
title: L,
|
|
1766
|
+
others: H
|
|
1767
|
+
} = S;
|
|
1768
|
+
let W = {
|
|
1769
|
+
view: "link_down",
|
|
1770
|
+
order: T,
|
|
1771
|
+
title: L,
|
|
1772
|
+
dictTable: JSON.stringify({
|
|
1773
|
+
table: V,
|
|
1774
|
+
key: A,
|
|
1775
|
+
txt: D
|
|
1776
|
+
})
|
|
1777
|
+
};
|
|
1778
|
+
if (E.push(Object.assign({}, { linkField: B, key: _ }, W)), B) {
|
|
1779
|
+
let P = B.split(",");
|
|
1780
|
+
for (let O of P) {
|
|
1781
|
+
let v = "";
|
|
1782
|
+
for (let y of H)
|
|
1783
|
+
y.field == O && (v = y.title);
|
|
1784
|
+
E.push(Object.assign({}, { key: O }, W, { title: v }));
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return E;
|
|
1788
|
+
}
|
|
1789
|
+
return {
|
|
1790
|
+
detailFormSchemas: e,
|
|
1791
|
+
hasSubTable: f,
|
|
1792
|
+
subTabInfo: c,
|
|
1793
|
+
refMap: t,
|
|
1794
|
+
showStatus: l,
|
|
1795
|
+
createFormSchemas: g,
|
|
1796
|
+
formSpan: w,
|
|
1797
|
+
subDataSource: p
|
|
1798
|
+
};
|
|
1799
|
+
}
|
|
1800
|
+
function Bi(n, e = !0) {
|
|
1801
|
+
let t = Se({});
|
|
1802
|
+
const l = (b, S) => ge.get({ url: b, params: S }, { isTransformResponse: !1 }), f = (b, S) => ge.post({ url: b, params: S }, { isTransformResponse: !1 }), c = (b, S) => ge.put({ url: b, params: S }, { isTransformResponse: !1 }), p = (b, S) => ge.delete({ url: b, params: S }, { isTransformResponse: !1 });
|
|
1803
|
+
e === !0 ? (n._getAction = l, n._postAction = f, n._putAction = c, n._deleteAction = p) : (n.addObject2Context("_getAction", l), n.addObject2Context("_postAction", f), n.addObject2Context("_putAction", c), n.addObject2Context("_deleteAction", p));
|
|
1804
|
+
function w(b) {
|
|
1805
|
+
if (b) {
|
|
1806
|
+
const S = et(b);
|
|
1807
|
+
return new S(l, f, p);
|
|
1808
|
+
} else
|
|
1809
|
+
return {};
|
|
1810
|
+
}
|
|
1811
|
+
function g(b, S) {
|
|
1812
|
+
t && t[S] && t[S](b);
|
|
1813
|
+
}
|
|
1814
|
+
function R(b, S) {
|
|
1815
|
+
return t && t.beforeSubmit ? t.beforeSubmit(b, S) : Promise.resolve();
|
|
1816
|
+
}
|
|
1817
|
+
function k(b, S) {
|
|
1818
|
+
return t && t.beforeDelete ? t.beforeDelete(b, S) : Promise.resolve();
|
|
1819
|
+
}
|
|
1820
|
+
return e === !0 && n && (n.beforeDelete = (b) => {
|
|
1821
|
+
const S = n.EnhanceJS;
|
|
1822
|
+
return S && S.beforeDelete ? S.beforeDelete(n, b) : Promise.resolve();
|
|
1823
|
+
}, n.beforeEdit = (b) => {
|
|
1824
|
+
const S = n.EnhanceJS;
|
|
1825
|
+
return S && S.beforeEdit ? S.beforeEdit(n, b) : Promise.resolve();
|
|
1826
|
+
}), {
|
|
1827
|
+
EnhanceJS: t,
|
|
1828
|
+
initCgEnhanceJs: w,
|
|
1829
|
+
customBeforeSubmit: R,
|
|
1830
|
+
beforeDelete: k,
|
|
1831
|
+
triggerJsFun: g
|
|
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), l = F(!1);
|
|
1873
|
+
Xe();
|
|
1874
|
+
const {
|
|
1875
|
+
formSchemas: f,
|
|
1876
|
+
defaultValueFields: c,
|
|
1877
|
+
changeDataIfArray2String: p,
|
|
1878
|
+
tableName: w,
|
|
1879
|
+
dbData: g,
|
|
1880
|
+
checkOnlyFieldValue: R,
|
|
1881
|
+
fieldDisplayStatus: k,
|
|
1882
|
+
createFormSchemas: b,
|
|
1883
|
+
baseColProps: S
|
|
1884
|
+
} = Mt(n, t), [_, { setProps: E, validate: V, resetFields: A, setFieldsValue: D, getFieldsValue: B }] = St({
|
|
1885
|
+
schemas: f,
|
|
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
|
+
(r) => {
|
|
1898
|
+
l.value = !1, T(), b(n.properties, n.requiredFields, R), l.value = !0;
|
|
1899
|
+
},
|
|
1900
|
+
{ deep: !0, immediate: !0 }
|
|
1901
|
+
), he(
|
|
1902
|
+
() => n.mainId,
|
|
1903
|
+
(r) => {
|
|
1904
|
+
setTimeout(() => {
|
|
1905
|
+
H();
|
|
1906
|
+
}, 100);
|
|
1907
|
+
},
|
|
1908
|
+
{ immediate: !0 }
|
|
1909
|
+
), he(
|
|
1910
|
+
() => n.disabled,
|
|
1911
|
+
(r) => {
|
|
1912
|
+
E({ disabled: r });
|
|
1913
|
+
}
|
|
1914
|
+
);
|
|
1915
|
+
function T() {
|
|
1916
|
+
return Y(this, null, function* () {
|
|
1917
|
+
let r = yield De(t);
|
|
1918
|
+
r.$formValueChange = (h, a) => {
|
|
1919
|
+
let u = { [h]: a };
|
|
1920
|
+
e("formChange", u);
|
|
1921
|
+
};
|
|
1922
|
+
});
|
|
1923
|
+
}
|
|
1924
|
+
function L() {
|
|
1925
|
+
if (Pe(n.isUpdate) === !1) {
|
|
1926
|
+
let r = be(c[w.value]);
|
|
1927
|
+
Ze(r, (h) => {
|
|
1928
|
+
D(h);
|
|
1929
|
+
});
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
function H() {
|
|
1933
|
+
return Y(this, null, function* () {
|
|
1934
|
+
yield De(l), yield A(), L();
|
|
1935
|
+
const { table: r, mainId: h } = n;
|
|
1936
|
+
if (!r || !h)
|
|
1937
|
+
return;
|
|
1938
|
+
let a = yield q(r, h);
|
|
1939
|
+
g.value = a, yield D(a);
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
function q(r, h) {
|
|
1943
|
+
let a = `${Wi}/${r}/${h}`;
|
|
1944
|
+
return new Promise((u, i) => {
|
|
1945
|
+
ge.get({ url: a }, { isTransformResponse: !1 }).then((o) => {
|
|
1946
|
+
o.success ? u(o.result) : i();
|
|
1947
|
+
});
|
|
1948
|
+
}).finally(() => {
|
|
1949
|
+
g.value = "";
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
function W() {
|
|
1953
|
+
return new Promise((r, h) => {
|
|
1954
|
+
V().then(() => {
|
|
1955
|
+
let a = B();
|
|
1956
|
+
a = p(a), r(a);
|
|
1957
|
+
}).catch((a) => {
|
|
1958
|
+
h(a);
|
|
1959
|
+
});
|
|
1960
|
+
});
|
|
1961
|
+
}
|
|
1962
|
+
function P() {
|
|
1963
|
+
let r = B();
|
|
1964
|
+
return r.id || (r.id = "sub-change-temp-id"), {
|
|
1965
|
+
row: r,
|
|
1966
|
+
target: y
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1969
|
+
function O(r) {
|
|
1970
|
+
D(r);
|
|
1971
|
+
}
|
|
1972
|
+
function v() {
|
|
1973
|
+
let r = B(), h = be(c[w.value]);
|
|
1974
|
+
Ze(h, (a) => {
|
|
1975
|
+
D(a);
|
|
1976
|
+
}, r);
|
|
1977
|
+
}
|
|
1978
|
+
const y = {
|
|
1979
|
+
onlineFormRef: t,
|
|
1980
|
+
baseColProps: S,
|
|
1981
|
+
formSchemas: f,
|
|
1982
|
+
registerForm: _,
|
|
1983
|
+
setFieldsValue: D,
|
|
1984
|
+
getFieldsValue: B,
|
|
1985
|
+
getFormEvent: P,
|
|
1986
|
+
setValues: O,
|
|
1987
|
+
getAll: W,
|
|
1988
|
+
executeFillRule: v,
|
|
1989
|
+
sh: k
|
|
1990
|
+
};
|
|
1991
|
+
return y;
|
|
1992
|
+
}
|
|
1993
|
+
};
|
|
1994
|
+
function Ji(n, e, t, l, f, c) {
|
|
1995
|
+
const p = se("BasicForm");
|
|
1996
|
+
return Z(), Oe(p, {
|
|
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(), [l, { openModal: f }] = xe(), c = F(""), p = F(null), w = F(!0), g = F(!1), R = F(1), k = F(!1), b = F(!1), S = Se({
|
|
2060
|
+
reportPrintShow: 0,
|
|
2061
|
+
reportPrintUrl: "",
|
|
2062
|
+
joinQuery: 0,
|
|
2063
|
+
modelFullscreen: 0,
|
|
2064
|
+
modalMinWidth: ""
|
|
2065
|
+
}), { onlineFormContext: _, resetContext: E } = ji(), {
|
|
2066
|
+
formSchemas: V,
|
|
2067
|
+
defaultValueFields: A,
|
|
2068
|
+
changeDataIfArray2String: D,
|
|
2069
|
+
tableName: B,
|
|
2070
|
+
dbData: T,
|
|
2071
|
+
checkOnlyFieldValue: L,
|
|
2072
|
+
hasSubTable: H,
|
|
2073
|
+
subTabInfo: q,
|
|
2074
|
+
refMap: W,
|
|
2075
|
+
subDataSource: P,
|
|
2076
|
+
baseColProps: O,
|
|
2077
|
+
createFormSchemas: v,
|
|
2078
|
+
fieldDisplayStatus: y
|
|
2079
|
+
} = Mt(n, p);
|
|
2080
|
+
let { EnhanceJS: r, initCgEnhanceJs: h } = Bi(_, !1);
|
|
2081
|
+
const [a, { setProps: u, validate: i, resetFields: o, setFieldsValue: s, updateSchema: C, getFieldsValue: I, scrollToField: $ }] = St({
|
|
2082
|
+
schemas: V,
|
|
2083
|
+
showActionButtonGroup: !1,
|
|
2084
|
+
baseColProps: O
|
|
2085
|
+
}), M = F(!1);
|
|
2086
|
+
function U() {
|
|
2087
|
+
let d = n.disabled;
|
|
2088
|
+
M.value = d, u({ disabled: d });
|
|
2089
|
+
}
|
|
2090
|
+
function z(d, m, x) {
|
|
2091
|
+
return Y(this, null, function* () {
|
|
2092
|
+
yield o(), T.value = "";
|
|
2093
|
+
let N = Pe(d);
|
|
2094
|
+
b.value = N, N && (yield G(m)), yield Ee(() => {
|
|
2095
|
+
!N && x && s(x), ee(), Be("js", "loaded"), U();
|
|
2096
|
+
});
|
|
2097
|
+
});
|
|
2098
|
+
}
|
|
2099
|
+
function ee() {
|
|
2100
|
+
if (Pe(b) === !1) {
|
|
2101
|
+
let d = be(A[B.value]);
|
|
2102
|
+
Ze(d, (m) => {
|
|
2103
|
+
s(m);
|
|
2104
|
+
});
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
function G(d) {
|
|
2108
|
+
return Y(this, null, function* () {
|
|
2109
|
+
let m = yield J(d.id);
|
|
2110
|
+
(!m || Object.keys(m).length == 0) && (m = me({}, be(d))), T.value = Object.assign({}, m);
|
|
2111
|
+
let x = te.value, N = Le(m, ...x);
|
|
2112
|
+
n.isVxeTableData === !0 && (N = Object.assign({}, N, d)), yield s(N);
|
|
2113
|
+
});
|
|
2114
|
+
}
|
|
2115
|
+
let te = de(() => {
|
|
2116
|
+
let d = V.value, m = [];
|
|
2117
|
+
for (let x of d)
|
|
2118
|
+
m.push(x.field);
|
|
2119
|
+
return m;
|
|
2120
|
+
});
|
|
2121
|
+
function J(d) {
|
|
2122
|
+
let m = `${ze.optPre}${n.id}/${d}`;
|
|
2123
|
+
return new Promise((x, N) => {
|
|
2124
|
+
ge.get({ url: m }, { isTransformResponse: !1 }).then((le) => {
|
|
2125
|
+
le.success ? x(le.result) : (N(), t.warning(le.message));
|
|
2126
|
+
}).catch(() => {
|
|
2127
|
+
N();
|
|
2128
|
+
});
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
function K(d) {
|
|
2132
|
+
return Y(this, null, function* () {
|
|
2133
|
+
R.value = d.head.tableType, B.value = d.head.tableName, w.value = d.head.tableType == 1, X(d.head.extConfigJson), v(d.schema.properties, d.schema.required, L), r = h(d.enhanceJs), e("rendered", S);
|
|
2134
|
+
let m = yield De(p);
|
|
2135
|
+
m.$formValueChange = (x, N, le) => {
|
|
2136
|
+
Yt(x, N), le && s(le);
|
|
2137
|
+
};
|
|
2138
|
+
});
|
|
2139
|
+
}
|
|
2140
|
+
function X(d) {
|
|
2141
|
+
let m = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
|
|
2142
|
+
d && (m = JSON.parse(d)), Object.keys(m).map((x) => {
|
|
2143
|
+
S[x] = m[x];
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2146
|
+
function ne() {
|
|
2147
|
+
w.value === !0 ? pe() : ie();
|
|
2148
|
+
}
|
|
2149
|
+
function ie() {
|
|
2150
|
+
j().then((d) => {
|
|
2151
|
+
Fe(d);
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
function j() {
|
|
2155
|
+
let d = {};
|
|
2156
|
+
return new Promise((m, x) => {
|
|
2157
|
+
i().then(
|
|
2158
|
+
(N) => m(N),
|
|
2159
|
+
({ errorFields: N }) => {
|
|
2160
|
+
N && N.length > 0 && $(N[0][0]), x(Re);
|
|
2161
|
+
}
|
|
2162
|
+
);
|
|
2163
|
+
}).then((m) => (Object.assign(d, D(m)), ve())).then((m) => (Object.assign(d, m), Promise.resolve(d))).catch((m) => ((m === Re || (m == null ? void 0 : m.code) === Re) && (t.warning("校验未通过"), m.key && ae(m.key)), Promise.reject(null)));
|
|
2164
|
+
}
|
|
2165
|
+
function ae(d) {
|
|
2166
|
+
let m = q.value;
|
|
2167
|
+
for (let x = 0; x < m.length; x++)
|
|
2168
|
+
if (d == m[x].key) {
|
|
2169
|
+
Ve.value = x + "";
|
|
2170
|
+
break;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
function ve() {
|
|
2174
|
+
return new Promise((d, m) => Y(this, null, function* () {
|
|
2175
|
+
let x = {};
|
|
2176
|
+
try {
|
|
2177
|
+
let N = q.value;
|
|
2178
|
+
for (let le = 0; le < N.length; le++) {
|
|
2179
|
+
let ye = N[le].key, Ce = W[ye].value;
|
|
2180
|
+
if (Ce instanceof Array && (Ce = Ce[0]), N[le].relationType == 1)
|
|
2181
|
+
try {
|
|
2182
|
+
let We = yield Ce.getAll();
|
|
2183
|
+
x[ye] = [], x[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
|
+
x[ye] = Ce.getTableData();
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
} catch (N) {
|
|
2194
|
+
m(N);
|
|
2195
|
+
}
|
|
2196
|
+
d(x);
|
|
2197
|
+
}));
|
|
2198
|
+
}
|
|
2199
|
+
function pe() {
|
|
2200
|
+
return Y(this, null, function* () {
|
|
2201
|
+
try {
|
|
2202
|
+
let d = yield i();
|
|
2203
|
+
d = Object.assign({}, T.value, d), d = D(d), g.value = !0, Fe(d);
|
|
2204
|
+
} finally {
|
|
2205
|
+
g.value = !1;
|
|
2206
|
+
}
|
|
2207
|
+
});
|
|
2208
|
+
}
|
|
2209
|
+
function Fe(d) {
|
|
2210
|
+
Kt(rt, d).then(() => {
|
|
2211
|
+
ln(d);
|
|
2212
|
+
}).catch((m) => {
|
|
2213
|
+
t.warning(m);
|
|
2214
|
+
});
|
|
2215
|
+
}
|
|
2216
|
+
function Ie(d, m, x) {
|
|
2217
|
+
m && x ? x.setValues ? x.setValues(d) : x.setValues([
|
|
2218
|
+
{
|
|
2219
|
+
rowKey: m,
|
|
2220
|
+
values: d
|
|
2221
|
+
}
|
|
2222
|
+
]) : s(d);
|
|
2223
|
+
}
|
|
2224
|
+
function Vt(d, m) {
|
|
2225
|
+
let x = {};
|
|
2226
|
+
x[d] = m, s(x);
|
|
2227
|
+
}
|
|
2228
|
+
const Ve = F("0"), it = F(300), lt = F(340);
|
|
2229
|
+
function Bt(d) {
|
|
2230
|
+
if (b.value === !0) {
|
|
2231
|
+
let m = T.value;
|
|
2232
|
+
return Wt(m, d);
|
|
2233
|
+
}
|
|
2234
|
+
return "";
|
|
2235
|
+
}
|
|
2236
|
+
function Wt(d, m) {
|
|
2237
|
+
if (d) {
|
|
2238
|
+
let x = d[m];
|
|
2239
|
+
return !x && x !== 0 && (x = d[m.toLowerCase()], !x && x !== 0 && (x = d[m.toUpperCase()])), x;
|
|
2240
|
+
}
|
|
2241
|
+
return "";
|
|
2242
|
+
}
|
|
2243
|
+
function Ut(d, m) {
|
|
2244
|
+
if (r && r[m + "_onlChange"]) {
|
|
2245
|
+
let x = r[m + "_onlChange"](), N = Object.keys(d)[0];
|
|
2246
|
+
if (x[N]) {
|
|
2247
|
+
let le = W[m].value;
|
|
2248
|
+
le instanceof Array && (le = le[0]);
|
|
2249
|
+
let ye = le.getFormEvent(), Ce = me({
|
|
2250
|
+
column: { key: N },
|
|
2251
|
+
value: d[N]
|
|
2252
|
+
}, ye);
|
|
2253
|
+
x[N].call(_, _, Ce);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
function Jt(d, m) {
|
|
2258
|
+
if (r && r[m + "_onlChange"]) {
|
|
2259
|
+
let x = r[m + "_onlChange"](_);
|
|
2260
|
+
x[d.column.key] && x[d.column.key].call(_, _, d);
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
function Ht(d, m) {
|
|
2264
|
+
}
|
|
2265
|
+
function qt(d) {
|
|
2266
|
+
return "online_" + d + ":";
|
|
2267
|
+
}
|
|
2268
|
+
function Yt(d, m) {
|
|
2269
|
+
return Y(this, null, function* () {
|
|
2270
|
+
if (T.value[d] != m && e("dataChange", d), !r || !r.onlChange || !d)
|
|
2271
|
+
return !1;
|
|
2272
|
+
let N = r.onlChange();
|
|
2273
|
+
if (N[d]) {
|
|
2274
|
+
let ye = {
|
|
2275
|
+
row: yield I(),
|
|
2276
|
+
column: { key: d },
|
|
2277
|
+
value: m
|
|
2278
|
+
};
|
|
2279
|
+
N[d].call(_, _, ye);
|
|
2280
|
+
}
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
function Be(d, m) {
|
|
2284
|
+
if (d == "js")
|
|
2285
|
+
r && r[m] && r[m].call(_, _);
|
|
2286
|
+
else if (d == "action") {
|
|
2287
|
+
let x = T.value, N = {
|
|
2288
|
+
formId: n.id,
|
|
2289
|
+
buttonCode: m,
|
|
2290
|
+
dataId: x.id,
|
|
2291
|
+
uiFormData: Object.assign({}, x)
|
|
2292
|
+
};
|
|
2293
|
+
ge.post(
|
|
2294
|
+
{
|
|
2295
|
+
url: `${ze.urlButtonAction}`,
|
|
2296
|
+
params: N
|
|
2297
|
+
},
|
|
2298
|
+
{ isTransformResponse: !1 }
|
|
2299
|
+
).then((le) => {
|
|
2300
|
+
le.success ? t.success("处理完成!") : t.warning("处理失败!");
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
function st(d) {
|
|
2305
|
+
let m = W[d].value, x = [...m.getNewDataWithId(), ...P.value[d]];
|
|
2306
|
+
if (!x || x.length == 0)
|
|
2307
|
+
return !1;
|
|
2308
|
+
let N = [];
|
|
2309
|
+
for (let le of x)
|
|
2310
|
+
N.push(le.id);
|
|
2311
|
+
m.removeRowsById(N);
|
|
2312
|
+
}
|
|
2313
|
+
function ot(d, m) {
|
|
2314
|
+
if (!m)
|
|
2315
|
+
return !1;
|
|
2316
|
+
let x = W[d].value;
|
|
2317
|
+
typeof m == "object" ? x.addRows(m, !0) : t.error("添加子表数据,参数不识别!");
|
|
2318
|
+
}
|
|
2319
|
+
function zt(d, m) {
|
|
2320
|
+
st(d), ot(d, m);
|
|
2321
|
+
}
|
|
2322
|
+
function Qt(d, m) {
|
|
2323
|
+
!m && m.length <= 0 && (m = []), m.map((x) => {
|
|
2324
|
+
x.hasOwnProperty("label") || (x.label = x.text);
|
|
2325
|
+
}), C({
|
|
2326
|
+
field: d,
|
|
2327
|
+
componentProps: {
|
|
2328
|
+
options: m
|
|
2329
|
+
}
|
|
2330
|
+
});
|
|
2331
|
+
}
|
|
2332
|
+
function Kt(d, m) {
|
|
2333
|
+
return r && r.beforeSubmit ? r.beforeSubmit(d, m) : Promise.resolve();
|
|
2334
|
+
}
|
|
2335
|
+
function Zt(d, m) {
|
|
2336
|
+
let x = be(y);
|
|
2337
|
+
d && d.length > 0 ? Object.keys(x).map((N) => {
|
|
2338
|
+
!N.endsWith("_load") && d.indexOf(N) < 0 && (y[N] = !1);
|
|
2339
|
+
}) : m && m.length > 0 && Object.keys(x).map((N) => {
|
|
2340
|
+
m.indexOf(N) >= 0 && (y[N] = !1);
|
|
2341
|
+
});
|
|
2342
|
+
}
|
|
2343
|
+
function Gt(d) {
|
|
2344
|
+
return Y(this, null, function* () {
|
|
2345
|
+
yield o(), T.value = "", b.value = !0, yield G(d), yield Ee(() => {
|
|
2346
|
+
Be("js", "loaded");
|
|
2347
|
+
});
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2350
|
+
function Xt(d) {
|
|
2351
|
+
let m = W[d].value;
|
|
2352
|
+
return m instanceof Array && (m = m[0]), m;
|
|
2353
|
+
}
|
|
2354
|
+
function en() {
|
|
2355
|
+
let d = S.reportPrintUrl, m = T.value.id, x = Nn();
|
|
2356
|
+
xn(d, m, x);
|
|
2357
|
+
}
|
|
2358
|
+
function tn(d) {
|
|
2359
|
+
c.value = d.id, f(!0);
|
|
2360
|
+
}
|
|
2361
|
+
function nn(d) {
|
|
2362
|
+
}
|
|
2363
|
+
function ln(d) {
|
|
2364
|
+
if (Object.keys(d).map((m) => {
|
|
2365
|
+
Array.isArray(d[m]) && d[m].length == 0 && (d[m] = "");
|
|
2366
|
+
}), n.request == !1)
|
|
2367
|
+
e("success", d);
|
|
2368
|
+
else {
|
|
2369
|
+
let m = `${ze.optPre}${n.id}?tabletype=${R.value}`;
|
|
2370
|
+
k.value === !0 && (d[Wn] = 1);
|
|
2371
|
+
let x = b.value === !0 ? "put" : "post";
|
|
2372
|
+
ge.request({ url: m, method: x, params: d }, { isTransformResponse: !1 }).then((N) => {
|
|
2373
|
+
N.success ? (N.result && (d.id || (d.id = N.result)), e("success", d), T.value = d, b.value = !0, t.success("操作成功!")) : t.warning(N.message);
|
|
2374
|
+
}).finally(() => {
|
|
2375
|
+
g.value = !1;
|
|
2376
|
+
});
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
function sn() {
|
|
2380
|
+
return Y(this, null, function* () {
|
|
2381
|
+
let d = T.value, m = te.value, x = Le(d, ...m);
|
|
2382
|
+
if (d)
|
|
2383
|
+
yield s(x);
|
|
2384
|
+
else {
|
|
2385
|
+
let N = {};
|
|
2386
|
+
for (let le of m)
|
|
2387
|
+
N[le] = "";
|
|
2388
|
+
yield s(N);
|
|
2389
|
+
}
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
let rt = {
|
|
2393
|
+
tableName: B,
|
|
2394
|
+
loading: g,
|
|
2395
|
+
subActiveKey: Ve,
|
|
2396
|
+
onlineFormRef: p,
|
|
2397
|
+
getFieldsValue: I,
|
|
2398
|
+
setFieldsValue: s,
|
|
2399
|
+
submitFlowFlag: k,
|
|
2400
|
+
subFormHeight: it,
|
|
2401
|
+
subTableHeight: lt,
|
|
2402
|
+
refMap: W,
|
|
2403
|
+
triggleChangeValues: Ie,
|
|
2404
|
+
triggleChangeValue: Vt,
|
|
2405
|
+
sh: y,
|
|
2406
|
+
clearSubRows: st,
|
|
2407
|
+
addSubRows: ot,
|
|
2408
|
+
clearThenAddRows: zt,
|
|
2409
|
+
changeOptions: Qt,
|
|
2410
|
+
isUpdate: b,
|
|
2411
|
+
getSubTableInstance: Xt
|
|
2412
|
+
};
|
|
2413
|
+
return E(rt), {
|
|
2414
|
+
//主表
|
|
2415
|
+
tableName: B,
|
|
2416
|
+
onlineFormRef: p,
|
|
2417
|
+
registerForm: a,
|
|
2418
|
+
loading: g,
|
|
2419
|
+
//子表
|
|
2420
|
+
subActiveKey: Ve,
|
|
2421
|
+
hasSubTable: H,
|
|
2422
|
+
subTabInfo: q,
|
|
2423
|
+
refMap: W,
|
|
2424
|
+
//一对一子表
|
|
2425
|
+
subFormHeight: it,
|
|
2426
|
+
getSubTableForeignKeyValue: Bt,
|
|
2427
|
+
isUpdate: b,
|
|
2428
|
+
handleSubFormChange: Ut,
|
|
2429
|
+
//一对多子表
|
|
2430
|
+
subTableHeight: lt,
|
|
2431
|
+
onlineFormDisabled: M,
|
|
2432
|
+
subDataSource: P,
|
|
2433
|
+
getSubTableAuthPre: qt,
|
|
2434
|
+
handleAdded: Ht,
|
|
2435
|
+
handleValueChange: Jt,
|
|
2436
|
+
openSubFormModalForAdd: tn,
|
|
2437
|
+
openSubFormModalForEdit: nn,
|
|
2438
|
+
registerVxeFormModal: l,
|
|
2439
|
+
vxeTableId: c,
|
|
2440
|
+
//父组件调用
|
|
2441
|
+
show: z,
|
|
2442
|
+
createRootProperties: K,
|
|
2443
|
+
handleSubmit: ne,
|
|
2444
|
+
sh: y,
|
|
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, l, f, c) {
|
|
2457
|
+
const p = se("BasicForm");
|
|
2458
|
+
return Z(), ce("div", {
|
|
2459
|
+
id: l.tableName + "_form"
|
|
2460
|
+
}, [
|
|
2461
|
+
ue(p, {
|
|
2462
|
+
ref: "onlineFormRef",
|
|
2463
|
+
onRegister: l.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 l = F(null), f = F(!1), c = F(1), p = F([]), w = F(!1), g = F(0), R = F(!1), k = F(""), b = F(!1), S = F(!1), _ = F(!0), E = Se({}), V = F(!0), A = F(""), D = F(!0), B = F(!1), { popModalFixedWidth: T, resetBodyStyle: L, popBodyStyle: H } = Et(), q = F(!1), W = F(""), P = {
|
|
2473
|
+
handleOpenModal: (j) => {
|
|
2474
|
+
}
|
|
2475
|
+
}, O = F(""), v = F(""), y = F(!1);
|
|
2476
|
+
let r = {};
|
|
2477
|
+
const h = de(() => {
|
|
2478
|
+
let j = A.value;
|
|
2479
|
+
return j || (Pe(f) === !0 ? "详情" : Pe(S) === !0 ? "编辑" : "新增");
|
|
2480
|
+
}), [a, { setModalProps: u, closeModal: i }] = vt((j) => Y(this, null, function* () {
|
|
2481
|
+
A.value = "", B.value = !1, n === !0 ? yield P.handleOpenModal(j) : yield C(j), L(), t && t();
|
|
2482
|
+
})), o = F(!1);
|
|
2483
|
+
function s() {
|
|
2484
|
+
return Y(this, null, function* () {
|
|
2485
|
+
return yield De(o), q.value;
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
function C(j) {
|
|
2489
|
+
return Y(this, null, function* () {
|
|
2490
|
+
u({ confirmLoading: !1 }), S.value = j.isUpdate, f.value = j.disableSubmit || !1, (j == null ? void 0 : j.hideSub) === !0 && (V.value = !1), j != null && j.title && (A.value = j.title), j != null && j.record ? v.value = j.record.id : v.value = "", yield Ee(() => Y(this, null, function* () {
|
|
2491
|
+
yield De(w), $(), yield l.value.show(j == null ? void 0 : j.isUpdate, j == null ? void 0 : j.record, j == null ? void 0 : j.param);
|
|
2492
|
+
}));
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
function I(j) {
|
|
2496
|
+
w.value = !0, g.value = j.modalMinWidth, j.modelFullscreen == 1 ? u({ defaultFullscreen: !0 }) : u({ defaultFullscreen: !1 }), r = j;
|
|
2497
|
+
}
|
|
2498
|
+
function $() {
|
|
2499
|
+
let j = v.value;
|
|
2500
|
+
r.commentStatus == 1 && j ? (y.value = !0, u({ defaultFullscreen: !0 })) : y.value = !1;
|
|
2501
|
+
}
|
|
2502
|
+
const M = 800, U = 1100, z = de(() => {
|
|
2503
|
+
let j = 200 * (c.value - 1), ae = (Pe(_) ? M : U) + j;
|
|
2504
|
+
ae = ee(ae);
|
|
2505
|
+
let ve = g.value;
|
|
2506
|
+
return ve && ae < ve && (ae = ve), ae;
|
|
2507
|
+
});
|
|
2508
|
+
function ee(j) {
|
|
2509
|
+
let ae = E.modalMinWidth;
|
|
2510
|
+
if (ae != null && ae !== "")
|
|
2511
|
+
try {
|
|
2512
|
+
if (ae = Number.parseInt(ae), j < ae)
|
|
2513
|
+
return ae;
|
|
2514
|
+
} catch (ve) {
|
|
2515
|
+
}
|
|
2516
|
+
return j;
|
|
2517
|
+
}
|
|
2518
|
+
function G(j, ae) {
|
|
2519
|
+
l.value.handleCgButtonClick(j, ae);
|
|
2520
|
+
}
|
|
2521
|
+
function te() {
|
|
2522
|
+
b.value = !0, setTimeout(() => {
|
|
2523
|
+
b.value = !1;
|
|
2524
|
+
}, 1500), l.value.handleSubmit();
|
|
2525
|
+
}
|
|
2526
|
+
function J() {
|
|
2527
|
+
i();
|
|
2528
|
+
}
|
|
2529
|
+
function K(j, ae = {}) {
|
|
2530
|
+
let ve = `/online/cgform/api/getFormItem/${j}`;
|
|
2531
|
+
return new Promise((pe, Fe) => {
|
|
2532
|
+
ge.get({ url: ve, params: ae }, { isTransformResponse: !1 }).then((Ie) => {
|
|
2533
|
+
Ie.success ? pe(Ie.result) : Fe(Ie.message);
|
|
2534
|
+
}).catch(() => {
|
|
2535
|
+
Fe();
|
|
2536
|
+
});
|
|
2537
|
+
});
|
|
2538
|
+
}
|
|
2539
|
+
function X(j, ae, ve) {
|
|
2540
|
+
return Y(this, null, function* () {
|
|
2541
|
+
let pe = yield K(j, ae), Fe = pe.head.formTemplate;
|
|
2542
|
+
c.value = Fe ? Number(Fe) : 1, p.value = pe.cgButtonList, R.value = pe.head.isTree === "Y", k.value = pe.head.treeParentIdField || "", O.value = pe.head.tableName, W.value = pe.head.themeTemplate, pe.form_disable_update === !0 ? q.value = !0 : q.value = !1, o.value = !0, e && e("formConfig", pe), ve && ve(pe), yield Ee(() => Y(this, null, function* () {
|
|
2543
|
+
yield (yield De(l)).createRootProperties(pe);
|
|
2544
|
+
}));
|
|
2545
|
+
});
|
|
2546
|
+
}
|
|
2547
|
+
function ne(j) {
|
|
2548
|
+
j[Un] = O.value, e("success", j), D.value == !0 && i(), B.value = !1, D.value = !0;
|
|
2549
|
+
}
|
|
2550
|
+
function ie() {
|
|
2551
|
+
l.value && l.value.onCloseModal();
|
|
2552
|
+
}
|
|
2553
|
+
return {
|
|
2554
|
+
// modal
|
|
2555
|
+
title: h,
|
|
2556
|
+
modalWidth: z,
|
|
2557
|
+
registerModal: a,
|
|
2558
|
+
closeModal: i,
|
|
2559
|
+
modalObject: P,
|
|
2560
|
+
onCloseEvent: ie,
|
|
2561
|
+
// 自定义按钮
|
|
2562
|
+
cgButtonList: p,
|
|
2563
|
+
handleCgButtonClick: G,
|
|
2564
|
+
// 提交/关闭按钮
|
|
2565
|
+
disableSubmit: f,
|
|
2566
|
+
handleSubmit: te,
|
|
2567
|
+
submitLoading: b,
|
|
2568
|
+
handleCancel: J,
|
|
2569
|
+
successThenClose: D,
|
|
2570
|
+
handleSuccess: ne,
|
|
2571
|
+
topTipVisible: B,
|
|
2572
|
+
//表单
|
|
2573
|
+
handleFormConfig: X,
|
|
2574
|
+
onlineFormCompRef: l,
|
|
2575
|
+
formTemplate: c,
|
|
2576
|
+
isTreeForm: R,
|
|
2577
|
+
pidFieldName: k,
|
|
2578
|
+
renderSuccess: I,
|
|
2579
|
+
formRendered: w,
|
|
2580
|
+
isUpdate: S,
|
|
2581
|
+
showSub: V,
|
|
2582
|
+
themeTemplate: W,
|
|
2583
|
+
// 评论区域参数
|
|
2584
|
+
tableName: O,
|
|
2585
|
+
formDataId: v,
|
|
2586
|
+
enableComment: y,
|
|
2587
|
+
popBodyStyle: H,
|
|
2588
|
+
popModalFixedWidth: T,
|
|
2589
|
+
getFormStatus: s
|
|
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 l = F({});
|
|
2597
|
+
function f() {
|
|
2598
|
+
let c = window.innerHeight - 210;
|
|
2599
|
+
l.value = {
|
|
2600
|
+
height: c + "px",
|
|
2601
|
+
overflowY: "auto"
|
|
2602
|
+
};
|
|
2603
|
+
}
|
|
2604
|
+
return {
|
|
2605
|
+
popModalFixedWidth: e,
|
|
2606
|
+
popBodyStyle: l,
|
|
2607
|
+
resetBodyStyle: f
|
|
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: l,
|
|
2661
|
+
cgButtonList: f,
|
|
2662
|
+
handleCgButtonClick: c,
|
|
2663
|
+
disableSubmit: p,
|
|
2664
|
+
handleSubmit: w,
|
|
2665
|
+
submitLoading: g,
|
|
2666
|
+
handleCancel: R,
|
|
2667
|
+
handleFormConfig: k,
|
|
2668
|
+
onlineFormCompRef: b,
|
|
2669
|
+
formTemplate: S,
|
|
2670
|
+
isTreeForm: _,
|
|
2671
|
+
pidFieldName: E,
|
|
2672
|
+
renderSuccess: V,
|
|
2673
|
+
formRendered: A,
|
|
2674
|
+
handleSuccess: D,
|
|
2675
|
+
topTipVisible: B,
|
|
2676
|
+
successThenClose: T,
|
|
2677
|
+
isUpdate: L,
|
|
2678
|
+
popBodyStyle: H,
|
|
2679
|
+
popModalFixedWidth: q,
|
|
2680
|
+
getFormStatus: W
|
|
2681
|
+
} = zi(!1, { emit: e });
|
|
2682
|
+
he(() => n.id, P, { immediate: !0 });
|
|
2683
|
+
function P() {
|
|
2684
|
+
return Y(this, null, function* () {
|
|
2685
|
+
if (A.value = !1, !n.id)
|
|
2686
|
+
return;
|
|
2687
|
+
let u = {};
|
|
2688
|
+
n.formTableType && (u.tabletype = n.formTableType), yield k(n.id, u);
|
|
2689
|
+
});
|
|
2690
|
+
}
|
|
2691
|
+
function O() {
|
|
2692
|
+
n.saveClose === !1 && (T.value = !1), w();
|
|
2693
|
+
}
|
|
2694
|
+
function v() {
|
|
2695
|
+
B.value = !1, b.value.recoverFormData();
|
|
2696
|
+
}
|
|
2697
|
+
function y() {
|
|
2698
|
+
B.value = !0;
|
|
2699
|
+
}
|
|
2700
|
+
const r = de(() => L.value ? n.topTip : !1), h = de(() => {
|
|
2701
|
+
if (L.value == !0)
|
|
2702
|
+
return null;
|
|
2703
|
+
{
|
|
2704
|
+
let u = g.value;
|
|
2705
|
+
return [
|
|
2706
|
+
$e(Je, { type: "primary", loading: u, onClick: w }, () => "确定"),
|
|
2707
|
+
$e(Je, { onClick: R }, () => "关闭")
|
|
2708
|
+
];
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2711
|
+
return {
|
|
2712
|
+
title: t,
|
|
2713
|
+
topTipVisible: B,
|
|
2714
|
+
handleSaveData: O,
|
|
2715
|
+
handleRecover: v,
|
|
2716
|
+
onlineFormCompRef: b,
|
|
2717
|
+
renderSuccess: V,
|
|
2718
|
+
registerModal: l,
|
|
2719
|
+
handleSubmit: w,
|
|
2720
|
+
handleSuccess: D,
|
|
2721
|
+
handleCancel: R,
|
|
2722
|
+
formTemplate: S,
|
|
2723
|
+
disableSubmit: p,
|
|
2724
|
+
cgButtonList: f,
|
|
2725
|
+
handleCgButtonClick: c,
|
|
2726
|
+
isTreeForm: _,
|
|
2727
|
+
pidFieldName: E,
|
|
2728
|
+
submitLoading: g,
|
|
2729
|
+
handleDataChange: y,
|
|
2730
|
+
isUpdate: L,
|
|
2731
|
+
showTopTip: r,
|
|
2732
|
+
modalFooter: h,
|
|
2733
|
+
popBodyStyle: H,
|
|
2734
|
+
popModalFixedWidth: q,
|
|
2735
|
+
getFormStatus: W
|
|
2736
|
+
};
|
|
2737
|
+
}
|
|
2738
|
+
});
|
|
2739
|
+
function Ki(n, e, t, l, f, c) {
|
|
2740
|
+
const p = se("j-modal-tip"), w = se("online-pop-form"), g = se("BasicModal");
|
|
2741
|
+
return Z(), Oe(g, 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: oe(() => [
|
|
2753
|
+
_e(Te(n.title) + " ", 1),
|
|
2754
|
+
n.showTopTip ? (Z(), Oe(p, {
|
|
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: oe(() => [
|
|
2762
|
+
ue(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 jt(n) {
|
|
2793
|
+
const e = F("1"), t = F({}), l = F({}), f = F(""), c = Se({
|
|
2794
|
+
add: !0,
|
|
2795
|
+
update: !0
|
|
2796
|
+
}), p = de(() => n.textField ? n.textField.split(",") : []), w = F([]), g = de(() => {
|
|
2797
|
+
let P = w.value;
|
|
2798
|
+
return n.multi == !0 ? P.slice(0, 3) : P.slice(0, 6);
|
|
2799
|
+
});
|
|
2800
|
+
fn(() => Y(this, null, function* () {
|
|
2801
|
+
if (n.tableName) {
|
|
2802
|
+
let O = n.valueField || "", v = n.textField || "", y = [];
|
|
2803
|
+
if (O && y.push(O), v) {
|
|
2804
|
+
let h = v.split(",");
|
|
2805
|
+
f.value = h[0];
|
|
2806
|
+
for (let a of h)
|
|
2807
|
+
y.push(a);
|
|
2808
|
+
}
|
|
2809
|
+
let r = n.imageField || "";
|
|
2810
|
+
r && y.push(r), t.value = {
|
|
2811
|
+
linkTableSelectFields: y.join(",")
|
|
2812
|
+
}, yield _(), yield E();
|
|
2813
|
+
}
|
|
2814
|
+
}));
|
|
2815
|
+
const R = de(() => {
|
|
2816
|
+
let P = n.textField || "", O = [], v = "";
|
|
2817
|
+
if (P) {
|
|
2818
|
+
let y = P.split(",");
|
|
2819
|
+
v = y[0];
|
|
2820
|
+
for (let r = 0; r < y.length; r++)
|
|
2821
|
+
r > 0 && O.push(y[r]);
|
|
2822
|
+
}
|
|
2823
|
+
return {
|
|
2824
|
+
others: O,
|
|
2825
|
+
labelField: v
|
|
2826
|
+
};
|
|
2827
|
+
}), k = F([]), b = F([]), S = F({});
|
|
2828
|
+
function _() {
|
|
2829
|
+
return Y(this, null, function* () {
|
|
2830
|
+
let P = t.value;
|
|
2831
|
+
const O = yield Zi(n.tableName, P);
|
|
2832
|
+
if (b.value = O.columns, O.columns) {
|
|
2833
|
+
let v = n.imageField, y = O.columns.filter((r) => r.dataIndex != f.value && r.dataIndex != v);
|
|
2834
|
+
w.value = y;
|
|
2835
|
+
}
|
|
2836
|
+
if (S.value = O.dictOptions, O.hideColumns) {
|
|
2837
|
+
let v = O.hideColumns;
|
|
2838
|
+
v.indexOf("add") >= 0 ? c.add = !1 : c.add = !0, v.indexOf("update") >= 0 ? c.update = !1 : c.update = !0;
|
|
2839
|
+
}
|
|
2840
|
+
});
|
|
2841
|
+
}
|
|
2842
|
+
function E() {
|
|
2843
|
+
return Y(this, null, function* () {
|
|
2844
|
+
let P = A(), v = (yield pt(n.tableName, P)).records, y = [], { others: r, labelField: h } = R.value, a = n.imageField;
|
|
2845
|
+
if (v && v.length > 0)
|
|
2846
|
+
for (let u of v) {
|
|
2847
|
+
let i = me({}, u);
|
|
2848
|
+
V(i);
|
|
2849
|
+
let o = Object.assign({}, Le(i, r), { id: i.id, label: i[h], value: i[n.valueField] });
|
|
2850
|
+
a && (o[a] = i[a]), y.push(o);
|
|
2851
|
+
}
|
|
2852
|
+
y.push({}), k.value = y;
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2855
|
+
function V(P) {
|
|
2856
|
+
let O = b.value, v = S.value;
|
|
2857
|
+
for (let y of O) {
|
|
2858
|
+
const { dataIndex: r, customRender: h } = y;
|
|
2859
|
+
(P[r] || P[r] === 0) && h && h == r && v[h] && (P[r] = Ct(v[h], P[r]));
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
function A() {
|
|
2863
|
+
return Object.assign({ pageSize: 10, pageNo: e.value }, t.value, l.value);
|
|
2864
|
+
}
|
|
2865
|
+
function D(P) {
|
|
2866
|
+
if (!P)
|
|
2867
|
+
l.value = {};
|
|
2868
|
+
else {
|
|
2869
|
+
let O = p.value, v = [], y = [];
|
|
2870
|
+
for (let r = 0; r < O.length; r++)
|
|
2871
|
+
r <= 1 && (y.push(O[r]), v.push({ field: O[r], rule: "like", val: P }));
|
|
2872
|
+
v.superQueryMatchType = "or", v.superQueryParams = encodeURI(JSON.stringify(v)), l.value = v;
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
function B(P) {
|
|
2876
|
+
return Y(this, null, function* () {
|
|
2877
|
+
if (!P)
|
|
2878
|
+
return [];
|
|
2879
|
+
let O = n.valueField, v = Ue(me({}, t.value), {
|
|
2880
|
+
pageSize: 10,
|
|
2881
|
+
pageNo: e.value
|
|
2882
|
+
});
|
|
2883
|
+
v.superQueryMatchType = "and";
|
|
2884
|
+
let y = [{ field: O, rule: "in", val: P }];
|
|
2885
|
+
v.superQueryParams = encodeURI(JSON.stringify(y));
|
|
2886
|
+
let h = (yield pt(n.tableName, v)).records, a = [];
|
|
2887
|
+
if (h && h.length > 0)
|
|
2888
|
+
for (let u of h) {
|
|
2889
|
+
let i = me({}, u);
|
|
2890
|
+
V(i), a.push(i);
|
|
2891
|
+
}
|
|
2892
|
+
return a;
|
|
2893
|
+
});
|
|
2894
|
+
}
|
|
2895
|
+
function T(P, O) {
|
|
2896
|
+
if (!P || P.length == 0)
|
|
2897
|
+
return !1;
|
|
2898
|
+
let v = O.split(",");
|
|
2899
|
+
if (v.length != P.length)
|
|
2900
|
+
return !1;
|
|
2901
|
+
let y = !0;
|
|
2902
|
+
for (let r of P) {
|
|
2903
|
+
let h = r[n.valueField];
|
|
2904
|
+
v.indexOf(h) < 0 && (y = !1);
|
|
2905
|
+
}
|
|
2906
|
+
return y;
|
|
2907
|
+
}
|
|
2908
|
+
function L(P) {
|
|
2909
|
+
Object.keys(P).map((O) => {
|
|
2910
|
+
P[O] instanceof Array && (P[O] = P[O].join(","));
|
|
2911
|
+
});
|
|
2912
|
+
}
|
|
2913
|
+
function H(P, O, v) {
|
|
2914
|
+
if (v || (v = {}), O && O.length > 0)
|
|
2915
|
+
for (let y of O) {
|
|
2916
|
+
let r = y.split(","), h = r[0], a = r[1];
|
|
2917
|
+
if (P[h])
|
|
2918
|
+
P[h].push(v[a]);
|
|
2919
|
+
else {
|
|
2920
|
+
let u = v[a] || "";
|
|
2921
|
+
P[h] = [u];
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
function q(P) {
|
|
2926
|
+
if (n.imageField) {
|
|
2927
|
+
let O = P[n.imageField];
|
|
2928
|
+
return je(O);
|
|
2929
|
+
}
|
|
2930
|
+
return "";
|
|
2931
|
+
}
|
|
2932
|
+
const W = de(() => !!n.imageField);
|
|
2933
|
+
return {
|
|
2934
|
+
pageNo: e,
|
|
2935
|
+
otherColumns: w,
|
|
2936
|
+
realShowColumns: g,
|
|
2937
|
+
selectOptions: k,
|
|
2938
|
+
reloadTableLinkOptions: E,
|
|
2939
|
+
textFieldArray: p,
|
|
2940
|
+
addQueryParams: D,
|
|
2941
|
+
tableColumns: b,
|
|
2942
|
+
transData: V,
|
|
2943
|
+
mainContentField: f,
|
|
2944
|
+
loadOne: B,
|
|
2945
|
+
compareData: T,
|
|
2946
|
+
formatData: L,
|
|
2947
|
+
initFormData: H,
|
|
2948
|
+
getImageSrc: q,
|
|
2949
|
+
showImage: W,
|
|
2950
|
+
auths: c
|
|
2951
|
+
};
|
|
2952
|
+
}
|
|
2953
|
+
const Gi = {
|
|
2954
|
+
name: "LinkTableSelect",
|
|
2955
|
+
components: {
|
|
2956
|
+
PlusOutlined: Ge,
|
|
2957
|
+
EditOutlined: Sn,
|
|
2958
|
+
OnlinePopModal: Ne
|
|
2959
|
+
},
|
|
2960
|
+
props: {
|
|
2961
|
+
valueField: re.string.def(""),
|
|
2962
|
+
textField: re.string.def(""),
|
|
2963
|
+
tableName: re.string.def(""),
|
|
2964
|
+
multi: re.bool.def(!1),
|
|
2965
|
+
value: re.oneOfType([re.string, re.number, re.array]),
|
|
2966
|
+
linkFields: re.array.def([]),
|
|
2967
|
+
imageField: re.string.def("")
|
|
2968
|
+
},
|
|
2969
|
+
emits: ["change", "update:value"],
|
|
2970
|
+
setup(n, { emit: e }) {
|
|
2971
|
+
const t = mn("tableId", F(null)), l = F(), f = F([]), { auths: c, mainContentField: p, textFieldArray: w, selectOptions: g, reloadTableLinkOptions: R, addQueryParams: k, formatData: b, initFormData: S, getImageSrc: _, showImage: E } = jt(n), [V, { openModal: A }] = xe(), D = de(() => n.tableName), B = de(() => n.multi === !0 ? {
|
|
2972
|
+
mode: "multiple"
|
|
2973
|
+
} : {});
|
|
2974
|
+
function T(r) {
|
|
2975
|
+
r == null || r.stopPropagation(), r == null || r.preventDefault(), A(!0, {});
|
|
2976
|
+
}
|
|
2977
|
+
function L(r, h) {
|
|
2978
|
+
r == null || r.stopPropagation(), r == null || r.preventDefault(), c.update != !1 && A(!0, {
|
|
2979
|
+
isUpdate: !0,
|
|
2980
|
+
record: h
|
|
2981
|
+
});
|
|
2982
|
+
}
|
|
2983
|
+
const H = "custom:online:reload";
|
|
2984
|
+
pn(() => {
|
|
2985
|
+
l.value && l.value.addEventListener(H, q);
|
|
2986
|
+
}), hn(() => {
|
|
2987
|
+
l.value && l.value.removeEventListener(H, q);
|
|
2988
|
+
});
|
|
2989
|
+
function q() {
|
|
2990
|
+
R();
|
|
2991
|
+
}
|
|
2992
|
+
function W(r) {
|
|
2993
|
+
return Y(this, null, function* () {
|
|
2994
|
+
try {
|
|
2995
|
+
const a = document.querySelectorAll(`.online-list-${t.value} .jeecg-basic-table-form-container.online-query-form .link-table-select-box`);
|
|
2996
|
+
a && a.length > 0 && a.forEach((u) => u.dispatchEvent(new Event(H)));
|
|
2997
|
+
} catch (a) {
|
|
2998
|
+
}
|
|
2999
|
+
yield R();
|
|
3000
|
+
let h = r[n.valueField];
|
|
3001
|
+
n.multi === !0 ? f.value = [h] : f.value = h, O(f.value);
|
|
3002
|
+
});
|
|
3003
|
+
}
|
|
3004
|
+
function P(r) {
|
|
3005
|
+
k(r), R();
|
|
3006
|
+
}
|
|
3007
|
+
function O(r) {
|
|
3008
|
+
v(r), r || (k(), R());
|
|
3009
|
+
}
|
|
3010
|
+
function v(r) {
|
|
3011
|
+
let h = {}, a = n.linkFields, u = [];
|
|
3012
|
+
if (!r)
|
|
3013
|
+
S(h, a);
|
|
3014
|
+
else {
|
|
3015
|
+
let i = be(g.value), o = be(r);
|
|
3016
|
+
o instanceof Array ? u = [...o] : n.multi == !0 ? u = o.split(",") : u = [o];
|
|
3017
|
+
let s = i.filter((C) => u.indexOf(C[n.valueField]) >= 0);
|
|
3018
|
+
if (s && s.length > 0) {
|
|
3019
|
+
let C = me({}, s[0]);
|
|
3020
|
+
if (s.length > 1)
|
|
3021
|
+
for (let $ = 1; $ < s.length; $++)
|
|
3022
|
+
C = y(C, s[$]);
|
|
3023
|
+
let I = p.value;
|
|
3024
|
+
C[I] = C.label, S(h, a, C);
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
b(h), e("change", u.join(",") || "", h), e("update:value", u.join(",") || "");
|
|
3028
|
+
}
|
|
3029
|
+
function y(r, h) {
|
|
3030
|
+
let a = {};
|
|
3031
|
+
return Object.keys(r).map((u) => {
|
|
3032
|
+
a[u] = (r[u] || "") + "," + (h[u] || "");
|
|
3033
|
+
}), a;
|
|
3034
|
+
}
|
|
3035
|
+
return he(() => n.value, (r) => Y(this, null, function* () {
|
|
3036
|
+
r ? (n.multi == !0 ? f.value = r.split(",") : f.value = r, n.linkFields && n.linkFields.length > 0 && v(r)) : f.value = [];
|
|
3037
|
+
}), { immediate: !0 }), he(() => g.value, (r) => {
|
|
3038
|
+
r && r.length > 0 && n.linkFields && n.linkFields.length > 0 && f.value && f.value.length > 0 && v(f.value);
|
|
3039
|
+
}), {
|
|
3040
|
+
boxRef: l,
|
|
3041
|
+
selectValue: f,
|
|
3042
|
+
selectOptions: g,
|
|
3043
|
+
registerPopModal: V,
|
|
3044
|
+
popTableName: D,
|
|
3045
|
+
textFieldArray: w,
|
|
3046
|
+
handleClickAdd: T,
|
|
3047
|
+
handleClickEdit: L,
|
|
3048
|
+
getFormData: W,
|
|
3049
|
+
handleSearch: Bn(P, 800),
|
|
3050
|
+
handleChange: O,
|
|
3051
|
+
bindValue: B,
|
|
3052
|
+
showImage: E,
|
|
3053
|
+
getImageSrc: _,
|
|
3054
|
+
auths: c
|
|
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, l, f, c) {
|
|
3069
|
+
const p = se("PlusOutlined"), w = se("EditOutlined"), g = se("a-select"), R = se("online-pop-modal");
|
|
3070
|
+
return Z(), ce("div", Xi, [
|
|
3071
|
+
ue(g, bt({
|
|
3072
|
+
value: l.selectValue,
|
|
3073
|
+
"onUpdate:value": e[1] || (e[1] = (k) => l.selectValue = k),
|
|
3074
|
+
style: { width: "100%" },
|
|
3075
|
+
placeholder: "请选择",
|
|
3076
|
+
"option-label-prop": "label",
|
|
3077
|
+
popupClassName: "table-link-select",
|
|
3078
|
+
allowClear: "",
|
|
3079
|
+
"show-search": ""
|
|
3080
|
+
}, l.bindValue, {
|
|
3081
|
+
options: l.selectOptions,
|
|
3082
|
+
"filter-option": !1,
|
|
3083
|
+
"not-found-content": null,
|
|
3084
|
+
onSearch: l.handleSearch,
|
|
3085
|
+
onChange: l.handleChange
|
|
3086
|
+
}), {
|
|
3087
|
+
option: oe((k) => [
|
|
3088
|
+
!k.value && l.auths.add ? (Z(), ce("div", {
|
|
3089
|
+
key: 0,
|
|
3090
|
+
class: "opt-add",
|
|
3091
|
+
onClick: e[0] || (e[0] = (...b) => l.handleClickAdd && l.handleClickAdd(...b))
|
|
3092
|
+
}, [
|
|
3093
|
+
ue(p),
|
|
3094
|
+
_e(" 记录 ")
|
|
3095
|
+
])) : (Z(), ce("div", el, [
|
|
3096
|
+
l.showImage ? (Z(), ce("div", tl, [
|
|
3097
|
+
l.getImageSrc(k) ? (Z(), ce("img", {
|
|
3098
|
+
key: 0,
|
|
3099
|
+
src: l.getImageSrc(k),
|
|
3100
|
+
alt: ""
|
|
3101
|
+
}, null, 8, nl)) : we("", !0)
|
|
3102
|
+
])) : we("", !0),
|
|
3103
|
+
fe("div", il, [
|
|
3104
|
+
fe("div", ll, [
|
|
3105
|
+
l.auths.update ? (Z(), Oe(w, {
|
|
3106
|
+
key: 0,
|
|
3107
|
+
onClick: (b) => l.handleClickEdit(b, k)
|
|
3108
|
+
}, null, 8, ["onClick"])) : we("", !0),
|
|
3109
|
+
_e(" " + Te(k.label), 1)
|
|
3110
|
+
]),
|
|
3111
|
+
fe("div", sl, [
|
|
3112
|
+
(Z(!0), ce(Ae, null, Qe(l.textFieldArray, (b) => (Z(), ce("div", ol, Te(k[b]), 1))), 256))
|
|
3113
|
+
])
|
|
3114
|
+
])
|
|
3115
|
+
]))
|
|
3116
|
+
]),
|
|
3117
|
+
_: 1
|
|
3118
|
+
}, 16, ["value", "options", "onSearch", "onChange"]),
|
|
3119
|
+
ue(R, {
|
|
3120
|
+
id: l.popTableName,
|
|
3121
|
+
onRegister: l.registerPopModal,
|
|
3122
|
+
onSuccess: l.getFormData,
|
|
3123
|
+
topTip: ""
|
|
3124
|
+
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
3125
|
+
], 512);
|
|
3126
|
+
}
|
|
3127
|
+
const At = /* @__PURE__ */ Me(Gi, [["render", rl], ["__scopeId", "data-v-4d29cbcc"]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3128
|
+
__proto__: null,
|
|
3129
|
+
default: At
|
|
3130
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3131
|
+
function al(n, e) {
|
|
3132
|
+
let t = kn();
|
|
3133
|
+
const l = F([]), f = F({}), c = F([]), p = F(null);
|
|
3134
|
+
let w = F(!0), g = de(() => {
|
|
3135
|
+
if (w.value != !0)
|
|
3136
|
+
return { x: !1 };
|
|
3137
|
+
});
|
|
3138
|
+
const [R, { openModal: k }] = xe(), b = F(""), [S, { openModal: _ }] = xe(), E = F("");
|
|
3139
|
+
function V(i, o = "checkbox") {
|
|
3140
|
+
f.value = i.dictOptions, i.checkboxFlag == "Y" ? p.value = {
|
|
3141
|
+
selectedRowKeys: c,
|
|
3142
|
+
onChange: A,
|
|
3143
|
+
type: o
|
|
3144
|
+
} : p.value = null, w.value = i.scrollFlag == 1;
|
|
3145
|
+
let s = i.columns;
|
|
3146
|
+
s.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 = i.fieldHrefSlots;
|
|
3152
|
+
const I = {};
|
|
3153
|
+
C.forEach((M) => I[M.slotName] = M);
|
|
3154
|
+
let $ = [];
|
|
3155
|
+
if ($ = D(s, I), P($), n.isTree() === !0) {
|
|
3156
|
+
let M = i.textField, U = -1;
|
|
3157
|
+
for (let z = 0; z < $.length; z++)
|
|
3158
|
+
if ($[z].dataIndex == M) {
|
|
3159
|
+
U = z;
|
|
3160
|
+
break;
|
|
3161
|
+
}
|
|
3162
|
+
if (U > 0) {
|
|
3163
|
+
let z = $.splice(U, 1);
|
|
3164
|
+
$.unshift(z[0]);
|
|
3165
|
+
}
|
|
3166
|
+
$.length > 0 && ($[0].align = "left");
|
|
3167
|
+
}
|
|
3168
|
+
l.value = $, n.reloadTable();
|
|
3169
|
+
}
|
|
3170
|
+
function A(i, o) {
|
|
3171
|
+
c.value = i, n.selectedRows = be(o), n.selectedRowKeys = be(i);
|
|
3172
|
+
}
|
|
3173
|
+
function D(i, o) {
|
|
3174
|
+
for (let s of i) {
|
|
3175
|
+
let { customRender: C, hrefSlotName: I, fieldType: $ } = s;
|
|
3176
|
+
if ($ == "date" || $ == "Date")
|
|
3177
|
+
s.customRender = ({ text: M }) => M ? M.length > 10 ? M.substring(0, 10) : M : "";
|
|
3178
|
+
else if ($ == "link_table")
|
|
3179
|
+
s.customRender = ({ text: M, record: U }) => {
|
|
3180
|
+
if (!M)
|
|
3181
|
+
return "";
|
|
3182
|
+
if (n.isPopList === !0)
|
|
3183
|
+
return U[s.dataIndex + "_dictText"];
|
|
3184
|
+
{
|
|
3185
|
+
let z = (M + "").split(","), ee = [];
|
|
3186
|
+
U[s.dataIndex + "_dictText"] && (ee = U[s.dataIndex + "_dictText"].split(","));
|
|
3187
|
+
let G = [];
|
|
3188
|
+
for (let te = 0; te < z.length; te++) {
|
|
3189
|
+
let J = $e(
|
|
3190
|
+
An,
|
|
3191
|
+
{
|
|
3192
|
+
id: z[te],
|
|
3193
|
+
text: ee[te],
|
|
3194
|
+
onTab: (K) => u(K, I)
|
|
3195
|
+
}
|
|
3196
|
+
);
|
|
3197
|
+
G.push(J);
|
|
3198
|
+
}
|
|
3199
|
+
return G.length == 0 ? "" : $e("div", { style: { overflow: "hidden" } }, G);
|
|
3200
|
+
}
|
|
3201
|
+
};
|
|
3202
|
+
else {
|
|
3203
|
+
if (!I && s.scopedSlots && s.scopedSlots.customRender && o.hasOwnProperty(s.scopedSlots.customRender) && (I = s.scopedSlots.customRender), C || I) {
|
|
3204
|
+
let M = C, U = "_replace_text_";
|
|
3205
|
+
s.ellipsis = !0, s.customRender = ({ text: z, record: ee }) => {
|
|
3206
|
+
let G = z;
|
|
3207
|
+
if (M)
|
|
3208
|
+
if (M.startsWith(U)) {
|
|
3209
|
+
let te = M.replace(U, "");
|
|
3210
|
+
G = ee[te];
|
|
3211
|
+
} else
|
|
3212
|
+
G = Ct(Pe(f)[M], z + "");
|
|
3213
|
+
if (s.showLength && G && G.length > s.showLength && (G = G.substr(0, s.showLength) + "..."), I) {
|
|
3214
|
+
let te = o[I];
|
|
3215
|
+
if (te)
|
|
3216
|
+
return $e(
|
|
3217
|
+
"a",
|
|
3218
|
+
{
|
|
3219
|
+
onClick: () => B(te, ee)
|
|
3220
|
+
},
|
|
3221
|
+
G
|
|
3222
|
+
);
|
|
3223
|
+
}
|
|
3224
|
+
return G;
|
|
3225
|
+
};
|
|
3226
|
+
}
|
|
3227
|
+
if (s.scopedSlots) {
|
|
3228
|
+
s.ellipsis = !0;
|
|
3229
|
+
let M = s.scopedSlots;
|
|
3230
|
+
s.slots = M, delete s.scopedSlots;
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
return i;
|
|
3235
|
+
}
|
|
3236
|
+
function B(i, o) {
|
|
3237
|
+
let s = i.href, C = /(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?/, I = /\.vue(\?.*)?$/, $ = /{{([^}]+)}}/g;
|
|
3238
|
+
if (typeof s == "string")
|
|
3239
|
+
if (s.startsWith("ONLINE:")) {
|
|
3240
|
+
let M = s.split(":");
|
|
3241
|
+
b.value = M[1];
|
|
3242
|
+
let U = M[2];
|
|
3243
|
+
k(!0, {
|
|
3244
|
+
isUpdate: !0,
|
|
3245
|
+
disableSubmit: !0,
|
|
3246
|
+
hideSub: !0,
|
|
3247
|
+
record: { id: o[U] }
|
|
3248
|
+
});
|
|
3249
|
+
} else
|
|
3250
|
+
s = s.trim().replace(/\${([^}]+)?}/g, (M, U) => o[U]), $.test(s) && (s = s.replace($, function(M, U) {
|
|
3251
|
+
try {
|
|
3252
|
+
return et(U);
|
|
3253
|
+
} catch (z) {
|
|
3254
|
+
return M;
|
|
3255
|
+
}
|
|
3256
|
+
})), C.test(s) ? window.open(s, "_blank") : I.test(s) ? H(s) : t.push(s);
|
|
3257
|
+
}
|
|
3258
|
+
const L = 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: () => L.model.open = !1,
|
|
3279
|
+
cancel: () => L.model.open = !1
|
|
3280
|
+
},
|
|
3281
|
+
is: null,
|
|
3282
|
+
params: {}
|
|
3283
|
+
});
|
|
3284
|
+
function H(i) {
|
|
3285
|
+
let o = i.indexOf("?"), s = i;
|
|
3286
|
+
if (o !== -1) {
|
|
3287
|
+
s = i.substring(0, o);
|
|
3288
|
+
let I = i.substring(o + 1, i.length).split("&"), $ = {};
|
|
3289
|
+
I.forEach((M) => {
|
|
3290
|
+
let U = M.split("=");
|
|
3291
|
+
$[U[0]] = U[1];
|
|
3292
|
+
}), L.params = $;
|
|
3293
|
+
} else
|
|
3294
|
+
L.params = {};
|
|
3295
|
+
L.model.open = !0, L.model.title = "操作", L.is = gn(bn(() => In(s)));
|
|
3296
|
+
}
|
|
3297
|
+
let q = "left";
|
|
3298
|
+
n.isTree() && (q = "right");
|
|
3299
|
+
const W = 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 i, o;
|
|
3309
|
+
((i = e == null ? void 0 : e.value) == null ? void 0 : i.tableFixedAction) === 1 && (W.fixed = ((o = e == null ? void 0 : e.value) == null ? void 0 : o.tableFixedActionType) || "right", n.isTree() && (W.fixed = "right"));
|
|
3310
|
+
});
|
|
3311
|
+
function P(i) {
|
|
3312
|
+
let o = !1;
|
|
3313
|
+
for (let s = 0; s < i.length; s++)
|
|
3314
|
+
if (i[s].dataIndex.toLowerCase() == "bpm_status") {
|
|
3315
|
+
o = !0;
|
|
3316
|
+
break;
|
|
3317
|
+
}
|
|
3318
|
+
return n.hasBpmStatus = o, o;
|
|
3319
|
+
}
|
|
3320
|
+
function O(i) {
|
|
3321
|
+
if (!i)
|
|
3322
|
+
return;
|
|
3323
|
+
i.indexOf(",") > 0 && (i = i.substring(0, i.indexOf(",")));
|
|
3324
|
+
let o = je(i);
|
|
3325
|
+
window.open(o);
|
|
3326
|
+
}
|
|
3327
|
+
function v(i) {
|
|
3328
|
+
return i && i.indexOf(",") > 0 && (i = i.substring(0, i.indexOf(","))), je(i);
|
|
3329
|
+
}
|
|
3330
|
+
function y(i) {
|
|
3331
|
+
return i ? En(i) : "";
|
|
3332
|
+
}
|
|
3333
|
+
function r(i) {
|
|
3334
|
+
if (!i)
|
|
3335
|
+
return "";
|
|
3336
|
+
let o = i;
|
|
3337
|
+
return o.length > 10 && (o = o.substring(0, 10)), o;
|
|
3338
|
+
}
|
|
3339
|
+
he(c, () => {
|
|
3340
|
+
n.selectedRowKeys = be(c.value);
|
|
3341
|
+
}), n.clearSelectedRow = () => {
|
|
3342
|
+
c.value = [], n.selectedRows = [], n.selectedRowKeys = [];
|
|
3343
|
+
};
|
|
3344
|
+
function h(i) {
|
|
3345
|
+
if (i) {
|
|
3346
|
+
let o = [], s = i.split(",");
|
|
3347
|
+
for (let C of s)
|
|
3348
|
+
C && o.push(je(C));
|
|
3349
|
+
jn({ imageList: o });
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
const a = F();
|
|
3353
|
+
function u(i, o) {
|
|
3354
|
+
return Y(this, null, function* () {
|
|
3355
|
+
E.value = o, (yield a.value.getFormStatus()) == !0 ? (b.value = o, k(!0, {
|
|
3356
|
+
isUpdate: !0,
|
|
3357
|
+
disableSubmit: !0,
|
|
3358
|
+
hideSub: !0,
|
|
3359
|
+
record: { id: i }
|
|
3360
|
+
})) : _(!0, {
|
|
3361
|
+
isUpdate: !0,
|
|
3362
|
+
record: {
|
|
3363
|
+
id: i
|
|
3364
|
+
}
|
|
3365
|
+
});
|
|
3366
|
+
});
|
|
3367
|
+
}
|
|
3368
|
+
return {
|
|
3369
|
+
columns: l,
|
|
3370
|
+
actionColumn: W,
|
|
3371
|
+
selectedKeys: c,
|
|
3372
|
+
rowSelection: p,
|
|
3373
|
+
enableScrollBar: w,
|
|
3374
|
+
tableScroll: g,
|
|
3375
|
+
downloadRowFile: O,
|
|
3376
|
+
getImgView: v,
|
|
3377
|
+
getPcaText: y,
|
|
3378
|
+
getFormatDate: r,
|
|
3379
|
+
handleColumnResult: V,
|
|
3380
|
+
onSelectChange: A,
|
|
3381
|
+
hrefComponent: L,
|
|
3382
|
+
viewOnlineCellImage: h,
|
|
3383
|
+
hrefMainTableId: b,
|
|
3384
|
+
registerOnlineHrefModal: R,
|
|
3385
|
+
registerPopModal: S,
|
|
3386
|
+
openPopModal: _,
|
|
3387
|
+
openOnlineHrefModal: k,
|
|
3388
|
+
onlinePopModalRef: a,
|
|
3389
|
+
popTableId: E
|
|
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: l, resetBodyStyle: f, popBodyStyle: c } = Et(), p = F(""), w = F(800), [g, { closeModal: R }] = vt(() => {
|
|
3419
|
+
p.value = "", C.value = [], I.value = [], o({ current: 1 }), i(), f();
|
|
3420
|
+
}), [k, { openModal: b }] = xe();
|
|
3421
|
+
function S() {
|
|
3422
|
+
R();
|
|
3423
|
+
}
|
|
3424
|
+
const _ = de(() => {
|
|
3425
|
+
const J = C.value;
|
|
3426
|
+
return !(J && J.length > 0);
|
|
3427
|
+
}), E = F(!1);
|
|
3428
|
+
function V() {
|
|
3429
|
+
E.value = !0;
|
|
3430
|
+
let J = be(I.value);
|
|
3431
|
+
J && J.length > 0 && (e("success", J), R()), setTimeout(() => {
|
|
3432
|
+
E.value = !1;
|
|
3433
|
+
}, 200);
|
|
3434
|
+
}
|
|
3435
|
+
function A(J) {
|
|
3436
|
+
const K = "/online/cgform/api/getData/" + n.id;
|
|
3437
|
+
return ge.get({ url: K, params: J });
|
|
3438
|
+
}
|
|
3439
|
+
function D(J) {
|
|
3440
|
+
return J.column = "id", new Promise((K, X) => Y(this, null, function* () {
|
|
3441
|
+
const ne = yield A(J);
|
|
3442
|
+
K(ne);
|
|
3443
|
+
}));
|
|
3444
|
+
}
|
|
3445
|
+
const B = {
|
|
3446
|
+
isPopList: !0,
|
|
3447
|
+
reloadTable() {
|
|
3448
|
+
},
|
|
3449
|
+
isTree() {
|
|
3450
|
+
return !1;
|
|
3451
|
+
}
|
|
3452
|
+
}, T = F({}), {
|
|
3453
|
+
columns: L,
|
|
3454
|
+
downloadRowFile: H,
|
|
3455
|
+
getImgView: q,
|
|
3456
|
+
getPcaText: W,
|
|
3457
|
+
getFormatDate: P,
|
|
3458
|
+
handleColumnResult: O,
|
|
3459
|
+
hrefComponent: v,
|
|
3460
|
+
viewOnlineCellImage: y
|
|
3461
|
+
} = al(B, T);
|
|
3462
|
+
function r() {
|
|
3463
|
+
const J = "/online/cgform/api/getColumns/" + n.id;
|
|
3464
|
+
return new Promise((K, X) => {
|
|
3465
|
+
ge.get({ url: J }, { isTransformResponse: !1 }).then((ne) => {
|
|
3466
|
+
ne.success ? K(ne.result) : (t.warning(ne.message), X());
|
|
3467
|
+
});
|
|
3468
|
+
});
|
|
3469
|
+
}
|
|
3470
|
+
const h = F("");
|
|
3471
|
+
he(() => n.id, () => Y(this, null, function* () {
|
|
3472
|
+
let J = yield r();
|
|
3473
|
+
O(J), h.value = J.description;
|
|
3474
|
+
}), { immediate: !0 });
|
|
3475
|
+
const { tableContext: a } = $n({
|
|
3476
|
+
designScope: "process-design",
|
|
3477
|
+
pagination: !0,
|
|
3478
|
+
tableProps: {
|
|
3479
|
+
title: "",
|
|
3480
|
+
api: D,
|
|
3481
|
+
clickToRowSelect: !0,
|
|
3482
|
+
columns: L,
|
|
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) => ee(J)
|
|
3494
|
+
}
|
|
3495
|
+
}), [u, { reload: i, setPagination: o }, { rowSelection: s, selectedRowKeys: C, selectedRows: I }] = a;
|
|
3496
|
+
he(() => n.multi, (J) => {
|
|
3497
|
+
J == !0 ? s.type = "checkbox" : s.type = "radio";
|
|
3498
|
+
}, { immediate: !0 });
|
|
3499
|
+
function $(J) {
|
|
3500
|
+
return [
|
|
3501
|
+
{
|
|
3502
|
+
label: "编辑",
|
|
3503
|
+
onClick: M.bind(null, J)
|
|
3504
|
+
}
|
|
3505
|
+
];
|
|
3506
|
+
}
|
|
3507
|
+
function M(J) {
|
|
3508
|
+
}
|
|
3509
|
+
function U() {
|
|
3510
|
+
i();
|
|
3511
|
+
}
|
|
3512
|
+
const z = ["int", "double", "Date", "Datetime", "BigDecimal"];
|
|
3513
|
+
function ee(J) {
|
|
3514
|
+
let K = p.value;
|
|
3515
|
+
if (!K)
|
|
3516
|
+
return J.superQueryMatchType = "or", J.superQueryParams = "", J;
|
|
3517
|
+
let X = L.value, ne = [];
|
|
3518
|
+
if (X && X.length > 0)
|
|
3519
|
+
for (let ie of X)
|
|
3520
|
+
ie.dbType && (ie.dbType == "string" ? ne.push({ field: ie.dataIndex, type: ie.dbType.toLowerCase(), rule: "like", val: K }) : ie.dbType == "Date" ? K.length == 10 && ne.push({ field: ie.dataIndex, type: ie.dbType.toLowerCase(), rule: "eq", val: K }) : ie.dbType == "Datetime" ? K.length == 19 && ne.push({ field: ie.dataIndex, type: ie.dbType.toLowerCase(), rule: "eq", val: K }) : z.indexOf(ie.dbType) && ne.push({ field: ie.dataIndex, type: ie.dbType.toLowerCase(), rule: "eq", val: K }));
|
|
3521
|
+
return J.superQueryMatchType = "or", J.superQueryParams = encodeURI(JSON.stringify(ne)), J;
|
|
3522
|
+
}
|
|
3523
|
+
function G() {
|
|
3524
|
+
b(!0, {});
|
|
3525
|
+
}
|
|
3526
|
+
function te(J) {
|
|
3527
|
+
e("success", [J]), R();
|
|
3528
|
+
}
|
|
3529
|
+
return {
|
|
3530
|
+
registerModal: g,
|
|
3531
|
+
modalWidth: w,
|
|
3532
|
+
handleCancel: S,
|
|
3533
|
+
submitDisabled: _,
|
|
3534
|
+
submitLoading: E,
|
|
3535
|
+
handleSubmit: V,
|
|
3536
|
+
registerTable: u,
|
|
3537
|
+
getTableAction: $,
|
|
3538
|
+
searchText: p,
|
|
3539
|
+
onSearch: U,
|
|
3540
|
+
downloadRowFile: H,
|
|
3541
|
+
getImgView: q,
|
|
3542
|
+
getPcaText: W,
|
|
3543
|
+
getFormatDate: P,
|
|
3544
|
+
hrefComponent: v,
|
|
3545
|
+
viewOnlineCellImage: y,
|
|
3546
|
+
rowSelection: s,
|
|
3547
|
+
modalTitle: h,
|
|
3548
|
+
registerPopModal: k,
|
|
3549
|
+
handleAdd: G,
|
|
3550
|
+
reload: i,
|
|
3551
|
+
popModalFixedWidth: l,
|
|
3552
|
+
popBodyStyle: c,
|
|
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, l, f, c) {
|
|
3564
|
+
const p = se("PlusOutlined"), w = se("a-button"), g = se("a-input-search"), R = se("TableAction"), k = se("BasicTable"), b = se("BasicModal"), S = se("online-pop-modal");
|
|
3565
|
+
return Z(), ce(Ae, null, [
|
|
3566
|
+
ue(b, {
|
|
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: oe(() => [
|
|
3575
|
+
fe("div", cl, [
|
|
3576
|
+
n.addAuth ? (Z(), Oe(w, {
|
|
3577
|
+
key: 0,
|
|
3578
|
+
style: { "border-radius": "50px" },
|
|
3579
|
+
type: "primary",
|
|
3580
|
+
onClick: n.handleAdd
|
|
3581
|
+
}, {
|
|
3582
|
+
default: oe(() => [
|
|
3583
|
+
ue(p),
|
|
3584
|
+
_e("新增记录")
|
|
3585
|
+
]),
|
|
3586
|
+
_: 1
|
|
3587
|
+
}, 8, ["onClick"])) : we("", !0)
|
|
3588
|
+
]),
|
|
3589
|
+
ue(w, {
|
|
3590
|
+
key: "back",
|
|
3591
|
+
onClick: n.handleCancel
|
|
3592
|
+
}, {
|
|
3593
|
+
default: oe(() => [
|
|
3594
|
+
_e("关闭")
|
|
3595
|
+
]),
|
|
3596
|
+
_: 1
|
|
3597
|
+
}, 8, ["onClick"]),
|
|
3598
|
+
ue(w, {
|
|
3599
|
+
disabled: n.submitDisabled,
|
|
3600
|
+
key: "submit",
|
|
3601
|
+
type: "primary",
|
|
3602
|
+
onClick: n.handleSubmit,
|
|
3603
|
+
loading: n.submitLoading
|
|
3604
|
+
}, {
|
|
3605
|
+
default: oe(() => [
|
|
3606
|
+
_e("确定")
|
|
3607
|
+
]),
|
|
3608
|
+
_: 1
|
|
3609
|
+
}, 8, ["disabled", "onClick", "loading"])
|
|
3610
|
+
]),
|
|
3611
|
+
default: oe(() => [
|
|
3612
|
+
ue(k, {
|
|
3613
|
+
onRegister: n.registerTable,
|
|
3614
|
+
rowSelection: n.rowSelection
|
|
3615
|
+
}, {
|
|
3616
|
+
tableTitle: oe(() => [
|
|
3617
|
+
ue(g, {
|
|
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: oe(({ record: _ }) => [
|
|
3626
|
+
ue(R, {
|
|
3627
|
+
actions: n.getTableAction(_)
|
|
3628
|
+
}, null, 8, ["actions"])
|
|
3629
|
+
]),
|
|
3630
|
+
fileSlot: oe(({ text: _ }) => [
|
|
3631
|
+
_ ? (Z(), Oe(w, {
|
|
3632
|
+
key: 1,
|
|
3633
|
+
ghost: !0,
|
|
3634
|
+
type: "primary",
|
|
3635
|
+
preIcon: "ant-design:download",
|
|
3636
|
+
size: "small",
|
|
3637
|
+
onClick: (E) => n.downloadRowFile(_)
|
|
3638
|
+
}, {
|
|
3639
|
+
default: oe(() => [
|
|
3640
|
+
_e(" 下载 ")
|
|
3641
|
+
]),
|
|
3642
|
+
_: 2
|
|
3643
|
+
}, 1032, ["onClick"])) : (Z(), ce("span", dl, "无文件"))
|
|
3644
|
+
]),
|
|
3645
|
+
imgSlot: oe(({ text: _ }) => [
|
|
3646
|
+
_ ? (Z(), ce("img", {
|
|
3647
|
+
key: 1,
|
|
3648
|
+
src: n.getImgView(_),
|
|
3649
|
+
alt: "图片不存在",
|
|
3650
|
+
class: "online-cell-image",
|
|
3651
|
+
onClick: (E) => n.viewOnlineCellImage(_)
|
|
3652
|
+
}, null, 8, ml)) : (Z(), ce("span", fl, "无图片"))
|
|
3653
|
+
]),
|
|
3654
|
+
htmlSlot: oe(({ text: _ }) => [
|
|
3655
|
+
fe("div", { innerHTML: _ }, null, 8, pl)
|
|
3656
|
+
]),
|
|
3657
|
+
pcaSlot: oe(({ text: _ }) => [
|
|
3658
|
+
fe("div", {
|
|
3659
|
+
title: n.getPcaText(_)
|
|
3660
|
+
}, Te(n.getPcaText(_)), 9, hl)
|
|
3661
|
+
]),
|
|
3662
|
+
dateSlot: oe(({ 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
|
+
ue(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: re.string.def(""),
|
|
3686
|
+
textField: re.string.def(""),
|
|
3687
|
+
tableName: re.string.def(""),
|
|
3688
|
+
multi: re.bool.def(!1),
|
|
3689
|
+
value: re.oneOfType([re.string, re.number]),
|
|
3690
|
+
// ["表单字段,表字典字段","表单字段,表字典字段"]
|
|
3691
|
+
linkFields: re.array.def([]),
|
|
3692
|
+
//是否是禁用页面
|
|
3693
|
+
disabled: re.bool.def(!1),
|
|
3694
|
+
// 是否是detail页面
|
|
3695
|
+
detail: re.bool.def(!1),
|
|
3696
|
+
imageField: re.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), [l, { openModal: f }] = xe(), [c, { openModal: p }] = xe(), w = F([]), g = F([]), R = de(() => !(n.disabled == !0 || n.multi === !1 && g.value.length > 0)), { auths: k, otherColumns: b, realShowColumns: S, tableColumns: _, textFieldArray: E, transData: V, loadOne: A, compareData: D, formatData: B, initFormData: T, getImageSrc: L, showImage: H } = jt(n), q = de(() => n.multi === !0 ? 12 : 24), W = de(() => n.multi === !0 ? 24 : 12);
|
|
3707
|
+
function P(i) {
|
|
3708
|
+
if (i && E.value.length > 0) {
|
|
3709
|
+
let o = E.value[0];
|
|
3710
|
+
return i[o];
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
function O(i) {
|
|
3714
|
+
i == null || i.stopPropagation(), i == null || i.preventDefault();
|
|
3715
|
+
}
|
|
3716
|
+
function v(i, o) {
|
|
3717
|
+
O(i), k.update != !1 && n.disabled == !1 && p(!0, {
|
|
3718
|
+
isUpdate: !0,
|
|
3719
|
+
record: o
|
|
3720
|
+
});
|
|
3721
|
+
}
|
|
3722
|
+
function y(i) {
|
|
3723
|
+
f(!0, {});
|
|
3724
|
+
}
|
|
3725
|
+
function r(i) {
|
|
3726
|
+
let o = g.value;
|
|
3727
|
+
for (let s of i) {
|
|
3728
|
+
let C = me({}, s);
|
|
3729
|
+
V(C), o.push(C);
|
|
3730
|
+
}
|
|
3731
|
+
g.value = o, u();
|
|
3732
|
+
}
|
|
3733
|
+
function h(i) {
|
|
3734
|
+
let o = g.value;
|
|
3735
|
+
for (let s = 0; s < o.length; s++)
|
|
3736
|
+
if (o[s].id === i.id) {
|
|
3737
|
+
let C = me({}, i);
|
|
3738
|
+
V(C), o.splice(s, 1, C);
|
|
3739
|
+
}
|
|
3740
|
+
g.value = o, u();
|
|
3741
|
+
}
|
|
3742
|
+
function a(i, o) {
|
|
3743
|
+
O(i);
|
|
3744
|
+
let s = g.value;
|
|
3745
|
+
s && s.length > o && (s.splice(o, 1), g.value = s), u();
|
|
3746
|
+
}
|
|
3747
|
+
function u() {
|
|
3748
|
+
let i = g.value, o = [], s = {}, C = n.linkFields;
|
|
3749
|
+
if (i.length > 0)
|
|
3750
|
+
for (let $ = 0; $ < i.length; $++)
|
|
3751
|
+
o.push(i[$][n.valueField]), T(s, C, i[$]);
|
|
3752
|
+
else
|
|
3753
|
+
T(s, C);
|
|
3754
|
+
let I = o.join(",");
|
|
3755
|
+
B(s), e("change", I, s), e("update:value", I);
|
|
3756
|
+
}
|
|
3757
|
+
return he(() => n.value, (i) => Y(this, null, function* () {
|
|
3758
|
+
if (i) {
|
|
3759
|
+
if (D(g.value, i) === !1) {
|
|
3760
|
+
let s = yield A(i);
|
|
3761
|
+
g.value = s;
|
|
3762
|
+
}
|
|
3763
|
+
n.linkFields && n.linkFields.length > 0 && u();
|
|
3764
|
+
} else
|
|
3765
|
+
g.value = [];
|
|
3766
|
+
}), { immediate: !0 }), {
|
|
3767
|
+
popTableName: t,
|
|
3768
|
+
selectRecords: g,
|
|
3769
|
+
otherColumns: b,
|
|
3770
|
+
realShowColumns: S,
|
|
3771
|
+
showButton: R,
|
|
3772
|
+
selectValue: w,
|
|
3773
|
+
handleAddRecord: y,
|
|
3774
|
+
handleDeleteRecord: a,
|
|
3775
|
+
getMainContent: P,
|
|
3776
|
+
itemSpan: q,
|
|
3777
|
+
columnSpan: W,
|
|
3778
|
+
tableColumns: _,
|
|
3779
|
+
addCard: r,
|
|
3780
|
+
registerListModal: l,
|
|
3781
|
+
registerFormModal: c,
|
|
3782
|
+
handleClickEdit: v,
|
|
3783
|
+
updateCardData: h,
|
|
3784
|
+
getImageSrc: L,
|
|
3785
|
+
showImage: H,
|
|
3786
|
+
auths: k
|
|
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, l, f, c) {
|
|
3800
|
+
const p = se("PlusOutlined"), w = se("a-button"), g = se("minus-circle-filled"), R = se("a-col"), k = se("a-row"), b = se("online-pop-list-modal"), S = se("online-pop-modal");
|
|
3801
|
+
return Z(), ce("div", null, [
|
|
3802
|
+
fe("div", vl, [
|
|
3803
|
+
fe("div", yl, [
|
|
3804
|
+
l.showButton ? (Z(), ce("div", wl, [
|
|
3805
|
+
ue(w, { onClick: l.handleAddRecord }, {
|
|
3806
|
+
default: oe(() => [
|
|
3807
|
+
ue(p),
|
|
3808
|
+
_e("记 录")
|
|
3809
|
+
]),
|
|
3810
|
+
_: 1
|
|
3811
|
+
}, 8, ["onClick"])
|
|
3812
|
+
])) : we("", !0),
|
|
3813
|
+
ue(k, null, {
|
|
3814
|
+
default: oe(() => [
|
|
3815
|
+
(Z(!0), ce(Ae, null, Qe(l.selectRecords, (_, E) => (Z(), Oe(R, { span: l.itemSpan }, {
|
|
3816
|
+
default: oe(() => [
|
|
3817
|
+
fe("div", {
|
|
3818
|
+
class: ct(["card-item", { "disabled-chunk": t.detail == !0 }]),
|
|
3819
|
+
onClick: (V) => l.handleClickEdit(V, _)
|
|
3820
|
+
}, [
|
|
3821
|
+
fe("div", {
|
|
3822
|
+
class: ct(["card-item-left", { "show-right-image": l.showImage }])
|
|
3823
|
+
}, [
|
|
3824
|
+
t.disabled == !1 ? (Z(), ce("span", Fl, [
|
|
3825
|
+
ue(g, {
|
|
3826
|
+
onClick: (V) => l.handleDeleteRecord(V, E)
|
|
3827
|
+
}, null, 8, ["onClick"])
|
|
3828
|
+
])) : we("", !0),
|
|
3829
|
+
fe("div", Cl, [
|
|
3830
|
+
fe("div", _l, Te(l.getMainContent(_)), 1),
|
|
3831
|
+
fe("div", Tl, [
|
|
3832
|
+
ue(k, null, {
|
|
3833
|
+
default: oe(() => [
|
|
3834
|
+
(Z(!0), ce(Ae, null, Qe(l.realShowColumns, (V) => (Z(), Oe(R, { span: l.columnSpan }, {
|
|
3835
|
+
default: oe(() => [
|
|
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
|
+
l.showImage ? (Z(), ce("div", xl, [
|
|
3848
|
+
l.getImageSrc(_) ? (Z(), ce("img", {
|
|
3849
|
+
key: 0,
|
|
3850
|
+
src: l.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
|
+
ue(b, {
|
|
3864
|
+
onRegister: l.registerListModal,
|
|
3865
|
+
multi: t.multi,
|
|
3866
|
+
id: l.popTableName,
|
|
3867
|
+
addAuth: l.auths.add,
|
|
3868
|
+
onSuccess: l.addCard
|
|
3869
|
+
}, null, 8, ["onRegister", "multi", "id", "addAuth", "onSuccess"]),
|
|
3870
|
+
ue(S, {
|
|
3871
|
+
id: l.popTableName,
|
|
3872
|
+
onRegister: l.registerFormModal,
|
|
3873
|
+
onSuccess: l.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", At), n("LinkTableCard", Nt);
|
|
3884
|
+
function n(t, l) {
|
|
3885
|
+
ht[t] || (dn(t, l), 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
|
+
ji 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
|
+
Ai 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
|
+
};
|