| | |
| | | <div> |
| | | <el-form style="display: flex;flex-wrap: wrap"> |
| | | <el-form-item> |
| | | <el-button type="primary" plain @click="openDialog('addFirst',{})" icon="Plus"> 添加</el-button> |
| | | <el-button type="primary" plain @click="openDialog('addFirst',{})" icon="Plus" v-hasPermi="['courseClassification:list:add']"> 添加</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250" > |
| | | <template #default="scope"> |
| | | <el-button type="success" plain @click="openDialog('add',scope.row)">添加</el-button> |
| | | <el-button type="primary" plain @click="openDialog('edit',scope.row)">编辑</el-button> |
| | | <el-button type="danger" plain @click="handleDelete(scope.row.id)">删除</el-button> |
| | | <el-button type="success" plain @click="openDialog('add',scope.row)" v-hasPermi="['courseClassification:list:add']">添加</el-button> |
| | | <el-button type="primary" plain @click="openDialog('edit',scope.row)" v-hasPermi="['courseClassification:list:edit']">编辑</el-button> |
| | | <el-button type="danger" plain @click="handleDelete(scope.row.id)" v-hasPermi="['courseClassification:list:del']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |