|
@@ -1,7 +1,19 @@
|
|
|
<template>
|
|
|
- <div class="pb_content" style="width: 100%; max-width: 745px; height: 100%">
|
|
|
+ <div
|
|
|
+ class="pb_content"
|
|
|
+ style="
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ min-height: unset;
|
|
|
+ min-width: unset;
|
|
|
+ margin: 0;
|
|
|
+ "
|
|
|
+ >
|
|
|
<div class="pb_content_body" style="position: relative; width: 100%">
|
|
|
- <div style="width: 55%; margin: 0 auto">
|
|
|
+ <div style="width: 100%; margin: 0px auto">
|
|
|
<div class="formTop">
|
|
|
<div class="tx">
|
|
|
<img
|
|
@@ -197,8 +209,8 @@ export default {
|
|
|
{
|
|
|
userid: this.userid,
|
|
|
username: this.ruleForm.name,
|
|
|
- type:this.ruleForm.type == "老师" ? "1" : "2",
|
|
|
- oid:this.ruleForm.sBySchool,
|
|
|
+ type: this.ruleForm.type == "老师" ? "1" : "2",
|
|
|
+ oid: this.ruleForm.sBySchool,
|
|
|
phone: this.ruleForm.phone,
|
|
|
intro: this.ruleForm.intro,
|
|
|
sex: this.ruleForm.sex == "男" ? "0" : "1",
|
|
@@ -242,7 +254,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.type = res.data[0][0].type == 1 ? "老师" : "学生"
|
|
|
+ this.ruleForm.type = res.data[0][0].type == 1 ? "老师" : "学生";
|
|
|
console.log(res.data[0][0]);
|
|
|
}
|
|
|
})
|
|
@@ -264,7 +276,6 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
margin: 20px 0;
|
|
|
- padding-top: 35px;
|
|
|
}
|
|
|
.formTop >>> .el-form {
|
|
|
margin: 0 auto;
|
|
@@ -303,10 +314,19 @@ export default {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
-
|
|
|
+.demo-ruleForm {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
.demo-ruleForm >>> .el-form-item__label:before {
|
|
|
content: "*";
|
|
|
color: #f56c6c;
|
|
|
margin-right: 4px;
|
|
|
}
|
|
|
+.demo-ruleForm >>> .el-form-item__content{
|
|
|
+ width: 300px;
|
|
|
+}
|
|
|
</style>
|