cloud-web-corejs 1.0.234 → 1.0.235
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/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +84 -55
- package/src/components/xform/lang/zh-CN.js +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<static-content-wrapper
|
|
3
|
+
:designer="designer"
|
|
4
|
+
:field="field"
|
|
5
|
+
:design-state="designState"
|
|
6
|
+
:parent-widget="parentWidget"
|
|
7
|
+
:parent-list="parentList"
|
|
8
|
+
:index-of-parent-list="indexOfParentList"
|
|
9
|
+
:sub-form-row-index="subFormRowIndex"
|
|
10
|
+
:sub-form-col-index="subFormColIndex"
|
|
11
|
+
:sub-form-row-id="subFormRowId"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
v-if="designState"
|
|
15
|
+
class="designer-vue-page-container"
|
|
16
|
+
:style="containerStyle"
|
|
17
|
+
>
|
|
18
|
+
<div class="designer-vue-page-title">Vue页面</div>
|
|
19
|
+
<div class="designer-vue-page-path">
|
|
20
|
+
{{ componentPath || "请配置 Vue 页面路径" }}
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div v-else class="vue-page-container" :style="containerStyle">
|
|
24
|
+
<div v-if="!componentPath" class="vue-page-placeholder">
|
|
25
|
+
{{ $t1("请配置 Vue 页面路径") }}
|
|
26
|
+
</div>
|
|
27
|
+
<div v-else-if="loadError" class="vue-page-error">{{ loadError }}</div>
|
|
28
|
+
<div v-else-if="loading" class="vue-page-loading">
|
|
29
|
+
{{ $t1("页面加载中...") }}
|
|
30
|
+
</div>
|
|
31
|
+
<component
|
|
32
|
+
v-if="showComponent && dynamicComponent"
|
|
33
|
+
:is="dynamicComponent"
|
|
34
|
+
:key="componentRenderKey"
|
|
35
|
+
v-bind="componentProps"
|
|
36
|
+
visible-key="showComponent"
|
|
37
|
+
:parent-target="_self"
|
|
38
|
+
@reload="$reloadHandle"
|
|
39
|
+
/>
|
|
40
|
+
</div>
|
|
41
|
+
</static-content-wrapper>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
import StaticContentWrapper from "./static-content-wrapper";
|
|
46
|
+
import emitter from "../../../utils/emitter";
|
|
47
|
+
import i18n from "../../../utils/i18n";
|
|
48
|
+
import fieldMixin from "./fieldMixin";
|
|
49
|
+
import { loadView } from "@base/store/modules/permission";
|
|
50
|
+
|
|
51
|
+
export default {
|
|
52
|
+
name: "vue-page-widget",
|
|
53
|
+
componentName: "FieldWidget",
|
|
54
|
+
mixins: [emitter, fieldMixin, i18n],
|
|
55
|
+
props: {
|
|
56
|
+
field: Object,
|
|
57
|
+
parentWidget: Object,
|
|
58
|
+
parentList: Array,
|
|
59
|
+
indexOfParentList: Number,
|
|
60
|
+
designer: Object,
|
|
61
|
+
designState: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false,
|
|
64
|
+
},
|
|
65
|
+
subFormRowIndex: {
|
|
66
|
+
type: Number,
|
|
67
|
+
default: -1,
|
|
68
|
+
},
|
|
69
|
+
subFormColIndex: {
|
|
70
|
+
type: Number,
|
|
71
|
+
default: -1,
|
|
72
|
+
},
|
|
73
|
+
subFormRowId: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
components: {
|
|
79
|
+
StaticContentWrapper,
|
|
80
|
+
},
|
|
81
|
+
data() {
|
|
82
|
+
return {
|
|
83
|
+
showComponent: false,
|
|
84
|
+
dynamicComponent: null,
|
|
85
|
+
componentProps: {},
|
|
86
|
+
componentRenderKey: 0,
|
|
87
|
+
loading: false,
|
|
88
|
+
loadError: null,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
computed: {
|
|
92
|
+
componentPath() {
|
|
93
|
+
return (this.field.options.componentPath || "").trim();
|
|
94
|
+
},
|
|
95
|
+
containerStyle() {
|
|
96
|
+
const height = (this.field.options.componentHeight || "").trim();
|
|
97
|
+
if (!height) {
|
|
98
|
+
return {};
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
height,
|
|
102
|
+
minHeight: height,
|
|
103
|
+
overflow: "auto",
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
created() {
|
|
108
|
+
this.registerToRefList();
|
|
109
|
+
this.initEventHandler();
|
|
110
|
+
this.handleOnCreated();
|
|
111
|
+
},
|
|
112
|
+
mounted() {
|
|
113
|
+
this.handleOnMounted();
|
|
114
|
+
},
|
|
115
|
+
beforeDestroy() {
|
|
116
|
+
this.unregisterFromRefList();
|
|
117
|
+
},
|
|
118
|
+
methods: {
|
|
119
|
+
normalizeComponentPath(path) {
|
|
120
|
+
return path.replace(/\.vue$/i, "");
|
|
121
|
+
},
|
|
122
|
+
resetComponentState() {
|
|
123
|
+
this.showComponent = false;
|
|
124
|
+
this.dynamicComponent = null;
|
|
125
|
+
this.componentProps = {};
|
|
126
|
+
this.loading = false;
|
|
127
|
+
this.loadError = null;
|
|
128
|
+
},
|
|
129
|
+
loadPage() {
|
|
130
|
+
if (this.designState) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const path = this.normalizeComponentPath(this.componentPath);
|
|
135
|
+
if (!path) {
|
|
136
|
+
this.resetComponentState();
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (this.dynamicComponent) {
|
|
141
|
+
this.updateComponentProps();
|
|
142
|
+
this.showComponent = true;
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
this.showComponent = false;
|
|
147
|
+
this.loadError = null;
|
|
148
|
+
this.loading = true;
|
|
149
|
+
|
|
150
|
+
try {
|
|
151
|
+
const loader = loadView(path);
|
|
152
|
+
loader((component) => {
|
|
153
|
+
if (path !== this.normalizeComponentPath(this.componentPath)) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
this.loading = false;
|
|
157
|
+
if (!component) {
|
|
158
|
+
this.loadError = this.$t1("页面组件未找到");
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
this.dynamicComponent = component.default || component;
|
|
162
|
+
this.componentRenderKey += 1;
|
|
163
|
+
this.updateComponentProps();
|
|
164
|
+
this.showComponent = true;
|
|
165
|
+
});
|
|
166
|
+
} catch (error) {
|
|
167
|
+
this.loading = false;
|
|
168
|
+
this.loadError = error.message || this.$t1("页面加载失败");
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
reloadPage() {
|
|
172
|
+
if (!this.dynamicComponent) {
|
|
173
|
+
this.loadPage();
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
this.$openEditView("showComponent");
|
|
177
|
+
},
|
|
178
|
+
updateComponentProps() {
|
|
179
|
+
if (this.designState || !this.dynamicComponent) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
let props = this.handleCustomEvent(this.field.options.componentConfig);
|
|
184
|
+
this.componentProps = props && typeof props === "object" ? props : {};
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
</script>
|
|
189
|
+
|
|
190
|
+
<style lang="scss" scoped>
|
|
191
|
+
@import "~@/styles/global.scss";
|
|
192
|
+
|
|
193
|
+
.designer-vue-page-container {
|
|
194
|
+
outline: 1px dashed #336699;
|
|
195
|
+
padding: 12px;
|
|
196
|
+
margin: 5px;
|
|
197
|
+
min-height: 120px;
|
|
198
|
+
background: #f8fbff;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.designer-vue-page-title {
|
|
202
|
+
font-size: 14px;
|
|
203
|
+
font-weight: 600;
|
|
204
|
+
color: #336699;
|
|
205
|
+
margin-bottom: 8px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.designer-vue-page-path {
|
|
209
|
+
font-size: 12px;
|
|
210
|
+
color: #666;
|
|
211
|
+
word-break: break-all;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.vue-page-container {
|
|
215
|
+
width: 100%;
|
|
216
|
+
min-height: 120px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.vue-page-placeholder,
|
|
220
|
+
.vue-page-loading,
|
|
221
|
+
.vue-page-error {
|
|
222
|
+
padding: 16px;
|
|
223
|
+
font-size: 13px;
|
|
224
|
+
color: #909399;
|
|
225
|
+
text-align: center;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.vue-page-error {
|
|
229
|
+
color: #f56c6c;
|
|
230
|
+
}
|
|
231
|
+
</style>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item label="Vue页面路径">
|
|
4
|
+
<el-input
|
|
5
|
+
v-model="optionModel.componentPath"
|
|
6
|
+
placeholder="如 @base/views/user/form/view/list 或 /user/form/view/list"
|
|
7
|
+
></el-input>
|
|
8
|
+
</el-form-item>
|
|
9
|
+
<el-form-item label="页面高度">
|
|
10
|
+
<el-input
|
|
11
|
+
v-model="optionModel.componentHeight"
|
|
12
|
+
placeholder="如 500px,留空则自适应"
|
|
13
|
+
></el-input>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
<el-form-item label="页面传参" label-width="150px">
|
|
16
|
+
<a
|
|
17
|
+
href="javascript:void(0);"
|
|
18
|
+
class="a-link link-oneLind"
|
|
19
|
+
@click="editEventHandler('componentConfig', params)"
|
|
20
|
+
>
|
|
21
|
+
<span>{{ optionModel.componentConfig }}</span>
|
|
22
|
+
<i class="el-icon-edit"></i>
|
|
23
|
+
</a>
|
|
24
|
+
</el-form-item>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import i18n from "../../../../utils/i18n";
|
|
30
|
+
import eventMixin from "../event-handler/eventMixin";
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
name: "vue-page-editor",
|
|
34
|
+
mixins: [i18n, eventMixin],
|
|
35
|
+
props: {
|
|
36
|
+
designer: Object,
|
|
37
|
+
selectedWidget: Object,
|
|
38
|
+
optionModel: Object,
|
|
39
|
+
},
|
|
40
|
+
data() {
|
|
41
|
+
return {
|
|
42
|
+
params: ["dataId", "formCode"],
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style scoped></style>
|
|
@@ -271,9 +271,9 @@ export const containers = [
|
|
|
271
271
|
isNotQueryAllPage: false,
|
|
272
272
|
isNotShowQueryButton: false,
|
|
273
273
|
|
|
274
|
-
exportItemColumns:[],
|
|
274
|
+
exportItemColumns: [],
|
|
275
275
|
exportItemScriptCode: null,
|
|
276
|
-
exportItemParam:
|
|
276
|
+
exportItemParam: null,
|
|
277
277
|
},
|
|
278
278
|
},
|
|
279
279
|
/*{
|
|
@@ -450,6 +450,7 @@ export const containers = [
|
|
|
450
450
|
category: "container",
|
|
451
451
|
icon: "grid",
|
|
452
452
|
commonFlag: !0,
|
|
453
|
+
formItemFlag: !0,
|
|
453
454
|
layoutType: "H5",
|
|
454
455
|
lineButtons: [],
|
|
455
456
|
buttons: [],
|
|
@@ -457,13 +458,18 @@ export const containers = [
|
|
|
457
458
|
tableField: null,
|
|
458
459
|
options: {
|
|
459
460
|
name: "",
|
|
461
|
+
keyNameEnabled: !0,
|
|
462
|
+
keyName: "",
|
|
460
463
|
hidden: !1,
|
|
461
464
|
label: "",
|
|
462
465
|
listH5: true,
|
|
463
466
|
// colHeight: null,
|
|
464
467
|
customClass: "",
|
|
465
468
|
isQueryTable: false,
|
|
469
|
+
|
|
466
470
|
accessUrl: null,
|
|
471
|
+
...httpConfig,
|
|
472
|
+
formScriptEnabled: false,
|
|
467
473
|
tableColumns: [
|
|
468
474
|
{
|
|
469
475
|
columnId: 1,
|
|
@@ -743,7 +749,7 @@ export const containers = [
|
|
|
743
749
|
disLocalFilter: false,
|
|
744
750
|
treeFilterType: 0,
|
|
745
751
|
onFilterIconClick: null,
|
|
746
|
-
onFilterTextChange:null
|
|
752
|
+
onFilterTextChange: null,
|
|
747
753
|
},
|
|
748
754
|
},
|
|
749
755
|
];
|
|
@@ -759,7 +765,7 @@ export const defaultSearchDialogConfig = {
|
|
|
759
765
|
multipleChoices: true,
|
|
760
766
|
confirmCallback: null,
|
|
761
767
|
dialogQueryParam: null,
|
|
762
|
-
dialogCustomParam:null
|
|
768
|
+
dialogCustomParam: null,
|
|
763
769
|
};
|
|
764
770
|
|
|
765
771
|
export const defaultWfConfig = {
|
|
@@ -793,6 +799,12 @@ export const defaultWidgetShowRuleConfig = {
|
|
|
793
799
|
widgetShowRuleConfig: [],
|
|
794
800
|
};
|
|
795
801
|
|
|
802
|
+
export const defaultLabelIconConfig = {
|
|
803
|
+
labelIconClass: null,
|
|
804
|
+
labelIconPosition: "rear",
|
|
805
|
+
labelTooltip: null,
|
|
806
|
+
};
|
|
807
|
+
|
|
796
808
|
const vabsearchConfig = {
|
|
797
809
|
name: "",
|
|
798
810
|
keyNameEnabled: !1,
|
|
@@ -808,6 +820,7 @@ const vabsearchConfig = {
|
|
|
808
820
|
required: !1,
|
|
809
821
|
labelWidth: null,
|
|
810
822
|
labelHidden: !1,
|
|
823
|
+
...defaultLabelIconConfig,
|
|
811
824
|
readonly: true,
|
|
812
825
|
/*formCode: null,
|
|
813
826
|
formName: null,
|
|
@@ -857,6 +870,7 @@ const projectTagConfig = {
|
|
|
857
870
|
required: !1,
|
|
858
871
|
labelWidth: null,
|
|
859
872
|
labelHidden: !1,
|
|
873
|
+
...defaultLabelIconConfig,
|
|
860
874
|
onCreated: "if(dataId)this.loadDataDefaultHandle();",
|
|
861
875
|
onMounted: "",
|
|
862
876
|
onClick: "",
|
|
@@ -881,13 +895,13 @@ const projectTagConfig = {
|
|
|
881
895
|
tagConfirmCallback: null,
|
|
882
896
|
tagDeleteCallback: null,
|
|
883
897
|
tabDeleteEnabled: true,
|
|
884
|
-
tagWidth: ""
|
|
898
|
+
tagWidth: "",
|
|
885
899
|
};
|
|
886
900
|
|
|
887
901
|
const httpConfig = {
|
|
888
902
|
httpFormCode: null,
|
|
889
903
|
formScriptEnabled: true,
|
|
890
|
-
commonAttributeEnabled:false,
|
|
904
|
+
commonAttributeEnabled: false,
|
|
891
905
|
formScriptCode: null,
|
|
892
906
|
formScriptParam: null,
|
|
893
907
|
formScriptSuccess: null,
|
|
@@ -904,7 +918,13 @@ export const hiddenWidgetTypesOfWf = [
|
|
|
904
918
|
"print-button",
|
|
905
919
|
"dropdown-item",
|
|
906
920
|
];
|
|
907
|
-
export const freeWidgetTypesOfWf = [
|
|
921
|
+
export const freeWidgetTypesOfWf = [
|
|
922
|
+
"reset_button",
|
|
923
|
+
"copy_button",
|
|
924
|
+
"a-link",
|
|
925
|
+
"a-text",
|
|
926
|
+
"dropdown",
|
|
927
|
+
];
|
|
908
928
|
|
|
909
929
|
export const basicFields = [
|
|
910
930
|
{
|
|
@@ -1004,17 +1024,7 @@ export const basicFields = [
|
|
|
1004
1024
|
validation: "",
|
|
1005
1025
|
validationHint: "",
|
|
1006
1026
|
customClass: "",
|
|
1007
|
-
|
|
1008
|
-
labelIconPosition: "rear",
|
|
1009
|
-
labelTooltip: null,
|
|
1010
|
-
minLength: null,
|
|
1011
|
-
maxLength: null,
|
|
1012
|
-
showWordLimit: !1,
|
|
1013
|
-
prefixIcon: "",
|
|
1014
|
-
suffixIcon: "",
|
|
1015
|
-
appendButton: !1,
|
|
1016
|
-
appendButtonDisabled: !1,
|
|
1017
|
-
buttonIcon: "el-icon-search",*/
|
|
1027
|
+
...defaultLabelIconConfig,
|
|
1018
1028
|
onCreated: "",
|
|
1019
1029
|
onMounted: "",
|
|
1020
1030
|
onInput: "",
|
|
@@ -1177,12 +1187,12 @@ export const basicFields = [
|
|
|
1177
1187
|
{
|
|
1178
1188
|
label: "radio 1",
|
|
1179
1189
|
value: "1",
|
|
1180
|
-
disabled: false
|
|
1190
|
+
disabled: false,
|
|
1181
1191
|
},
|
|
1182
1192
|
{
|
|
1183
1193
|
label: "radio 2",
|
|
1184
1194
|
value: "2",
|
|
1185
|
-
disabled: false
|
|
1195
|
+
disabled: false,
|
|
1186
1196
|
},
|
|
1187
1197
|
],
|
|
1188
1198
|
required: !1,
|
|
@@ -1249,12 +1259,12 @@ export const basicFields = [
|
|
|
1249
1259
|
{
|
|
1250
1260
|
label: "check 1",
|
|
1251
1261
|
value: "1",
|
|
1252
|
-
disabled: false
|
|
1262
|
+
disabled: false,
|
|
1253
1263
|
},
|
|
1254
1264
|
{
|
|
1255
1265
|
label: "check 2",
|
|
1256
1266
|
value: "2",
|
|
1257
|
-
disabled: false
|
|
1267
|
+
disabled: false,
|
|
1258
1268
|
},
|
|
1259
1269
|
],
|
|
1260
1270
|
required: !1,
|
|
@@ -1328,17 +1338,17 @@ export const basicFields = [
|
|
|
1328
1338
|
{
|
|
1329
1339
|
label: "select 1",
|
|
1330
1340
|
value: "1",
|
|
1331
|
-
disabled: false
|
|
1341
|
+
disabled: false,
|
|
1332
1342
|
},
|
|
1333
1343
|
{
|
|
1334
1344
|
label: "select 2",
|
|
1335
1345
|
value: "2",
|
|
1336
|
-
disabled: false
|
|
1346
|
+
disabled: false,
|
|
1337
1347
|
},
|
|
1338
1348
|
{
|
|
1339
1349
|
label: "select 3",
|
|
1340
1350
|
value: "3",
|
|
1341
|
-
disabled: false
|
|
1351
|
+
disabled: false,
|
|
1342
1352
|
},
|
|
1343
1353
|
],
|
|
1344
1354
|
required: !1,
|
|
@@ -1405,6 +1415,7 @@ export const basicFields = [
|
|
|
1405
1415
|
clearable: !0,
|
|
1406
1416
|
editable: !1,
|
|
1407
1417
|
format: "HH:mm:ss",
|
|
1418
|
+
utcTransformEnabled: !1,
|
|
1408
1419
|
required: !1,
|
|
1409
1420
|
requiredHint: "",
|
|
1410
1421
|
validation: "",
|
|
@@ -1458,6 +1469,7 @@ export const basicFields = [
|
|
|
1458
1469
|
clearable: !0,
|
|
1459
1470
|
editable: !1,
|
|
1460
1471
|
format: "HH:mm:ss",
|
|
1472
|
+
utcTransformEnabled: !1,
|
|
1461
1473
|
required: !1,
|
|
1462
1474
|
requiredHint: "",
|
|
1463
1475
|
validation: "",
|
|
@@ -1511,6 +1523,12 @@ export const basicFields = [
|
|
|
1511
1523
|
editable: !1,
|
|
1512
1524
|
format: "yyyy-MM-dd",
|
|
1513
1525
|
valueFormat: "yyyy-MM-dd",
|
|
1526
|
+
dateLimit: null,
|
|
1527
|
+
limitStartField: null,
|
|
1528
|
+
limitEndField: null,
|
|
1529
|
+
minDate: null,
|
|
1530
|
+
maxDate: null,
|
|
1531
|
+
utcTransformEnabled: !1,
|
|
1514
1532
|
required: !1,
|
|
1515
1533
|
requiredHint: "",
|
|
1516
1534
|
validation: "",
|
|
@@ -1567,6 +1585,7 @@ export const basicFields = [
|
|
|
1567
1585
|
format: "yyyy-MM-dd",
|
|
1568
1586
|
valueFormat: "yyyy-MM-dd",
|
|
1569
1587
|
defaultTime: ["00:00:00", "23:59:59"],
|
|
1588
|
+
utcTransformEnabled: !1,
|
|
1570
1589
|
required: !1,
|
|
1571
1590
|
requiredHint: "",
|
|
1572
1591
|
validation: "",
|
|
@@ -1725,8 +1744,8 @@ export const basicFields = [
|
|
|
1725
1744
|
hidden: !1,
|
|
1726
1745
|
textContent: "static text",
|
|
1727
1746
|
fontSize: "13px",
|
|
1728
|
-
preWrap: true,
|
|
1729
|
-
colorClass: "",
|
|
1747
|
+
preWrap: true, //是否自动换行
|
|
1748
|
+
colorClass: "", //字体颜色
|
|
1730
1749
|
customClass: "",
|
|
1731
1750
|
onCreated: "",
|
|
1732
1751
|
onMounted: "",
|
|
@@ -1918,6 +1937,7 @@ export const basicFields = [
|
|
|
1918
1937
|
labelAlign: "",
|
|
1919
1938
|
labelWidth: null,
|
|
1920
1939
|
labelHidden: !1,
|
|
1940
|
+
...defaultLabelIconConfig,
|
|
1921
1941
|
onCreated: "",
|
|
1922
1942
|
onMounted: "",
|
|
1923
1943
|
accessType: "1",
|
|
@@ -1927,6 +1947,7 @@ export const basicFields = [
|
|
|
1927
1947
|
autoValueHanlde: null,
|
|
1928
1948
|
formatType: null,
|
|
1929
1949
|
renderHandle: null,
|
|
1950
|
+
utcTransformEnabled: !1,
|
|
1930
1951
|
|
|
1931
1952
|
showRuleFlag: 1,
|
|
1932
1953
|
showRuleEnabled: 1,
|
|
@@ -1960,6 +1981,7 @@ export const basicFields = [
|
|
|
1960
1981
|
hidden: !1,
|
|
1961
1982
|
|
|
1962
1983
|
customClass: "",
|
|
1984
|
+
...defaultLabelIconConfig,
|
|
1963
1985
|
|
|
1964
1986
|
prefixIcon: "",
|
|
1965
1987
|
suffixIcon: "",
|
|
@@ -2732,7 +2754,7 @@ export const advancedFields = [
|
|
|
2732
2754
|
onMounted: "",
|
|
2733
2755
|
onAfterConfirmFile: "",
|
|
2734
2756
|
vabUpload: 1,
|
|
2735
|
-
|
|
2757
|
+
...defaultLabelIconConfig,
|
|
2736
2758
|
...httpConfig,
|
|
2737
2759
|
formScriptCode: "getList",
|
|
2738
2760
|
|
|
@@ -3070,7 +3092,7 @@ export const advancedFields = [
|
|
|
3070
3092
|
...defaultWfConfig,
|
|
3071
3093
|
hiddenByWf: true,
|
|
3072
3094
|
...defaultWidgetShowRuleConfig,
|
|
3073
|
-
importMultiple:false,
|
|
3095
|
+
importMultiple: false,
|
|
3074
3096
|
importMultiSize: 1,
|
|
3075
3097
|
importFileLimitSize: 200,
|
|
3076
3098
|
importEntity: "",
|
|
@@ -3081,9 +3103,9 @@ export const advancedFields = [
|
|
|
3081
3103
|
enabledImportPreHandle: false,
|
|
3082
3104
|
tableRef: "",
|
|
3083
3105
|
onSuccessImport: "",
|
|
3084
|
-
hideCancelButton:false,
|
|
3106
|
+
hideCancelButton: false,
|
|
3085
3107
|
multipleSheet: false,
|
|
3086
|
-
onBeforeClickButton:null,
|
|
3108
|
+
onBeforeClickButton: null,
|
|
3087
3109
|
|
|
3088
3110
|
showRuleFlag: 1,
|
|
3089
3111
|
showRuleEnabled: 1,
|
|
@@ -3130,8 +3152,8 @@ export const advancedFields = [
|
|
|
3130
3152
|
onConfirmImportEnabled: false,
|
|
3131
3153
|
onConfirmImport: "",
|
|
3132
3154
|
onSuccessImport: "",
|
|
3133
|
-
hideCancelButton:false,
|
|
3134
|
-
onBeforeClickButton:null,
|
|
3155
|
+
hideCancelButton: false,
|
|
3156
|
+
onBeforeClickButton: null,
|
|
3135
3157
|
|
|
3136
3158
|
showRuleFlag: 1,
|
|
3137
3159
|
showRuleEnabled: 1,
|
|
@@ -3169,7 +3191,7 @@ export const advancedFields = [
|
|
|
3169
3191
|
...defaultWidgetShowRuleConfig,
|
|
3170
3192
|
|
|
3171
3193
|
// customLabelEnabled: false,
|
|
3172
|
-
printButtonFlag:1,
|
|
3194
|
+
printButtonFlag: 1,
|
|
3173
3195
|
printTableRef: "",
|
|
3174
3196
|
printItems: [],
|
|
3175
3197
|
// printCustomCondition: "",
|
|
@@ -3209,7 +3231,7 @@ export const advancedFields = [
|
|
|
3209
3231
|
...defaultWfConfig,
|
|
3210
3232
|
...defaultWidgetShowRuleConfig,
|
|
3211
3233
|
|
|
3212
|
-
printDetailButtonFlag:1,
|
|
3234
|
+
printDetailButtonFlag: 1,
|
|
3213
3235
|
// customLabelEnabled: false,
|
|
3214
3236
|
printItems: [],
|
|
3215
3237
|
printCustomCondition: "return {\n id:[dataId]\n}",
|
|
@@ -3272,11 +3294,12 @@ export const advancedFields = [
|
|
|
3272
3294
|
labelWidth: null,
|
|
3273
3295
|
labelHidden: !1,
|
|
3274
3296
|
optionItemValueType: 0,
|
|
3297
|
+
...defaultLabelIconConfig,
|
|
3275
3298
|
statusType: "common",
|
|
3276
3299
|
statusParam: [],
|
|
3277
3300
|
|
|
3278
3301
|
...httpConfig,
|
|
3279
|
-
formScriptEnabled:false,
|
|
3302
|
+
formScriptEnabled: false,
|
|
3280
3303
|
|
|
3281
3304
|
onCreated: "",
|
|
3282
3305
|
onMounted: "",
|
|
@@ -3349,7 +3372,7 @@ export const advancedFields = [
|
|
|
3349
3372
|
tableField: null,
|
|
3350
3373
|
options: {
|
|
3351
3374
|
...projectTagConfig,
|
|
3352
|
-
formScriptEnabled: true
|
|
3375
|
+
formScriptEnabled: true,
|
|
3353
3376
|
},
|
|
3354
3377
|
},
|
|
3355
3378
|
{
|
|
@@ -3448,7 +3471,6 @@ export const advancedFields = [
|
|
|
3448
3471
|
customClass: "",
|
|
3449
3472
|
onCreated: "",
|
|
3450
3473
|
onMounted: "",
|
|
3451
|
-
|
|
3452
3474
|
},
|
|
3453
3475
|
},
|
|
3454
3476
|
|
|
@@ -3490,7 +3512,7 @@ export const advancedFields = [
|
|
|
3490
3512
|
},
|
|
3491
3513
|
},
|
|
3492
3514
|
|
|
3493
|
-
|
|
3515
|
+
{
|
|
3494
3516
|
type: "vue-page",
|
|
3495
3517
|
icon: "html-text",
|
|
3496
3518
|
commonFlag: !0,
|
|
@@ -3500,15 +3522,18 @@ export const advancedFields = [
|
|
|
3500
3522
|
name: "",
|
|
3501
3523
|
hidden: !1,
|
|
3502
3524
|
customClass: "",
|
|
3503
|
-
onCreated: "",
|
|
3525
|
+
onCreated: "this.loadPage();",
|
|
3504
3526
|
onMounted: "",
|
|
3527
|
+
vuePageFlag: 1,
|
|
3505
3528
|
componentPath: "",
|
|
3529
|
+
componentHeight: "",
|
|
3506
3530
|
componentConfig: "",
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3531
|
+
accessType: "1",
|
|
3532
|
+
showRuleFlag: 1,
|
|
3533
|
+
showRuleEnabled: 1,
|
|
3534
|
+
showRules: [],
|
|
3510
3535
|
},
|
|
3511
|
-
},
|
|
3536
|
+
},
|
|
3512
3537
|
];
|
|
3513
3538
|
|
|
3514
3539
|
export const businessFields = [
|
|
@@ -3534,6 +3559,7 @@ export const businessFields = [
|
|
|
3534
3559
|
labelAlign: "",
|
|
3535
3560
|
labelWidth: null,
|
|
3536
3561
|
labelHidden: !1,
|
|
3562
|
+
...defaultLabelIconConfig,
|
|
3537
3563
|
onCreated: "",
|
|
3538
3564
|
onMounted: "",
|
|
3539
3565
|
accessType: "1",
|
|
@@ -3572,6 +3598,7 @@ export const businessFields = [
|
|
|
3572
3598
|
labelAlign: "",
|
|
3573
3599
|
labelWidth: null,
|
|
3574
3600
|
labelHidden: !1,
|
|
3601
|
+
...defaultLabelIconConfig,
|
|
3575
3602
|
onCreated: "",
|
|
3576
3603
|
onMounted: "",
|
|
3577
3604
|
accessType: "1",
|
|
@@ -3610,6 +3637,7 @@ export const businessFields = [
|
|
|
3610
3637
|
labelAlign: "",
|
|
3611
3638
|
labelWidth: null,
|
|
3612
3639
|
labelHidden: !1,
|
|
3640
|
+
...defaultLabelIconConfig,
|
|
3613
3641
|
onCreated: "",
|
|
3614
3642
|
onMounted: "",
|
|
3615
3643
|
accessType: "1",
|
|
@@ -3648,6 +3676,7 @@ export const businessFields = [
|
|
|
3648
3676
|
labelAlign: "",
|
|
3649
3677
|
labelWidth: null,
|
|
3650
3678
|
labelHidden: !1,
|
|
3679
|
+
...defaultLabelIconConfig,
|
|
3651
3680
|
onCreated: "",
|
|
3652
3681
|
onMounted: "",
|
|
3653
3682
|
accessType: "1",
|
|
@@ -3797,9 +3826,9 @@ export const businessFields = [
|
|
|
3797
3826
|
disabled: !1,
|
|
3798
3827
|
hidden: !1,
|
|
3799
3828
|
|
|
3800
|
-
tempStorageFlag:1,
|
|
3801
|
-
tempStorageCode:null,
|
|
3802
|
-
tempStorageConfirm:null,
|
|
3829
|
+
tempStorageFlag: 1,
|
|
3830
|
+
tempStorageCode: null,
|
|
3831
|
+
tempStorageConfirm: null,
|
|
3803
3832
|
|
|
3804
3833
|
customClass: "",
|
|
3805
3834
|
onCreated: "",
|
|
@@ -3819,16 +3848,14 @@ export const businessFields = [
|
|
|
3819
3848
|
// disabled: !1,
|
|
3820
3849
|
hidden: !1,
|
|
3821
3850
|
|
|
3822
|
-
oplogFlag:1,
|
|
3851
|
+
oplogFlag: 1,
|
|
3823
3852
|
formScriptCode: "listUserLog",
|
|
3824
|
-
oplogTypeCode:null,
|
|
3825
|
-
oplogBusinessKey:null,
|
|
3826
|
-
|
|
3853
|
+
oplogTypeCode: null,
|
|
3854
|
+
oplogBusinessKey: null,
|
|
3827
3855
|
|
|
3828
3856
|
customClass: "",
|
|
3829
3857
|
onCreated: "",
|
|
3830
3858
|
onMounted: "",
|
|
3831
|
-
|
|
3832
3859
|
},
|
|
3833
3860
|
},
|
|
3834
3861
|
{
|
|
@@ -3860,13 +3887,15 @@ export const businessFields = [
|
|
|
3860
3887
|
vabUpload2Flag: 1,
|
|
3861
3888
|
|
|
3862
3889
|
vabupload2_scriptCode: "/intf/getHxFileUploadConfig",
|
|
3863
|
-
vabupload2_uploadParam:
|
|
3864
|
-
|
|
3890
|
+
vabupload2_uploadParam:
|
|
3891
|
+
'return {\n entityName: "msdyn_workorder",\n entityId: dataId,\n backendwriteback: "10",\n fileCategory: "工单",\n}',
|
|
3892
|
+
vabupload2_deleteParam:
|
|
3893
|
+
'return {\r\n entityName: "msdyn_workorder",\r\n entityId: dataId,\r\n backendwriteback: "10",\r\n}',
|
|
3865
3894
|
// vabupload2_getFileParam:"",
|
|
3866
3895
|
|
|
3867
3896
|
// ...httpConfig,
|
|
3868
3897
|
// formScriptCode: "getList",
|
|
3869
|
-
|
|
3898
|
+
...defaultLabelIconConfig,
|
|
3870
3899
|
...defaultWfConfig,
|
|
3871
3900
|
|
|
3872
3901
|
showRuleFlag: 1,
|