|
|
|
@ -4,16 +4,37 @@
|
|
|
|
|
|
|
|
|
|
<el-button @click="add">打开</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button type="danger" v-if="selectedRowKeys.length">批量删除</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
v-if="selectedRowKeys.length"
|
|
|
|
|
@click="onClearSelected"
|
|
|
|
|
>
|
|
|
|
|
清空选择
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="searchQuery">查询</el-button>
|
|
|
|
|
|
|
|
|
|
<div style="width: 800px">
|
|
|
|
|
<gMainTable
|
|
|
|
|
ref="gMainTable"
|
|
|
|
|
:tableData="dataSource"
|
|
|
|
|
:columns="columns"
|
|
|
|
|
rowKey="id"
|
|
|
|
|
:rowSelection="{
|
|
|
|
|
selectedRowKeys: selectedRowKeys,
|
|
|
|
|
selectionRows: selectionRows,
|
|
|
|
|
}"
|
|
|
|
|
@selectionChange="handleSelectionChange"
|
|
|
|
|
:pagination="ipagination"
|
|
|
|
|
@pageSizeChange="handlePageSizeChange"
|
|
|
|
|
@currentPageChange="handleCurrentPageChange"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:vaeSlot="{ scope }">
|
|
|
|
|
<el-button size="small" type="primary">{{ scope.row.name }}</el-button>
|
|
|
|
|
<el-button size="small" type="primary">{{
|
|
|
|
|
scope.row.name
|
|
|
|
|
}}</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</gMainTable>
|
|
|
|
|
</div>
|
|
|
|
|