| | |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | v-model="row.status" |
| | | @change="changeStatus($event, row.id)" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | :active-value="0" |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaJkCabinetWindow from '@/components/business/OperaJkCabinetWindow' |
| | | import CabinetDetails from '@/components/business/cabinetDetails' |
| | | import { updateStatusById } from '@/api/business/jkCabinet' |
| | | export default { |
| | | name: 'JkCabinet', |
| | | extends: BaseTable, |
| | |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | changeStatus(status, id) { |
| | | updateStatusById({ id, status }) |
| | | .then(res => { |
| | | this.search() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |