11
This commit is contained in:
@@ -162,3 +162,13 @@ export function update(data) {
|
||||
}
|
||||
})
|
||||
}
|
||||
export function alterStudentScore(data) {
|
||||
return request({
|
||||
url: 'v1/sysstudentscore/alterStudentScore',
|
||||
method: 'POST',
|
||||
data: data,
|
||||
headers: {'Content-Type': 'application/json',
|
||||
'token':tokens
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div v-else-if="this.infoSid != null">
|
||||
<el-tabs v-model="activeName" class="my-tabs" type="card">
|
||||
<el-tab-pane label="学生信息" name="roleList">
|
||||
<el-tab-pane label="个人信息" name="roleList">
|
||||
<div class="container">
|
||||
<el-table :data="tableData" border style="width: 100%">
|
||||
<el-table-column
|
||||
@@ -33,14 +33,14 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="学生姓名"
|
||||
label="姓名"
|
||||
width="100px"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userName"
|
||||
label="学号ID"
|
||||
label="ID"
|
||||
align="center"
|
||||
width="150px"
|
||||
>
|
||||
@@ -123,13 +123,13 @@
|
||||
>
|
||||
<table class="e-table" cellspacing="0">
|
||||
<tr>
|
||||
<td>学生姓名</td>
|
||||
<td>姓名</td>
|
||||
<td>
|
||||
<el-input v-model="form.name" style="width: 300px"></el-input>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>学号ID</td>
|
||||
<td>ID</td>
|
||||
<td>
|
||||
<el-input v-model="form.infoId" style="width: 300px"></el-input>
|
||||
</td>
|
||||
@@ -197,7 +197,6 @@ export default {
|
||||
entry: false,
|
||||
form: {
|
||||
userSid: "",
|
||||
id: "9",
|
||||
},
|
||||
student: {},
|
||||
type: "xs",
|
||||
@@ -304,22 +303,21 @@ export default {
|
||||
// })
|
||||
},
|
||||
updatePsw() {
|
||||
if (this.pwd === this.password) {
|
||||
if (this.usePwd.pwd === this.usePwd.password) {
|
||||
alterPassword(this.usePwd).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.$alert("密码修改成!请重新登录点击确定后退出。", "修改成功", {
|
||||
confirmButtonText: "确定",
|
||||
callback: (action) => {
|
||||
this.$router.push("/login");
|
||||
window.sessionStorage.removeStorage("token");
|
||||
window.sessionStorage.removeStorage("userSid");
|
||||
this.$router.push("/login");
|
||||
},
|
||||
this.$message({
|
||||
type: "success",
|
||||
message: "修改成功!",
|
||||
});
|
||||
}
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
this.$message({
|
||||
message: '两次密码不一致请重新输入',
|
||||
message: "两次密码不一致请重新输入",
|
||||
type: "warning",
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<el-header>
|
||||
<h3 class="title">河北省计量业务应用平台</h3>
|
||||
</el-header>
|
||||
<div class="stude">学生注册</div>
|
||||
<div class="stude">注册</div>
|
||||
<div class="user-from">
|
||||
<el-form
|
||||
:model="userForm"
|
||||
@@ -12,7 +12,7 @@
|
||||
label-width="120px"
|
||||
class="demo-userForm"
|
||||
>
|
||||
<el-form-item label="学生学号" prop="userName">
|
||||
<el-form-item label="学号" prop="userName">
|
||||
<el-input
|
||||
v-model="userForm.userName"
|
||||
placeholder="请输入学号"
|
||||
|
||||
@@ -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: "确定",
|
||||
|
||||
Reference in New Issue
Block a user