| | |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="状态" prop="status" > |
| | | <el-select v-model="searchForm.status" style="width: 150px" placeholder="状态" clearable @change="search"> |
| | | <el-option :key="0" :value="0" label="启用"></el-option> |
| | | <el-option :key="1" :value="1" label="禁用"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <el-button @click="reset">重置</el-button> |
| | |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:activity:create', 'business:activity:delete']"> |
| | | <li><el-button type="primary" @click="$refs.operaInformationWindow.open('新建')" icon="el-icon-plus" v-permissions="['business:activity:create']">新建</el-button></li> |
| | | <li><el-button type="primary" @click="$refs.operaInformationWindow.open('新建知识库')" icon="el-icon-plus" v-permissions="['business:activity:create']">新建</el-button></li> |
| | | <li><el-button type="danger" @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:activity:delete']">删除</el-button></li> |
| | | </ul> |
| | | <el-table |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaInformationWindow.open('编辑', row)" icon="el-icon-edit" v-permissions="['business:activity:update']">编辑</el-button> |
| | | <el-button type="text" @click="$refs.operaInformationWindow.open('编辑知识库', row)" icon="el-icon-edit" v-permissions="['business:activity:update']">编辑</el-button> |
| | | <el-button type="text" style="color: red;" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:activity:delete']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | name: '', |
| | | realName: '', |
| | | brandId: null, |
| | | status: null, |
| | | labelId: null, |
| | | contentType: '', |
| | | type: 3 // 类型0商家活动 1平台活动 2探店 3资讯 |
| | |
| | | }) |
| | | this.search() |
| | | labelList({ |
| | | type: 0 // 商品分类 |
| | | type: 9// 商品分类 |
| | | }).then(res => { |
| | | this.labels = res |
| | | }) |