|
@@ -1,10 +1,6 @@
|
|
|
<template>
|
|
|
<div class="pa-3 white">
|
|
|
- <m-search class="mb-3" :items="searchItems" v-model="searchValue" @search="onSearch">
|
|
|
- <template #button>
|
|
|
- <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
|
|
|
- </template>
|
|
|
- </m-search>
|
|
|
+ <m-search class="mb-3" :items="searchItems" v-model="searchValue" @search="onSearch"></m-search>
|
|
|
<m-table
|
|
|
v-loading="loading"
|
|
|
:items="items"
|
|
@@ -14,6 +10,9 @@
|
|
|
:total="total"
|
|
|
@page-change="onPageChange"
|
|
|
>
|
|
|
+ <template #card-tools>
|
|
|
+ <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
|
|
|
+ </template>
|
|
|
<template #actions="{ row }">
|
|
|
<m-button type="primary" text @click="onEdit(row)">编辑</m-button>
|
|
|
<m-button type="danger" text @click="onDelete(row)">删除</m-button>
|