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