确认信息无误添加必填项判断
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
<div v-show="type==1" class="revise common" @click="reviseHandle">立即修改</div>
|
||||
<div v-show="type==1" class="confirm common" @click="confirmHandle">确认信息无误</div>
|
||||
</div>
|
||||
<van-dialog v-model="dialogShow" title="请先添加企微,成功添加后将更新微信号。" show-cancel-button
|
||||
<van-dialog v-model="dialogShow" title="请将此二维码发送至相应人员进行添加,成功添加后将更新微信号。" show-cancel-button
|
||||
confirmButtonText="确认已添加" confirmButtonColor="#354E93" className="customDialog"
|
||||
@confirm="wechatConfirm" @cancel="cancelHandle">
|
||||
<img v-if="wechatInfo?.qrCode" :src="wechatInfo.qrCode" style="width: 83%"/>
|
||||
@@ -212,6 +212,11 @@ export default {
|
||||
this.type=2
|
||||
},
|
||||
async confirmHandle(){//确认信息无误
|
||||
let flag=this.personList.every(item => item.name && item.phone1 && item.wechatId && item.wechatName)
|
||||
if(!flag){
|
||||
this.$toast('数据缺失,请去修改将信息补充完整')
|
||||
return
|
||||
}
|
||||
Dialog.confirm({
|
||||
message:'请务必仔细确认信息是否无误。',
|
||||
confirmButtonText:'确认无误',
|
||||
|
||||
Reference in New Issue
Block a user