初始化账号信息页面修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c389b867a9
commit
b4c0718fa7
|
@ -13,6 +13,10 @@
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="passwordForm" v-loading="loading" label-position="right" :model="password"
|
<el-form ref="passwordForm" v-loading="loading" label-position="right" :model="password"
|
||||||
:rules="passwordFormRules" label-width="120px">
|
:rules="passwordFormRules" label-width="120px">
|
||||||
|
<!-- 邮箱 -->
|
||||||
|
<el-form-item :label="$t('recompose:form:EMail')" prop="EMail">
|
||||||
|
<el-input v-model="password.EMail" disabled />
|
||||||
|
</el-form-item>
|
||||||
<!-- 用户名 -->
|
<!-- 用户名 -->
|
||||||
<el-form-item :label="$t('recompose:form:userName')" prop="NewUserName">
|
<el-form-item :label="$t('recompose:form:userName')" prop="NewUserName">
|
||||||
<el-input v-model="password.NewUserName" />
|
<el-input v-model="password.NewUserName" />
|
||||||
|
@ -56,6 +60,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
password: {
|
password: {
|
||||||
NewUserName: null,
|
NewUserName: null,
|
||||||
|
EMail: null
|
||||||
},
|
},
|
||||||
passwordFormRules: {
|
passwordFormRules: {
|
||||||
NewUserName: [
|
NewUserName: [
|
||||||
|
@ -119,10 +124,15 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$set(this.password, "NewUserName", this.$route.query.userName);
|
let token = zzSessionStorage.getItem('TokenKey')
|
||||||
if (!this.password.NewUserName) {
|
if (!token) {
|
||||||
// 该页面只提供给首次进入系统的用户使用
|
// 该页面只提供给首次进入系统的用户使用
|
||||||
this.$alert(this.$t("recompose:message:warning"));
|
// this.$alert(this.$t("recompose:message:warning"));
|
||||||
|
return this.$router.push({ path: '/login', replace: true })
|
||||||
|
}
|
||||||
|
this.password.EMail = zzSessionStorage.getItem('my_EMail')
|
||||||
|
if (this.$route.query.userName !== this.password.EMail) {
|
||||||
|
this.$set(this.password, "NewUserName", this.$route.query.userName);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue