cloud-web-corejs 1.0.68 → 1.0.70
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 +2 -2
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/excelExport/mixins.js +1 -2
- package/src/components/fileLibrary/index.vue +3 -3
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +0 -2
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +2 -1
- package/src/components/jsonImport/index.js +17 -17
- package/src/components/jsonImport/mixins.js +1 -1
- package/src/components/table/index.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +35 -5
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +40 -10
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +58 -91
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +8 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +8 -6
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +13 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +5 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +103 -18
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +44 -4
- package/src/components/xform/form-render/container-item/data-table-item.vue +5 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/utils/request.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/edit.vue +6 -2
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +4 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +1 -1
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +4 -4
- package/src/views/bd/setting/form_template/wf_list.vue +1 -1
- package/src/views/bd/setting/table_model/edit.vue +1 -1
- package/src/views/bd/setting/table_model/list.vue +4 -2
- package/src/views/bd/setting/table_model/mixins/list.js +14 -14
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +19 -9
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/user/edit.vue +2 -2
- package/src/views/user/user/form_edit.vue +117 -49
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/info.vue +21 -91
- package/src/views/user/user/list.vue +563 -563
package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue
CHANGED
@@ -81,7 +81,10 @@ export default {
|
|
81
81
|
},
|
82
82
|
confirm: (rows, fileInfos) => {
|
83
83
|
this.fieldModel = rows;
|
84
|
-
this.field.options.onAfterConfirmFile && this.field.options.onAfterConfirmFile(rows, fileInfos);
|
84
|
+
// this.field.options.onAfterConfirmFile && this.field.options.onAfterConfirmFile(rows, fileInfos);
|
85
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
86
|
+
let eventParamValues = [rows, fileInfos];
|
87
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
85
88
|
}
|
86
89
|
};
|
87
90
|
}
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js
CHANGED
@@ -53,7 +53,6 @@ modules = {
|
|
53
53
|
serieClone: {},
|
54
54
|
showChart: true,
|
55
55
|
colors: [
|
56
|
-
|
57
56
|
{
|
58
57
|
type: 'linear',
|
59
58
|
x: 0.5,
|
@@ -207,7 +206,7 @@ modules = {
|
|
207
206
|
}
|
208
207
|
}
|
209
208
|
},
|
210
|
-
chartOption(){
|
209
|
+
chartOption() {
|
211
210
|
return this.field.options.echarBarOption
|
212
211
|
}
|
213
212
|
},
|
@@ -236,9 +235,36 @@ modules = {
|
|
236
235
|
},
|
237
236
|
|
238
237
|
methods: {
|
239
|
-
|
238
|
+
reflush(){
|
239
|
+
this.showChart = false;
|
240
|
+
this.$nextTick(()=>{
|
241
|
+
this.showChart = true
|
242
|
+
})
|
243
|
+
},
|
244
|
+
getColors(){
|
245
|
+
let chartColors = this.field.options.echarBarOption.colors || [];
|
246
|
+
let colors = [...chartColors, ...this.colors];
|
247
|
+
return colors
|
248
|
+
},
|
249
|
+
adjustColor() {
|
250
|
+
let colors = this.getColors();
|
251
|
+
let colorsSize = colors.length;
|
252
|
+
this.field.options.echarBarOption.series.forEach((serie, index) => {
|
253
|
+
if (colorsSize > index) {
|
254
|
+
if (serie.itemStyle) {
|
255
|
+
serie.itemStyle.color = colors[index]
|
256
|
+
} else {
|
257
|
+
serie.itemStyle = {
|
258
|
+
color: colors[index]
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
})
|
263
|
+
},
|
264
|
+
initOption() {
|
240
265
|
let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
|
241
266
|
this.field.options.echarBarOption = extendDeeply(this.field.options.echarBarOption, echartConfig);
|
267
|
+
this.adjustColor();
|
242
268
|
},
|
243
269
|
/*async loadData() {
|
244
270
|
if (this.designState) {
|
@@ -372,7 +398,7 @@ modules = {
|
|
372
398
|
});
|
373
399
|
},
|
374
400
|
setValue(rows) {
|
375
|
-
this.showChart
|
401
|
+
this.showChart = false;
|
376
402
|
let serieClone = this.serieClone;
|
377
403
|
let resDatas = rows || [];
|
378
404
|
let axisDatas = [];
|
@@ -391,14 +417,18 @@ modules = {
|
|
391
417
|
nameDatas.push(resData.name);
|
392
418
|
}
|
393
419
|
});
|
394
|
-
let colors = this.
|
420
|
+
let colors = this.getColors();
|
395
421
|
let colorsSize = colors.length;
|
396
422
|
nameDatas.forEach((nameItem, index) => {
|
397
423
|
let serie = deepClone(serieClone);
|
398
424
|
serie.name = nameItem;
|
399
|
-
if (
|
400
|
-
if (
|
425
|
+
if (colorsSize > index) {
|
426
|
+
if (serie.itemStyle) {
|
401
427
|
serie.itemStyle.color = colors[index]
|
428
|
+
} else {
|
429
|
+
serie.itemStyle = {
|
430
|
+
color: colors[index]
|
431
|
+
}
|
402
432
|
}
|
403
433
|
}
|
404
434
|
let serieDatas = [];
|
@@ -417,11 +447,11 @@ modules = {
|
|
417
447
|
let chartOptions = this.field.options.echarBarOption;
|
418
448
|
chartOptions[this.alignField].data = axisDatas;
|
419
449
|
chartOptions.series = newSeries;
|
420
|
-
this.$nextTick(()=>{
|
421
|
-
this.showChart
|
450
|
+
this.$nextTick(() => {
|
451
|
+
this.showChart = true;
|
422
452
|
})
|
423
453
|
},
|
424
|
-
getChart(){
|
454
|
+
getChart() {
|
425
455
|
return this.$refs.chart;
|
426
456
|
}
|
427
457
|
}
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js
CHANGED
@@ -9,6 +9,7 @@ import {CanvasRenderer} from 'echarts/renderers';
|
|
9
9
|
import {LineChart} from 'echarts/charts';
|
10
10
|
import {TitleComponent, TooltipComponent, LegendComponent} from 'echarts/components';
|
11
11
|
import {THEME_KEY} from 'vue-echarts';
|
12
|
+
import {extendDeeply} from "@base/utils/index.js";
|
12
13
|
|
13
14
|
use([CanvasRenderer, LineChart, TitleComponent, TooltipComponent, LegendComponent]);
|
14
15
|
let modules = {};
|
@@ -52,87 +53,8 @@ modules = {
|
|
52
53
|
requestAccesses: [],
|
53
54
|
requestAccess: null,
|
54
55
|
serieClone: {},
|
55
|
-
showChart:true,
|
56
|
-
colors: [
|
57
|
-
|
58
|
-
{
|
59
|
-
type: 'linear',
|
60
|
-
x: 0.5,
|
61
|
-
y: 0.9,
|
62
|
-
r: 0.2,
|
63
|
-
colorStops: [{
|
64
|
-
offset: 1, color: '#08C084' // 0% 处的颜色
|
65
|
-
}, {
|
66
|
-
offset: 0, color: '#97EACE' // 100% 处的颜色
|
67
|
-
}],
|
68
|
-
},
|
69
|
-
{
|
70
|
-
type: 'linear',
|
71
|
-
x: 0.5,
|
72
|
-
y: 0.9,
|
73
|
-
r: 0.2,
|
74
|
-
colorStops: [{
|
75
|
-
offset: 1, color: '#29ABE3' // 0% 处的颜色
|
76
|
-
}, {
|
77
|
-
offset: 0, color: '#AADEF4' // 100% 处的颜色
|
78
|
-
}],
|
79
|
-
},
|
80
|
-
{
|
81
|
-
type: 'linear',
|
82
|
-
x: 0.5,
|
83
|
-
y: 0.9,
|
84
|
-
r: 0.2,
|
85
|
-
colorStops: [{
|
86
|
-
offset: 1, color: '#0044FE' // 0% 处的颜色
|
87
|
-
}, {
|
88
|
-
offset: 0, color: '#97B3FF' // 100% 处的颜色
|
89
|
-
}],
|
90
|
-
},
|
91
|
-
{
|
92
|
-
type: 'linear',
|
93
|
-
x: 0.5,
|
94
|
-
y: 0.9,
|
95
|
-
r: 0.2,
|
96
|
-
colorStops: [{
|
97
|
-
offset: 1, color: '#75018A' // 0% 处的颜色
|
98
|
-
}, {
|
99
|
-
offset: 0, color: '#C492CD' // 100% 处的颜色
|
100
|
-
}],
|
101
|
-
},
|
102
|
-
{
|
103
|
-
type: 'linear',
|
104
|
-
x: 0.5,
|
105
|
-
y: 0.9,
|
106
|
-
r: 0.2,
|
107
|
-
colorStops: [{
|
108
|
-
offset: 1, color: '#BF0104' // 0% 处的颜色
|
109
|
-
}, {
|
110
|
-
offset: 0, color: '#E59697' // 100% 处的颜色
|
111
|
-
}],
|
112
|
-
},
|
113
|
-
{
|
114
|
-
type: 'linear',
|
115
|
-
x: 0.5,
|
116
|
-
y: 0.9,
|
117
|
-
r: 0.2,
|
118
|
-
colorStops: [{
|
119
|
-
offset: 1, color: '#FF8B01' // 0% 处的颜色
|
120
|
-
}, {
|
121
|
-
offset: 0, color: '#FFCF95' // 100% 处的颜色
|
122
|
-
}],
|
123
|
-
},
|
124
|
-
{
|
125
|
-
type: 'linear',
|
126
|
-
x: 0.5,
|
127
|
-
y: 0.9,
|
128
|
-
r: 0.2,
|
129
|
-
colorStops: [{
|
130
|
-
offset: 1, color: '#FAFE09' // 0% 处的颜色
|
131
|
-
}, {
|
132
|
-
offset: 0, color: '#FCFFAF' // 100% 处的颜色
|
133
|
-
}],
|
134
|
-
}
|
135
|
-
]
|
56
|
+
showChart: true,
|
57
|
+
colors: []
|
136
58
|
};
|
137
59
|
},
|
138
60
|
computed: {
|
@@ -158,8 +80,8 @@ modules = {
|
|
158
80
|
}
|
159
81
|
return '';
|
160
82
|
},
|
161
|
-
chartOption(){
|
162
|
-
return this.field.options.
|
83
|
+
chartOption() {
|
84
|
+
return this.field.options.echarCategoryOption
|
163
85
|
}
|
164
86
|
},
|
165
87
|
beforeCreate() {
|
@@ -174,6 +96,7 @@ modules = {
|
|
174
96
|
this.initEventHandler();
|
175
97
|
|
176
98
|
this.handleOnCreated();
|
99
|
+
this.initOption();
|
177
100
|
this.serieClone = deepClone(this.field.options.echarCategoryOption.series[0]);
|
178
101
|
// this.loadData();
|
179
102
|
},
|
@@ -187,6 +110,38 @@ modules = {
|
|
187
110
|
},
|
188
111
|
|
189
112
|
methods: {
|
113
|
+
getColors() {
|
114
|
+
let chartColors = this.field.options.echarCategoryOption.colors || [];
|
115
|
+
let colors = [...chartColors, ...this.colors];
|
116
|
+
return colors
|
117
|
+
},
|
118
|
+
adjustColor() {
|
119
|
+
let colors = this.getColors();
|
120
|
+
let colorsSize = colors.length;
|
121
|
+
this.field.options.echarCategoryOption.series.forEach((serie, index) => {
|
122
|
+
if (colorsSize > index) {
|
123
|
+
if (serie.lineStyle) {
|
124
|
+
serie.lineStyle.color = colors[index]
|
125
|
+
} else {
|
126
|
+
serie.lineStyle = {
|
127
|
+
color: colors[index]
|
128
|
+
}
|
129
|
+
}
|
130
|
+
if (serie.itemStyle) {
|
131
|
+
serie.itemStyle.color = colors[index]
|
132
|
+
} else {
|
133
|
+
serie.itemStyle = {
|
134
|
+
color: colors[index]
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
})
|
139
|
+
},
|
140
|
+
initOption() {
|
141
|
+
let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
|
142
|
+
this.field.options.echarCategoryOption = extendDeeply(this.field.options.echarCategoryOption, echartConfig);
|
143
|
+
this.adjustColor();
|
144
|
+
},
|
190
145
|
/*async loadData() {
|
191
146
|
if (this.designState) {
|
192
147
|
return;
|
@@ -315,7 +270,7 @@ modules = {
|
|
315
270
|
});
|
316
271
|
},
|
317
272
|
setValue(rows) {
|
318
|
-
this.showChart
|
273
|
+
this.showChart = false;
|
319
274
|
let serieClone = this.serieClone;
|
320
275
|
let resDatas = rows || [];
|
321
276
|
let axisDatas = [];
|
@@ -334,16 +289,28 @@ modules = {
|
|
334
289
|
nameDatas.push(resData.name);
|
335
290
|
}
|
336
291
|
});
|
337
|
-
let colors = this.
|
292
|
+
let colors = this.getColors();
|
338
293
|
let colorsSize = colors.length;
|
339
294
|
nameDatas.forEach((nameItem, index) => {
|
340
295
|
let serie = deepClone(serieClone);
|
341
296
|
serie.name = nameItem;
|
342
|
-
|
343
|
-
if (
|
297
|
+
if (colorsSize > index) {
|
298
|
+
if (serie.lineStyle) {
|
344
299
|
serie.lineStyle.color = colors[index]
|
300
|
+
} else {
|
301
|
+
serie.lineStyle = {
|
302
|
+
color: colors[index]
|
303
|
+
}
|
304
|
+
}
|
305
|
+
if (serie.itemStyle) {
|
306
|
+
serie.itemStyle.color = colors[index]
|
307
|
+
} else {
|
308
|
+
serie.itemStyle = {
|
309
|
+
color: colors[index]
|
310
|
+
}
|
345
311
|
}
|
346
|
-
}
|
312
|
+
}
|
313
|
+
|
347
314
|
delete serie.lineStyle
|
348
315
|
|
349
316
|
let serieDatas = [];
|
@@ -363,11 +330,11 @@ modules = {
|
|
363
330
|
chartOptions.xAxis.data = axisDatas;
|
364
331
|
chartOptions.series = newSeries;
|
365
332
|
|
366
|
-
this.$nextTick(()=>{
|
367
|
-
this.showChart
|
333
|
+
this.$nextTick(() => {
|
334
|
+
this.showChart = true;
|
368
335
|
})
|
369
336
|
},
|
370
|
-
getChart(){
|
337
|
+
getChart() {
|
371
338
|
return this.$refs.chart;
|
372
339
|
}
|
373
340
|
}
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js
CHANGED
@@ -9,6 +9,7 @@ import {CanvasRenderer} from 'echarts/renderers';
|
|
9
9
|
import {PieChart} from 'echarts/charts';
|
10
10
|
import {TitleComponent, TooltipComponent, LegendComponent} from 'echarts/components';
|
11
11
|
import {THEME_KEY} from 'vue-echarts';
|
12
|
+
import {extendDeeply} from "@base/utils/index.js";
|
12
13
|
|
13
14
|
use([CanvasRenderer, PieChart, TitleComponent, TooltipComponent, LegendComponent]);
|
14
15
|
|
@@ -53,6 +54,7 @@ modules = {
|
|
53
54
|
requestAccess: null,
|
54
55
|
serieClone: {},
|
55
56
|
showChart: true,
|
57
|
+
colors:[]
|
56
58
|
};
|
57
59
|
},
|
58
60
|
computed: {
|
@@ -79,7 +81,7 @@ modules = {
|
|
79
81
|
return '';
|
80
82
|
},
|
81
83
|
chartOption() {
|
82
|
-
return this.field.options.
|
84
|
+
return this.field.options.echarPieOption
|
83
85
|
}
|
84
86
|
},
|
85
87
|
beforeCreate() {
|
@@ -94,6 +96,7 @@ modules = {
|
|
94
96
|
this.initEventHandler();
|
95
97
|
|
96
98
|
this.handleOnCreated();
|
99
|
+
this.initOption();
|
97
100
|
this.serieClone = deepClone(this.field.options.echarPieOption.series[0]);
|
98
101
|
// this.loadData();
|
99
102
|
},
|
@@ -107,6 +110,10 @@ modules = {
|
|
107
110
|
},
|
108
111
|
|
109
112
|
methods: {
|
113
|
+
initOption() {
|
114
|
+
let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
|
115
|
+
this.field.options.echarPieOption = extendDeeply(this.field.options.echarPieOption, echartConfig);
|
116
|
+
},
|
110
117
|
/*async loadData() {
|
111
118
|
if (this.designState) {
|
112
119
|
return;
|
package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue
CHANGED
@@ -79,7 +79,8 @@ export default {
|
|
79
79
|
let opt = {
|
80
80
|
title: this.field.options.exportFileName || null,
|
81
81
|
targetRef: this.field.options.tableRef || null,
|
82
|
-
pageSize: (this.field.options.exportPageSize || null)
|
82
|
+
pageSize: (this.field.options.exportPageSize || null),
|
83
|
+
showImageAtTable: this.field.options.showImageAtTable || null
|
83
84
|
};
|
84
85
|
let tableExportParam = this.handleCustomEvent(this.field.options.tableExportParam);
|
85
86
|
let options = {...opt, ...tableExportParam, type: type};
|
@@ -146,10 +146,12 @@ export default {
|
|
146
146
|
}
|
147
147
|
},
|
148
148
|
submitFile(rows, fileInfos) {
|
149
|
-
this.handlLineCode(fileInfos);
|
150
|
-
|
149
|
+
// this.handlLineCode(fileInfos);
|
150
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
151
|
+
let eventParamValues = [rows, fileInfos];
|
152
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
151
153
|
},
|
152
|
-
handlLineCode(fileInfos) {
|
154
|
+
/*handlLineCode(fileInfos) {
|
153
155
|
let allPromise = [];
|
154
156
|
fileInfos.forEach(async fileInfo => {
|
155
157
|
await this.processFile(fileInfo.file, (lineCode) => {
|
@@ -176,7 +178,7 @@ export default {
|
|
176
178
|
async processImage(base64, callback) {
|
177
179
|
try {
|
178
180
|
// 使用 ZXing 3.x 的 API
|
179
|
-
const result = await decode(base64,(result, err) => {
|
181
|
+
const result = await decode(base64, (result, err) => {
|
180
182
|
if (err) {
|
181
183
|
this.handleError(`条码识别失败: ${err}`);
|
182
184
|
callback && callback(null)
|
@@ -205,7 +207,7 @@ export default {
|
|
205
207
|
// const imageData = Uint8Array.from(atob(base64), c => c.charCodeAt(0));
|
206
208
|
// const source = new ZXing.ImageLuminanceSource(imageData, base64.length);
|
207
209
|
|
208
|
-
|
210
|
+
decode(base64, (result, err) => {
|
209
211
|
if (err) {
|
210
212
|
this.handleError(`条码识别失败: ${err}`);
|
211
213
|
callback && callback(null)
|
@@ -220,7 +222,7 @@ export default {
|
|
220
222
|
handleError(errorMessage) {
|
221
223
|
this.error = errorMessage;
|
222
224
|
this.loading = false;
|
223
|
-
}
|
225
|
+
},*/
|
224
226
|
}
|
225
227
|
}
|
226
228
|
</script>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<el-form-item :label="i18nt('启用流程')">
|
14
14
|
<el-switch v-model="formConfig.wfEnabled" @change="designer.vueInstance.reportTemplate.objTypeName=null"></el-switch>
|
15
15
|
</el-form-item>
|
16
|
-
<el-form-item :label="i18nt('
|
16
|
+
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
17
17
|
<el-input type="text" v-model="designer.vueInstance.reportTemplate.objTypeName"></el-input>
|
18
18
|
</el-form-item>
|
19
19
|
<!-- <el-form-item label="流程单据定义">
|
@@ -13,6 +13,12 @@
|
|
13
13
|
</el-form-item>-->
|
14
14
|
<!-- <el-form-item :label="i18nt('designer.setting.showIndex')"><el-switch v-model="optionModel.showIndex"></el-switch></el-form-item>
|
15
15
|
<el-form-item :label="i18nt('designer.setting.showCheckBox')"><el-switch v-model="optionModel.showCheckBox"></el-switch></el-form-item> -->
|
16
|
+
<el-form-item label="启用数据行合并">
|
17
|
+
<el-switch v-model="optionModel.mergeRowEnabled"></el-switch>
|
18
|
+
</el-form-item>
|
19
|
+
<el-form-item :label="i18nt('合并行唯一字段')">
|
20
|
+
<el-input v-model="optionModel.mergeRowKey"></el-input>
|
21
|
+
</el-form-item>
|
16
22
|
<el-form-item label="查询列表">
|
17
23
|
<el-switch v-model="optionModel.isQueryTable"></el-switch>
|
18
24
|
</el-form-item>
|
@@ -63,6 +63,11 @@
|
|
63
63
|
<el-switch v-model="scope.row.sortable"></el-switch>
|
64
64
|
</template>
|
65
65
|
</el-table-column>
|
66
|
+
<el-table-column :label="i18nt('明细行')" width="70" prop="sortable">
|
67
|
+
<template slot-scope="scope">
|
68
|
+
<el-switch v-model="scope.row.isItemLine"></el-switch>
|
69
|
+
</template>
|
70
|
+
</el-table-column>
|
66
71
|
<el-table-column :label="i18nt('designer.setting.fixedColumn')" width="100" prop="fixed">
|
67
72
|
<template slot-scope="scope">
|
68
73
|
<el-select v-model="scope.row.fixed" clearable>
|
@@ -118,6 +123,14 @@
|
|
118
123
|
:disabled="!scope.row.editFormatS"></el-button>
|
119
124
|
</template>
|
120
125
|
</el-table-column>
|
126
|
+
<el-table-column :label="i18nt('导出类型')" width="200" prop="formatS">
|
127
|
+
<template slot-scope="scope">
|
128
|
+
<el-select v-model="scope.row.exportType" clearable>
|
129
|
+
<el-option value="Image2" label="图片"></el-option>
|
130
|
+
<el-option value="Number" label="数值"></el-option>
|
131
|
+
</el-select>
|
132
|
+
</template>
|
133
|
+
</el-table-column>
|
121
134
|
<el-table-column label="格式化配置" width="90" fixed="right" align="center">
|
122
135
|
<template slot-scope="scope">
|
123
136
|
<el-button size="mini" plain="" round="" icon="el-icon-edit"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<el-form-item label="onAfterConfirmFile" label-width="150px">
|
3
|
-
<a href="javascript:void(0);" class="a-link link-oneLind"
|
3
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
4
|
+
@click="editEventHandler('onAfterConfirmFile', eventParams)">
|
4
5
|
<span>{{ optionModel.onAfterConfirmFile }}</span>
|
5
6
|
<i class="el-icon-edit"></i>
|
6
7
|
</a>
|
@@ -9,7 +10,8 @@
|
|
9
10
|
|
10
11
|
<script>
|
11
12
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
12
|
-
import eventMixin
|
13
|
+
import eventMixin
|
14
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
13
15
|
|
14
16
|
export default {
|
15
17
|
name: "onAfterConfirmFile-editor",
|
@@ -21,7 +23,7 @@ export default {
|
|
21
23
|
},
|
22
24
|
data() {
|
23
25
|
return {
|
24
|
-
eventParams: ["attachments", "fileInfos"],
|
26
|
+
eventParams: ["dataId", "formCode", "attachments", "fileInfos"],
|
25
27
|
};
|
26
28
|
},
|
27
29
|
};
|
@@ -196,6 +196,24 @@
|
|
196
196
|
|
197
197
|
<el-form-item label-width="0"><el-divider class="custom-divider-margin-top">渐变色</el-divider></el-form-item>-->
|
198
198
|
|
199
|
+
<el-form-item label-width="0">
|
200
|
+
<el-divider class="custom-divider-margin-top">自定义配色</el-divider>
|
201
|
+
</el-form-item>
|
202
|
+
<draggable tag="ul" class="draggable-box" :list="optionModel.echarBarOption.colors"
|
203
|
+
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.el-icon-s-operation' }">
|
204
|
+
<li v-for="(colorItem, index) in optionModel.echarBarOption.colors" :key="index">
|
205
|
+
<i class="el-icon-s-operation"></i>
|
206
|
+
<el-color-picker v-model="optionModel.echarBarOption.colors[index]"></el-color-picker>
|
207
|
+
<!-- {{colorItem}} -->
|
208
|
+
<el-button circle plain size="mini" type="danger" @click="deleteColor(index)" icon="el-icon-minus"
|
209
|
+
class="col-delete-button"></el-button>
|
210
|
+
</li>
|
211
|
+
</draggable>
|
212
|
+
<el-button type="text" @click="addColor" icon="el-icon-circle-plus-outline" class="add-option">{{
|
213
|
+
i18nt('新增配色')
|
214
|
+
}}
|
215
|
+
</el-button>
|
216
|
+
|
199
217
|
<requestaccessDialog
|
200
218
|
v-if="showRequestaccessDialog"
|
201
219
|
:visiable.sync="showRequestaccessDialog"
|
@@ -336,6 +354,13 @@ export default {
|
|
336
354
|
this.optionModel.accessName = row.accessName;
|
337
355
|
this.optionModel.accessCode = row.accessCode;
|
338
356
|
}
|
357
|
+
},
|
358
|
+
addColor() {
|
359
|
+
if(!this.optionModel.echarBarOption.colors)this.$set(this.optionModel.echarBarOption,'colors',[]);
|
360
|
+
this.optionModel.echarBarOption.colors.push('');
|
361
|
+
},
|
362
|
+
deleteColor(index) {
|
363
|
+
this.optionModel.echarBarOption.colors.splice(index, 1);
|
339
364
|
}
|
340
365
|
}
|
341
366
|
};
|
@@ -203,11 +203,11 @@
|
|
203
203
|
<el-form-item label-width="0">
|
204
204
|
<el-divider class="custom-divider-margin-top">自定义配色</el-divider>
|
205
205
|
</el-form-item>
|
206
|
-
<draggable tag="ul" class="draggable-box" :list="optionModel.echarCategoryOption.
|
206
|
+
<draggable tag="ul" class="draggable-box" :list="optionModel.echarCategoryOption.colors"
|
207
207
|
v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.el-icon-s-operation' }">
|
208
|
-
<li v-for="(colorItem, index) in optionModel.echarCategoryOption.
|
208
|
+
<li v-for="(colorItem, index) in optionModel.echarCategoryOption.colors" :key="index">
|
209
209
|
<i class="el-icon-s-operation"></i>
|
210
|
-
<el-color-picker v-model="optionModel.echarCategoryOption.
|
210
|
+
<el-color-picker v-model="optionModel.echarCategoryOption.colors[index]"></el-color-picker>
|
211
211
|
<!-- {{colorItem}} -->
|
212
212
|
<el-button circle plain size="mini" type="danger" @click="deleteColor(index)" icon="el-icon-minus"
|
213
213
|
class="col-delete-button"></el-button>
|
@@ -356,10 +356,10 @@ export default {
|
|
356
356
|
},
|
357
357
|
methods: {
|
358
358
|
addColor() {
|
359
|
-
this.optionModel.echarCategoryOption.
|
359
|
+
this.optionModel.echarCategoryOption.colors.push('');
|
360
360
|
},
|
361
361
|
deleteColor(index) {
|
362
|
-
this.optionModel.echarCategoryOption.
|
362
|
+
this.optionModel.echarCategoryOption.colors.splice(index, 1);
|
363
363
|
},
|
364
364
|
addOption() {
|
365
365
|
this.nameSet.push('');
|
@@ -6,6 +6,9 @@
|
|
6
6
|
<el-form-item label="导入数据表名">
|
7
7
|
<el-input v-model="optionModel.importEntity"></el-input>
|
8
8
|
</el-form-item>
|
9
|
+
<el-form-item label="文件大小限制(M)">
|
10
|
+
<base-input-number v-model="optionModel.importFileLimitSize" :max="200"></base-input-number>
|
11
|
+
</el-form-item>
|
9
12
|
<el-form-item label="选择导入模板文件">
|
10
13
|
<el-input
|
11
14
|
class="search-input"
|
@@ -9,18 +9,27 @@
|
|
9
9
|
<el-form-item label="表格唯一名称">
|
10
10
|
<el-input v-model="optionModel.tableRef"></el-input>
|
11
11
|
</el-form-item>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
<el-form-item label="导出列表显示图片">
|
13
|
+
<el-switch v-model="optionModel.showImageAtTable" @change="changeShowImageAtTable"></el-switch>
|
14
|
+
</el-form-item>
|
15
|
+
<el-form-item label="导出每页查询数量">
|
16
|
+
<base-input-number v-model="optionModel.exportPageSize"
|
17
|
+
:max="optionModel.showImageAtTable?150:1000"></base-input-number>
|
18
|
+
</el-form-item>
|
19
|
+
<el-form-item label="导出参数" label-width="150px">
|
20
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
21
|
+
@click="editEventHandler('tableExportParam', eventParams)">
|
22
|
+
<span>{{ optionModel.tableExportParam }}</span>
|
23
|
+
<i class="el-icon-edit"></i>
|
24
|
+
</a>
|
25
|
+
</el-form-item>
|
18
26
|
</div>
|
19
27
|
</template>
|
20
28
|
|
21
29
|
<script>
|
22
30
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
23
|
-
import eventMixin
|
31
|
+
import eventMixin
|
32
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
24
33
|
|
25
34
|
export default {
|
26
35
|
name: "table-export-button-editor",
|
@@ -35,6 +44,16 @@ export default {
|
|
35
44
|
eventParams: [],
|
36
45
|
};
|
37
46
|
},
|
47
|
+
methods: {
|
48
|
+
changeShowImageAtTable(val) {
|
49
|
+
if (val) {
|
50
|
+
let exportPageSize = this.optionModel.exportPageSize || 0;
|
51
|
+
if (exportPageSize > 150) {
|
52
|
+
this.optionModel.exportPageSize = 150
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
38
57
|
};
|
39
58
|
</script>
|
40
59
|
|