|
|
@@ -18,24 +18,28 @@
|
|
|
:rules="formRules.AccountName" />
|
|
|
<Field name="MobilePhone" label="手机号码" readonly v-model="formData.MobilePhone" placeholder="请输入手机号码" />
|
|
|
<template v-for="(item, index) in configs" :key="index">
|
|
|
- <Field v-if="(item.fieldcode === 'verify_code') &&
|
|
|
- (item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)"
|
|
|
- v-model="item.value" type="digit" name="vcode" :label="item.fieldname" placeholder="必填" autocomplete="off"
|
|
|
- :rules="item.fieldname">
|
|
|
- <template #button>
|
|
|
- <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
|
|
|
- <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
|
|
|
- <span v-else>获取验证码</span>
|
|
|
- </Button>
|
|
|
- </template>
|
|
|
- </Field>
|
|
|
- <Field v-else-if="(item.usabletype === 1) ||
|
|
|
- (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
- (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)"
|
|
|
- :name="item.fieldcode" :label="item.fieldname" v-model="item.value"
|
|
|
- :placeholder="`请输入${item.fieldname}`" />
|
|
|
+ <template v-if="(item.fieldcode === 'verify_code')">
|
|
|
+ <Field v-if="(bankInfo === undefined) &&
|
|
|
+ ((item.usabletype === 1) ||
|
|
|
+ (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
+ (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1))"
|
|
|
+ v-model="item.value" type="digit" name="vcode" :label="item.fieldname" placeholder="必填" autocomplete="off"
|
|
|
+ :rules="item.fieldname">
|
|
|
+ <template #button>
|
|
|
+ <Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
|
|
|
+ <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
|
|
|
+ <span v-else>获取验证码</span>
|
|
|
+ </Button>
|
|
|
+ </template>
|
|
|
+ </Field>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <Field v-if="(item.usabletype === 1) ||
|
|
|
+ (item.usabletype === 2 && userStore.userInfo?.userinfotype === 2) ||
|
|
|
+ (item.usabletype === 3 && userStore.userInfo?.userinfotype === 1)"
|
|
|
+ :name="item.fieldcode" :label="item.fieldname" v-model="item.value"
|
|
|
+ :placeholder="`请输入${item.fieldname}`" />
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</CellGroup>
|
|
|
</Form>
|