cloud-web-corejs 1.0.54-dev.64 → 1.0.54-dev.65

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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/src/components/excelExport/mixins.js +1 -1
  3. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -982
  4. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +39 -10
  5. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +57 -91
  6. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +8 -1
  7. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +2 -1
  8. package/src/components/xform/form-designer/indexMixin.js +1 -771
  9. package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
  10. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1 -1
  11. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +25 -0
  12. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +5 -5
  13. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +24 -8
  14. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  15. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +43 -4
  16. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1668
  17. package/src/store/config/index.js +598 -1
  18. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +2 -2
  19. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  20. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +1 -1
  21. package/src/views/bd/setting/form_template/mixins/wf_list.js +1 -1
  22. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +4 -4
  23. package/src/views/bd/setting/form_template/wf_list.vue +1 -1
  24. package/src/views/bd/setting/table_model/edit.vue +1 -1
  25. package/src/views/bd/setting/table_model/mixins/list.js +1 -1
  26. package/src/views/user/bill_setting/edit.vue +1 -1
  27. package/src/views/user/bill_setting/list.vue +1 -1
  28. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  29. package/src/views/user/common_attribute/list.vue +1 -1
  30. package/src/views/user/common_script/edit.vue +1 -1
  31. package/src/views/user/common_script/list.vue +1 -1
  32. package/src/views/user/company_info/edit.vue +1 -1
  33. package/src/views/user/push_setting/list.vue +2 -2
  34. package/src/views/user/user/edit.vue +2 -2
  35. package/src/views/user/user/list.vue +3 -3
  36. package/src/views/user/wf/wf_obj_config/list.vue +1 -1
  37. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -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,35 @@ modules = {
236
235
  },
237
236
 
