| | |
| | | <el-form-item label="用户名" label-width="100px" prop="username"> |
| | | <el-input v-model="dataForm.username" :disabled="id?true:false" placeholder="登录帐号"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="信用分" v-if="id" label-width="100px" prop="creditScore"> |
| | | <el-input v-model="dataForm.creditScore" placeholder="信用分"></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="!id" label="登录密码" label-width="100px" prop="password"> |
| | | <el-input v-model="dataForm.password" type="password" placeholder="密码"></el-input> |
| | | </el-form-item> |
| | |
| | | parentsUseCode:'', |
| | | remarks:'', |
| | | username: '', |
| | | creditScore:'', |
| | | password: '', |
| | | email: '', |
| | | mobile: '', |
| | |
| | | this.id = id || '' |
| | | if(row){ |
| | | this.dataForm.username =row.userName |
| | | this.dataForm.creditScore = row.creditScore |
| | | this.options.value1 = row.loginAuthority |
| | | this.optionsTwo.value2 = row.enabled |
| | | this.optionsThree.value3 = row.withdrawAuthority |
| | |
| | | parentsUseCode:'', |
| | | remarks:'', |
| | | username: '', |
| | | creditScore:'', |
| | | password: '', |
| | | email: '', |
| | | mobile: '', |
| | |
| | | url: this.$http.adornUrl(`/userData/update`), //修改 |
| | | method: 'post', |
| | | data: this.$http.adornData({ |
| | | 'enabled': this.optionsTwo.value2, |
| | | // 'enabled': this.dataForm.value2, |
| | | 'enabled': this.optionsTwo.value2, |
| | | 'creditScore':this.dataForm.creditScore, |
| | | 'loginAuthority': this.options.value1, |
| | | 'withdrawAuthority': this.optionsThree.value3, |
| | | 'userId': this.roleList.userId, |
| | |
| | | method: 'post', |
| | | data: this.$http.adornData({ |
| | | 'username': this.dataForm.username, |
| | | 'creditScore':this.dataForm.creditScore, |
| | | 'enabled': this.optionsTwo.value2, |
| | | 'loginAuthority': this.options.value1, |
| | | 'parentsUseCode': this.dataForm.parentsUseCode, |