| | |
| | | <template> |
| | | <TableLayout :permissions="['business:productlabel:query']"> |
| | | <!-- 搜索表单 --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" > |
| | | <el-form-item label="品牌名称" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入品牌名称" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaGoodsBrandWindow from '@/components/business/OperaGoodsBrandWindow' |
| | | import {updateStatusById} from "@/api/business/labels"; |
| | | export default { |
| | | name: 'ProductLabel', |
| | | extends: BaseTable, |
| | |
| | | }, |
| | | methods: { |
| | | statusChange (row) { |
| | | this.api.updateById({ id: row.id, status: row.status }) |
| | | this.api.updateStatusById({ id: row.id, status: row.status }) |
| | | .then(() => { |
| | | this.$message.success('操作成功') |
| | | }) |