新增确认框
This commit is contained in:
parent
d66f376091
commit
90c80e57cc
@ -287,9 +287,11 @@
|
||||
</u-upload>
|
||||
</u-form-item> -->
|
||||
</u--form>
|
||||
<button @click="$u.throttle(addAcountNum, 2000)" type="primary" class="btn"
|
||||
<button @click="modelShow=true" type="primary" class="btn"
|
||||
style="margin: 28rpx;">创建</button>
|
||||
</view>
|
||||
<u-modal :show="modelShow" title="提示" content='请确认人员信息无误后再创建' closeOnClickOverlay showCancelButton
|
||||
@close="modelShow=false" @cancel="modelShow=false" @confirm="$u.throttle(addAcountNum, 2000)"></u-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -312,6 +314,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
modelShow: false,
|
||||
formData: {
|
||||
account: '', //账号
|
||||
password: '123456', //密码
|
||||
@ -431,7 +434,9 @@
|
||||
})
|
||||
},
|
||||
// 创建账号
|
||||
addAcountNum() {
|
||||
async addAcountNum() {
|
||||
this.modelShow = false;
|
||||
await this.$nextTick();
|
||||
if (!this.formData.avatar) return Toast('头像未上传');
|
||||
let flag = this.$refs.districtSelectorRef.validate();
|
||||
if (!this.formData.qualification.id_card || !this.formData.qualification.id_card_b) return Toast('身份证未上传');
|
||||
|
Loading…
x
Reference in New Issue
Block a user