<template>
<div class="train-box">
<div class="left-box">
<div class="left-box-btn">
<el-date-picker type="date" clearable v-model="startTime" value-format="yyyy-MM-dd" style="width: 250px" class="left-box-btn-data"
placeholder="开班时间" />
<el-button type="primary" class="left-box-btn-select" @click="searchLists">查询</el-button>
<el-button type="primary" style="float:right;margin-right:10px;" @click="addFrequencyInfo">新增班次</el-button>
</div>
<div class="left-box-list">
<el-table :data="frequencylist" :row-style="{height:'0px'}" :cell-style="{padding:'7px 0'}" style="width:100%;height:700px;overflow-y:auto;" :header-cell-style="{ background: 'rgb(242,244,246)' }"
:highlight-current-row="true" @row-click="showAllInfo" ref='monthlyPlanTable'>
<el-table-column label="序号" type="index" class="xh_column" width="100">
</el-table-column>
<el-table-column prop="code" label="开班班号"></el-table-column>
<el-table-column prop="startTime" label="开班时间" width="200"></el-table-column>
<el-table-column prop="studentNumber" label="学生数"></el-table-column>
<el-table-column prop="teacherName" label="负责教官"></el-table-column>
<el-table-column fixed="right" label="操作" width="100">
<template slot-scope="scope">
<el-button style="color: #FFA352;margin-left:-2px" @click="editFrequencyInfo(scope.row.id)" type="text" size="mini">修改</el-button>
<el-button style="color: #FF1212;margin-left:0" type="text" size="mini" @click="det(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination class="left-box-list-pagination" background @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page="queryParams.page" :page-sizes="[15]" :page-size="queryParams.rows" :layout="paginationLayout"
:total="total"></el-pagination>
</div>
</div>
<div class="right-box"&
element-ui表格的基本操作详解记录1
最新推荐文章于 2024-08-02 18:16:47 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)