| | |
| | | </div> |
| | | <!-- 修改密码 --> |
| | | <GlobalAlertWindow title="修改密码" :visible.sync="visible.changePwd" |
| | | :showClose="!userInfo.needChangePwd || userInfo.needChangePwd == '0'" |
| | | :showCancel="!userInfo.needChangePwd || userInfo.needChangePwd == '0'" @confirm="confirmChangePwd" |
| | | :showClose="userInfo && (!userInfo.needChangePwd || userInfo.needChangePwd == '0')" |
| | | :showCancel="userInfo && (!userInfo.needChangePwd || userInfo.needChangePwd == '0')" @confirm="confirmChangePwd" |
| | | @close="visible.changePwd = false"> |
| | | <el-form :model="changePwdData.form" ref="changePwdDataForm" :rules="changePwdData.rules"> |
| | | <el-form-item label="原始密码" prop="oldPwd" required> |
| | |
| | | }, |
| | | mounted() { |
| | | // needChangePwd 0 : 默认密码需要修改,1 不需要 |
| | | if (!this.userInfo.needChangePwd || this.userInfo.needChangePwd == '0') { |
| | | if (userInfo &&(!this.userInfo.needChangePwd || this.userInfo.needChangePwd == '0')) { |
| | | this.visible.changePwd = true |
| | | } |
| | | }, |