| | |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:student:add']" |
| | | >新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['system:student:edit']" |
| | | >修改</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['system:student:remove']" |
| | | >删除</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | |
| | | size="mini" |
| | | :loading="exportLoading" |
| | | @click="handleExport" |
| | | v-hasPermi="['system:student:export']" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="编号" align="center" prop="studentId" /> |
| | | <el-table-column label="学生名称" align="center" prop="studentName" /> |
| | | <el-table-column label="年龄" align="center" prop="studentAge" /> |
| | | <el-table-column label="年龄" align="center" prop="age" width="100"> |
| | | <template slot-scope="scope"> |
| | | {{ |
| | | `${ |
| | | scope.row.age && scope.row.age !== 0 |
| | | ? `${scope.row.age}${scope.row.ageunit}` |
| | | : "" |
| | | } ${ |
| | | scope.row.age2 && scope.row.age2 !== 0 |
| | | ? `${scope.row.age2}${scope.row.ageunit2}` |
| | | : "" |
| | | }`.trim() |
| | | }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="爱好" align="center" prop="studentHobby" /> |
| | | <el-table-column label="性别" align="center" prop="studentSex"> |
| | | <template slot-scope="scope"> |
| | |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:student:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:student:remove']" |
| | | >删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |