cloud-web-corejs 1.0.217 → 1.0.219
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/excelExport/button.vue +55 -46
- package/src/components/excelExport/mixins.js +964 -2
- package/src/components/table/config.js +74 -1
- package/src/components/table/index.js +203 -89
- package/src/components/table/tableFormMixin.js +285 -1
- package/src/components/table/util/index.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +3 -3
- package/src/components/xform/form-render/container-item/data-table-mixin.js +224 -100
- package/src/views/user/fieldTranslation/editDialog.vue +1 -1
- package/src/views/user/fieldTranslation/list.vue +2 -2
package/package.json
CHANGED
|
@@ -1,65 +1,79 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dropdown trigger="hover"
|
|
2
|
+
<el-dropdown trigger="hover">
|
|
3
3
|
<el-button type="primary" class="button-sty" size="mini">
|
|
4
|
-
<span>{{ $t2(
|
|
5
|
-
class="el-icon-arrow-down el-icon--right"></i>
|
|
4
|
+
<span>{{ $t2("列表导出", "components.excelExport.listExport") }}</span
|
|
5
|
+
><span class="line"></span> <i class="el-icon-arrow-down el-icon--right"></i>
|
|
6
6
|
</el-button>
|
|
7
7
|
<el-dropdown-menu slot="dropdown">
|
|
8
|
-
<el-dropdown-item
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<el-dropdown-item
|
|
9
|
+
icon="el-icon-upload2"
|
|
10
|
+
@click.native="toDo()"
|
|
11
|
+
v-if="option.conditionExport !== false"
|
|
12
|
+
>
|
|
13
|
+
{{ $t2("条件导出", "components.excelExport.conditionExport") }}
|
|
12
14
|
</el-dropdown-item>
|
|
13
|
-
<el-dropdown-item
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
<el-dropdown-item
|
|
16
|
+
icon="el-icon-upload2"
|
|
17
|
+
@click.native="toDo('selected')"
|
|
18
|
+
v-if="option.selectExport !== false"
|
|
19
|
+
>
|
|
20
|
+
{{ $t2("选择导出", "components.excelExport.selectExport") }}
|
|
17
21
|
</el-dropdown-item>
|
|
18
|
-
<el-dropdown-item
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
<el-dropdown-item
|
|
23
|
+
icon="el-icon-upload2"
|
|
24
|
+
@click.native="toDo('current')"
|
|
25
|
+
v-if="option.currentExport === true"
|
|
26
|
+
>
|
|
27
|
+
{{ $t2("当前页导出", "components.excelExport.currentExport") }}
|
|
22
28
|
</el-dropdown-item>
|
|
23
29
|
</el-dropdown-menu>
|
|
24
30
|
|
|
25
|
-
<indexViewDialog
|
|
31
|
+
<indexViewDialog
|
|
32
|
+
ref="indexViewDialogRef"
|
|
33
|
+
v-if="showIndexViewDialog"
|
|
34
|
+
:visiabled.sync="showIndexViewDialog"
|
|
35
|
+
:param="indexViewOption"
|
|
36
|
+
></indexViewDialog>
|
|
26
37
|
</el-dropdown>
|
|
27
38
|
</template>
|
|
28
39
|
|
|
29
40
|
<script>
|
|
30
41
|
import indexViewDialog from "./index.vue";
|
|
31
42
|
|
|
32
|
-
|
|
33
43
|
export default {
|
|
34
44
|
name: "base-table-export",
|
|
35
45
|
props: {
|
|
36
|
-
option: Object
|
|
46
|
+
option: Object,
|
|
37
47
|
},
|
|
38
|
-
components:{
|
|
39
|
-
indexViewDialog
|
|
48
|
+
components: {
|
|
49
|
+
indexViewDialog,
|
|
40
50
|
},
|
|
41
|
-
data(){
|
|
51
|
+
data() {
|
|
42
52
|
return {
|
|
43
|
-
showExportFieldOptions:null,
|
|
44
|
-
showExportFieldDialog:false,
|
|
45
|
-
indexViewOption:null,
|
|
46
|
-
showIndexViewDialog:false
|
|
47
|
-
}
|
|
53
|
+
showExportFieldOptions: null,
|
|
54
|
+
showExportFieldDialog: false,
|
|
55
|
+
indexViewOption: null,
|
|
56
|
+
showIndexViewDialog: false,
|
|
57
|
+
};
|
|
48
58
|
},
|
|
49
59
|
methods: {
|
|
50
60
|
toDo(type) {
|
|
51
|
-
let that = this.$attrs[
|
|
52
|
-
let option = {
|
|
61
|
+
let that = this.$attrs["parent-target"];
|
|
62
|
+
let option = {
|
|
63
|
+
...this.option,
|
|
64
|
+
type: type,
|
|
65
|
+
vue: that,
|
|
66
|
+
destroyComponent: (loadingObj) => {
|
|
53
67
|
this.showIndexViewDialog = false;
|
|
54
|
-
if(loadingObj){
|
|
55
|
-
setTimeout(function (){
|
|
56
|
-
loadingObj.close()
|
|
57
|
-
},200)
|
|
68
|
+
if (loadingObj) {
|
|
69
|
+
setTimeout(function () {
|
|
70
|
+
loadingObj.close();
|
|
71
|
+
}, 200);
|
|
58
72
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
73
|
+
},
|
|
74
|
+
};
|
|
61
75
|
|
|
62
|
-
/*
|
|
76
|
+
/*
|
|
63
77
|
// this.option = this.param;
|
|
64
78
|
let $grid = getGrid(option.vue, option.targetRef);
|
|
65
79
|
let datas = [];
|
|
@@ -78,21 +92,16 @@ export default {
|
|
|
78
92
|
}
|
|
79
93
|
*/
|
|
80
94
|
|
|
81
|
-
|
|
82
95
|
this.indexViewOption = option;
|
|
83
96
|
this.showIndexViewDialog = true;
|
|
84
|
-
this.$nextTick(()=>{
|
|
97
|
+
this.$nextTick(() => {
|
|
85
98
|
this.$refs.indexViewDialogRef.exc();
|
|
86
|
-
})
|
|
99
|
+
});
|
|
87
100
|
// that.$excelExport(option);
|
|
88
101
|
},
|
|
89
|
-
openIndexViewDialog(option){
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
}
|
|
102
|
+
openIndexViewDialog(option) {},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
94
105
|
</script>
|
|
95
106
|
|
|
96
|
-
<style scoped>
|
|
97
|
-
|
|
98
|
-
</style>
|
|
107
|
+
<style scoped></style>
|