| | |
| | | </el-row> |
| | | <!-- 操作区 ↑↑↑↑↑↑↑↑↑↑ --> |
| | | |
| | | <!-- |
| | | table参数设置: |
| | | stripe 是否为斑马纹 |
| | | border 是否带有纵向边框 |
| | | max-height 最大高度 |
| | | --> |
| | | <el-table :data="list" stripe> |
| | | <el-table-column type="index" label="序号" align="center" width="60" /> |
| | | <el-table-column label="角色名称" prop="name" align="center" min-width="120" /> |
| | | <el-table-column label="是否上架" prop="isUp" align="center" min-width="100"> |
| | | <template slot-scope="scope"> |
| | | <!-- 权限判断 v-if="getAuthValueFN('xxx_edit')" --> |
| | | <!-- 权限判断 :disable="!getAuthValueFN('xxx_edit')" --> |
| | | <el-switch |
| | | v-model="scope.row.isUp" |
| | | :active-value="1" |
| | |
| | | this.postFN({ |
| | | url: 'xxx', |
| | | params: { |
| | | id: item.id |
| | | id: item.id, |
| | | isUp: item.isUp |
| | | }, |
| | | mockData: { |
| | | code: 100, |