From 752ad6211b54bbf38bf7dfc5c3a572ae3e15b0d4 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期五, 03 三月 2023 18:06:47 +0800
Subject: [PATCH] 修改群组交流
---
src/views/manager/User.vue | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/views/manager/User.vue b/src/views/manager/User.vue
index 815e4cd..b557f33 100644
--- a/src/views/manager/User.vue
+++ b/src/views/manager/User.vue
@@ -30,8 +30,9 @@
<el-table-column label="鎿嶄綔" align="conter">
<template slot-scope="scope">
<el-button type="text" size="medium" @click="details(scope.row)">缂栬緫</el-button>
- <el-button type="text" size="medium" @click="reset(scope.row.id)">閲嶇疆瀵嗙爜</el-button>
- <el-button type="text" size="medium" @click="remove(scope.row.id)" style="color:#ff0000">鍒犻櫎
+<!-- <el-button type="text" size="medium" @click="reset(scope.row.id)">閲嶇疆瀵嗙爜</el-button>-->
+<!-- <el-button type="text" size="medium" @click="remove(scope.row.id)" style="color:#ff0000">鍒犻櫎-->
+ <el-button type="text" size="medium" @click="updateStatus(scope.row.id,scope.row.status)">{{scope.row.status==1?"绂佺敤":"鍚敤"}}
</el-button>
</template>
</el-table-column>
@@ -202,13 +203,13 @@
},
methods:
{
- //鍒犻櫎
- remove(val) {
+ //鏇存柊鐢ㄦ埛鐘舵��
+ updateStatus(id,status) {
var _this = this;
- this.$confirm('纭鍒犻櫎锛�').then(() => {
- _this.$http.delete('/api/user', { params: { id: val } }).then(res => {
+ this.$confirm('纭淇敼璐︽埛鐘舵�佸悧锛�').then(() => {
+ _this.$http.get('/api/user/status', { params: { id: id ,status:status} }).then(res => {
_this.$message({
- message: '鍒犻櫎鎴愬姛',
+ message: '淇敼鎴愬姛',
type: 'success'
})
this.search();
@@ -329,4 +330,4 @@
::v-deep(.el-table thead) {
color: #000000;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0