mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-26 13:08:10 +00:00
up web
This commit is contained in:
parent
fa49aade7a
commit
7d27920bcf
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="h-[30px] leading-[28px]">
|
<div class="h-[30px]">
|
||||||
<el-button type="primary" link class="!text-[12px]" :disabled="!sendSms.canGetCode.value" @click="handleClick">{{ sendSms.text.value }}</el-button>
|
<el-button type="primary" link :disabled="!sendSms.canGetCode.value" @click="handleClick">{{ sendSms.text.value }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-dialog v-model="captchaDialog" :title="t('captchaTitle')" width="350px" :append-to-body="true" :align-center="true">
|
<el-dialog v-model="captchaDialog" :title="t('captchaTitle')" width="350px" :append-to-body="true" :align-center="true">
|
||||||
<el-form :model="formData" ref="formRef" :rules="formRules">
|
<el-form :model="formData" ref="formRef" :rules="formRules" @submit.native.prevent>
|
||||||
<el-form-item prop="captcha_code" style="margin-bottom: 0;">
|
<el-form-item prop="captcha_code" style="margin-bottom: 0;">
|
||||||
<el-input v-model="formData.captcha_code" :placeholder="t('captchaPlaceholder')">
|
<el-input v-model="formData.captcha_code" :placeholder="t('captchaPlaceholder')">
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
@ -59,7 +59,7 @@ const formRules = reactive({
|
|||||||
captcha_code: {
|
captcha_code: {
|
||||||
required: true,
|
required: true,
|
||||||
message: t('captchaPlaceholder'),
|
message: t('captchaPlaceholder'),
|
||||||
trigger: ['blur']
|
trigger: ['blur', 'change']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const formRef = ref<AnyObject | null>(null)
|
const formRef = ref<AnyObject | null>(null)
|
||||||
@ -86,8 +86,6 @@ const confirm = async () => {
|
|||||||
if (sendRes) {
|
if (sendRes) {
|
||||||
value.value = sendRes
|
value.value = sendRes
|
||||||
captchaDialog.value = false
|
captchaDialog.value = false
|
||||||
captcha.refresh()
|
|
||||||
formData.captcha_code = ''
|
|
||||||
loading.value = false
|
loading.value = false
|
||||||
} else if (sendRes === false) {
|
} else if (sendRes === false) {
|
||||||
captcha.refresh()
|
captcha.refresh()
|
||||||
|
|||||||
8
web/package-lock.json
generated
8
web/package-lock.json
generated
@ -6911,7 +6911,7 @@
|
|||||||
},
|
},
|
||||||
"node_modules/qs": {
|
"node_modules/qs": {
|
||||||
"version": "6.7.0",
|
"version": "6.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
|
"resolved": "https://registry.npmmirror.com/qs/-/qs-6.7.0.tgz",
|
||||||
"integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==",
|
"integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.6"
|
"node": ">=0.6"
|
||||||
@ -7631,9 +7631,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/swiper": {
|
"node_modules/swiper": {
|
||||||
"version": "11.1.15",
|
"version": "11.2.8",
|
||||||
"resolved": "https://registry.npmmirror.com/swiper/-/swiper-11.1.15.tgz",
|
"resolved": "https://registry.npmmirror.com/swiper/-/swiper-11.2.8.tgz",
|
||||||
"integrity": "sha512-IzWeU34WwC7gbhjKsjkImTuCRf+lRbO6cnxMGs88iVNKDwV+xQpBCJxZ4bNH6gSrIbbyVJ1kuGzo3JTtz//CBw==",
|
"integrity": "sha512-S5FVf6zWynPWooi7pJ7lZhSUe2snTzqLuUzbd5h5PHUOhzgvW0bLKBd2wv0ixn6/5o9vwc/IkQT74CRcLJQzeg==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "patreon",
|
"type": "patreon",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user