修复用户信息修改页面数据绑定方式,改为使用axios进行数据获取和绑定

This commit is contained in:
F嘉阳
2018-02-23 10:49:55 +08:00
parent 3abbd49f65
commit c91ee252a3
7 changed files with 168 additions and 15 deletions

View File

@@ -23,18 +23,18 @@
method="POST" name="register">
<el-form-item label="ID"
prop="coluserid">
<el-input :readonly="true"
th:value="${#httpServletRequest.getSession().getAttribute('USER_SESSION').coluserid}" name="coluserid" readonly></el-input>
<el-input :readonly="true" v-model="ruleForm2.coluserid"
name="coluserid" readonly></el-input>
</el-form-item>
<el-form-item label="用户名"
prop="colname">
<el-input
th:value="${#httpServletRequest.getSession().getAttribute('USER_SESSION').colname}" name="colname" ref="name"></el-input>
<el-input v-model="ruleForm2.colname"
name="colname" ref="name"></el-input>
</el-form-item>
<el-form-item
label="密码" prop="colpassword">
<el-input type="password" placeholder="不改密码则留空"
v-model="ruleForm2.colpassword" auto-complete="off" name="colpassword"></el-input>
<el-input type="password" placeholder="不改密码则留空" v-model="ruleForm2.colpassword"
auto-complete="off" name="colpassword"></el-input>
</el-form-item>
<el-form-item label="确认密码" prop="checkPass">
<el-input placeholder="不改密码则留空"
@@ -43,19 +43,20 @@
</el-form-item>
<el-form-item prop="colemail" label="邮箱"
:rules="[
{ required: true, message: '请输入邮箱地址', trigger: 'blur' },
{ type: 'email', message: '请输入正确的邮箱地址', trigger: 'blur,change' }
]">
<el-input th:value="${#httpServletRequest.getSession().getAttribute('USER_SESSION').colemail}" name="colemail" ref="email"></el-input>
<el-input v-model="ruleForm2.colemail" name="colemail" ref="email"></el-input>
</el-form-item>
<el-form-item label="学号"
prop="colstudentno">
<el-input
th:value="${#httpServletRequest.getSession().getAttribute('USER_SESSION').colstudentno}" name="colstudentno" ref="studentno"></el-input>
<el-input v-model="ruleForm2.colstudentno"
name="colstudentno" ref="studentno"></el-input>
</el-form-item>
<el-form-item label="真实姓名"
prop="colrealname">
<el-input
th:value="${#httpServletRequest.getSession().getAttribute('USER_SESSION').colrealname}" name="colrealname" ref="realname"></el-input>
<el-input v-model="ruleForm2.colrealname"
name="colrealname" ref="realname"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary"