cloud-web-corejs 1.0.54-dev.645 → 1.0.54-dev.647
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/package.json +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +220 -25
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +51 -36
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1229 -4
- package/src/components/xform/form-render/container-item/data-table-item.vue +7 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +77 -0
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1117 -394
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1629
package/package.json
CHANGED
|
@@ -44,7 +44,11 @@
|
|
|
44
44
|
<el-switch v-model="isQueryAllPage"></el-switch>
|
|
45
45
|
</el-form-item>
|
|
46
46
|
<el-form-item label="默认每页查询数">
|
|
47
|
-
<base-input-number
|
|
47
|
+
<base-input-number
|
|
48
|
+
v-model="optionModel.gridPageSize"
|
|
49
|
+
size="mini"
|
|
50
|
+
:max="10000"
|
|
51
|
+
/>
|
|
48
52
|
</el-form-item>
|
|
49
53
|
<el-form-item :label="i18nt('可选择每页查询数')"></el-form-item>
|
|
50
54
|
<el-form-item label-width="0">
|
|
@@ -132,7 +136,10 @@
|
|
|
132
136
|
<el-divider class="custom-divider-margin-top">编辑表格设置</el-divider>
|
|
133
137
|
</el-form-item>
|
|
134
138
|
<el-form-item :label="i18nt('编辑表格')">
|
|
135
|
-
<el-switch
|
|
139
|
+
<el-switch
|
|
140
|
+
v-model="optionModel.isEditTable"
|
|
141
|
+
@change="onIsEditTableChange"
|
|
142
|
+
></el-switch>
|
|
136
143
|
</el-form-item>
|
|
137
144
|
<el-form-item :label="i18nt('树表格')">
|
|
138
145
|
<el-switch v-model="optionModel.isTreeTable"></el-switch>
|
|
@@ -143,6 +150,87 @@
|
|
|
143
150
|
<el-form-item :label="i18nt('排序脚本编码')" v-if="optionModel.isEditTable">
|
|
144
151
|
<el-input v-model="optionModel.sortScriptCode"></el-input>
|
|
145
152
|
</el-form-item>
|
|
153
|
+
<template v-if="optionModel.isEditTable">
|
|
154
|
+
<el-form-item
|
|
155
|
+
label-width="0"
|
|
156
|
+
v-if="!optionModel.rowAddAuthName || !optionModel.rowEditAuthName"
|
|
157
|
+
>
|
|
158
|
+
<el-button
|
|
159
|
+
type="text"
|
|
160
|
+
icon="el-icon-refresh-right"
|
|
161
|
+
class="add-option"
|
|
162
|
+
@click="createRandomRowAuthNames"
|
|
163
|
+
>
|
|
164
|
+
随机生成权限名称
|
|
165
|
+
</el-button>
|
|
166
|
+
</el-form-item>
|
|
167
|
+
<el-form-item label="行新增权限名称">
|
|
168
|
+
<el-input
|
|
169
|
+
v-model="optionModel.rowAddAuthName"
|
|
170
|
+
placeholder="留空则不校验权限"
|
|
171
|
+
clearable
|
|
172
|
+
></el-input>
|
|
173
|
+
</el-form-item>
|
|
174
|
+
<el-form-item label="行新增权限编码" v-if="rowAddAuthCode">
|
|
175
|
+
<div style="word-break: break-all">
|
|
176
|
+
<el-tooltip effect="light" content="复制">
|
|
177
|
+
<a
|
|
178
|
+
class="a-link"
|
|
179
|
+
style="color: unset"
|
|
180
|
+
@click="copyAuthCode(rowAddAuthCode, $event)"
|
|
181
|
+
>
|
|
182
|
+
<span
|
|
183
|
+
><i class="el-icon-copy-document" style="margin-right: 2px"></i
|
|
184
|
+
>{{ rowAddAuthCode }}</span
|
|
185
|
+
>
|
|
186
|
+
</a>
|
|
187
|
+
</el-tooltip>
|
|
188
|
+
</div>
|
|
189
|
+
</el-form-item>
|
|
190
|
+
<el-form-item label="行编辑权限名称">
|
|
191
|
+
<el-input
|
|
192
|
+
v-model="optionModel.rowEditAuthName"
|
|
193
|
+
placeholder="留空则不校验权限"
|
|
194
|
+
clearable
|
|
195
|
+
></el-input>
|
|
196
|
+
</el-form-item>
|
|
197
|
+
<el-form-item label="行编辑权限编码" v-if="rowEditAuthCode">
|
|
198
|
+
<div style="word-break: break-all">
|
|
199
|
+
<el-tooltip effect="light" content="复制">
|
|
200
|
+
<a
|
|
201
|
+
class="a-link"
|
|
202
|
+
style="color: unset"
|
|
203
|
+
@click="copyAuthCode(rowEditAuthCode, $event)"
|
|
204
|
+
>
|
|
205
|
+
<span
|
|
206
|
+
><i class="el-icon-copy-document" style="margin-right: 2px"></i
|
|
207
|
+
>{{ rowEditAuthCode }}</span
|
|
208
|
+
>
|
|
209
|
+
</a>
|
|
210
|
+
</el-tooltip>
|
|
211
|
+
</div>
|
|
212
|
+
</el-form-item>
|
|
213
|
+
<el-form-item label="行新增显示条件" label-width="150px">
|
|
214
|
+
<a
|
|
215
|
+
href="javascript:void(0);"
|
|
216
|
+
class="a-link link-oneLind"
|
|
217
|
+
@click="editEventHandler('rowAddShow', rowShowParams)"
|
|
218
|
+
>
|
|
219
|
+
<span>{{ optionModel.rowAddShow ? "已维护" : "" }}</span>
|
|
220
|
+
<i class="el-icon-edit"></i>
|
|
221
|
+
</a>
|
|
222
|
+
</el-form-item>
|
|
223
|
+
<el-form-item label="行编辑显示条件" label-width="150px">
|
|
224
|
+
<a
|
|
225
|
+
href="javascript:void(0);"
|
|
226
|
+
class="a-link link-oneLind"
|
|
227
|
+
@click="editEventHandler('rowEditShow', rowShowParams)"
|
|
228
|
+
>
|
|
229
|
+
<span>{{ optionModel.rowEditShow ? "已维护" : "" }}</span>
|
|
230
|
+
<i class="el-icon-edit"></i>
|
|
231
|
+
</a>
|
|
232
|
+
</el-form-item>
|
|
233
|
+
</template>
|
|
146
234
|
|
|
147
235
|
<el-form-item label-width="0">
|
|
148
236
|
<el-divider class="custom-divider-margin-top">明细导出设置</el-divider>
|
|
@@ -208,7 +296,11 @@
|
|
|
208
296
|
</el-button>
|
|
209
297
|
</div>
|
|
210
298
|
</template>
|
|
211
|
-
<code-editor
|
|
299
|
+
<code-editor
|
|
300
|
+
mode="json"
|
|
301
|
+
:readonly="!1"
|
|
302
|
+
v-model="tableDataOptions"
|
|
303
|
+
></code-editor>
|
|
212
304
|
</el-dialog>
|
|
213
305
|
<el-dialog
|
|
214
306
|
v-if="showSqlEditDialog"
|
|
@@ -294,7 +386,11 @@
|
|
|
294
386
|
<i class="el-icon-close el-icon"></i>
|
|
295
387
|
取 消
|
|
296
388
|
</el-button>
|
|
297
|
-
<el-button
|
|
389
|
+
<el-button
|
|
390
|
+
type="primary"
|
|
391
|
+
@click="confirmFieldTreeDialog"
|
|
392
|
+
class="button-sty"
|
|
393
|
+
>
|
|
298
394
|
<i class="el-icon-check el-icon"></i>
|
|
299
395
|
确 定
|
|
300
396
|
</el-button>
|
|
@@ -320,7 +416,10 @@
|
|
|
320
416
|
<script>
|
|
321
417
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
322
418
|
import Draggable from "vuedraggable";
|
|
323
|
-
import {
|
|
419
|
+
import {
|
|
420
|
+
deepClone,
|
|
421
|
+
generateId,
|
|
422
|
+
} from "../../../../../../components/xform/utils/util";
|
|
324
423
|
import Sortable from "sortablejs";
|
|
325
424
|
import requestaccessDialog from "../../../../../../views/user/form/report_requestaccess/dialog.vue";
|
|
326
425
|
// import conditionEditor from "./condition-editor.vue";
|
|
@@ -329,6 +428,7 @@ import eventMixin from "../../../../../../components/xform/form-designer/setting
|
|
|
329
428
|
import setttingConfig from "@/settings";
|
|
330
429
|
|
|
331
430
|
import exportItemColumnsDialog from "./exportItemColumns-dialog.vue";
|
|
431
|
+
import Clipboard from "clipboard";
|
|
332
432
|
|
|
333
433
|
export default {
|
|
334
434
|
name: "data-table-editor",
|
|
@@ -346,7 +446,11 @@ export default {
|
|
|
346
446
|
selectedWidget: Object,
|
|
347
447
|
optionModel: Object,
|
|
348
448
|
},
|
|
349
|
-
inject: [
|
|
449
|
+
inject: [
|
|
450
|
+
"getReportTemplate",
|
|
451
|
+
"showEventCollapse",
|
|
452
|
+
"openWidgetPropertyDialog",
|
|
453
|
+
],
|
|
350
454
|
data: function () {
|
|
351
455
|
return {
|
|
352
456
|
showTableConfigDialog: false,
|
|
@@ -534,6 +638,7 @@ export default {
|
|
|
534
638
|
},
|
|
535
639
|
defaultCheckedKeys: [],
|
|
536
640
|
tableConfigParams: ["dataId", "formCode"],
|
|
641
|
+
rowShowParams: ["dataId", "formCode", "tableParam"],
|
|
537
642
|
showExportItemColumnsDialog: false,
|
|
538
643
|
};
|
|
539
644
|
},
|
|
@@ -562,6 +667,12 @@ export default {
|
|
|
562
667
|
this.optionModel.isNotShowQueryButton = !val;
|
|
563
668
|
},
|
|
564
669
|
},
|
|
670
|
+
rowAddAuthCode() {
|
|
671
|
+
return this.getRowAuthCode(this.getRowAddAuthName());
|
|
672
|
+
},
|
|
673
|
+
rowEditAuthCode() {
|
|
674
|
+
return this.getRowAuthCode(this.getRowEditAuthName());
|
|
675
|
+
},
|
|
565
676
|
},
|
|
566
677
|
created: function () {
|
|
567
678
|
// this.reportTemplate = this.getReportTemplate();
|
|
@@ -601,14 +712,20 @@ export default {
|
|
|
601
712
|
},
|
|
602
713
|
openTableDataEdit: function () {
|
|
603
714
|
(this.dataDialogVisible = !0),
|
|
604
|
-
(this.tableDataOptions = JSON.stringify(
|
|
715
|
+
(this.tableDataOptions = JSON.stringify(
|
|
716
|
+
this.optionModel.tableData,
|
|
717
|
+
null,
|
|
718
|
+
" "
|
|
719
|
+
));
|
|
605
720
|
},
|
|
606
721
|
saveTableData: function () {
|
|
607
722
|
try {
|
|
608
723
|
(this.optionModel.tableData = JSON.parse(this.tableDataOptions)),
|
|
609
724
|
(this.dataDialogVisible = !1);
|
|
610
725
|
} catch (e) {
|
|
611
|
-
this.$message.error(
|
|
726
|
+
this.$message.error(
|
|
727
|
+
this.i18nt("designer.hint.invalidOptionsData") + e.message
|
|
728
|
+
);
|
|
612
729
|
}
|
|
613
730
|
},
|
|
614
731
|
openSetting: function () {
|
|
@@ -657,9 +774,9 @@ export default {
|
|
|
657
774
|
handleShowButtonsColumnChange: function (e) {
|
|
658
775
|
if (e) {
|
|
659
776
|
var t = this.designer.formWidget.getSelectedWidgetRef();
|
|
660
|
-
t
|
|
661
|
-
t.refreshLayout
|
|
662
|
-
this.$nextTick(function () {
|
|
777
|
+
t
|
|
778
|
+
&& t.refreshLayout
|
|
779
|
+
&& this.$nextTick(function () {
|
|
663
780
|
t.refreshLayout();
|
|
664
781
|
});
|
|
665
782
|
}
|
|
@@ -672,8 +789,8 @@ export default {
|
|
|
672
789
|
this.optionModel.operationButtons.map(function (n, o) {
|
|
673
790
|
n.name === e && o !== t && (i = !0);
|
|
674
791
|
}),
|
|
675
|
-
i
|
|
676
|
-
(this.$message.error(
|
|
792
|
+
i
|
|
793
|
+
&& (this.$message.error(
|
|
677
794
|
this.i18nt("designer.setting.operationButtonDuplicatedNameError")
|
|
678
795
|
),
|
|
679
796
|
(this.optionModel.operationButtons[t].name = this.oldButtonName));
|
|
@@ -714,9 +831,9 @@ export default {
|
|
|
714
831
|
},
|
|
715
832
|
refreshTableLayout: function () {
|
|
716
833
|
var e = this.designer.formWidget.getSelectedWidgetRef();
|
|
717
|
-
e
|
|
718
|
-
e.refreshLayout
|
|
719
|
-
this.$nextTick(function () {
|
|
834
|
+
e
|
|
835
|
+
&& e.refreshLayout
|
|
836
|
+
&& this.$nextTick(function () {
|
|
720
837
|
e.refreshLayout();
|
|
721
838
|
});
|
|
722
839
|
},
|
|
@@ -773,7 +890,11 @@ export default {
|
|
|
773
890
|
let idVal = row.prop ? row.prop : type + tmpId;
|
|
774
891
|
columnSelectedWidget.id = idVal;
|
|
775
892
|
columnSelectedWidget.options.name = idVal;
|
|
776
|
-
if (
|
|
893
|
+
if (
|
|
894
|
+
!isChange
|
|
895
|
+
&& row.columnOption
|
|
896
|
+
&& Object.keys(row.columnOption).length
|
|
897
|
+
) {
|
|
777
898
|
row.columnOption.required = row.required || false;
|
|
778
899
|
columnSelectedWidget.options = row.columnOption;
|
|
779
900
|
} else {
|
|
@@ -887,7 +1008,10 @@ export default {
|
|
|
887
1008
|
let defaultCheckedKeys = [];
|
|
888
1009
|
this.treeData.forEach((item1) => {
|
|
889
1010
|
item1.children.forEach((item2) => {
|
|
890
|
-
if (
|
|
1011
|
+
if (
|
|
1012
|
+
fields.includes(item2.name)
|
|
1013
|
+
&& !defaultCheckedKeys.includes(item2.name)
|
|
1014
|
+
) {
|
|
891
1015
|
defaultCheckedKeys.push(item2.name);
|
|
892
1016
|
}
|
|
893
1017
|
});
|
|
@@ -923,18 +1047,22 @@ export default {
|
|
|
923
1047
|
this.optionModel.tableColumns.push(e);
|
|
924
1048
|
},
|
|
925
1049
|
openTableConfigDialog() {
|
|
926
|
-
this.eventHeader = `${
|
|
927
|
-
|
|
928
|
-
)}) {`;
|
|
1050
|
+
this.eventHeader = `${
|
|
1051
|
+
this.optionModel.name
|
|
1052
|
+
}.${eventName}(${eventParams.join(", ")}) {`;
|
|
929
1053
|
this.eventHandlerCode = selectedWidget.options[eventName] || "";
|
|
930
1054
|
this.showTableConfigDialog = true;
|
|
931
1055
|
},
|
|
932
1056
|
downloadExcel() {
|
|
933
|
-
let defaultUrl
|
|
934
|
-
"http://file.sc.5mall.com/download/repo1/b/mk1/2024/12/13/b2aea548-a9a8-4dca-bba7-8d9c6134ebe3.xlsx";
|
|
935
|
-
let xformImportTemplateFile
|
|
1057
|
+
let defaultUrl
|
|
1058
|
+
= "http://file.sc.5mall.com/download/repo1/b/mk1/2024/12/13/b2aea548-a9a8-4dca-bba7-8d9c6134ebe3.xlsx";
|
|
1059
|
+
let xformImportTemplateFile
|
|
1060
|
+
= setttingConfig.xformImportTemplateFile || defaultUrl;
|
|
936
1061
|
if (!xformImportTemplateFile) return;
|
|
937
|
-
this.$commonFileUtil.downloadFile(
|
|
1062
|
+
this.$commonFileUtil.downloadFile(
|
|
1063
|
+
xformImportTemplateFile,
|
|
1064
|
+
"通用导入模板.xlsx"
|
|
1065
|
+
);
|
|
938
1066
|
},
|
|
939
1067
|
addGridPageSizeList() {
|
|
940
1068
|
if (this.optionModel.gridPageSizeList === undefined) {
|
|
@@ -945,6 +1073,73 @@ export default {
|
|
|
945
1073
|
openExportItemColumnsDialog() {
|
|
946
1074
|
this.showExportItemColumnsDialog = true;
|
|
947
1075
|
},
|
|
1076
|
+
getRowAddAuthName() {
|
|
1077
|
+
return this.optionModel.rowAddAuthName ?? this.optionModel.treeRowAddName;
|
|
1078
|
+
},
|
|
1079
|
+
getRowEditAuthName() {
|
|
1080
|
+
return (
|
|
1081
|
+
this.optionModel.rowEditAuthName ?? this.optionModel.treeRowEditName
|
|
1082
|
+
);
|
|
1083
|
+
},
|
|
1084
|
+
getRowAuthCode(authName) {
|
|
1085
|
+
if (!authName || !this.reportTemplate?.formCode) {
|
|
1086
|
+
return "";
|
|
1087
|
+
}
|
|
1088
|
+
return this.reportTemplate.formCode + ":" + authName;
|
|
1089
|
+
},
|
|
1090
|
+
createRowAuthName(type) {
|
|
1091
|
+
return `row${type}` + generateId();
|
|
1092
|
+
},
|
|
1093
|
+
onIsEditTableChange(enabled) {
|
|
1094
|
+
if (!enabled) {
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
if (!this.getRowAddAuthName()) {
|
|
1098
|
+
this.createRandomRowAddAuthName();
|
|
1099
|
+
}
|
|
1100
|
+
if (!this.getRowEditAuthName()) {
|
|
1101
|
+
this.createRandomRowEditAuthName();
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
createRandomRowAddAuthName() {
|
|
1105
|
+
this.$set(
|
|
1106
|
+
this.optionModel,
|
|
1107
|
+
"rowAddAuthName",
|
|
1108
|
+
this.createRowAuthName("Add")
|
|
1109
|
+
);
|
|
1110
|
+
},
|
|
1111
|
+
createRandomRowEditAuthName() {
|
|
1112
|
+
this.$set(
|
|
1113
|
+
this.optionModel,
|
|
1114
|
+
"rowEditAuthName",
|
|
1115
|
+
this.createRowAuthName("Edit")
|
|
1116
|
+
);
|
|
1117
|
+
},
|
|
1118
|
+
createRandomRowAuthNames() {
|
|
1119
|
+
// this.createRandomRowAddAuthName();
|
|
1120
|
+
// this.createRandomRowEditAuthName();
|
|
1121
|
+
if (!this.getRowAddAuthName()) {
|
|
1122
|
+
this.createRandomRowAddAuthName();
|
|
1123
|
+
}
|
|
1124
|
+
if (!this.getRowEditAuthName()) {
|
|
1125
|
+
this.createRandomRowEditAuthName();
|
|
1126
|
+
}
|
|
1127
|
+
this.$message.success("生成成功");
|
|
1128
|
+
},
|
|
1129
|
+
copyAuthCode(content, clickEvent) {
|
|
1130
|
+
const clipboard = new Clipboard(clickEvent.target, {
|
|
1131
|
+
text: () => content,
|
|
1132
|
+
});
|
|
1133
|
+
clipboard.on("success", () => {
|
|
1134
|
+
this.$message.success("复制成功");
|
|
1135
|
+
clipboard.destroy();
|
|
1136
|
+
});
|
|
1137
|
+
clipboard.on("error", () => {
|
|
1138
|
+
this.$message.error("复制失败");
|
|
1139
|
+
clipboard.destroy();
|
|
1140
|
+
});
|
|
1141
|
+
clipboard.onClick(clickEvent);
|
|
1142
|
+
},
|
|
948
1143
|
},
|
|
949
1144
|
};
|
|
950
1145
|
</script>
|
|
@@ -259,6 +259,10 @@ export const containers = [
|
|
|
259
259
|
tableConfig: null,
|
|
260
260
|
isEditTable: false,
|
|
261
261
|
isTreeTable: false,
|
|
262
|
+
rowAddAuthName: null,
|
|
263
|
+
rowEditAuthName: null,
|
|
264
|
+
rowAddShow: null,
|
|
265
|
+
rowEditShow: null,
|
|
262
266
|
wbsEnabled: false,
|
|
263
267
|
sortScriptCode: null,
|
|
264
268
|
importTemplateFile: null,
|
|
@@ -271,9 +275,9 @@ export const containers = [
|
|
|
271
275
|
isNotQueryAllPage: false,
|
|
272
276
|
isNotShowQueryButton: false,
|
|
273
277
|
|
|
274
|
-
exportItemColumns:[],
|
|
278
|
+
exportItemColumns: [],
|
|
275
279
|
exportItemScriptCode: null,
|
|
276
|
-
exportItemParam:
|
|
280
|
+
exportItemParam: null,
|
|
277
281
|
},
|
|
278
282
|
},
|
|
279
283
|
/*{
|
|
@@ -450,6 +454,7 @@ export const containers = [
|
|
|
450
454
|
category: "container",
|
|
451
455
|
icon: "grid",
|
|
452
456
|
commonFlag: !0,
|
|
457
|
+
formItemFlag: !0,
|
|
453
458
|
layoutType: "H5",
|
|
454
459
|
lineButtons: [],
|
|
455
460
|
buttons: [],
|
|
@@ -457,13 +462,18 @@ export const containers = [
|
|
|
457
462
|
tableField: null,
|
|
458
463
|
options: {
|
|
459
464
|
name: "",
|
|
465
|
+
keyNameEnabled: !0,
|
|
466
|
+
keyName: "",
|
|
460
467
|
hidden: !1,
|
|
461
468
|
label: "",
|
|
462
469
|
listH5: true,
|
|
463
470
|
// colHeight: null,
|
|
464
471
|
customClass: "",
|
|
465
472
|
isQueryTable: false,
|
|
473
|
+
|
|
466
474
|
accessUrl: null,
|
|
475
|
+
...httpConfig,
|
|
476
|
+
formScriptEnabled: false,
|
|
467
477
|
tableColumns: [
|
|
468
478
|
{
|
|
469
479
|
columnId: 1,
|
|
@@ -743,7 +753,7 @@ export const containers = [
|
|
|
743
753
|
disLocalFilter: false,
|
|
744
754
|
treeFilterType: 0,
|
|
745
755
|
onFilterIconClick: null,
|
|
746
|
-
onFilterTextChange:null
|
|
756
|
+
onFilterTextChange: null,
|
|
747
757
|
},
|
|
748
758
|
},
|
|
749
759
|
];
|
|
@@ -759,7 +769,7 @@ export const defaultSearchDialogConfig = {
|
|
|
759
769
|
multipleChoices: true,
|
|
760
770
|
confirmCallback: null,
|
|
761
771
|
dialogQueryParam: null,
|
|
762
|
-
dialogCustomParam:null
|
|
772
|
+
dialogCustomParam: null,
|
|
763
773
|
};
|
|
764
774
|
|
|
765
775
|
export const defaultWfConfig = {
|
|
@@ -881,13 +891,13 @@ const projectTagConfig = {
|
|
|
881
891
|
tagConfirmCallback: null,
|
|
882
892
|
tagDeleteCallback: null,
|
|
883
893
|
tabDeleteEnabled: true,
|
|
884
|
-
tagWidth: ""
|
|
894
|
+
tagWidth: "",
|
|
885
895
|
};
|
|
886
896
|
|
|
887
897
|
const httpConfig = {
|
|
888
898
|
httpFormCode: null,
|
|
889
899
|
formScriptEnabled: true,
|
|
890
|
-
commonAttributeEnabled:false,
|
|
900
|
+
commonAttributeEnabled: false,
|
|
891
901
|
formScriptCode: null,
|
|
892
902
|
formScriptParam: null,
|
|
893
903
|
formScriptSuccess: null,
|
|
@@ -904,7 +914,13 @@ export const hiddenWidgetTypesOfWf = [
|
|
|
904
914
|
"print-button",
|
|
905
915
|
"dropdown-item",
|
|
906
916
|
];
|
|
907
|
-
export const freeWidgetTypesOfWf = [
|
|
917
|
+
export const freeWidgetTypesOfWf = [
|
|
918
|
+
"reset_button",
|
|
919
|
+
"copy_button",
|
|
920
|
+
"a-link",
|
|
921
|
+
"a-text",
|
|
922
|
+
"dropdown",
|
|
923
|
+
];
|
|
908
924
|
|
|
909
925
|
export const basicFields = [
|
|
910
926
|
{
|
|
@@ -1177,12 +1193,12 @@ export const basicFields = [
|
|
|
1177
1193
|
{
|
|
1178
1194
|
label: "radio 1",
|
|
1179
1195
|
value: "1",
|
|
1180
|
-
disabled: false
|
|
1196
|
+
disabled: false,
|
|
1181
1197
|
},
|
|
1182
1198
|
{
|
|
1183
1199
|
label: "radio 2",
|
|
1184
1200
|
value: "2",
|
|
1185
|
-
disabled: false
|
|
1201
|
+
disabled: false,
|
|
1186
1202
|
},
|
|
1187
1203
|
],
|
|
1188
1204
|
required: !1,
|
|
@@ -1249,12 +1265,12 @@ export const basicFields = [
|
|
|
1249
1265
|
{
|
|
1250
1266
|
label: "check 1",
|
|
1251
1267
|
value: "1",
|
|
1252
|
-
disabled: false
|
|
1268
|
+
disabled: false,
|
|
1253
1269
|
},
|
|
1254
1270
|
{
|
|
1255
1271
|
label: "check 2",
|
|
1256
1272
|
value: "2",
|
|
1257
|
-
disabled: false
|
|
1273
|
+
disabled: false,
|
|
1258
1274
|
},
|
|
1259
1275
|
],
|
|
1260
1276
|
required: !1,
|
|
@@ -1328,17 +1344,17 @@ export const basicFields = [
|
|
|
1328
1344
|
{
|
|
1329
1345
|
label: "select 1",
|
|
1330
1346
|
value: "1",
|
|
1331
|
-
disabled: false
|
|
1347
|
+
disabled: false,
|
|
1332
1348
|
},
|
|
1333
1349
|
{
|
|
1334
1350
|
label: "select 2",
|
|
1335
1351
|
value: "2",
|
|
1336
|
-
disabled: false
|
|
1352
|
+
disabled: false,
|
|
1337
1353
|
},
|
|
1338
1354
|
{
|
|
1339
1355
|
label: "select 3",
|
|
1340
1356
|
value: "3",
|
|
1341
|
-
disabled: false
|
|
1357
|
+
disabled: false,
|
|
1342
1358
|
},
|
|
1343
1359
|
],
|
|
1344
1360
|
required: !1,
|
|
@@ -1725,8 +1741,8 @@ export const basicFields = [
|
|
|
1725
1741
|
hidden: !1,
|
|
1726
1742
|
textContent: "static text",
|
|
1727
1743
|
fontSize: "13px",
|
|
1728
|
-
preWrap: true,
|
|
1729
|
-
colorClass: "",
|
|
1744
|
+
preWrap: true, //是否自动换行
|
|
1745
|
+
colorClass: "", //字体颜色
|
|
1730
1746
|
customClass: "",
|
|
1731
1747
|
onCreated: "",
|
|
1732
1748
|
onMounted: "",
|
|
@@ -3070,7 +3086,7 @@ export const advancedFields = [
|
|
|
3070
3086
|
...defaultWfConfig,
|
|
3071
3087
|
hiddenByWf: true,
|
|
3072
3088
|
...defaultWidgetShowRuleConfig,
|
|
3073
|
-
importMultiple:false,
|
|
3089
|
+
importMultiple: false,
|
|
3074
3090
|
importMultiSize: 1,
|
|
3075
3091
|
importFileLimitSize: 200,
|
|
3076
3092
|
importEntity: "",
|
|
@@ -3081,9 +3097,9 @@ export const advancedFields = [
|
|
|
3081
3097
|
enabledImportPreHandle: false,
|
|
3082
3098
|
tableRef: "",
|
|
3083
3099
|
onSuccessImport: "",
|
|
3084
|
-
hideCancelButton:false,
|
|
3100
|
+
hideCancelButton: false,
|
|
3085
3101
|
multipleSheet: false,
|
|
3086
|
-
onBeforeClickButton:null,
|
|
3102
|
+
onBeforeClickButton: null,
|
|
3087
3103
|
|
|
3088
3104
|
showRuleFlag: 1,
|
|
3089
3105
|
showRuleEnabled: 1,
|
|
@@ -3130,8 +3146,8 @@ export const advancedFields = [
|
|
|
3130
3146
|
onConfirmImportEnabled: false,
|
|
3131
3147
|
onConfirmImport: "",
|
|
3132
3148
|
onSuccessImport: "",
|
|
3133
|
-
hideCancelButton:false,
|
|
3134
|
-
onBeforeClickButton:null,
|
|
3149
|
+
hideCancelButton: false,
|
|
3150
|
+
onBeforeClickButton: null,
|
|
3135
3151
|
|
|
3136
3152
|
showRuleFlag: 1,
|
|
3137
3153
|
showRuleEnabled: 1,
|
|
@@ -3169,7 +3185,7 @@ export const advancedFields = [
|
|
|
3169
3185
|
...defaultWidgetShowRuleConfig,
|
|
3170
3186
|
|
|
3171
3187
|
// customLabelEnabled: false,
|
|
3172
|
-
printButtonFlag:1,
|
|
3188
|
+
printButtonFlag: 1,
|
|
3173
3189
|
printTableRef: "",
|
|
3174
3190
|
printItems: [],
|
|
3175
3191
|
// printCustomCondition: "",
|
|
@@ -3209,7 +3225,7 @@ export const advancedFields = [
|
|
|
3209
3225
|
...defaultWfConfig,
|
|
3210
3226
|
...defaultWidgetShowRuleConfig,
|
|
3211
3227
|
|
|
3212
|
-
printDetailButtonFlag:1,
|
|
3228
|
+
printDetailButtonFlag: 1,
|
|
3213
3229
|
// customLabelEnabled: false,
|
|
3214
3230
|
printItems: [],
|
|
3215
3231
|
printCustomCondition: "return {\n id:[dataId]\n}",
|
|
@@ -3276,7 +3292,7 @@ export const advancedFields = [
|
|
|
3276
3292
|
statusParam: [],
|
|
3277
3293
|
|
|
3278
3294
|
...httpConfig,
|
|
3279
|
-
formScriptEnabled:false,
|
|
3295
|
+
formScriptEnabled: false,
|
|
3280
3296
|
|
|
3281
3297
|
onCreated: "",
|
|
3282
3298
|
onMounted: "",
|
|
@@ -3349,7 +3365,7 @@ export const advancedFields = [
|
|
|
3349
3365
|
tableField: null,
|
|
3350
3366
|
options: {
|
|
3351
3367
|
...projectTagConfig,
|
|
3352
|
-
formScriptEnabled: true
|
|
3368
|
+
formScriptEnabled: true,
|
|
3353
3369
|
},
|
|
3354
3370
|
},
|
|
3355
3371
|
{
|
|
@@ -3448,7 +3464,6 @@ export const advancedFields = [
|
|
|
3448
3464
|
customClass: "",
|
|
3449
3465
|
onCreated: "",
|
|
3450
3466
|
onMounted: "",
|
|
3451
|
-
|
|
3452
3467
|
},
|
|
3453
3468
|
},
|
|
3454
3469
|
|
|
@@ -3797,9 +3812,9 @@ export const businessFields = [
|
|
|
3797
3812
|
disabled: !1,
|
|
3798
3813
|
hidden: !1,
|
|
3799
3814
|
|
|
3800
|
-
tempStorageFlag:1,
|
|
3801
|
-
tempStorageCode:null,
|
|
3802
|
-
tempStorageConfirm:null,
|
|
3815
|
+
tempStorageFlag: 1,
|
|
3816
|
+
tempStorageCode: null,
|
|
3817
|
+
tempStorageConfirm: null,
|
|
3803
3818
|
|
|
3804
3819
|
customClass: "",
|
|
3805
3820
|
onCreated: "",
|
|
@@ -3819,16 +3834,14 @@ export const businessFields = [
|
|
|
3819
3834
|
// disabled: !1,
|
|
3820
3835
|
hidden: !1,
|
|
3821
3836
|
|
|
3822
|
-
oplogFlag:1,
|
|
3837
|
+
oplogFlag: 1,
|
|
3823
3838
|
formScriptCode: "listUserLog",
|
|
3824
|
-
oplogTypeCode:null,
|
|
3825
|
-
oplogBusinessKey:null,
|
|
3826
|
-
|
|
3839
|
+
oplogTypeCode: null,
|
|
3840
|
+
oplogBusinessKey: null,
|
|
3827
3841
|
|
|
3828
3842
|
customClass: "",
|
|
3829
3843
|
onCreated: "",
|
|
3830
3844
|
onMounted: "",
|
|
3831
|
-
|
|
3832
3845
|
},
|
|
3833
3846
|
},
|
|
3834
3847
|
{
|
|
@@ -3860,8 +3873,10 @@ export const businessFields = [
|
|
|
3860
3873
|
vabUpload2Flag: 1,
|
|
3861
3874
|
|
|
3862
3875
|
vabupload2_scriptCode: "/intf/getHxFileUploadConfig",
|
|
3863
|
-
vabupload2_uploadParam:
|
|
3864
|
-
|
|
3876
|
+
vabupload2_uploadParam:
|
|
3877
|
+
'return {\n entityName: "msdyn_workorder",\n entityId: dataId,\n backendwriteback: "10",\n fileCategory: "工单",\n}',
|
|
3878
|
+
vabupload2_deleteParam:
|
|
3879
|
+
'return {\r\n entityName: "msdyn_workorder",\r\n entityId: dataId,\r\n backendwriteback: "10",\r\n}',
|
|
3865
3880
|
// vabupload2_getFileParam:"",
|
|
3866
3881
|
|
|
3867
3882
|
// ...httpConfig,
|