提交 603d959e authored 作者: wangyizheng's avatar wangyizheng

新增案例列表

上级 ef37dad0
...@@ -9,7 +9,20 @@ ...@@ -9,7 +9,20 @@
</el-card> </el-card>
</div> </div>
<div> <div>
<el-card class="box-card"></el-card> <el-card class="box-card">
<div>
<el-input
placeholder="请输入案例名称"
prefix-icon="el-icon-search"
v-model="searchCaseName"
size="mini"
style="width: 30%"
>
</el-input>
<el-button size="mini" icon="el-icon-search" @click="list({ name: searchCaseName, page: 1, limit: limit })" circle></el-button>
<el-button type="primary" size="mini" icon="el-icon-refresh" @click="refresh" circle></el-button>
</div>
</el-card>
</div> </div>
<div> <div>
<el-card class="box-card"> <el-card class="box-card">
...@@ -207,8 +220,9 @@ export default { ...@@ -207,8 +220,9 @@ export default {
}, },
data() { data() {
return { return {
searchCaseName: '',
tableData: [], tableData: [],
opera: {}, opera: '',
currentPage: 1, currentPage: 1,
totalPage: 0, totalPage: 0,
limit: 10, limit: 10,
...@@ -230,6 +244,10 @@ export default { ...@@ -230,6 +244,10 @@ export default {
} }
}, },
methods: { methods: {
refresh() {
this.searchCaseName = ''
this.list({ page: 1, limit: this.limit })
},
handleSizeChange(val) { handleSizeChange(val) {
this.list({ page: this.currentPage, limit: val }) this.list({ page: this.currentPage, limit: val })
}, },
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select size="mini" :value="opera" @change="operation" placeholder="请选择"> <el-select size="mini" :value="opera" @change="operation" placeholder="请选择">
<!-- <el-option :value="{ tag: 'detail', row: scope.row }" label="详情"></el-option>-->
<el-option :value="{ tag: 'edit', row: scope.row }" label="编辑"></el-option> <el-option :value="{ tag: 'edit', row: scope.row }" label="编辑"></el-option>
<el-option :value="{ tag: 'addChild', row: scope.row }" label="添加子分类"></el-option> <el-option :value="{ tag: 'addChild', row: scope.row }" label="添加子分类"></el-option>
<el-option :value="{ tag: 'delete', row: scope.row }" label="删除"></el-option> <el-option :value="{ tag: 'delete', row: scope.row }" label="删除"></el-option>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论