mooho-base-admin-plus 2.10.30 → 2.10.32
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
CHANGED
package/src/api/dataView.js
CHANGED
|
@@ -139,7 +139,7 @@ export default {
|
|
|
139
139
|
data: {
|
|
140
140
|
data,
|
|
141
141
|
returnType: 1,
|
|
142
|
-
viewCode: tableView.code,
|
|
142
|
+
viewCode: !!(tableView.exportDataViewCode || '').trim() ? tableView.exportDataViewCode : tableView.code,
|
|
143
143
|
viewColumns
|
|
144
144
|
}
|
|
145
145
|
});
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
157
157
|
data: {
|
|
158
158
|
data,
|
|
159
159
|
returnType: 3,
|
|
160
|
-
viewCode: tableView.code,
|
|
160
|
+
viewCode: !!(tableView.exportDataViewCode || '').trim() ? tableView.exportDataViewCode : tableView.code,
|
|
161
161
|
viewColumns
|
|
162
162
|
}
|
|
163
163
|
});
|
|
@@ -174,7 +174,7 @@ export default {
|
|
|
174
174
|
data: {
|
|
175
175
|
data,
|
|
176
176
|
returnType: 2,
|
|
177
|
-
viewCode: tableView.code,
|
|
177
|
+
viewCode: !!(tableView.exportDataViewCode || '').trim() ? tableView.exportDataViewCode : tableView.code,
|
|
178
178
|
viewColumns
|
|
179
179
|
}
|
|
180
180
|
});
|
|
@@ -1728,7 +1728,35 @@
|
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
1730
|
|
|
1731
|
-
if (this.
|
|
1731
|
+
if (!!(this.tableView.exportDataViewCode || '').trim()) {
|
|
1732
|
+
if (name === 'exportExcel') {
|
|
1733
|
+
dataViewApi.exportExcel(
|
|
1734
|
+
this.tableView,
|
|
1735
|
+
this.staticData
|
|
1736
|
+
// this.columns.filter(item => {
|
|
1737
|
+
// return item.slot == 'normal';
|
|
1738
|
+
// })
|
|
1739
|
+
);
|
|
1740
|
+
} else if (name === 'exportPdf') {
|
|
1741
|
+
dataViewApi.exportPdf(
|
|
1742
|
+
this.tableView,
|
|
1743
|
+
this.staticData
|
|
1744
|
+
// this.columns.filter(item => {
|
|
1745
|
+
// return item.slot == 'normal';
|
|
1746
|
+
// })
|
|
1747
|
+
);
|
|
1748
|
+
} else if (name === 'print') {
|
|
1749
|
+
dataViewApi.print(
|
|
1750
|
+
this.tableView,
|
|
1751
|
+
this.staticData
|
|
1752
|
+
// this.columns.filter(item => {
|
|
1753
|
+
// return item.slot == 'normal';
|
|
1754
|
+
// })
|
|
1755
|
+
);
|
|
1756
|
+
} else if (name === 'batchEdit') {
|
|
1757
|
+
this.error('Front_Msg_Not_Supported');
|
|
1758
|
+
}
|
|
1759
|
+
} else if (this.static) {
|
|
1732
1760
|
if (name === 'exportExcel') {
|
|
1733
1761
|
dataViewApi.exportExcel(
|
|
1734
1762
|
this.tableView,
|