cloud-web-corejs 1.0.54-dev.55 → 1.0.54-dev.57
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 +8 -2
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +896 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +982 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +12 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +5 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +77 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +160 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +184 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +6 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1668 -1
- package/src/router/modules/customer.js +15 -0
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js
CHANGED
@@ -3,7 +3,7 @@ import i18n from '../../../../../../components/xform/utils/i18n';
|
|
3
3
|
import fieldMixin from '../../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin';
|
4
4
|
|
5
5
|
import {deepClone} from '../../../../../../components/xform/utils/util';
|
6
|
-
|
6
|
+
import {extendDeeply} from "@base/utils/index.js";
|
7
7
|
import {use} from 'echarts/core';
|
8
8
|
import {CanvasRenderer} from 'echarts/renderers';
|
9
9
|
import {BarChart} from 'echarts/charts';
|
@@ -206,6 +206,9 @@ modules = {
|
|
206
206
|
delete chartOptions.yAxis.data;
|
207
207
|
}
|
208
208
|
}
|
209
|
+
},
|
210
|
+
chartOption(){
|
211
|
+
return this.field.options.echarBarOption
|
209
212
|
}
|
210
213
|
},
|
211
214
|
beforeCreate() {
|
@@ -220,6 +223,7 @@ modules = {
|
|
220
223
|
this.initEventHandler();
|
221
224
|
|
222
225
|
this.handleOnCreated();
|
226
|
+
this.initOption();
|
223
227
|
this.serieClone = deepClone(this.field.options.echarBarOption.series[0]);
|
224
228
|
},
|
225
229
|
|
@@ -232,6 +236,10 @@ modules = {
|
|
232
236
|
},
|
233
237
|
|
234
238
|
methods: {
|
239
|
+
initOption(){
|
240
|
+
let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
|
241
|
+
this.field.options.echarBarOption = extendDeeply(this.field.options.echarBarOption, echartConfig);
|
242
|
+
},
|
235
243
|
/*async loadData() {
|
236
244
|
if (this.designState) {
|
237
245
|
this.showChart = true;
|
@@ -412,6 +420,9 @@ modules = {
|
|
412
420
|
this.$nextTick(()=>{
|
413
421
|
this.showChart = true;
|
414
422
|
})
|
423
|
+
},
|
424
|
+
getChart(){
|
425
|
+
return this.$refs.chart;
|
415
426
|
}
|
416
427
|
}
|
417
428
|
};
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js
CHANGED
@@ -157,6 +157,9 @@ modules = {
|
|
157
157
|
return height;
|
158
158
|
}
|
159
159
|
return '';
|
160
|
+
},
|
161
|
+
chartOption(){
|
162
|
+
return this.field.options.echarBarOption
|
160
163
|
}
|
161
164
|
},
|
162
165
|
beforeCreate() {
|
@@ -363,6 +366,9 @@ modules = {
|
|
363
366
|
this.$nextTick(()=>{
|
364
367
|
this.showChart = true;
|
365
368
|
})
|
369
|
+
},
|
370
|
+
getChart(){
|
371
|
+
return this.$refs.chart;
|
366
372
|
}
|
367
373
|
}
|
368
374
|
};
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js
CHANGED
@@ -77,6 +77,9 @@ modules = {
|
|
77
77
|
return height;
|
78
78
|
}
|
79
79
|
return '';
|
80
|
+
},
|
81
|
+
chartOption() {
|
82
|
+
return this.field.options.echarBarOption
|
80
83
|
}
|
81
84
|
},
|
82
85
|
beforeCreate() {
|
@@ -188,6 +191,9 @@ modules = {
|
|
188
191
|
this.$nextTick(() => {
|
189
192
|
this.showChart = true;
|
190
193
|
})
|
194
|
+
},
|
195
|
+
getChart() {
|
196
|
+
return this.$refs.chart;
|
191
197
|
}
|
192
198
|
}
|
193
199
|
};
|
package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue
CHANGED
@@ -76,7 +76,11 @@ export default {
|
|
76
76
|
if (this.designState) {
|
77
77
|
return
|
78
78
|
}
|
79
|
-
let opt = {
|
79
|
+
let opt = {
|
80
|
+
title: this.field.options.exportFileName || null,
|
81
|
+
targetRef: this.field.options.tableRef || null,
|
82
|
+
pageSize: (this.field.options.exportPageSize || null)
|
83
|
+
};
|
80
84
|
let tableExportParam = this.handleCustomEvent(this.field.options.tableExportParam);
|
81
85
|
let options = {...opt, ...tableExportParam, type: type};
|
82
86
|
let tableRef = options?.targetRef;
|
@@ -16,6 +16,7 @@
|
|
16
16
|
:limit.sync="limit"
|
17
17
|
resultType="Array"
|
18
18
|
:edit="!field.options.disabled"
|
19
|
+
@callback="submitFile"
|
19
20
|
v-else></baseUpload>
|
20
21
|
</form-item-wrapper>
|
21
22
|
</template>
|
@@ -144,6 +145,82 @@ export default {
|
|
144
145
|
});
|
145
146
|
}
|
146
147
|
},
|
148
|
+
submitFile(rows, fileInfos) {
|
149
|
+
this.handlLineCode(fileInfos);
|
150
|
+
this.field.options.onAfterConfirmFile && this.field.options.onAfterConfirmFile(rows, fileInfos);
|
151
|
+
},
|
152
|
+
handlLineCode(fileInfos) {
|
153
|
+
let allPromise = [];
|
154
|
+
fileInfos.forEach(async fileInfo => {
|
155
|
+
await this.processFile(fileInfo.file, (lineCode) => {
|
156
|
+
fileInfo.lineCode = lineCode;
|
157
|
+
})
|
158
|
+
})
|
159
|
+
|
160
|
+
},
|
161
|
+
processFile(file, callback) {
|
162
|
+
return new Promise((resolve, reject) => {
|
163
|
+
const reader = new FileReader();
|
164
|
+
reader.onload = (e) => this.processImage(e.target.result, (lineCode) => {
|
165
|
+
resolve(lineCode)
|
166
|
+
callback(lineCode)
|
167
|
+
});
|
168
|
+
reader.onerror = () => {
|
169
|
+
resolve(null)
|
170
|
+
callback(null)
|
171
|
+
this.setError('文件读取失败')
|
172
|
+
};
|
173
|
+
reader.readAsDataURL(file);
|
174
|
+
})
|
175
|
+
},
|
176
|
+
async processImage(base64, callback) {
|
177
|
+
try {
|
178
|
+
// 使用 ZXing 3.x 的 API
|
179
|
+
const result = await decode(base64,(result, err) => {
|
180
|
+
if (err) {
|
181
|
+
this.handleError(`条码识别失败: ${err}`);
|
182
|
+
callback && callback(null)
|
183
|
+
return;
|
184
|
+
}
|
185
|
+
this.scannedText = result.text;
|
186
|
+
this.loading = false;
|
187
|
+
callback && callback(result.text)
|
188
|
+
});
|
189
|
+
} catch (err) {
|
190
|
+
console.error(err);
|
191
|
+
callback && callback(null)
|
192
|
+
this.handleError(`条码识别失败: ${err.message}`);
|
193
|
+
}
|
194
|
+
},
|
195
|
+
handleLineCode(fileInfos) {
|
196
|
+
fileInfos.forEach(fileInfo => {
|
197
|
+
let file = fileInfo.file;
|
198
|
+
})
|
199
|
+
},
|
200
|
+
handleImage(base64, fileName, callback) {
|
201
|
+
// 创建 ZXing Scanner
|
202
|
+
|
203
|
+
|
204
|
+
// 将 Base64 转换为 ImageLuminanceSource
|
205
|
+
// const imageData = Uint8Array.from(atob(base64), c => c.charCodeAt(0));
|
206
|
+
// const source = new ZXing.ImageLuminanceSource(imageData, base64.length);
|
207
|
+
|
208
|
+
decode(base64, (result, err) => {
|
209
|
+
if (err) {
|
210
|
+
this.handleError(`条码识别失败: ${err}`);
|
211
|
+
callback && callback(null)
|
212
|
+
return;
|
213
|
+
}
|
214
|
+
this.scannedText = result.text;
|
215
|
+
this.loading = false;
|
216
|
+
callback && callback(result.text)
|
217
|
+
});
|
218
|
+
},
|
219
|
+
|
220
|
+
handleError(errorMessage) {
|
221
|
+
this.error = errorMessage;
|
222
|
+
this.loading = false;
|
223
|
+
},
|
147
224
|
}
|
148
225
|
}
|
149
226
|
</script>
|
@@ -118,6 +118,14 @@
|
|
118
118
|
:disabled="!scope.row.editFormatS"></el-button>
|
119
119
|
</template>
|
120
120
|
</el-table-column>
|
121
|
+
<el-table-column :label="i18nt('导出类型')" width="200" prop="formatS">
|
122
|
+
<template slot-scope="scope">
|
123
|
+
<el-select v-model="scope.row.exportType" clearable>
|
124
|
+
<el-option value="Image" label="图片"></el-option>
|
125
|
+
<el-option value="Number" label="数值"></el-option>
|
126
|
+
</el-select>
|
127
|
+
</template>
|
128
|
+
</el-table-column>
|
121
129
|
<el-table-column label="格式化配置" width="90" fixed="right" align="center">
|
122
130
|
<template slot-scope="scope">
|
123
131
|
<el-button size="mini" plain="" round="" icon="el-icon-edit"
|
@@ -26,9 +26,9 @@ export default {
|
|
26
26
|
},
|
27
27
|
computed:{
|
28
28
|
eventParams(){
|
29
|
-
let eventParams = ["dataId", "formCode"];
|
29
|
+
let eventParams = ["dataId", "formCode","event"];
|
30
30
|
if (this.optionModel.rowFlag) {
|
31
|
-
eventParams.push("row", "index");
|
31
|
+
eventParams.push("row", "index","event");
|
32
32
|
}
|
33
33
|
return eventParams;
|
34
34
|
}
|
@@ -1,42 +1,69 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
<el-form-item :label="i18nt('背景颜色')"
|
4
|
-
|
5
|
-
|
6
|
-
<el-form-item
|
7
|
-
<el-
|
8
|
-
|
9
|
-
|
10
|
-
v-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
3
|
+
<el-form-item :label="i18nt('背景颜色')">
|
4
|
+
<el-color-picker v-model="optionModel.echarBarOption.backgroundColor"></el-color-picker>
|
5
|
+
</el-form-item>
|
6
|
+
<el-form-item :label="i18nt('竖展示')">
|
7
|
+
<el-switch v-model="alignX"></el-switch>
|
8
|
+
</el-form-item>
|
9
|
+
<!-- <el-form-item :label="i18nt('designer.setting.dsEnabled')"><el-switch v-model="optionModel.dsEnabled"></el-switch></el-form-item>
|
10
|
+
<el-form-item v-if="optionModel.dsEnabled" :label="i18nt('请求访问')">
|
11
|
+
<el-input
|
12
|
+
class="search-input"
|
13
|
+
max="200"
|
14
|
+
v-model="optionModel.accessName"
|
15
|
+
@clear="
|
16
|
+
optionModel.accessCode = '';
|
17
|
+
$forceUpdate();
|
18
|
+
"
|
19
|
+
v-el-readonly
|
20
|
+
clearable
|
21
|
+
>
|
22
|
+
<i slot="suffix" class="el-input__icon el-icon-search" @click="showRequestaccessDialog = true"></i>
|
23
|
+
</el-input>
|
24
|
+
</el-form-item>-->
|
25
|
+
<el-form-item label="自定义图表配置" label-width="150px">
|
26
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
27
|
+
@click="editEventHandler('echartConfig', ['dataId', 'formCode'])">
|
28
|
+
<span>{{ optionModel.echartConfig }}</span>
|
29
|
+
<i class="el-icon-edit"></i>
|
30
|
+
</a>
|
31
|
+
</el-form-item>
|
32
|
+
<el-form-item label-width="0">
|
33
|
+
<el-divider class="custom-divider-margin-top">柱体设置</el-divider>
|
34
|
+
</el-form-item>
|
35
|
+
<el-form-item :label="i18nt('最大宽度')">
|
36
|
+
<el-slider v-model="barMaxWidth"></el-slider>
|
37
|
+
</el-form-item>
|
38
|
+
<el-form-item :label="i18nt('圆角')">
|
39
|
+
<el-slider v-model="barBorderRadius"></el-slider>
|
40
|
+
</el-form-item>
|
41
|
+
<el-form-item :label="i18nt('最小高度')">
|
42
|
+
<el-slider v-model="barMinHeight"></el-slider>
|
43
|
+
</el-form-item>
|
25
44
|
|
26
|
-
<el-form-item label-width="0"
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
45
|
+
<el-form-item label-width="0">
|
46
|
+
<el-divider class="custom-divider-margin-top">标题设置</el-divider>
|
47
|
+
</el-form-item>
|
48
|
+
<el-form-item :label="i18nt('显示标题')">
|
49
|
+
<el-switch v-model="optionModel.echarBarOption.title.show"></el-switch>
|
50
|
+
</el-form-item>
|
51
|
+
<el-form-item :label="i18nt('标题')">
|
52
|
+
<el-input v-model="optionModel.echarBarOption.title.text"></el-input>
|
53
|
+
</el-form-item>
|
54
|
+
<!-- <el-form-item :label="i18nt('字体颜色')"><el-color-picker v-model="optionModel.echarBarOption.title.textStyle.color"></el-color-picker></el-form-item>
|
55
|
+
<el-form-item :label="i18nt('字体粗细')">
|
56
|
+
<el-select v-model="optionModel.echarBarOption.title.textStyle.fontWeight">
|
57
|
+
<el-option label="正常" value="normal"></el-option>
|
58
|
+
<el-option label="粗体" value="bold"></el-option>
|
59
|
+
<el-option label="特粗体" value="bolder"></el-option>
|
60
|
+
<el-option label="细体" value="lighter"></el-option>
|
61
|
+
</el-select>
|
62
|
+
</el-form-item>
|
63
|
+
<el-form-item :label="i18nt('字体大小')"><base-input-number :scale="0" v-model="optionModel.echarBarOption.title.textStyle.fontSize"></base-input-number></el-form-item> -->
|
64
|
+
<el-form-item :label="i18nt('背景颜色')">
|
65
|
+
<el-color-picker v-model="optionModel.echarBarOption.title.backgroundColor"></el-color-picker>
|
37
66
|
</el-form-item>
|
38
|
-
<el-form-item :label="i18nt('字体大小')"><base-input-number :scale="0" v-model="optionModel.echarBarOption.title.textStyle.fontSize"></base-input-number></el-form-item> -->
|
39
|
-
<el-form-item :label="i18nt('背景颜色')"><el-color-picker v-model="optionModel.echarBarOption.title.backgroundColor"></el-color-picker></el-form-item>
|
40
67
|
<el-form-item :label="i18nt('字体位置')">
|
41
68
|
<el-select v-model="optionModel.echarBarOption.title.left">
|
42
69
|
<el-option label="居中" value="center"></el-option>
|
@@ -44,7 +71,9 @@
|
|
44
71
|
<el-option label="右对齐" value="right"></el-option>
|
45
72
|
</el-select>
|
46
73
|
</el-form-item>
|
47
|
-
<el-form-item :label="i18nt('副标题')"
|
74
|
+
<el-form-item :label="i18nt('副标题')">
|
75
|
+
<el-input v-model="optionModel.echarBarOption.title.subtext"></el-input>
|
76
|
+
</el-form-item>
|
48
77
|
<!-- <el-form-item :label="i18nt('字体颜色')"><el-color-picker v-model="optionModel.echarBarOption.title.subtextStyle.color"></el-color-picker></el-form-item>
|
49
78
|
<el-form-item :label="i18nt('字体粗细')">
|
50
79
|
<el-select v-model="optionModel.echarBarOption.title.subtextStyle.fontWeight">
|
@@ -56,40 +85,96 @@
|
|
56
85
|
</el-form-item>
|
57
86
|
<el-form-item :label="i18nt('字体大小')"><base-input-number :scale="0" v-model="optionModel.echarBarOption.title.subtextStyle.fontSize"></base-input-number></el-form-item> -->
|
58
87
|
|
59
|
-
<el-form-item label-width="0"
|
60
|
-
|
61
|
-
|
62
|
-
<el-form-item :label="i18nt('
|
63
|
-
|
64
|
-
|
65
|
-
<el-form-item :label="i18nt('
|
66
|
-
|
88
|
+
<el-form-item label-width="0">
|
89
|
+
<el-divider class="custom-divider-margin-top">X轴设置</el-divider>
|
90
|
+
</el-form-item>
|
91
|
+
<el-form-item :label="i18nt('显示')">
|
92
|
+
<el-switch v-model="optionModel.echarBarOption.xAxis.show"></el-switch>
|
93
|
+
</el-form-item>
|
94
|
+
<el-form-item :label="i18nt('坐标名')">
|
95
|
+
<el-input v-model="optionModel.echarBarOption.xAxis.name"></el-input>
|
96
|
+
</el-form-item>
|
97
|
+
<el-form-item :label="i18nt('坐标名颜色')">
|
98
|
+
<el-color-picker v-model="optionModel.echarBarOption.xAxis.nameTextStyle.color"></el-color-picker>
|
99
|
+
</el-form-item>
|
100
|
+
<el-form-item :label="i18nt('坐标字号')">
|
101
|
+
<base-input-number :scale="0"
|
102
|
+
v-model="optionModel.echarBarOption.xAxis.nameTextStyle.fontSize"></base-input-number>
|
103
|
+
</el-form-item>
|
104
|
+
<el-form-item :label="i18nt('数值颜色')">
|
105
|
+
<el-color-picker v-model="optionModel.echarBarOption.xAxis.axisLabel.color"></el-color-picker>
|
106
|
+
</el-form-item>
|
107
|
+
<el-form-item :label="i18nt('数值字号')">
|
108
|
+
<base-input-number :scale="0" v-model="optionModel.echarBarOption.xAxis.axisLabel.fontSize"></base-input-number>
|
109
|
+
</el-form-item>
|
110
|
+
<el-form-item :label="i18nt('数值角度')">
|
111
|
+
<el-slider v-model="optionModel.echarBarOption.xAxis.axisLabel.rotate"></el-slider>
|
112
|
+
</el-form-item>
|
67
113
|
|
68
|
-
<el-form-item :label="i18nt('轴反转')"
|
114
|
+
<el-form-item :label="i18nt('轴反转')">
|
115
|
+
<el-switch v-model="optionModel.echarBarOption.xAxis.inverse"></el-switch>
|
116
|
+
</el-form-item>
|
69
117
|
<!-- <el-form-item :label="i18nt('轴颜色')"><el-color-picker v-model="optionModel.echarBarOption.xAxis.axisLine.lineStyle.color"></el-color-picker></el-form-item> -->
|
70
|
-
<el-form-item :label="i18nt('分割线显示')"
|
118
|
+
<el-form-item :label="i18nt('分割线显示')">
|
119
|
+
<el-switch v-model="optionModel.echarBarOption.xAxis.splitLine.show"></el-switch>
|
120
|
+
</el-form-item>
|
71
121
|
<!-- <el-form-item :label="i18nt('分割线颜色')"><el-color-picker v-model="optionModel.echarBarOption.xAxis.splitLine.lineStyle.color"></el-color-picker></el-form-item> -->
|
72
122
|
|
73
|
-
<el-form-item label-width="0"
|
123
|
+
<el-form-item label-width="0">
|
124
|
+
<el-divider class="custom-divider-margin-top">Y轴设置</el-divider>
|
125
|
+
</el-form-item>
|
74
126
|
|
75
|
-
<el-form-item :label="i18nt('显示')"
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
127
|
+
<el-form-item :label="i18nt('显示')">
|
128
|
+
<el-switch v-model="optionModel.echarBarOption.yAxis.show"></el-switch>
|
129
|
+
</el-form-item>
|
130
|
+
<el-form-item :label="i18nt('坐标名')">
|
131
|
+
<el-input v-model="optionModel.echarBarOption.yAxis.name"></el-input>
|
132
|
+
</el-form-item>
|
133
|
+
<el-form-item :label="i18nt('坐标名颜色')">
|
134
|
+
<el-color-picker v-model="optionModel.echarBarOption.yAxis.nameTextStyle.color"></el-color-picker>
|
135
|
+
</el-form-item>
|
136
|
+
<el-form-item :label="i18nt('坐标字号')">
|
137
|
+
<base-input-number :scale="0"
|
138
|
+
v-model="optionModel.echarBarOption.yAxis.nameTextStyle.fontSize"></base-input-number>
|
139
|
+
</el-form-item>
|
140
|
+
<el-form-item :label="i18nt('数值颜色')">
|
141
|
+
<el-color-picker v-model="optionModel.echarBarOption.yAxis.axisLabel.color"></el-color-picker>
|
142
|
+
</el-form-item>
|
143
|
+
<el-form-item :label="i18nt('数值字号')">
|
144
|
+
<base-input-number :scale="0" v-model="optionModel.echarBarOption.yAxis.axisLabel.fontSize"></base-input-number>
|
145
|
+
</el-form-item>
|
146
|
+
<el-form-item :label="i18nt('数值角度')">
|
147
|
+
<el-slider v-model="optionModel.echarBarOption.yAxis.axisLabel.rotate"></el-slider>
|
148
|
+
</el-form-item>
|
82
149
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
150
|
+
<el-form-item :label="i18nt('轴显示')">
|
151
|
+
<el-switch v-model="optionModel.echarBarOption.yAxis.axisLine.show"></el-switch>
|
152
|
+
</el-form-item>
|
153
|
+
<el-form-item :label="i18nt('轴反转')">
|
154
|
+
<el-switch v-model="optionModel.echarBarOption.yAxis.inverse"></el-switch>
|
155
|
+
</el-form-item>
|
156
|
+
<el-form-item :label="i18nt('轴颜色')">
|
157
|
+
<el-color-picker v-model="optionModel.echarBarOption.yAxis.axisLine.lineStyle.color"></el-color-picker>
|
158
|
+
</el-form-item>
|
159
|
+
<el-form-item :label="i18nt('分割线显示')">
|
160
|
+
<el-switch v-model="optionModel.echarBarOption.yAxis.splitLine.show"></el-switch>
|
161
|
+
</el-form-item>
|
162
|
+
<el-form-item :label="i18nt('分割线颜色')">
|
163
|
+
<el-color-picker v-model="optionModel.echarBarOption.yAxis.splitLine.lineStyle.color"></el-color-picker>
|
164
|
+
</el-form-item>
|
88
165
|
|
89
|
-
<el-form-item label-width="0"
|
90
|
-
|
91
|
-
|
92
|
-
<el-form-item :label="i18nt('
|
166
|
+
<el-form-item label-width="0">
|
167
|
+
<el-divider class="custom-divider-margin-top">数值设定</el-divider>
|
168
|
+
</el-form-item>
|
169
|
+
<el-form-item :label="i18nt('显示数值')">
|
170
|
+
<el-switch v-model="showSeriesLabel"></el-switch>
|
171
|
+
</el-form-item>
|
172
|
+
<el-form-item :label="i18nt('字体大小')">
|
173
|
+
<base-input-number :scale="0" v-model="optionModel.echarBarOption.series[0].label.fontSize"></base-input-number>
|
174
|
+
</el-form-item>
|
175
|
+
<el-form-item :label="i18nt('颜色')">
|
176
|
+
<el-color-picker v-model="optionModel.echarBarOption.series[0].label.color"></el-color-picker>
|
177
|
+
</el-form-item>
|
93
178
|
<el-form-item :label="i18nt('字体粗细')">
|
94
179
|
<el-select v-model="optionModel.echarBarOption.series[0].label.fontWeight">
|
95
180
|
<el-option label="正常" value="normal"></el-option>
|
@@ -99,9 +184,13 @@
|
|
99
184
|
</el-select>
|
100
185
|
</el-form-item>
|
101
186
|
|
102
|
-
<el-form-item label-width="0"
|
187
|
+
<el-form-item label-width="0">
|
188
|
+
<el-divider class="custom-divider-margin-top">提示语设置</el-divider>
|
189
|
+
</el-form-item>
|
103
190
|
<!-- <el-form-item :label="i18nt('字体大小')"><base-input-number :scale="0" v-model="optionModel.echarBarOption.tooltip.textStyle.fontSize"></base-input-number></el-form-item> -->
|
104
|
-
<el-form-item :label="i18nt('网格线颜色')"
|
191
|
+
<el-form-item :label="i18nt('网格线颜色')">
|
192
|
+
<el-color-picker v-model="optionModel.echarBarOption.tooltip.borderColor"></el-color-picker>
|
193
|
+
</el-form-item>
|
105
194
|
|
106
195
|
<!-- <el-form-item label-width="0"><el-divider class="custom-divider-margin-top">坐标轴边距设置</el-divider></el-form-item>
|
107
196
|
|
@@ -119,13 +208,15 @@
|
|
119
208
|
|
120
209
|
<script>
|
121
210
|
import i18n from '../../../../../../components/xform/utils/i18n';
|
122
|
-
import {
|
211
|
+
import {deepClone} from '../../../../../../components/xform/utils/util';
|
123
212
|
import Draggable from 'vuedraggable';
|
124
213
|
import requestaccessDialog from '../../../../../../views/user/form/report_requestaccess/dialog.vue';
|
214
|
+
import eventMixin
|
215
|
+
from "@base/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
125
216
|
|
126
217
|
export default {
|
127
218
|
name: 'echart-bar-editor',
|
128
|
-
mixins: [i18n],
|
219
|
+
mixins: [eventMixin, i18n],
|
129
220
|
props: {
|
130
221
|
designer: Object,
|
131
222
|
selectedWidget: Object,
|
@@ -137,7 +228,7 @@ export default {
|
|
137
228
|
requestaccessDialog
|
138
229
|
},
|
139
230
|
computed: {
|
140
|
-
reportTemplate: function() {
|
231
|
+
reportTemplate: function () {
|
141
232
|
return this.getReportTemplate();
|
142
233
|
},
|
143
234
|
nameSet: {
|
@@ -243,7 +334,7 @@ export default {
|
|
243
334
|
if (rows.length) {
|
244
335
|
let row = rows[0];
|
245
336
|
this.optionModel.accessName = row.accessName;
|
246
|
-
|
337
|
+
this.optionModel.accessCode = row.accessCode;
|
247
338
|
}
|
248
339
|
}
|
249
340
|
}
|