From 777bcb6c5660c0ed14d85207377b62b779d81dde Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 20 五月 2026 23:08:55 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/gtzxinglijicun
---
admin/src/views/business/memberList.vue | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/admin/src/views/business/memberList.vue b/admin/src/views/business/memberList.vue
index ea79fa8..f5f2890 100644
--- a/admin/src/views/business/memberList.vue
+++ b/admin/src/views/business/memberList.vue
@@ -31,11 +31,19 @@
<el-table-column prop="nickName" label="鐢ㄦ埛鏄电О" min-width="120px"></el-table-column>
<el-table-column prop="name" label="浼氬憳濮撳悕" min-width="120px"></el-table-column>
<el-table-column prop="telephone" label="鎺堟潈鎵嬫満鍙�" min-width="130px"></el-table-column>
+ <el-table-column prop="email" label="寮�绁ㄩ偖绠�" min-width="130px"></el-table-column>
<el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="160px"></el-table-column>
<el-table-column label="鐘舵��" min-width="80px">
<template slot-scope="{row}">
- {{ row.status === 0 ? '姝e父' : row.status === 1 ? '鍋滅敤' : '宸叉敞閿�' }}
- </template>
+ <el-switch
+ @change="handleStatusChange($event, row)"
+ v-model="row.status"
+ active-color="#13ce66"
+ inactive-color="#ff4949"
+ :active-value="0"
+ :inactive-value="1"
+ ></el-switch>
+ </template>
</el-table-column>
<el-table-column label="鎿嶄綔" min-width="100" fixed="right">
<template slot-scope="{row}">
@@ -99,6 +107,14 @@
},
handleDetail (row) {
this.$refs.operaMemberDetailWindow.open('浼氬憳璇︽儏', row)
+ },
+ handleStatusChange (val, row) {
+ this.api.updateStatus({ id: row.id, status: val }).then(res => {
+ this.$tip.apiSuccess(res || '淇敼鎴愬姛')
+ }).catch(e => {
+ row.status = val === 1 ? 0 : 1
+ this.$tip.apiFailed(e)
+ })
}
}
}
--
Gitblit v1.9.3