| | |
| | | @click="handlerAdd" |
| | | >新增班级</el-button> |
| | | </div> |
| | | <div |
| | | class="flex" |
| | | style="align-items:center" |
| | | > |
| | | <p style="margin-left:20px;margin-right: 10px;">所在单位</p> |
| | | <!-- <el-select v-model="searchData.deptId">--> |
| | | <!-- <el-option></el-option>--> |
| | | <!-- </el-select>--> |
| | | </div> |
| | | <el-form :inline="true" :model="searchForm" class="demo-form-inline"> |
| | | <el-form-item label="班级名称"> |
| | | <el-input v-model="searchForm.className" clearable @clear="page" placeholder="班级名称"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="班级状态"> |
| | | <el-select v-model="searchForm.status" clearable @change="page" placeholder="班级状态"> |
| | | <el-option label="正常" value="normal"></el-option> |
| | | <el-option label="解散" value="dissolution"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="page">查询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <div> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="tableData" |
| | | border |
| | | :row-style="{height:'42px'}" |
| | |
| | | align="center" |
| | | width="80px" |
| | | prop="status" |
| | | ></el-table-column> |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag v-if="scope.row.status === '正常'" type="success">{{scope.row.status}}</el-tag> |
| | | <el-tag v-if="scope.row.status === '解散'" type="danger">{{scope.row.status}}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | width="100px" |
| | | align="center" |
| | |
| | | components: {Pagination}, |
| | | data() { |
| | | return { |
| | | loading: true, |
| | | total: 0, |
| | | open: false, |
| | | title: "", |
| | | value: "", |
| | | searchForm: { |
| | | className:'', |
| | | status: '', |
| | | subject: null, |
| | | pageSize: 10, |
| | | pageNum: 1 |
| | |
| | | getClassess(this.searchForm).then(res => { |
| | | this.tableData = res.data.data |
| | | this.total = res.data.total |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | resetForm() { |