238
237
  methods: {
239
- initOption(){
238
+ reflush(){
239
+ this.showChart = false;
240
+ this.$nextTick(()=>{
241
+ this.showChart = true
242
+ })
243
+ },
244
+ getColors(){
245
+ let colors = [...this.field.options.echarBarOption.colors, ...this.colors];
246
+ return colors
247
+ },
248
+ adjustColor() {
249
+ let colors = this.getColors();
250
+ let colorsSize = colors.length;
251
+ this.field.options.echarBarOption.series.forEach((serie, index) => {
252
+ if (colorsSize > index) {
253
+ if (serie.itemStyle) {
254
+ serie.itemStyle.color = colors[index]
255
+ } else {
256
+ serie.itemStyle = {
257
+ color: colors[index]
258
+ }
259
+ }
260
+ }
261
+ })
262
+ },
263
+ initOption() {
240
264
  let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
241
265
  this.field.options.echarBarOption = extendDeeply(this.field.options.echarBarOption, echartConfig);
266
+ this.adjustColor();
242
267
  },
243
268
  /*async loadData() {
244
269
  if (this.designState) {
@@ -372,7 +397,7 @@ modules = {
372
397
  });
373
398
  },
374
399
  setValue(rows) {
375
- this.showChart = false;
400
+ this.showChart = false;
376
401
  let serieClone = this.serieClone;
377
402
  let resDatas = rows || [];
378
403
  let axisDatas = [];
@@ -391,14 +416,18 @@ modules = {
391
416
  nameDatas.push(resData.name);
392
417
  }
393
418
  });
394
- let colors = this.colors;
419
+ let colors = this.getColors();
395
420
  let colorsSize = colors.length;
396
421
  nameDatas.forEach((nameItem, index) => {
397
422
  let serie = deepClone(serieClone);
398
423
  serie.name = nameItem;
399
- if (serie.itemStyle) {
400
- if (colorsSize > index) {
424
+ if (colorsSize > index) {
425
+ if (serie.itemStyle) {
401
426
  serie.itemStyle.color = colors[index]
427
+ } else {
428
+ serie.itemStyle = {
429
+ color: colors[index]
430
+ }
402
431
  }
403
432
  }
404
433
  let serieDatas = [];
@@ -417,11 +446,11 @@ modules = {
417
446
  let chartOptions = this.field.options.echarBarOption;
418
447
  chartOptions[this.alignField].data = axisDatas;
419
448
  chartOptions.series = newSeries;
420
- this.$nextTick(()=>{
421
- this.showChart = true;
449
+ this.$nextTick(() => {
450
+ this.showChart = true;
422
451
  })
423
452
  },
424
- getChart(){
453
+ getChart() {
425
454
  return this.$refs.chart;
426
455
  }
427
456
  }
@@ -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 "@/utils";
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.echarBarOption
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,37 @@ modules = {
187
110
  },
188
111
 
189
112
  methods: {
113
+ getColors() {
114
+ let colors = [...this.field.options.echarCategoryOption.colors, ...this.colors];
115
+ return colors
116
+ },
117
+ adjustColor() {
118
+ let colors = this.getColors();
119
+ let colorsSize = colors.length;
120
+ this.field.options.echarCategoryOption.series.forEach((serie, index) => {
121
+ if (colorsSize > index) {
122
+ if (serie.lineStyle) {
123
+ serie.lineStyle.color = colors[index]
124
+ } else {
125
+ serie.lineStyle = {
126
+ color: colors[index]
127
+ }
128
+ }
129
+ if (serie.itemStyle) {
130
+ serie.itemStyle.color = colors[index]
131
+ } else {
132
+ serie.itemStyle = {
133
+ color: colors[index]
134
+ }
135
+ }
136
+ }
137
+ })
138
+ },
139
+ initOption() {
140
+ let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
141
+ this.field.options.echarCategoryOption = extendDeeply(this.field.options.echarCategoryOption, echartConfig);
142
+ this.adjustColor();
143
+ },
190
144
  /*async loadData() {
191
145
  if (this.designState) {
192
146
  return;
@@ -315,7 +269,7 @@ modules = {
315
269
  });
316
270
  },
317
271
  setValue(rows) {
318
- this.showChart = false;
272
+ this.showChart = false;
319
273
  let serieClone = this.serieClone;
320
274
  let resDatas = rows || [];
321
275
  let axisDatas = [];
@@ -334,16 +288,28 @@ modules = {
334
288
  nameDatas.push(resData.name);
335
289
  }
336
290
  });
337
- let colors = this.colors;
291
+ let colors = this.getColors();
338
292
  let colorsSize = colors.length;
339
293
  nameDatas.forEach((nameItem, index) => {
340
294
  let serie = deepClone(serieClone);
341
295
  serie.name = nameItem;
342
- /*if (serie.lineStyle) {
343
- if (colorsSize > index) {
296
+ if (colorsSize > index) {
297
+ if (serie.lineStyle) {
344
298
  serie.lineStyle.color = colors[index]
299
+ } else {
300
+ serie.lineStyle = {
301
+ color: colors[index]
302
+ }
303
+ }
304
+ if (serie.itemStyle) {
305
+ serie.itemStyle.color = colors[index]
306
+ } else {
307
+ serie.itemStyle = {
308
+ color: colors[index]
309
+ }
345
310
  }
346
- }*/
311
+ }
312
+
347
313
  delete serie.lineStyle
348
314
 
349
315
  let serieDatas = [];
@@ -363,11 +329,11 @@ modules = {
363
329
  chartOptions.xAxis.data = axisDatas;
364
330
  chartOptions.series = newSeries;
365
331
 
366
- this.$nextTick(()=>{
367
- this.showChart = true;
332
+ this.$nextTick(() => {
333
+ this.showChart = true;
368
334
  })
369
335
  },
370
- getChart(){
336
+ getChart() {
371
337
  return this.$refs.chart;
372
338
  }
373
339
  }
@@ -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 "@/utils";
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.echarBarOption
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;
@@ -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};