From a872061dc2e83ff90c0f069df8d1382d901bf593 Mon Sep 17 00:00:00 2001 From: fengdong777 <1478994744@qq.com> Date: Wed, 10 May 2023 14:35:31 +0800 Subject: [PATCH] 11 --- demo-web-ui/src/api/system/sources/index.js | 10 ++ demo-web-ui/src/views/PwdModify/PwdModify.vue | 36 +++--- demo-web-ui/src/views/Regist/User.vue | 4 +- .../views/workflow/definition/definition.vue | 112 +++++++++++++++++- 4 files changed, 136 insertions(+), 26 deletions(-) diff --git a/demo-web-ui/src/api/system/sources/index.js b/demo-web-ui/src/api/system/sources/index.js index 5ea4c0d..5380bce 100644 --- a/demo-web-ui/src/api/system/sources/index.js +++ b/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 + } + }) +} diff --git a/demo-web-ui/src/views/PwdModify/PwdModify.vue b/demo-web-ui/src/views/PwdModify/PwdModify.vue index 655b1fb..0eaad67 100644 --- a/demo-web-ui/src/views/PwdModify/PwdModify.vue +++ b/demo-web-ui/src/views/PwdModify/PwdModify.vue @@ -10,7 +10,7 @@
- +
@@ -123,13 +123,13 @@ > - + - + @@ -197,7 +197,6 @@ export default { entry: false, form: { userSid: "", - id: "9", }, student: {}, type: "xs", @@ -304,24 +303,23 @@ 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) => { - window.sessionStorage.removeStorage("token"); - window.sessionStorage.removeStorage("userSid"); - this.$router.push("/login"); - }, - }); + this.$router.push("/login"); + window.sessionStorage.removeStorage("token"); + window.sessionStorage.removeStorage("userSid"); + this.$message({ + type: "success", + message: "修改成功!", + }); } }); - }else{ + } else { this.$message({ - message: '两次密码不一致请重新输入', - type: "warning", - }); + message: "两次密码不一致请重新输入", + type: "warning", + }); } }, }, diff --git a/demo-web-ui/src/views/Regist/User.vue b/demo-web-ui/src/views/Regist/User.vue index f191206..0952e10 100644 --- a/demo-web-ui/src/views/Regist/User.vue +++ b/demo-web-ui/src/views/Regist/User.vue @@ -3,7 +3,7 @@

河北省计量业务应用平台

-
学生注册
+
注册
- + 成绩录入 + + 修改 + @@ -285,6 +288,81 @@
+ +
学生姓名姓名
学号IDID
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
学号ID + +
四级(分) + +
六级(分) + +
计算机(分) + +
是否就业 + + 已就业 + 未就业 + +
是否升学 + + + + +
是否考公通过 + + + + +
+
+ 保存 + +
+ @@ -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: "确定",