From be80f81a9861d38e228317cdf18e3576b3380271 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Fri, 19 Apr 2024 11:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/visitors/visitors.vue | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/pages/visitors/visitors.vue b/pages/visitors/visitors.vue index 7fbfce8..54b2071 100644 --- a/pages/visitors/visitors.vue +++ b/pages/visitors/visitors.vue @@ -25,11 +25,11 @@ - + {{item.real_name}} 身份证尾号:{{item.id_no}} - + {{item2.hospital_name}} {{item2.hospital_dept}} @@ -108,6 +108,44 @@ } }, methods: { + modifyVistor(visitor){ + + }, + delVistor(visitor){ + console.log(visitor) + var that = this + uni.showModal({ + title:'删除', + content:'确认删除就诊人('+visitor.real_name+')?', + success(res) { + if(!res.confirm) return + that.$http.req('client/user/visit_user/'+visitor.id, {}, 'DELETE').then(data=>{ + if(data == -1) return + that.getVisitors() + }); + } + }) + return; + }, + vistorOption(visitor){ + var that = this + uni.showActionSheet({ + itemList: ['修改就诊人信息', '删除就诊人'], + success: function (res) { + if(res.tapIndex == 0){ + that.modifyVistor(visitor) + return + } + if(res.tapIndex == 1){ + that.delVistor(visitor) + return + } + }, + fail: function (res) { + } + }); + console.log(visitor) + }, chooseVisitor(info, key){ this.selectCount = 0 this.visitUsers[key].select = !this.visitUsers[key].select