cloud-web-corejs 1.0.219 → 1.0.220
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/baseAlert/index.vue +1 -1
- package/src/components/excelExport/exportFieldDialog.vue +3 -3
- package/src/components/excelExport/index.vue +62 -34
- package/src/components/excelExport/mixins.js +10 -5
- package/src/components/table/util/index.js +4 -0
- package/src/components/table/vxeFilter/index.js +3 -3
- package/src/components/table/vxeFilter/mixin.js +4 -4
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +104 -101
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +97 -3
- package/src/components/xform/mixins/defaultHandle.js +75 -48
- package/src/layout/components/Sidebar/default.vue +11 -6
- package/src/layout/components/langTool.vue +32 -29
- package/src/store/getters.js +2 -1
- package/src/store/modules/user.js +27 -3
- package/src/utils/vab.js +83 -73
- package/src/views/user/user/edit.vue +45 -0
package/package.json
CHANGED
|
@@ -186,7 +186,7 @@ export default {
|
|
|
186
186
|
} else {
|
|
187
187
|
//导出子表数据
|
|
188
188
|
let exportItemColumns = target.exportItemColumns || [];
|
|
189
|
-
let originOption = target.originOption;
|
|
189
|
+
let originOption = target.params.originOption;
|
|
190
190
|
let oriExportItemColumns = originOption.exportItemConfig?.columns || [];
|
|
191
191
|
|
|
192
192
|
this.loopColumnHandle(oriExportItemColumns, (item) => {
|
|
@@ -223,7 +223,7 @@ export default {
|
|
|
223
223
|
let exportItem = this.param.type === "exportItem";
|
|
224
224
|
|
|
225
225
|
let $grid = this.getGrid();
|
|
226
|
-
let originOption = $grid.originOption;
|
|
226
|
+
let originOption = $grid.params.originOption;
|
|
227
227
|
let leafColumns = this.$refs.tree.getCheckedNodes(true);
|
|
228
228
|
let checkLeafIds = leafColumns.map((item) => item.id);
|
|
229
229
|
|
|
@@ -277,7 +277,7 @@ export default {
|
|
|
277
277
|
},
|
|
278
278
|
dialogConfirm() {
|
|
279
279
|
let target = this.getGrid();
|
|
280
|
-
let originOption = target.originOption;
|
|
280
|
+
let originOption = target.params.originOption;
|
|
281
281
|
let leafColumns = this.$refs.tree.getCheckedNodes(true);
|
|
282
282
|
let checkIds = this.$refs.tree.getCheckedNodes(false, true).map((item) => item.id);
|
|
283
283
|
let exportItem = this.param.type == "exportItem";
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="inner-dialog">
|
|
3
3
|
<span v-if="isMinimize" class="export-box-small">
|
|
4
|
-
<a href="javascript:void(0)" @click="handleMinimize"
|
|
5
|
-
|
|
4
|
+
<a href="javascript:void(0)" @click="handleMinimize"
|
|
5
|
+
><p>
|
|
6
|
+
{{ $t2("列表导出", "components.excelExport.listExport")
|
|
7
|
+
}}<i class="el-icon-zoom-in"></i>
|
|
8
|
+
</p>
|
|
9
|
+
<el-progress
|
|
10
|
+
:percentage="percentageNum"
|
|
11
|
+
:show-text="false"
|
|
12
|
+
:stroke-width="3"
|
|
13
|
+
status="success"
|
|
14
|
+
></el-progress
|
|
15
|
+
></a>
|
|
6
16
|
</span>
|
|
7
|
-
<exportFieldDialog
|
|
8
|
-
|
|
17
|
+
<exportFieldDialog
|
|
18
|
+
:visiable.sync="showExportFieldDialog"
|
|
19
|
+
v-if="showExportFieldDialog"
|
|
20
|
+
:param="param"
|
|
21
|
+
@close="closeExportFieldDialog"
|
|
22
|
+
@confirm="confirmExportFieldDialog"
|
|
23
|
+
></exportFieldDialog>
|
|
9
24
|
<el-dialog
|
|
10
25
|
ref="exportDialog"
|
|
11
26
|
:title="title"
|
|
@@ -18,49 +33,55 @@
|
|
|
18
33
|
:modal-append-to-body="false"
|
|
19
34
|
@close="dialogClose2"
|
|
20
35
|
>
|
|
21
|
-
|
|
36
|
+
<!-- <el-button class="isFullIcon" @click="handleMinimize">
|
|
22
37
|
<el-tooltip effect="dark" content="缩小" placement="top">
|
|
23
38
|
<i class="el-icon-minus"></i>
|
|
24
39
|
</el-tooltip>
|
|
25
40
|
</el-button> -->
|
|
26
41
|
<div class="export-box">
|
|
27
|
-
<div class="tips">
|
|
28
|
-
|
|
29
|
-
|
|
42
|
+
<div class="tips">
|
|
43
|
+
{{ $t2("导出中,请勿关闭当前窗口", "components.excelExport.tip") }}
|
|
44
|
+
</div>
|
|
45
|
+
<el-progress
|
|
46
|
+
:text-inside="true"
|
|
47
|
+
:stroke-width="26"
|
|
48
|
+
:percentage="percentageNum"
|
|
49
|
+
class="export-progress"
|
|
50
|
+
></el-progress>
|
|
30
51
|
<vxe-grid ref="exportTable" v-bind="exportGrid">
|
|
31
|
-
<template #row_edit="{row}">
|
|
52
|
+
<template #row_edit="{ row }">
|
|
32
53
|
<a href="javascript:void(0);" class="a-link" @click="exportAll(row)">
|
|
33
|
-
<i class="el-icon-download"/>
|
|
34
|
-
{{ $t2(
|
|
54
|
+
<i class="el-icon-download" />
|
|
55
|
+
{{ $t2("下载", "system.button.download") }}
|
|
35
56
|
</a>
|
|
36
57
|
</template>
|
|
37
58
|
</vxe-grid>
|
|
38
59
|
</div>
|
|
39
60
|
<span slot="footer" class="dialog-footer">
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
<div class="fl import-count">
|
|
62
|
+
<span class="f-red doneNum">{{ doneSize }}</span>
|
|
63
|
+
/
|
|
64
|
+
<span class="dataSize">{{ tTotalSize }}</span>
|
|
65
|
+
</div>
|
|
66
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose2">
|
|
67
|
+
<i class="el-icon-close el-icon"></i>
|
|
68
|
+
{{ $t2("取 消", "system.button.cancel2") }}
|
|
69
|
+
</el-button>
|
|
70
|
+
<el-button type="primary" @click="dialogClose2" class="button-sty">
|
|
71
|
+
<i class="el-icon-check el-icon"></i>
|
|
72
|
+
{{ $t2("确 定", "system.button.confirm2") }}
|
|
73
|
+
</el-button>
|
|
74
|
+
</span>
|
|
54
75
|
</el-dialog>
|
|
55
76
|
</div>
|
|
56
77
|
</template>
|
|
57
78
|
|
|
58
79
|
<script>
|
|
59
|
-
import {mixins} from
|
|
80
|
+
import { mixins } from "./mixins";
|
|
60
81
|
|
|
61
82
|
export default {
|
|
62
|
-
name:
|
|
63
|
-
mixins: [mixins]
|
|
83
|
+
name: "excelExport2",
|
|
84
|
+
mixins: [mixins],
|
|
64
85
|
};
|
|
65
86
|
</script>
|
|
66
87
|
|
|
@@ -84,13 +105,13 @@ export default {
|
|
|
84
105
|
padding: 0;
|
|
85
106
|
}
|
|
86
107
|
}
|
|
87
|
-
.export-box-small{
|
|
108
|
+
.export-box-small {
|
|
88
109
|
position: absolute;
|
|
89
110
|
left: 0;
|
|
90
111
|
top: 0;
|
|
91
112
|
width: 93px;
|
|
92
113
|
line-height: 23px;
|
|
93
|
-
height:26px;
|
|
114
|
+
height: 26px;
|
|
94
115
|
font-size: 12px;
|
|
95
116
|
color: #fff;
|
|
96
117
|
white-space: nowrap;
|
|
@@ -100,13 +121,20 @@ export default {
|
|
|
100
121
|
border-radius: 2px;
|
|
101
122
|
background: #2a6494;
|
|
102
123
|
text-align: center;
|
|
103
|
-
.el-progress{
|
|
104
|
-
|
|
105
|
-
|
|
124
|
+
.el-progress {
|
|
125
|
+
position: absolute;
|
|
126
|
+
bottom: -2.5px;
|
|
127
|
+
left: 0;
|
|
128
|
+
right: 0;
|
|
129
|
+
}
|
|
130
|
+
p {
|
|
131
|
+
margin: 0;
|
|
132
|
+
}
|
|
133
|
+
i {
|
|
106
134
|
vertical-align: middle;
|
|
107
135
|
margin-left: 8px;
|
|
108
136
|
font-size: 14px;
|
|
109
|
-
color: #
|
|
137
|
+
color: #fff;
|
|
110
138
|
}
|
|
111
139
|
}
|
|
112
140
|
</style>
|
|
@@ -166,7 +166,7 @@ function getGrid(that, tableRef) {
|
|
|
166
166
|
|
|
167
167
|
let that = this;
|
|
168
168
|
let options = this.option;
|
|
169
|
-
let title = options.title
|
|
169
|
+
let title = options.title? this.$t1(options.title) : this.$t2('导出', 'components.excelExport.title');
|
|
170
170
|
if (!options.prefix && options.prefix !== '') {
|
|
171
171
|
let originOption = this.tableTarget.params.originOption;
|
|
172
172
|
let path = originOption.exportPath || originOption.path;
|
|
@@ -485,11 +485,15 @@ function getGrid(that, tableRef) {
|
|
|
485
485
|
|
|
486
486
|
if (!originOption.exportAjax) {
|
|
487
487
|
let turl = url.replace("searchCount=false", "1=1");
|
|
488
|
+
let finaParams = params;
|
|
489
|
+
if(originOption.paramHandle){
|
|
490
|
+
finaParams = originOption.paramHandle ? originOption.paramHandle(params) || {} : {};
|
|
491
|
+
}
|
|
488
492
|
promise = that.$commonHttp({
|
|
489
493
|
aes: originOption.aes || false,
|
|
490
494
|
url: turl,
|
|
491
495
|
method: "post",
|
|
492
|
-
data:
|
|
496
|
+
data: finaParams,
|
|
493
497
|
modal: false,
|
|
494
498
|
queryCreateInfo: originOption.queryCreateInfo,
|
|
495
499
|
addCreateInfo: originOption.addCreateInfo
|
|
@@ -769,16 +773,15 @@ function getGrid(that, tableRef) {
|
|
|
769
773
|
}
|
|
770
774
|
let exportType = column.params?.exportType;
|
|
771
775
|
let exportVal = column.params && column.params.exportVal ? column.params.exportVal : null;
|
|
772
|
-
|
|
773
|
-
resultStr = getCellValue(params);
|
|
774
|
-
|
|
775
776
|
if (exportVal) {
|
|
776
777
|
resultStr = exportVal(params);
|
|
777
778
|
} else if (exportType === "Number") {
|
|
779
|
+
resultStr = getCellValue(params);
|
|
778
780
|
if (resultStr !== null && resultStr !== undefined && resultStr !== "" && !(resultStr + "").startsWith("[EXPNUM]")) {
|
|
779
781
|
resultStr = "[EXPNUM]" + resultStr;
|
|
780
782
|
}
|
|
781
783
|
} else if (exportType === "Image" || (showImageAtTable && exportType === "Image2")) {
|
|
784
|
+
resultStr = getCellValue(params);
|
|
782
785
|
let attachments = row[column.field];
|
|
783
786
|
if (attachments) {
|
|
784
787
|
if (Array.isArray(attachments)) {
|
|
@@ -803,6 +806,8 @@ function getGrid(that, tableRef) {
|
|
|
803
806
|
} else {
|
|
804
807
|
resultStr = null;
|
|
805
808
|
}
|
|
809
|
+
}else{
|
|
810
|
+
resultStr = getCellValue(params);
|
|
806
811
|
}
|
|
807
812
|
contents.push(resultStr);
|
|
808
813
|
resultStr = null;
|
|
@@ -3,7 +3,7 @@ import XEUtils from 'xe-utils';
|
|
|
3
3
|
import FilterComplex from './FilterComplex.vue';
|
|
4
4
|
import FilterContent from './FilterContent.vue';
|
|
5
5
|
import FilterInput from './FilterInput.vue';
|
|
6
|
-
import {
|
|
6
|
+
import {getFilterValue} from "../util/index.js";
|
|
7
7
|
|
|
8
8
|
let moudule = {};
|
|
9
9
|
let configUtil = {
|
|
@@ -78,7 +78,7 @@ configUtil.VXETable.renderer.add('FilterContent', {
|
|
|
78
78
|
const {
|
|
79
79
|
vals
|
|
80
80
|
} = option.data;
|
|
81
|
-
let cellValue =
|
|
81
|
+
let cellValue = getFilterValue(obj);
|
|
82
82
|
return vals.includes(cellValue);
|
|
83
83
|
}
|
|
84
84
|
});
|
|
@@ -141,7 +141,7 @@ configUtil.VXETable.renderer.add('FilterInput', {
|
|
|
141
141
|
data
|
|
142
142
|
} = option;
|
|
143
143
|
|
|
144
|
-
let cellValue =
|
|
144
|
+
let cellValue = getFilterValue(obj);
|
|
145
145
|
|
|
146
146
|
if (cellValue) {
|
|
147
147
|
return cellValue.indexOf(data) > -1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {getFilterValue, createParams} from "../util/index.js";
|
|
2
2
|
let modules = {};
|
|
3
3
|
|
|
4
4
|
modules = {
|
|
@@ -52,7 +52,7 @@ modules = {
|
|
|
52
52
|
let lsm = {};
|
|
53
53
|
let colValList = [];
|
|
54
54
|
fullData.map((row, $rowIndex) => {
|
|
55
|
-
let cellValue =
|
|
55
|
+
let cellValue = getFilterValue({
|
|
56
56
|
row,
|
|
57
57
|
$rowIndex,
|
|
58
58
|
$table,
|
|
@@ -106,14 +106,14 @@ modules = {
|
|
|
106
106
|
row,
|
|
107
107
|
column: filterColumn,
|
|
108
108
|
});
|
|
109
|
-
let cellValue =
|
|
109
|
+
let cellValue = getFilterValue(param);
|
|
110
110
|
return !vals.includes(cellValue);
|
|
111
111
|
});
|
|
112
112
|
return item === null || item === undefined;
|
|
113
113
|
});
|
|
114
114
|
let lsm2 = {};
|
|
115
115
|
datas.map((row, $rowIndex) => {
|
|
116
|
-
let cellValue =
|
|
116
|
+
let cellValue = getFilterValue({
|
|
117
117
|
row,
|
|
118
118
|
$rowIndex,
|
|
119
119
|
$table,
|