diff --git a/root/person/marge.vue b/root/person/marge.vue index 4c87561..14227c9 100644 --- a/root/person/marge.vue +++ b/root/person/marge.vue @@ -23,9 +23,34 @@ - 11 + + + + + + + + + + {{item.targetAgency.agencyName}} + + + {{item.desp || '-'}} + + + + + + + + + @@ -252,6 +277,42 @@ export default { that.modalApplyData.isShow = false; uni.navigateBack(); }) + }, + handleSet($data,$type){ + let that = this; + if($type == 1){ + // 通过 + uni.showModal({ + content:'确认通过吗?', + success(res) { + if(res.confirm){ + that.G.Get(that.api.person_applyTrue + '/' + $data.id,{},()=>{ + uni.showToast({ + icon:'success', + title:'已通过' + }); + that.getList(); + }) + } + } + }) + }else{ + // 拒绝 + uni.showModal({ + content:'确认拒绝吗?', + success(res) { + if(res.confirm){ + that.G.Get(that.api.person_applyFalse + '/' + $data.id,{},()=>{ + uni.showToast({ + icon:'error', + title:'已拒绝' + }); + that.getList(); + }) + } + } + }) + } } }, };