javascript - 如何只导出excel中选定的行?数据表
问题描述
问候。我为 VUEYE DATA TABLE 创建了一个表和一个使用插件。我只想将选定的行(复选框)导出到 Excel。我还希望在开始时选中所有复选框。我阅读了文档,但没有找到解决方案。看我的代码:
mounted() {
this.axios.get("http://127.0.0.1:8000/api/mytable").then(res=>{
this.todos=res.data;
})
}
getChecked(rows){
//only selected rows come out in the console and this is good but how to exprot only this?
console.log("row" , rows);
},
<vueye-table
checkable
tableStyle="bordered"
:theme="theme3"
:per-page-values="[5,10,25,50]"
title="TODOS"
:rows_data="todos"
v-on:checked-rows="getChecked"
v-on:row-click="onrowclick"
></vueye-table>
解决方案
推荐阅读
- google-cloud-functions - 如何使用 REST 模板在本地调用经过身份验证的云函数
- distribution - 测试 R 或 Python 中不同组的多峰分布差异
- javascript - Ruby on Rails 6 - 实现 javascripts (chess.js)
- sql - 有编译器问题以及游标问题的声明?
- mysql - 从另一个表创建具有多个 SUM 的新表
- c++ - 如何通过索引访问数据
- ssis - 在 SSIS 2019 中面临查找转换的问题
- python - 如何让我的代码返回网格中可用的每个字符串?
- reactjs - 带 setTimeout 的 onClick 事件的高级时间(以毫秒为单位)
- python-3.x - Python,TypeError:缺少 1 个必需的位置参数。仅在使用 ThreadPoolExcecutor 的提交功能时