|
|
@ -79,6 +79,9 @@ |
|
|
|
<el-button :disabled="chooseStore" type="primary" size="mini" @click="chengji(scope.row)"> |
|
|
|
成绩录入 |
|
|
|
</el-button> |
|
|
|
<el-button :disabled="chooseStore" type="primary" size="mini" @click="change(scope.row)"> |
|
|
|
修改 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
@ -285,6 +288,81 @@ |
|
|
|
<!--<el-button @click="editDialog = false">关闭</el-button>--> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
:title="dialogTitle + '学生成绩'" |
|
|
|
:visible.sync="changeStude" |
|
|
|
width="40%" |
|
|
|
> |
|
|
|
<table class="e-table" cellspacing="0"> |
|
|
|
<tr> |
|
|
|
<td>学号ID</td> |
|
|
|
<td> |
|
|
|
<el-input |
|
|
|
v-model="Changestudent.studentNo" |
|
|
|
style="width: 300px" |
|
|
|
></el-input> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>四级(分)</td> |
|
|
|
<td> |
|
|
|
<el-input |
|
|
|
v-model="Changestudent.fourScore" |
|
|
|
style="width: 300px" |
|
|
|
></el-input> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>六级(分)</td> |
|
|
|
<td> |
|
|
|
<el-input |
|
|
|
v-model="Changestudent.sixScore" |
|
|
|
style="width: 300px" |
|
|
|
></el-input> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>计算机(分)</td> |
|
|
|
<td> |
|
|
|
<el-input |
|
|
|
v-model="Changestudent.computerScore" |
|
|
|
style="width: 300px" |
|
|
|
></el-input> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>是否就业</td> |
|
|
|
<td> |
|
|
|
<el-radio-group v-model="Changestudent.employment"> |
|
|
|
<el-radio label="1">已就业</el-radio> |
|
|
|
<el-radio label="2">未就业</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>是否升学</td> |
|
|
|
<td> |
|
|
|
<el-radio-group v-model="Changestudent.enterSchool"> |
|
|
|
<el-radio label="1">是</el-radio> |
|
|
|
<el-radio label="2">否</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>是否考公通过</td> |
|
|
|
<td> |
|
|
|
<el-radio-group v-model="Changestudent.kaoGong"> |
|
|
|
<el-radio label="1">是</el-radio> |
|
|
|
<el-radio label="2">否</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
<div style="margin-top: 20px; text-align: center"> |
|
|
|
<el-button type="primary" @click="changeStu()">保存</el-button> |
|
|
|
<!--<el-button @click="editDialog = false">关闭</el-button>--> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</el-tabs> |
|
|
|
</template> |
|
|
|
|
|
|
@ -294,7 +372,8 @@ import { |
|
|
|
saveSourcesInfo, |
|
|
|
putSourcesInfo, |
|
|
|
delSources, |
|
|
|
addStudentScore |
|
|
|
addStudentScore, |
|
|
|
alterStudentScore |
|
|
|
} from '@/api/system/sources/index.js' |
|
|
|
|
|
|
|
export default { |
|
|
@ -304,16 +383,22 @@ export default { |
|
|
|
dialogTitle: "", |
|
|
|
editDialog: false, |
|
|
|
entry: false, |
|
|
|
changeStude:false, |
|
|
|
chooseStore:false, |
|
|
|
chooseStore1:false, |
|
|
|
form: { |
|
|
|
id:'', |
|
|
|
sid:'', |
|
|
|
Sid:'', |
|
|
|
userSid:'' |
|
|
|
}, |
|
|
|
student: { |
|
|
|
studentNo:'' |
|
|
|
}, |
|
|
|
Changestudent: { |
|
|
|
studentNo:'', |
|
|
|
id:'', |
|
|
|
Sid:'' |
|
|
|
}, |
|
|
|
type: {}, |
|
|
|
jiuye: "已就业", |
|
|
|
formBackup: Object.assign({}, this.form), |
|
|
@ -358,7 +443,7 @@ export default { |
|
|
|
if(this.type==0){ |
|
|
|
this.chooseStore=true, |
|
|
|
this.chooseStore1=true |
|
|
|
}else{ |
|
|
|
}else if(this.type==1){ |
|
|
|
this.chooseStore1=true |
|
|
|
} |
|
|
|
}, |
|
|
@ -393,7 +478,7 @@ export default { |
|
|
|
this.dialogTitle = "新增"; |
|
|
|
this.roleForm = Object.assign({}, this.formBackup); |
|
|
|
} else { |
|
|
|
this.getPageList(); |
|
|
|
this.getPageList(this.page); |
|
|
|
} |
|
|
|
}, |
|
|
|
save() { |
|
|
@ -408,7 +493,7 @@ export default { |
|
|
|
}); |
|
|
|
} else { |
|
|
|
saveSourcesInfo(this.form).then((res) => { |
|
|
|
this.getPageList(); |
|
|
|
this.getPageList(this.page); |
|
|
|
this.activeName = "roleList"; |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
@ -425,6 +510,15 @@ export default { |
|
|
|
console.log(res); |
|
|
|
}); |
|
|
|
}, |
|
|
|
changeStu(){ |
|
|
|
this.changeStude = false; |
|
|
|
alterStudentScore(this.Changestudent).then((res) => { |
|
|
|
this.$message({ |
|
|
|
message: '修改成功', |
|
|
|
type: "success", |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
reset() { |
|
|
|
this.form = {}; |
|
|
|
}, |
|
|
@ -441,6 +535,14 @@ export default { |
|
|
|
this.entry = true; |
|
|
|
this.student.studentNo=row.infoId |
|
|
|
}, |
|
|
|
change(row){ |
|
|
|
this.dialogTitle = "修改"; |
|
|
|
this.changeStude = true; |
|
|
|
this.Changestudent.studentNo=row.infoId, |
|
|
|
this.Changestudent.Sid=row.sid, |
|
|
|
this.Changestudent.id=row.id |
|
|
|
console.log(this.Changestudent); |
|
|
|
}, |
|
|
|
deleteRow(row) { |
|
|
|
this.$confirm("确定要删除该资源吗, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|