cloud-web-corejs 1.0.54-dev.56 → 1.0.54-dev.58
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/VabUpload/mixins.js +1 -1442
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +10 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1272 -1
- 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 +0 -1
- 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/onAfterConfirmFile-editor.vue +30 -0
- 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/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1668 -1
- package/src/router/modules/customer.js +2 -2
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;
|
@@ -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"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form-item label="onAfterConfirmFile" label-width="150px">
|
3
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="editEventHandler('onAfterConfirmFile', eventParams)">
|
4
|
+
<span>{{ optionModel.onAfterConfirmFile }}</span>
|
5
|
+
<i class="el-icon-edit"></i>
|
6
|
+
</a>
|
7
|
+
</el-form-item>
|
8
|
+
</template>
|
9
|
+
|
10
|
+
<script>
|
11
|
+
import i18n from "../../../../../../components/xform/utils/i18n";
|
12
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
13
|
+
|
14
|
+
export default {
|
15
|
+
name: "onAfterConfirmFile-editor",
|
16
|
+
mixins: [i18n, eventMixin],
|
17
|
+
props: {
|
18
|
+
designer: Object,
|
19
|
+
selectedWidget: Object,
|
20
|
+
optionModel: Object,
|
21
|
+
},
|
22
|
+
data() {
|
23
|
+
return {
|
24
|
+
eventParams: ["attachments", "fileInfos"],
|
25
|
+
};
|
26
|
+
},
|
27
|
+
};
|
28
|
+
</script>
|
29
|
+
|
30
|
+
<style scoped></style>
|
@@ -9,6 +9,9 @@
|
|
9
9
|
<el-form-item label="表格唯一名称">
|
10
10
|
<el-input v-model="optionModel.tableRef"></el-input>
|
11
11
|
</el-form-item>
|
12
|
+
<el-form-item label="导出每页查询数量">
|
13
|
+
<base-input-number v-model="optionModel.exportPageSize" :max="1000"></base-input-number>
|
14
|
+
</el-form-item>
|
12
15
|
<el-form-item label="导出参数" label-width="150px">
|
13
16
|
<a href="javascript:void(0);" class="a-link link-oneLind" @click="editEventHandler('tableExportParam', eventParams)">
|
14
17
|
<span>{{ optionModel.tableExportParam }}</span>
|
@@ -212,6 +212,7 @@ const EVENT_PROPERTIES = {
|
|
212
212
|
'onAppendButtonClick': 'onAppendButtonClick-editor',
|
213
213
|
'onSearchConfirm': 'onSearchConfirm-editor',
|
214
214
|
'onSearchClear': 'onSearchClear-editor',
|
215
|
+
'onAfterConfirmFile': 'onAfterConfirmFile-editor',
|
215
216
|
|
216
217
|
//容器
|
217
218
|
'onSubFormRowAdd': 'onSubFormRowAdd-editor',
|
@@ -2513,6 +2513,7 @@ export const advancedFields = [
|
|
2513
2513
|
entityTableDesc: null,
|
2514
2514
|
onCreated: "this.loadDataDefaultHandle();",
|
2515
2515
|
onMounted: "",
|
2516
|
+
onAfterConfirmFile:"",
|
2516
2517
|
vabUpload: 1,
|
2517
2518
|
formScriptEnabled: true,
|
2518
2519
|
formScriptCode: "getList",
|
@@ -2922,6 +2923,7 @@ export const advancedFields = [
|
|
2922
2923
|
entityTableDesc: null,
|
2923
2924
|
onCreated: "",
|
2924
2925
|
onMounted: "",
|
2926
|
+
onAfterConfirmFile:"",
|
2925
2927
|
wfFlag: 1,
|
2926
2928
|
wfEdit: false,
|
2927
2929
|
enabledByWf: false,
|