|
@@ -4,24 +4,22 @@
|
|
|
<el-col :span="24">
|
|
|
<!-- 哪个组件活跃就显示哪个的meta的title -->
|
|
|
<breadcrumb :breadcrumbTitle="this.$route.meta.title"></breadcrumb>
|
|
|
- <el-col :span="24" class="contain">
|
|
|
+ <el-col :span="24" class="container">
|
|
|
<!-- text-align: right 按钮移到右侧 -->
|
|
|
<el-col :span="24" style="margin:15px 0;text-align:right;">
|
|
|
<el-button type="primary" size="mini" @click="dialogFormVisible = true">添加</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <template>
|
|
|
- <el-table :data="list" style="width: 100%">
|
|
|
- <el-table-column prop="name" label="名称" width="180"> </el-table-column>
|
|
|
- <el-table-column prop="create_time" label="创建时间" width="180"> </el-table-column>
|
|
|
- <el-table-column label="操作">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button size="mini" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
- <el-button size="mini" type="danger" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </template>
|
|
|
+ <el-table :data="list" style="width: 100%">
|
|
|
+ <el-table-column prop="name" label="名称" width="180"> </el-table-column>
|
|
|
+ <el-table-column prop="create_time" label="创建时间" width="180"> </el-table-column>
|
|
|
+ <el-table-column label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
+ <el-button size="mini" type="danger" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -57,7 +55,7 @@ import breadcrumb from '@c/common/breadcrumb.vue';
|
|
|
const { mapActions: lunbo } = createNamespacedHelpers('lunbo');
|
|
|
export default {
|
|
|
metaInfo() {
|
|
|
- return { title: this.route.meta.title };
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
},
|
|
|
name: 'index',
|
|
|
props: {},
|