1.使用Antd table 得到當前值,則能夠對table進行操做javascript
1 <!--內容--> 2 <template> 3 <a-table :columns="columns" :dataSource="testdata" :pagination="{ pageSize: 50 }" :scroll="{ y: 800 }" :bordered="true"> 4 <!--操做--> 5 <template slot="action" slot-scope="text,record"> 6 <a slot="action" href="javascript:;" @click="onEdit(record)" >查看</a> 7 <!-- <span slot="action" slot-scope="text" href="javascript:;" @click="onEdit()" >編輯</span> --> 8 <!-- <span slot="action" slot-scope="text" href="javascript:;" @click="onEdit()" >刪除</span> --> 9 </template> 10 </a-table> 11 </template>
2.onEdit(record)前端
3.前端顯示java