|
@@ -9,13 +9,13 @@
|
|
<div class="student_search" v-if="this.choose == 0">
|
|
<div class="student_search" v-if="this.choose == 0">
|
|
<div>项目筛选</div>
|
|
<div>项目筛选</div>
|
|
<el-select
|
|
<el-select
|
|
- v-model="subject"
|
|
|
|
|
|
+ v-model="project"
|
|
placeholder="请选择课程"
|
|
placeholder="请选择课程"
|
|
- @change="searchWork"
|
|
|
|
|
|
+ @change="searchProject"
|
|
>
|
|
>
|
|
<el-option label="全部" value=""></el-option>
|
|
<el-option label="全部" value=""></el-option>
|
|
<el-option
|
|
<el-option
|
|
- v-for="(item, index) in subjectJuri"
|
|
|
|
|
|
+ v-for="(item, index) in projectJuri"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
@@ -52,7 +52,44 @@
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="student_table">
|
|
|
|
|
|
+ <div class="student_table" v-if="this.choose == 0">
|
|
|
|
+ <el-table
|
|
|
|
+ ref="table"
|
|
|
|
+ :data="tableData1"
|
|
|
|
+ border
|
|
|
|
+ :height="tableHeight"
|
|
|
|
+ :fit="true"
|
|
|
|
+ v-loading="isLoading"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :header-cell-style="{ background: '#f1f1f1' }"
|
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
|
+ stripe
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="project"
|
|
|
|
+ label="项目"
|
|
|
|
+ min-width="30"
|
|
|
|
+ align="center"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="time"
|
|
|
|
+ label="时间"
|
|
|
|
+ min-width="20"
|
|
|
|
+ align="center"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column label="操作" min-width="30">
|
|
|
|
+ <template>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="lookStudent"
|
|
|
|
+ >查看学生</el-button
|
|
|
|
+ >
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="student_table" v-if="this.choose == 1">
|
|
<el-table
|
|
<el-table
|
|
ref="table"
|
|
ref="table"
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -308,7 +345,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- choose:0,
|
|
|
|
|
|
+ choose: 0,
|
|
tableHeight: "500px",
|
|
tableHeight: "500px",
|
|
isLoading: false,
|
|
isLoading: false,
|
|
formLabelWidth: "100px",
|
|
formLabelWidth: "100px",
|
|
@@ -325,9 +362,11 @@
|
|
commentAnswer:
|
|
commentAnswer:
|
|
"作为家长我很高兴看到孩子的进步,希望这个进步只是一个开始,在新学期能够继续延续,这样才能不负老师的期望",
|
|
"作为家长我很高兴看到孩子的进步,希望这个进步只是一个开始,在新学期能够继续延续,这样才能不负老师的期望",
|
|
tableData: [],
|
|
tableData: [],
|
|
|
|
+ tableData1: [],
|
|
subject: "",
|
|
subject: "",
|
|
sClass: "",
|
|
sClass: "",
|
|
subjectJuri: [],
|
|
subjectJuri: [],
|
|
|
|
+ projectJuri: [],
|
|
grade: [],
|
|
grade: [],
|
|
rateList: {
|
|
rateList: {
|
|
ca: 0,
|
|
ca: 0,
|
|
@@ -359,6 +398,9 @@
|
|
lookWork() {
|
|
lookWork() {
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
},
|
|
},
|
|
|
|
+ lookStudent() {
|
|
|
|
+ this.choose = 1;
|
|
|
|
+ },
|
|
doingAssess() {
|
|
doingAssess() {
|
|
this.dialogVisible1 = true;
|
|
this.dialogVisible1 = true;
|
|
},
|
|
},
|
|
@@ -391,6 +433,7 @@
|
|
.get(this.$store.state.api + "getGroup", params)
|
|
.get(this.$store.state.api + "getGroup", params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.subjectJuri = res.data[0];
|
|
this.subjectJuri = res.data[0];
|
|
|
|
+ this.projectJuri = res.data[0];
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
console.error(err);
|
|
console.error(err);
|
|
@@ -400,6 +443,10 @@
|
|
this.page = 1;
|
|
this.page = 1;
|
|
this.getWorks();
|
|
this.getWorks();
|
|
},
|
|
},
|
|
|
|
+ searchProject() {
|
|
|
|
+ this.page = 1;
|
|
|
|
+ this.getProject();
|
|
|
|
+ },
|
|
//获取作业
|
|
//获取作业
|
|
getWorks() {
|
|
getWorks() {
|
|
this.isLoading = true;
|
|
this.isLoading = true;
|
|
@@ -422,6 +469,25 @@
|
|
console.error(err);
|
|
console.error(err);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getProject() {
|
|
|
|
+ this.isLoading = true;
|
|
|
|
+ let params = {
|
|
|
|
+ cu: "",
|
|
|
|
+ cn: "",
|
|
|
|
+ page: this.page,
|
|
|
|
+ };
|
|
|
|
+ this.ajax
|
|
|
|
+ .get(this.$store.state.api + "getProject", params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
|
|
|
|
+ this.tableData1 = res.data[0];
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
right() {
|
|
right() {
|
|
this.dialogVisible2 = false;
|
|
this.dialogVisible2 = false;
|
|
},
|
|
},
|
|
@@ -431,6 +497,7 @@
|
|
this.getClass();
|
|
this.getClass();
|
|
this.getGroup();
|
|
this.getGroup();
|
|
this.getWorks();
|
|
this.getWorks();
|
|
|
|
+ this.getProject();
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|