fengdong777 2 years ago
parent
commit
a872061dc2
  1. 10
      demo-web-ui/src/api/system/sources/index.js
  2. 36
      demo-web-ui/src/views/PwdModify/PwdModify.vue
  3. 4
      demo-web-ui/src/views/Regist/User.vue
  4. 112
      demo-web-ui/src/views/workflow/definition/definition.vue

10
demo-web-ui/src/api/system/sources/index.js

@ -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
}
})
}

36
demo-web-ui/src/views/PwdModify/PwdModify.vue

@ -10,7 +10,7 @@
</div> </div>
<div v-else-if="this.infoSid != null"> <div v-else-if="this.infoSid != null">
<el-tabs v-model="activeName" class="my-tabs" type="card"> <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"> <div class="container">
<el-table :data="tableData" border style="width: 100%"> <el-table :data="tableData" border style="width: 100%">
<el-table-column <el-table-column
@ -33,14 +33,14 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="name" prop="name"
label="学生姓名" label="姓名"
width="100px" width="100px"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="userName" prop="userName"
label="学号ID" label="ID"
align="center" align="center"
width="150px" width="150px"
> >
@ -123,13 +123,13 @@
> >
<table class="e-table" cellspacing="0"> <table class="e-table" cellspacing="0">
<tr> <tr>
<td>学生姓名</td> <td>姓名</td>
<td> <td>
<el-input v-model="form.name" style="width: 300px"></el-input> <el-input v-model="form.name" style="width: 300px"></el-input>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>学号ID</td> <td>ID</td>
<td> <td>
<el-input v-model="form.infoId" style="width: 300px"></el-input> <el-input v-model="form.infoId" style="width: 300px"></el-input>
</td> </td>
@ -197,7 +197,6 @@ export default {
entry: false, entry: false,
form: { form: {
userSid: "", userSid: "",
id: "9",
}, },
student: {}, student: {},
type: "xs", type: "xs",
@ -304,24 +303,23 @@ export default {
// }) // })
}, },
updatePsw() { updatePsw() {
if (this.pwd === this.password) { if (this.usePwd.pwd === this.usePwd.password) {
alterPassword(this.usePwd).then((res) => { alterPassword(this.usePwd).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$alert("密码修改成!请重新登录点击确定后退出。", "修改成功", { this.$router.push("/login");
confirmButtonText: "确定", window.sessionStorage.removeStorage("token");
callback: (action) => { window.sessionStorage.removeStorage("userSid");
window.sessionStorage.removeStorage("token"); this.$message({
window.sessionStorage.removeStorage("userSid"); type: "success",
this.$router.push("/login"); message: "修改成功!",
}, });
});
} }
}); });
}else{ } else {
this.$message({ this.$message({
message: '两次密码不一致请重新输入', message: "两次密码不一致请重新输入",
type: "warning", type: "warning",
}); });
} }
}, },
}, },

4
demo-web-ui/src/views/Regist/User.vue

@ -3,7 +3,7 @@
<el-header> <el-header>
<h3 class="title">河北省计量业务应用平台</h3> <h3 class="title">河北省计量业务应用平台</h3>
</el-header> </el-header>
<div class="stude">学生注册</div> <div class="stude">注册</div>
<div class="user-from"> <div class="user-from">
<el-form <el-form
:model="userForm" :model="userForm"
@ -12,7 +12,7 @@
label-width="120px" label-width="120px"
class="demo-userForm" class="demo-userForm"
> >
<el-form-item label="学生学号" prop="userName"> <el-form-item label="学号" prop="userName">
<el-input <el-input
v-model="userForm.userName" v-model="userForm.userName"
placeholder="请输入学号" placeholder="请输入学号"

112
demo-web-ui/src/views/workflow/definition/definition.vue

@ -79,6 +79,9 @@
<el-button :disabled="chooseStore" type="primary" size="mini" @click="chengji(scope.row)"> <el-button :disabled="chooseStore" type="primary" size="mini" @click="chengji(scope.row)">
成绩录入 成绩录入
</el-button> </el-button>
<el-button :disabled="chooseStore" type="primary" size="mini" @click="change(scope.row)">
修改
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -285,6 +288,81 @@
<!--<el-button @click="editDialog = false">关闭</el-button>--> <!--<el-button @click="editDialog = false">关闭</el-button>-->
</div> </div>
</el-dialog> </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> </el-tabs>
</template> </template>
@ -294,7 +372,8 @@ import {
saveSourcesInfo, saveSourcesInfo,
putSourcesInfo, putSourcesInfo,
delSources, delSources,
addStudentScore addStudentScore,
alterStudentScore
} from '@/api/system/sources/index.js' } from '@/api/system/sources/index.js'
export default { export default {
@ -304,16 +383,22 @@ export default {
dialogTitle: "", dialogTitle: "",
editDialog: false, editDialog: false,
entry: false, entry: false,
changeStude:false,
chooseStore:false, chooseStore:false,
chooseStore1:false, chooseStore1:false,
form: { form: {
id:'', id:'',
sid:'', Sid:'',
userSid:'' userSid:''
}, },
student: { student: {
studentNo:'' studentNo:''
}, },
Changestudent: {
studentNo:'',
id:'',
Sid:''
},
type: {}, type: {},
jiuye: "已就业", jiuye: "已就业",
formBackup: Object.assign({}, this.form), formBackup: Object.assign({}, this.form),
@ -358,7 +443,7 @@ export default {
if(this.type==0){ if(this.type==0){
this.chooseStore=true, this.chooseStore=true,
this.chooseStore1=true this.chooseStore1=true
}else{ }else if(this.type==1){
this.chooseStore1=true this.chooseStore1=true
} }
}, },
@ -393,7 +478,7 @@ export default {
this.dialogTitle = "新增"; this.dialogTitle = "新增";
this.roleForm = Object.assign({}, this.formBackup); this.roleForm = Object.assign({}, this.formBackup);
} else { } else {
this.getPageList(); this.getPageList(this.page);
} }
}, },
save() { save() {
@ -408,7 +493,7 @@ export default {
}); });
} else { } else {
saveSourcesInfo(this.form).then((res) => { saveSourcesInfo(this.form).then((res) => {
this.getPageList(); this.getPageList(this.page);
this.activeName = "roleList"; this.activeName = "roleList";
this.$message({ this.$message({
message: res.msg, message: res.msg,
@ -425,6 +510,15 @@ export default {
console.log(res); console.log(res);
}); });
}, },
changeStu(){
this.changeStude = false;
alterStudentScore(this.Changestudent).then((res) => {
this.$message({
message: '修改成功',
type: "success",
});
});
},
reset() { reset() {
this.form = {}; this.form = {};
}, },
@ -441,6 +535,14 @@ export default {
this.entry = true; this.entry = true;
this.student.studentNo=row.infoId 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) { deleteRow(row) {
this.$confirm("确定要删除该资源吗, 是否继续?", "提示", { this.$confirm("确定要删除该资源吗, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",

Loading…
Cancel
Save