|
@@ -6,7 +6,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="验证码" prop="msgAuthCode" required>
|
|
|
<el-input v-model="data.msgAuthCode" style="width: 190px" :maxlength="500" placeholder="请输入" />
|
|
|
- <el-button type="danger" style="margin-left: 10px" @click="getMsgCode">获取验证码</el-button>
|
|
|
+ <el-button :disabled="isDisableMsg" type="danger" style="margin-left: 10px" @click="getMsgCode">获取验证码</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="密码" prop="password" required>
|
|
|
<el-input autocomplete="off" readonly onfocus="this.removeAttribute('readonly');" v-model="data.password"
|
|
@@ -135,21 +135,24 @@ onMounted(async () => {
|
|
|
watchEffect(() => {
|
|
|
if (props.user) {
|
|
|
data.value = { ...props.user }
|
|
|
+ console.log('data', data)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
const getMsgCode = async () => {
|
|
|
- const res = await getMsgAuthCode('+86', "13750087092")
|
|
|
- console.log('res', res)
|
|
|
- let timer = null
|
|
|
- if (res.success) {
|
|
|
- timer && clearTimeout(timer)
|
|
|
- isDisableMsg.value = true
|
|
|
- timer = setTimeout(() => {
|
|
|
- isDisableMsg.value = false
|
|
|
- }, 60 * 1000)
|
|
|
- }
|
|
|
|
|
|
+ const phoneNum = data.value.userName
|
|
|
+ console.log('getMsgCode',phoneNum)
|
|
|
+ const res = await getMsgAuthCode('+86', phoneNum)
|
|
|
+ // console.log('res', res)
|
|
|
+ // let timer = null
|
|
|
+ // if (res.success) {
|
|
|
+ // timer && clearTimeout(timer)
|
|
|
+ // isDisableMsg.value = true
|
|
|
+ // timer = setTimeout(() => {
|
|
|
+ // isDisableMsg.value = false
|
|
|
+ // }, 60 * 1000)
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
// const handleSelect = (orgId: number) => {
|