|
@@ -0,0 +1,270 @@
|
|
|
+<template>
|
|
|
+ <div style="padding-bottom: 20px">
|
|
|
+ <div class="search">
|
|
|
+ <div class="sxBox">
|
|
|
+ <div class="student_search">
|
|
|
+ <div>班级筛选</div>
|
|
|
+ <el-select v-model="classChoose">
|
|
|
+ <el-option label="全部" value="">全部</el-option>
|
|
|
+ <el-option
|
|
|
+ v-for="(c, cIndex) in classJuri"
|
|
|
+ :key="cIndex"
|
|
|
+ :value="c.id"
|
|
|
+ :label="c.name"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="student_search">
|
|
|
+ <div>课程筛选</div>
|
|
|
+ <el-select v-model="courseChoose">
|
|
|
+ <el-option label="全部" value="">全部</el-option>
|
|
|
+ <el-option
|
|
|
+ v-for="(c, cIndex) in courseJuri"
|
|
|
+ :key="cIndex"
|
|
|
+ :value="c.id"
|
|
|
+ :label="c.name"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div class="searchImg">
|
|
|
+ <img src="../../../assets/icon/search.png" alt="" />
|
|
|
+ </div>
|
|
|
+ <el-input v-model="sName" placeholder="请输入学生姓名或账号"></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
+ :data="tableData"
|
|
|
+ border
|
|
|
+ style="width: 100%"
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ prop="mEva"
|
|
|
+ align="center"
|
|
|
+ label="目标体系名称"
|
|
|
+ min-width="25%"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="cName" align="center" label="班级" min-width="25%">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="course"
|
|
|
+ align="center"
|
|
|
+ label="课程"
|
|
|
+ min-width="25%"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" min-width="25%">
|
|
|
+ <template>
|
|
|
+ <el-button size="mini" type="primary" @click="lookmbCourse"
|
|
|
+ >报告</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-dialog
|
|
|
+ title="选择学生"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ :append-to-body="true"
|
|
|
+ width="650px"
|
|
|
+ :before-close="handleClose"
|
|
|
+ class="dialog_diy"
|
|
|
+ >
|
|
|
+ <div>
|
|
|
+ <div>
|
|
|
+ <el-table
|
|
|
+ :data="courseJuri1"
|
|
|
+ border
|
|
|
+ style="width: 100%; margin-top: 10px"
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ prop="cName"
|
|
|
+ align="center"
|
|
|
+ label="课程名称"
|
|
|
+ min-width="25%"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="选择" align="center" min-width="25%">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <input
|
|
|
+ type="checkbox"
|
|
|
+ :id="scope.row.id"
|
|
|
+ :value="scope.row.sNmae"
|
|
|
+ @change="isChooseStudent(scope.row.id, scope.$index)"
|
|
|
+ v-model="checkboxList[scope.$index]"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogVisible = false"
|
|
|
+ >确定</el-button
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ sName: "",
|
|
|
+ classChoose: "",
|
|
|
+ classJuri: [
|
|
|
+ { id: 1, name: "一年级一班" },
|
|
|
+ { id: 2, name: "一年级二班" },
|
|
|
+ { id: 3, name: "一年级三班" },
|
|
|
+ { id: 4, name: "一年级四班" },
|
|
|
+ ],
|
|
|
+ courseChoose: "",
|
|
|
+ courseJuri: [
|
|
|
+ { id: 1, name: "课程1" },
|
|
|
+ { id: 2, name: "课程2" },
|
|
|
+ { id: 3, name: "课程3" },
|
|
|
+ { id: 4, name: "课程4" },
|
|
|
+ ],
|
|
|
+ courseJuri1: [
|
|
|
+ { id: 1, cName: "课程名称1" },
|
|
|
+ { id: 2, cName: "课程名称2" },
|
|
|
+ { id: 3, cName: "课程名称3" },
|
|
|
+ { id: 4, cName: "课程名称4" },
|
|
|
+ ],
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ mEva: "目标体系1",
|
|
|
+ cName: "四年级二班",
|
|
|
+ course: "课程1/课程2/课程3",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ mEva: "目标体系2",
|
|
|
+ cName: "四年级二班",
|
|
|
+ course: "课程1/课程2",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ mEva: "目标体系3",
|
|
|
+ cName: "四年级二班",
|
|
|
+ course: "课程1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ mEva: "目标体系4",
|
|
|
+ cName: "四年级二班",
|
|
|
+ course: "课程1/课程2/课程3/课程4",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ mEva: "目标体系5",
|
|
|
+ cName: "四年级二班",
|
|
|
+ course: "课程1/课程2/课程3/课程4",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ dialogVisible: false,
|
|
|
+ checkboxList: [],
|
|
|
+ isChooseList: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ tableRowClassName({ row, rowIndex }) {
|
|
|
+ if ((rowIndex + 1) % 2 === 0) {
|
|
|
+ return "even_row";
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.page = val;
|
|
|
+ },
|
|
|
+ isChooseStudent(id) {
|
|
|
+ if (this.isChooseList.indexOf(id) != -1) {
|
|
|
+ this.isChooseList.splice(this.isChooseList.indexOf(id), 1);
|
|
|
+ } else {
|
|
|
+ this.isChooseList.push(id);
|
|
|
+ }
|
|
|
+ this.$forceUpdate();
|
|
|
+ },
|
|
|
+ lookmbCourse() {
|
|
|
+ this.checkboxList = [];
|
|
|
+ this.isChooseList = [];
|
|
|
+ this.dialogVisible = true;
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.dialog_diy >>> .el-dialog__header {
|
|
|
+ padding: 9px 20px 10px;
|
|
|
+ background: #32455b !important;
|
|
|
+}
|
|
|
+.dialog_diy >>> .el-dialog__title {
|
|
|
+ color: #fff;
|
|
|
+ font-size: 15px;
|
|
|
+}
|
|
|
+.dialog_diy >>> .el-dialog__headerbtn {
|
|
|
+ top: 14px;
|
|
|
+}
|
|
|
+.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+.dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+.check_diy >>> .el-dialog__body {
|
|
|
+ padding-bottom: 0;
|
|
|
+}
|
|
|
+.dialog_diy >>> .el-dialog__body,
|
|
|
+.dialog_diy >>> .el-dialog__footer {
|
|
|
+ background: #fafafa;
|
|
|
+}
|
|
|
+.search {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin: 0 0 20px 0;
|
|
|
+}
|
|
|
+.search > div:nth-child(2) {
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.searchImg {
|
|
|
+ width: 25px;
|
|
|
+ height: 25px;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 9;
|
|
|
+ top: 8px;
|
|
|
+ left: 5px;
|
|
|
+}
|
|
|
+.searchImg > img {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
+.search > div:nth-child(2) >>> .el-input__inner {
|
|
|
+ width: 250px;
|
|
|
+ text-indent: 20px;
|
|
|
+}
|
|
|
+.el-table >>> .even_row {
|
|
|
+ background-color: #f1f1f1;
|
|
|
+}
|
|
|
+.student_search {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ align-items: center;
|
|
|
+ margin-right: 10px;
|
|
|
+}
|
|
|
+.student_search > div:nth-child(1) {
|
|
|
+ margin-right: 10px;
|
|
|
+}
|
|
|
+.sxBox {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+</style>
|