From 9a0676e6aa41efc7158b6d3488e9da8f48f57bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Tue, 9 Jul 2024 17:57:21 +0800 Subject: [PATCH] 07/09 --- src/api/system/operationRule.ts | 56 ++++ .../baseinfo/formcopy/components/Modal.vue | 109 ++----- .../operationRule/Condition/Operator.vue | 63 ++++ .../operationRule/Condition/Trigger.vue | 23 ++ .../system/operationRule/Condition/index.ts | 20 ++ .../system/operationRule/Condition/index.vue | 286 ++++++++++++++++++ src/views/system/operationRule/RoleModal.vue | 145 +++++++++ .../operationRule/RolePermissionModal.vue | 151 +++++++++ src/views/system/operationRule/columns.tsx | 273 +++++++++++++++++ src/views/system/operationRule/index.vue | 145 +++++++++ 10 files changed, 1191 insertions(+), 80 deletions(-) create mode 100644 src/api/system/operationRule.ts create mode 100644 src/views/system/operationRule/Condition/Operator.vue create mode 100644 src/views/system/operationRule/Condition/Trigger.vue create mode 100644 src/views/system/operationRule/Condition/index.ts create mode 100644 src/views/system/operationRule/Condition/index.vue create mode 100644 src/views/system/operationRule/RoleModal.vue create mode 100644 src/views/system/operationRule/RolePermissionModal.vue create mode 100644 src/views/system/operationRule/columns.tsx create mode 100644 src/views/system/operationRule/index.vue diff --git a/src/api/system/operationRule.ts b/src/api/system/operationRule.ts new file mode 100644 index 00000000..415c7d3a --- /dev/null +++ b/src/api/system/operationRule.ts @@ -0,0 +1,56 @@ +// @ts-ignore +import { request } from '/@/utils/request' +import { DataResult, PageRequest } from '/@/api/model/baseModel' +enum Api { + list = '/mainApi/OperationRule/GetOperationRuleList', + EditDataRule = '/mainApi/OperationRule/EditOperationRule', + GetDataRuleInfo = '/mainApi/OperationRule/GetOperationRuleInfo', + + + getPermissionTree = '/mainApi/Role/GetClientRolePermissionTree', + getRolePermission = '/mainApi/Role/GetRolePermission', + updateRolePermission = '/mainApi/Role/UpdateRolePermission', +} +export function getDataRuleList(data: PageRequest) { + return request({ + url: Api.list, + method: 'post', + data, + }) +} + +export function editDataRule(data: any) { + return request({ + url: Api.EditDataRule, + method: 'post', + data, + }) +} + +export function getDataRuleInfo(query: { id: string }) { + return request({ + url: Api.GetDataRuleInfo, + method: 'get', + params: query, + }) +} +export function getRolePermission(query: { id: string }) { + return request>({ + url: Api.getRolePermission, + method: 'get', + params: query, + }) +} +export function getPermissionTree() { + return request({ + url: Api.getPermissionTree, + method: 'get', + }) +} +export function updateRolePermission(data: any) { + return request({ + url: Api.updateRolePermission, + method: 'post', + data, + }) +} diff --git a/src/views/baseinfo/formcopy/components/Modal.vue b/src/views/baseinfo/formcopy/components/Modal.vue index a87ac84a..8377a2aa 100644 --- a/src/views/baseinfo/formcopy/components/Modal.vue +++ b/src/views/baseinfo/formcopy/components/Modal.vue @@ -70,10 +70,7 @@
- - 已复制表单,可拖动调整显示顺序 - - + 已复制表单