diff --git a/src/views/mine/personList.vue b/src/views/mine/personList.vue index 58ae079b..ba3ac544 100644 --- a/src/views/mine/personList.vue +++ b/src/views/mine/personList.vue @@ -11,12 +11,6 @@ @click-left="goBack" /> -
@@ -114,7 +108,9 @@ export default { // console.log('isWebFunc()',this.isWebFunc()) const urlParams = new URLSearchParams(window.location.search); this.id=this.$route.query.id || urlParams.get('id'); - this.supplierId=this.$route.query.supplierId || urlParams.get('supplierId'); + // this.supplierId=1128 && this.$route.query.supplierId || urlParams.get('supplierId'); + this.supplierId=1128 + console.log('1111',this.supplierId) await this.getPersonList() }, methods:{ @@ -200,9 +196,15 @@ export default { } await submitConfirm({supplierId:this.supplierId,infos:this.personList}) this.$toast('操作成功') - setTimeout(()=>{ - this.goBack(); - },2000) + if(this.isWebFunc()){ + setTimeout(()=>{ + this.closeParentDialog() + },1500) + }else{ + setTimeout(()=>{ + this.goBack() + },1500) + } }, async reviseHandle(){//修改 this.type=2 @@ -216,19 +218,16 @@ export default { }).then(async() => { // console.log('确认无误') await confirm({supplierId:this.supplierId}) - setTimeout(() => { - this.goBack() - }, 1500) - }).catch(() => { - }); - }, - handle(){ - Dialog.alert({ - message:'message', - confirmButtonText:this.isWebFunc() ? '确定' : '拨打电话', - showCancelButton:true, - }).then(async() => { - + this.$toast('操作成功') + if(this.isWebFunc()){ + setTimeout(()=>{ + this.closeParentDialog() + },1500) + }else{ + setTimeout(()=>{ + this.goBack() + },1500) + } }).catch(() => { }); },