From a67ee99ad9bebe824ef4101558323a264b4e4a48 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Wed, 2 Apr 2025 15:12:02 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=91=98=E5=B7=A5=E6=9D=83=E9=99=90=E5=88=97=E8=A1=A8=E4=B8=8A?=
=?UTF-8?q?=E4=BC=A0=E4=B8=BA=E7=A9=BA=E6=95=B0=E7=BB=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/shop/staff/index.vue | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/src/views/shop/staff/index.vue b/src/views/shop/staff/index.vue
index 852c5ea..2a5a85d 100644
--- a/src/views/shop/staff/index.vue
+++ b/src/views/shop/staff/index.vue
@@ -44,11 +44,8 @@
-
+ 11
+
@@ -59,11 +56,7 @@
@submit-click="handleSubmitClick"
>
-
+
@@ -85,7 +78,6 @@ import RoleApi, { type SysRole } from "@/api/account/role";
import ShopStaffApi from "@/api/account/shopStaff";
import permissionApi, { type ShopPermission } from "@/api/account/permission";
import selectPermission from "./components/select-permission.vue";
-const refSelectPermission = ref();
const {
searchRef,
@@ -106,6 +98,7 @@ const {
let permissionList = ref([]);
//选中的权限列表
let selPermissionList = ref([]);
+let addSelPermissionList = ref([]);
// 数据初始化
async function init() {
// 覆写添加确定方法
@@ -113,7 +106,7 @@ async function init() {
addModalConfig.formAction = (data) => {
return oldAddSubmitFunc({
...data,
- shopPermissionIds: selPermissionList.value.reduce((pre: string[], cur: string) => {
+ shopPermissionIds: addSelPermissionList.value.reduce((pre: string[], cur: string) => {
return pre.concat(cur);
}, [] as string[]),
});
@@ -179,7 +172,6 @@ async function handleEditClick(row: IObject) {
editModalRef.value?.setFormData({ ...res });
});
}
-1;
// 其他工具栏
function handleToolbarClick(name: string) {
console.log(name);