瀏覽代碼

fix: 修复超管新增注册方案时显示了全部租户数据的bug

喵你个旺呀 1 年之前
父節點
當前提交
94fb9a2c55
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Web/src/views/system/userRegWay/component/editRegWay.vue

+ 3 - 0
Web/src/views/system/userRegWay/component/editRegWay.vue

@@ -111,6 +111,9 @@ const cascaderConfig = {
 
 // 打开弹窗
 const openDialog = async (row: any) => {
+	state.roleData = (row?.tenantId ? state.roleData?.filter((e) => e.tenantId === row.tenantId) : state.roleData) ?? [];
+	state.posData = (row?.tenantId ? state.posData?.filter((e) => e.tenantId === row.tenantId) : state.posData) ?? [];
+	state.orgData = (row?.tenantId ? state.orgData?.filter((e) => e.tenantId === row.tenantId) : state.orgData) ?? [];
 	state.ruleForm = JSON.parse(JSON.stringify(row));
 	state.isShowDialog = true;
 	ruleFormRef.value?.resetFields();