|
@@ -157,7 +157,7 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div class="jp-table" style="">
|
|
|
- <vxe-toolbar :refresh="{query: refreshList}" export custom>
|
|
|
+ <vxe-toolbar ref="toolbarRef" :refresh="{query: refreshList}" export custom>
|
|
|
<template #buttons>
|
|
|
<el-button v-if="hasPermission('finance:invoice:add')" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
|
|
|
<!-- <el-button v-if="hasPermission('finance:invoice:del')" type="danger" size="small" icon="el-icon-delete" @click="del()" :disabled="$refs.invoiceTable && $refs.invoiceTable.getCheckboxRecords().length === 0" plain>删除</el-button>-->
|
|
@@ -348,9 +348,15 @@
|
|
|
ProgramPageForm,
|
|
|
ProgramForm
|
|
|
},
|
|
|
- mounted () {
|
|
|
- this.refreshList()
|
|
|
- },
|
|
|
+ mounted() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ // 将表格和工具栏进行关联
|
|
|
+ const $table = this.$refs.invoiceTable;
|
|
|
+ const $toolbar = this.$refs.toolbarRef;
|
|
|
+ $table.connect($toolbar);
|
|
|
+ });
|
|
|
+ this.refreshList();
|
|
|
+ },
|
|
|
activated () {
|
|
|
this.refreshList()
|
|
|
},
|