|
@@ -250,7 +250,7 @@ export default {
|
|
|
},
|
|
|
];
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api + "updatePblMessage", params)
|
|
|
+ .post(this.$store.state.api + "updatePblMessage2", params)
|
|
|
.then((res) => {
|
|
|
this.$message({
|
|
|
message: "修改成功",
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
if (res.data[0][0]) {
|
|
|
res.data[0][0].sex = res.data[0][0].sex ? "女" : "男";
|
|
|
this.ruleForm = res.data[0][0];
|
|
|
- this.ruleForm.org = res.data[0][0].org.split(",")[0];
|
|
|
+ this.ruleForm.org = res.data[0][0].org ? res.data[0][0].org.split(",")[0] : '';
|
|
|
this.ruleForm.type = res.data[0][0].type == 1 ? "老师" : "学生";
|
|
|
console.log(res.data[0][0]);
|
|
|
}
|