Commit 118d5a1f by shaojiawen

bug:导出按钮+UI

parent 1e2d7c91
......@@ -111,10 +111,10 @@
<el-button type="text" class="ml20" @click="downloadCouponCSV">点击下载文件模板</el-button>
<el-popover placement="bottom" width="350" trigger="hover" open-delay="200">
<ul>
<li>1. 单次上传最多可支持 5000 条</li>
<li>2. 券码格式可由 6~20 位的数字或字母组成</li>
<li>3. 若券码为纯数字组成,为避免发生意外错误,请将其格式设置为 ‘文本’ 格式</li>
<li>4. 仅支持.csv 文件的导入 (建议直接下载模板,在模板的基础上进行数据的填充)</li>
<li>1. 券码格式可由 6~20 位的数字或字母组成,若券码为纯数字组成,为避免发生意外错误,请将其格式设置为 ‘文本’ 格式;</li>
<li>2. 请勿导入重复的内容,导入的内容在原来基础上增加库存;</li>
<li>3. 导入的券码在当前模版上进行数据的填充;</li>
<li>4. 上传完整仅支持.xlsx .xls文件的导入,填充数据不超过“10万”条。</li>
</ul>
<el-button class="ml30" type="text" slot="reference">查看导入规则</el-button>
</el-popover>
......
......@@ -15,11 +15,11 @@
<span v-else>{{ scope.row[v.prop] || '--' }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="操作" align="left" width="120px" fixed="right">
<el-table-column label="操作" align="left" width="120px" fixed="right">
<template slot-scope="scope">
<dm-perm-button type="text" @click="showExport(scope.row)" :disabled="$itemPerm($itemCode.gicCardDestoryExport)">导出结果</dm-perm-button>
</template>
</el-table-column> -->
</el-table-column>
</el-table>
<div class="clearfix">
<dm-pagination class="fr mb0" v-if="tableList.length" background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listParams.currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="listParams.pageSize" layout="total, sizes, prev, pager, next" :total="total"></dm-pagination>
......@@ -165,10 +165,10 @@ export default {
},
// ********数据导出*************
showExport({ destroyPlanId }) {
// if(!this.tableList.length) {
// this.$tips({ message: '没有要导出的数据', type: 'warning' });
// return;
// }
if(!this.tableList.length) {
this.$tips({ message: '没有要导出的数据', type: 'warning' });
return;
}
this.exportDestroyPlanId = destroyPlanId;
this.exportVisible = true;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment