| | |
| | | <div> |
| | | <div class="common-level-rail"> |
| | | <el-button size="small" type="primary" @click="addCategory">添加分类</el-button> |
| | | <el-select v-model="form.category_type" placeholder="选择类型" @change="getTableList" style="width: 150px; margin-left: 10px;"> |
| | | <el-option label="全部" :value="0"></el-option> |
| | | <el-option label="实物" :value="10"></el-option> |
| | | <el-option label="团购" :value="20"></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="table-wrap"> |
| | | <el-table :data="categoryData" style="width: 100%" v-loading="loading"> |
| | | <el-table-column prop="category_id" label="分类ID" width="180"></el-table-column> |
| | | <el-table-column prop="name" label=" 分类名称"></el-table-column> |
| | | <el-table-column prop="deposit_money" label=" 保证金(元)"></el-table-column> |
| | | <el-table-column prop="type_text" label=" 类型" width="100"></el-table-column> |
| | | <el-table-column prop="create_time" label="添加时间" width="180"></el-table-column> |
| | | <el-table-column prop="name" label="操作" width="150"> |
| | | <template slot-scope="scope"> |
| | |
| | | commentData: [], |
| | | /*是否加载完成*/ |
| | | loading: true, |
| | | /*筛选表单*/ |
| | | form: { |
| | | category_type: 0 |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | /*获取文章列表*/ |
| | | getTableList() { |
| | | let self = this; |
| | | let Params = {}; |
| | | let Params = { |
| | | category_type: this.form.category_type |
| | | }; |
| | | SupplierApi.Category(Params, true) |
| | | .then(data => |
| | | { |