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 @@
- - 已复制表单,可拖动调整显示顺序 - - + 已复制表单