From 8bba24a698abd872a5901cf3ac4a134a0a263de4 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Fri, 21 Feb 2025 15:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=8A=B6=E6=80=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-后台/src/views/member/index.vue | 69 ++++++++++----------- 1 file changed, 33 insertions(+), 36 deletions(-) diff --git a/acupuncture-后台/src/views/member/index.vue b/acupuncture-后台/src/views/member/index.vue index 2a20d838..d928e604 100644 --- a/acupuncture-后台/src/views/member/index.vue +++ b/acupuncture-后台/src/views/member/index.vue @@ -46,11 +46,15 @@ @@ -109,18 +113,18 @@ data() { return { dataSourceList: [], - queryParams:{ - param:{ + queryParams: { + param: { name: "", } }, - listData:[], - title:'', + listData: [], + title: '', open: false, - total:0, - form:{}, - loading:false, - showSearch:true, + total: 0, + form: {}, + loading: false, + showSearch: true, multiple: false, // 表单校验 rules: { @@ -252,6 +256,7 @@ } }); }, + /** 删除按钮操作 */ handleDelete(row) { const idList = row.id ? [row.id] : this.ids; @@ -268,29 +273,21 @@ }) .catch(() => {}); }, - /** 导出按钮操作 */ - handleExport() { - this.download1( - "/treatment/exportTreatment", { - ...this.queryParams.params, - }, - `诊疗档案.xlsx` - ); - }, - /** 下载按钮操作 */ - handleDownload() { - window.open( - `${process.env.VUE_APP_API_QZURL}/acupuncture/profile/TreamentTemplate.xlsx` - ); - // this.download1( - // "/patient/export", {}, - // `患者档案导入模版.xlsx` - // ); - }, - /** 导入按钮操作 */ - handleImport() { - this.fileList = []; - this.importOpen = true; + /** 删除按钮操作 */ + handleStatusUpd(row) { + let form = JSON.parse(JSON.stringify(row)) + form.status = form.status == 1 ? 0 : 1 + let title = form.status ? '启用' : '禁用' + this.$modal + .confirm(`是否确认 "${title}" 组织名称为 "${row.name}" 数据?`) + .then(function() { + return tenantsUpd(form); + }) + .then(() => { + this.getList(); + this.$modal.msgSuccess("操作成功"); + }) + .catch(() => {}); }, }, };