cloud-web-corejs 1.0.54-dev.469 → 1.0.54-dev.470
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/import-button-widget.vue +19 -10
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +15 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +8 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +8 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
package/package.json
CHANGED
package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue
CHANGED
|
@@ -61,18 +61,27 @@ export default {
|
|
|
61
61
|
|
|
62
62
|
methods: {
|
|
63
63
|
importHandle() {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
const done = () => {
|
|
65
|
+
let multi = this.field.options.importMultiple || false;
|
|
66
|
+
let multiSize = this.field.options.importMultiSize || 1;
|
|
67
|
+
this.getFormRef().openImportDialog({
|
|
68
|
+
target: this,
|
|
69
|
+
importOption: this.field.options,
|
|
70
|
+
importFrontOnly: false,
|
|
71
|
+
multi,
|
|
72
|
+
multiSize,
|
|
73
|
+
callback: (resultData, file, done) => {
|
|
73
74
|
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
if (this.field.options.onBeforeClickButton) {
|
|
79
|
+
if (this.handleCustomEvent(this.field.options.onBeforeClickButton, ["done"], [done]) !== false) {
|
|
80
|
+
done();
|
|
74
81
|
}
|
|
75
|
-
}
|
|
82
|
+
} else {
|
|
83
|
+
done();
|
|
84
|
+
}
|
|
76
85
|
}
|
|
77
86
|
}
|
|
78
87
|
|
package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue
CHANGED
|
@@ -61,14 +61,23 @@ export default {
|
|
|
61
61
|
|
|
62
62
|
methods: {
|
|
63
63
|
importHandle() {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
const done = () => {
|
|
65
|
+
this.getFormRef().openImportDialog({
|
|
66
|
+
target: this,
|
|
67
|
+
importOption: this.field.options,
|
|
68
|
+
importFrontOnly: true,
|
|
69
|
+
callback: (resultData, file, done) => {
|
|
69
70
|
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (this.field.options.onBeforeClickButton) {
|
|
75
|
+
if (this.handleCustomEvent(this.field.options.onBeforeClickButton, ["done"], [done]) !== false) {
|
|
76
|
+
done();
|
|
70
77
|
}
|
|
71
|
-
}
|
|
78
|
+
} else {
|
|
79
|
+
done();
|
|
80
|
+
}
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
|
@@ -51,7 +51,13 @@
|
|
|
51
51
|
:max="200"
|
|
52
52
|
></base-input-number>
|
|
53
53
|
</el-form-item>
|
|
54
|
-
|
|
54
|
+
<el-form-item label="点击前置事件" label-width="150px">
|
|
55
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
56
|
+
@click="editEventHandler('onBeforeClickButton', eventParams)">
|
|
57
|
+
<span>{{ optionModel.onBeforeClickButton }}</span>
|
|
58
|
+
<i class="el-icon-edit"></i>
|
|
59
|
+
</a>
|
|
60
|
+
</el-form-item>
|
|
55
61
|
<el-form-item label="启用图片处理">
|
|
56
62
|
<el-switch v-model="optionModel.enabledImportPreHandle"></el-switch>
|
|
57
63
|
</el-form-item>
|
|
@@ -105,7 +111,7 @@ export default {
|
|
|
105
111
|
},
|
|
106
112
|
data() {
|
|
107
113
|
return {
|
|
108
|
-
eventParams: [],
|
|
114
|
+
eventParams: ["dataId", "formCode", "done"],
|
|
109
115
|
showBdAttachSettingDialog: false,
|
|
110
116
|
onBeforeImportParams: ["dataId", "formCode", "file", "resultData", "done"],
|
|
111
117
|
onConfirmImportParams: ["dataId", "formCode", "resultData", "file", "done"],
|
|
@@ -24,6 +24,13 @@
|
|
|
24
24
|
<el-form-item label="关联表格唯一名称">
|
|
25
25
|
<el-input v-model="optionModel.tableRef"></el-input>
|
|
26
26
|
</el-form-item>
|
|
27
|
+
<el-form-item label="点击前置事件" label-width="150px">
|
|
28
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
|
29
|
+
@click="editEventHandler('onBeforeClickButton', eventParams)">
|
|
30
|
+
<span>{{ optionModel.onBeforeClickButton }}</span>
|
|
31
|
+
<i class="el-icon-edit"></i>
|
|
32
|
+
</a>
|
|
33
|
+
</el-form-item>
|
|
27
34
|
<el-form-item label="启用确认回调">
|
|
28
35
|
<el-switch v-model="optionModel.onConfirmImportEnabled"></el-switch>
|
|
29
36
|
</el-form-item>
|
|
@@ -67,7 +74,7 @@ export default {
|
|
|
67
74
|
},
|
|
68
75
|
data() {
|
|
69
76
|
return {
|
|
70
|
-
eventParams: [],
|
|
77
|
+
eventParams: ["dataId", "formCode", "done"],
|
|
71
78
|
showBdAttachSettingDialog: false,
|
|
72
79
|
onBeforeImportParams: ["dataId", "formCode", 'file', 'resultData', 'done'],
|
|
73
80
|
onConfirmImportParams: ["dataId", "formCode", 'resultData', 'file', 'done'],
|
|
@@ -3064,6 +3064,7 @@ export const advancedFields = [
|
|
|
3064
3064
|
onSuccessImport: "",
|
|
3065
3065
|
hideCancelButton:false,
|
|
3066
3066
|
multipleSheet: false,
|
|
3067
|
+
onBeforeClickButton:null,
|
|
3067
3068
|
|
|
3068
3069
|
showRuleFlag: 1,
|
|
3069
3070
|
showRuleEnabled: 1,
|
|
@@ -3111,6 +3112,7 @@ export const advancedFields = [
|
|
|
3111
3112
|
onConfirmImport: "",
|
|
3112
3113
|
onSuccessImport: "",
|
|
3113
3114
|
hideCancelButton:false,
|
|
3115
|
+
onBeforeClickButton:null,
|
|
3114
3116
|
|
|
3115
3117
|
showRuleFlag: 1,
|
|
3116
3118
|
showRuleEnabled: 1,
|