|
@@ -29,7 +29,7 @@
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
|
- <template v-if="model.interlockUserType === 'normal' && !isExistSSO && !userDisabled">
|
|
|
+ <template v-if="model.interlockUserType === 'normal' && !model.isExistSSO && !userDisabled">
|
|
|
<a-col :span="24">
|
|
|
<a-form-model-item label="登录密码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="password">
|
|
|
<a-input-password autocomplete="new-password" v-model="model.password" placeholder="请输入登录密码" />
|
|
@@ -119,7 +119,8 @@ import { postAction } from '../../../../api/manage'
|
|
|
return {
|
|
|
userDisabled: false, // 修改时用户名不可修改
|
|
|
model:{
|
|
|
- interlockUserType: 'email'
|
|
|
+ interlockUserType: 'email',
|
|
|
+ isExistSSO: true, // 用户是否为非邮箱格式且sso中无当前用户 true存在false不存在
|
|
|
},
|
|
|
labelCol: {
|
|
|
xs: { span: 24 },
|
|
@@ -193,7 +194,6 @@ import { postAction } from '../../../../api/manage'
|
|
|
indeterminateManageHeader: false,
|
|
|
viewHeader: false,
|
|
|
indeterminateViewHeader: false,
|
|
|
- isExistSSO: true, // 用户是否为非邮箱格式且sso中无当前用户 true存在false不存在
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -238,14 +238,14 @@ import { postAction } from '../../../../api/manage'
|
|
|
handleBlur(){
|
|
|
// 本地测试
|
|
|
// if(this.model.usernameNormal === 'asd'){
|
|
|
- // this.isExistSSO = false
|
|
|
+ // this.model.isExistSSO = false
|
|
|
// } else {
|
|
|
- // this.isExistSSO = true
|
|
|
+ // this.model.isExistSSO = true
|
|
|
// }
|
|
|
// 判断sso中是否有当前账户
|
|
|
postAction('/iotedgeCollectData/iotedgeCollectData/ifUserInSoo', {userName: this.model.username}).then(res => {
|
|
|
if(res.success){
|
|
|
- this.isExistSSO = res.result
|
|
|
+ this.model.isExistSSO = res.result
|
|
|
} else {
|
|
|
this.$message.warning(res.message)
|
|
|
}
|