|
|
|
@ -8,7 +8,18 @@ |
|
|
|
|
<el-radio-group v-model="month" @change="initData"> |
|
|
|
|
<el-radio v-for="(item,index) in dateList" :key="index" :label="item.id" border>{{ item.name }}</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<el-date-picker v-model="date" align="right" unlink-panels type="daterange" start-placeholder="开始日期" end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" clearable></el-date-picker> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="date" |
|
|
|
|
align="right" |
|
|
|
|
unlink-panels |
|
|
|
|
type="daterange" |
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
clearable |
|
|
|
|
style="width: 300px" |
|
|
|
|
></el-date-picker> |
|
|
|
|
</li> |
|
|
|
|
<li> |
|
|
|
|
<label>实验项目分类</label> |
|
|
|
@ -27,10 +38,6 @@ |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="tool mul"> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
<li> |
|
|
|
|
<label>课程</label> |
|
|
|
|
<el-select v-model="curriculumId" @change="initData"> |
|
|
|
@ -47,15 +54,19 @@ |
|
|
|
|
<el-input placeholder="请输入实验项目名称" prefix-icon="el-icon-search" v-model="keyword" clearable></el-input> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="tool mul"> |
|
|
|
|
<ul class="filter"> |
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
</ul> |
|
|
|
|
<div style="margin-bottom: 24px"> |
|
|
|
|
<el-button v-if="auth('批量删除')" type="primary" @click="delAllData">批量删除</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-table :data="listData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" row-key="id"> |
|
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" :selectable="disabledSelection"></el-table-column> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
|
</template> |
|
|
|
@ -64,8 +75,7 @@ |
|
|
|
|
<el-table-column prop="className" label="班级" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="experimentalName" label="实验名称" align="center"></el-table-column> |
|
|
|
|
</template> |
|
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center" min-width="400"></el-table-column> |
|
|
|
|
<el-table-column prop="projectPermissions" label="分类" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.permissions == 2 ? "竞赛" : projectType.find(n => n.id === scope.row.permissions).name }} |
|
|
|
@ -291,4 +301,7 @@ export default { |
|
|
|
|
.el-radio.is-bordered + .el-radio.is-bordered { |
|
|
|
|
margin-left: 0; |
|
|
|
|
} |
|
|
|
|
.el-radio-group { |
|
|
|
|
white-space: nowrap; |
|
|
|
|
} |
|
|
|
|
</style> |