Commit 3e08979b by LJM

ADD

parent 06909778
Showing with 15 additions and 1 deletions
......@@ -20,7 +20,13 @@
<!--操作区-->
<div class="operation-area row verCenter bothSide">
<div class="operation-button row verCenter">
<el-button type="primary" @click="exportVerifiedBill()">导出账单</el-button>
<el-dropdown @command="handleCommand">
<el-button type="primary">导出账单</el-button>
<el-dropdown-menu>
<el-dropdown-item command="1">导出PDF</el-dropdown-item>
<el-dropdown-item command="2">导出EXCEL</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
<!--列表区-->
......@@ -118,6 +124,14 @@ export default {
});
},
/**
* 操作按钮监听
*/
handleCommand(command) {
let bill_id = this.multipleSelection.map(item => item.bill_id).join(',');
let url = NODE_ENVS + '/api/bill/exportVerifiedBill?bill_id=' + bill_id + '&token=' + Tool.getCookie('token') + '&type=' + command;
Tool.openNewWindow(url);
},
/**
* 搜索
*/
onSubmit() {
......
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 sign in to comment