|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="standard-table"> |
|
|
|
<div class="standard-table"> |
|
|
|
<div class="alert"> |
|
|
|
<div class="alert"> |
|
|
|
<a-alert type="info" :show-icon="true"> |
|
|
|
<a-alert type="info" :show-icon="true" v-if="selectedRows"> |
|
|
|
<div class="message" slot="message"> |
|
|
|
<div class="message" slot="message"> |
|
|
|
已选择 <a>{{selectedRows.length}}</a> 项 <a class="clear" @click="onClear">清空</a> |
|
|
|
已选择 <a>{{selectedRows.length}}</a> 项 <a class="clear" @click="onClear">清空</a> |
|
|
|
<template v-for="(item, index) in needTotalList" > |
|
|
|
<template v-for="(item, index) in needTotalList" > |
|
|
@ -21,7 +21,7 @@ |
|
|
|
:rowKey="rowKey" |
|
|
|
:rowKey="rowKey" |
|
|
|
:pagination="pagination" |
|
|
|
:pagination="pagination" |
|
|
|
@change="onChange" |
|
|
|
@change="onChange" |
|
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: updateSelect}" |
|
|
|
:rowSelection="selectedRows ? {selectedRowKeys: selectedRowKeys, onChange: updateSelect} : undefined" |
|
|
|
> |
|
|
|
> |
|
|
|
<template slot-scope="text, record, index" :slot="slot" v-for="slot in scopedSlots"> |
|
|
|
<template slot-scope="text, record, index" :slot="slot" v-for="slot in scopedSlots"> |
|
|
|
<slot :name="slot" v-bind="{text, record, index}"></slot> |
|
|
|
<slot :name="slot" v-bind="{text, record, index}"></slot> |
|
|
|