Skip to content

Commit 263be04

Browse files
author
张世平
committed
fix 导出数据为空问题
1 parent d8e478d commit 263be04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/js/components/datatable.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<i class="glyphicon glyphicon-folder-open"></i>
108108
<input type="file" @change="selectExcel" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" v-show="false"></input>
109109
</button>-->
110-
<button type="button" :title="$t('Export data')" class="btn" :class="'btn-'+theme" @click="download" v-if="data.configUrl['exportUrl'] && !options.exportMore">
110+
<button type="button" :title="$t('Export data')" class="btn" :class="'btn-'+theme" @click="download(0)" v-if="data.configUrl['exportUrl'] && !options.exportMore">
111111
<i class="glyphicon glyphicon-download-alt"></i>
112112
</button>
113113
<div class="btn-group" v-if="data.configUrl['exportUrl'] && options.exportMore">
@@ -120,7 +120,7 @@
120120
<i class="glyphicon glyphicon-download-alt"></i>
121121
</button>
122122
<ul class="dropdown-menu pull-right" role="menu">
123-
<li><a @click="download">导出全部</a></li>
123+
<li><a @click="download(0)">导出全部</a></li>
124124
<li><a @click="download(1)">导出勾选</a></li>
125125
<li><a @click="download(2)">导出当前页</a></li>
126126
</ul>
@@ -171,7 +171,7 @@
171171
<i class="glyphicon glyphicon-folder-open"></i>
172172
<input type="file" @change="selectExcel" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" v-show="false"></input>
173173
</button>-->
174-
<button type="button" :title="$t('Export data')" class="btn" :class="'btn-'+theme" @click="download" v-if="data.configUrl['exportUrl']">
174+
<button type="button" :title="$t('Export data')" class="btn" :class="'btn-'+theme" @click="download(0)" v-if="data.configUrl['exportUrl']">
175175
<i class="glyphicon glyphicon-download-alt"></i>
176176
</button>
177177
<slot name="input_group_add_btn" :data="data"></slot>

0 commit comments

Comments
 (0)