From e53852b05ffc33dfa6a324385c38107715faeef8 Mon Sep 17 00:00:00 2001
From: weicw <594098497@qq.com>
Date: Tue, 27 Oct 2026 11:12:21 +0800
Subject: [PATCH] =?UTF-8?q?:zap:=20=E5=90=8E=E5=8F=B0=E5=B0=8F=E7=A8=8B?=
=?UTF-8?q?=E5=BA=8F=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E4=B8=8D=E5=86=8D?=
=?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=88=A0=E9=99=A4=E5=85=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 移除工具条「批量删除」与行内「删除」两个入口
- 一并删除 handleDelete / rowDel 与 permissionList.delBtn,不留无入口的死方法
- 删除是逻辑删除,且手机号唯一键不排除已删行,删过的手机号既登录不了也注册不了;终止访问改用「停用」
- 保留 api/system/mpUser.js 的 remove 封装与后端 /mp-user/remove 接口,本次只隐藏入口
- 保留表格多选列,批量「密码重置」仍依赖勾选
---
src/views/system/mp-user.vue | 38 +-----------------------------------
1 file changed, 1 insertion(+), 37 deletions(-)
diff --git a/src/views/system/mp-user.vue b/src/views/system/mp-user.vue
index bd3505f..651ea35 100644
--- a/src/views/system/mp-user.vue
+++ b/src/views/system/mp-user.vue
@@ -26,9 +26,6 @@
密码重置
-
- 批量删除
-
{{ row.identitiesName || formatIdentities(row.identities) }}
@@ -102,9 +99,6 @@
重置密码
-
- 删除
-
import { h } from 'vue';
-import { getList, getDetail, submit, remove, changeStatus, resetPassword } from '@/api/system/mpUser';
+import { getList, getDetail, submit, changeStatus, resetPassword } from '@/api/system/mpUser';
import { getDeptTree } from '@/api/system/dept';
import option from '@/option/system/mpUser';
import { mapGetters } from 'vuex';
@@ -159,7 +153,6 @@ export default {
return {
addBtn: this.validData(this.permission.mp_user_add, false),
viewBtn: this.validData(this.permission.mp_user_view, false),
- delBtn: this.validData(this.permission.mp_user_delete, false),
editBtn: this.validData(this.permission.mp_user_edit, false),
};
},
@@ -345,35 +338,6 @@ export default {
() => loading()
);
},
- rowDel(row) {
- this.$confirm('确定删除该小程序用户?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning',
- })
- .then(() => remove(row.id))
- .then(() => {
- this.onLoad(this.page);
- this.$message.success('操作成功');
- });
- },
- handleDelete() {
- if (this.selectionList.length === 0) {
- this.$message.warning('请选择至少一条数据');
- return;
- }
- this.$confirm('确定删除选中的小程序用户?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning',
- })
- .then(() => remove(this.ids))
- .then(() => {
- this.onLoad(this.page);
- this.$message.success('操作成功');
- this.$refs.crud.toggleSelection();
- });
- },
handleStatus(row) {
const status = row.status === 1 ? 0 : 1;
const text = status === 1 ? '启用' : '停用';