cloud-web-corejs 1.0.54-dev.66 → 1.0.54-dev.68
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/baseAttachment-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +5 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +5 -3
package/package.json
CHANGED
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
@@ -242,7 +242,8 @@ modules = {
|
|
242
242
|
})
|
243
243
|
},
|
244
244
|
getColors(){
|
245
|
-
let
|
245
|
+
let chartColors = this.field.options.echarBarOption.colors || [];
|
246
|
+
let colors = [...chartColors, ...this.colors];
|
246
247
|
return colors
|
247
248
|
},
|
248
249
|
adjustColor() {
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js
CHANGED
@@ -111,7 +111,8 @@ modules = {
|
|
111
111
|
|
112
112
|
methods: {
|
113
113
|
getColors() {
|
114
|
-
let
|
114
|
+
let chartColors = this.field.options.echarCategoryOption.colors || [];
|
115
|
+
let colors = [...chartColors, ...this.colors];
|
115
116
|
return colors
|
116
117
|
},
|
117
118
|
adjustColor() {
|
@@ -147,7 +147,9 @@ export default {
|
|
147
147
|
},
|
148
148
|
submitFile(rows, fileInfos) {
|
149
149
|
this.handlLineCode(fileInfos);
|
150
|
-
|
150
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
151
|
+
let eventParamValues = [rows, fileInfos];
|
152
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
151
153
|
},
|
152
154
|
handlLineCode(fileInfos) {
|
153
155
|
let allPromise = [];
|
@@ -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)
|
@@ -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
|
};
|