diff --git a/src/api/sys/WFSchemeInfo.ts b/src/api/sys/WFSchemeInfo.ts new file mode 100644 index 0000000..0e3ed65 --- /dev/null +++ b/src/api/sys/WFSchemeInfo.ts @@ -0,0 +1,60 @@ +// WFSchemeInfo 流程模版基本信息 +import { defHttp } from '@/utils/http/axios'; +import {SchemeListParams,GetSchemeModel,AddParams, + DeleteParams,UpdateParams,StateParams,HistoryParams,GetHistoryModel,SchemeParams,DetailParams} from './model/wfSchemeInfoModel' +enum Api { + // 流程模板基本信息 + LoadPage = '/api/WFSchemeInfo/LoadPage', + Add = '/api/WFSchemeInfo/Add', + Update = '/api/WFSchemeInfo/Update', + Delete = '/api/WFSchemeInfo/Delete', + UpDateState = '/api/WFSchemeInfo/UpDateState', + GetDetail='/api/WFSchemeInfo/Get', + // 流程模板详细信息 + LoadHistoryPage= '/api/WFScheme/LoadPage', + UpdateScheme='/api/WFSchemeInfo/UpdateScheme', +} + +/** + * @description: getLoadPage 模板列表 + */ +export function getLoadPage(params?: SchemeListParams) { + return defHttp.get({ url: Api.LoadPage, params }); +} +export function getDetail(params?: DetailParams){ + return defHttp.get({ url: Api.GetDetail, params }); +} +/** + * @description: postAdd + */ +export function postAdd( params?:AddParams) { + return defHttp.post( + { + url: Api.Add, + params, + }, + ); +} + +export function update(params:UpdateParams) { + return defHttp.post({ + url: Api.Update+"?id="+params.schemeinfo.id, + params + }); +} + +export function del(params:DeleteParams) { + return defHttp.post({ url: Api.Delete + "?id=" + params.id }); +} + +export function updateState(params:StateParams){ + return defHttp.post({ url: Api.UpDateState + "?id=" + params.id +"&state="+params.state}); +} + +export function getLoadHistoryPage(params?:HistoryParams){ + return defHttp.get({url:Api.LoadHistoryPage,params}) +} +export function updateScheme(params:SchemeParams){ + return defHttp.post({ url: Api.UpdateScheme + "?id=" + params.id +"&schemeId="+params.schemeId}); +} + diff --git a/src/api/sys/model/sysDataItemDetailModel.ts b/src/api/sys/model/sysDataItemDetailModel.ts new file mode 100644 index 0000000..b187b98 --- /dev/null +++ b/src/api/sys/model/sysDataItemDetailModel.ts @@ -0,0 +1,61 @@ +/** + * @description: 字典明细接口区分参数 + */ +export interface CodeParams { + code: string; +} + +/** + * @description: 字典明细添加参数 + */ +export interface AddParams { + itemName: string; + itemValue: string; + sortCode: number; + enabledMark: number; + description: string; +} + +/** + * @description: 字典明细更新参数 + */ + export interface UpdateParams { + itemDetailId:string; + itemName: string; + itemValue: string; + sortCode: number; + enabledMark: number; + description: string; +} + + +/** + * @description: 分类明细删除参数 + */ +export interface DeleteParams { + id: string ; +} + +/** + * @description: 获取分类明细返回值 + */ +export interface GetSysDataItemDetailModel { + itemDetailId: string; + itemId: string; + parentId: string; + itemCode: string; + itemName: string; + itemValue: string; + quickQuery: string; + simpleSpelling: string; + isDefault: string; + sortCode: number; + deleteMark: number; + enabledMark: number; + description: string; + createDate: string; + createUserName: string; + modifyDate: string; + modifyUserId: string; + modifyUserName: string; +} diff --git a/src/api/sys/model/wfSchemeInfoModel.ts b/src/api/sys/model/wfSchemeInfoModel.ts new file mode 100644 index 0000000..49432fe --- /dev/null +++ b/src/api/sys/model/wfSchemeInfoModel.ts @@ -0,0 +1,166 @@ +/** + * @description: 流程模板基本信息参数 + */ +export interface SchemeListParams { + key: string; + page: number; + limit: number; + category: string; + ids?: string; +} +/** + * @description: 获取流程模板详情参数 + */ +export interface DetailParams { + code: string; +} + +/** + * @description: 流程模板添加参数 + */ +export interface AddParams { + schemeinfo: { + id: string, + code: string, + name: string, + category: string, + color: string, + icon: string, + schemeId: string, + enabledMark: 0, + mark: 0, + isInApp: 0, + authType: 0, + description: string, + type: 0, + createDate: string, + createUserId: string, + createUserName: string + }, + schemeAuthList: [ + { + id: string, + schemeInfoId: string, + objName: string, + objId: string, + objType: 0 + } + ], + scheme: { + id: string, + schemeInfoId: string, + type: 0, + createDate: string, + createUserId: string, + createUserName: string, + content: string + } +} + +/** + * @description: 字典明细更新参数 + */ +export interface UpdateParams { + schemeinfo: { + id: string, + code: string, + name: string, + category: string, + color: string, + icon: string, + schemeId: string, + enabledMark: 0, + mark: 0, + isInApp: 0, + authType: 0, + description: string, + type: 0, + createDate: string, + createUserId: string, + createUserName: string + }, + schemeAuthList: [ + { + id: string, + schemeInfoId: string, + objName: string, + objId: string, + objType: 0 + } + ], + scheme: { + id: string, + schemeInfoId: string, + type: 0, + createDate: string, + createUserId: string, + createUserName: string, + content: string + } +} + + +/** + * @description: 分类明细删除参数 + */ +export interface DeleteParams { + id: string; +} + +export interface StateParams { + id: string; + state: number; +} + +/** + * @description: 获取分类明细返回值 + */ +export interface GetSchemeModel { + itemDetailId: string; + itemId: string; + parentId: string; + itemCode: string; + itemName: string; + itemValue: string; + quickQuery: string; + simpleSpelling: string; + isDefault: string; + sortCode: number; + deleteMark: number; + enabledMark: number; + description: string; + createDate: string; + createUserName: string; + modifyDate: string; + modifyUserId: string; + modifyUserName: string; +} + +/** + * @description: 历史记录查询参数 + */ +export interface HistoryParams { + key: string; + page: number; + limit: number; + id?: string; +} +/** + * @description: 历史记录返回值 + */ +export interface GetHistoryModel { + id: string, + schemeInfoId: string, + type: number, + createDate: string, + createUserId: string, + createUserName: string, + content: string +} +/** + * @description: 切换版本 + */ +export interface SchemeParams { + id: string, + schemeId: string +} diff --git a/src/api/sys/sysDataItemDetail.ts b/src/api/sys/sysDataItemDetail.ts new file mode 100644 index 0000000..b002912 --- /dev/null +++ b/src/api/sys/sysDataItemDetail.ts @@ -0,0 +1,42 @@ +// sysDataItemDetail 字典明细接口api +import { defHttp } from '@/utils/http/axios'; +import {CodeParams,AddParams,UpdateParams ,DeleteParams,GetSysDataItemDetailModel} from './model/sysDataItemDetailModel' +enum Api { + Load = '/api/SysDataItemDetail/Load', + Add = '/api/SysDataItemDetail/Add', + Update = '/api/SysDataItemDetail/Update', + Delete = '/api/SysDataItemDetail/Delete', +} + +/** + * @description: postAdd + */ +export function postAdd(code:CodeParams, params:AddParams) { + return defHttp.post( + { + url: Api.Add + "?code=" + code, + params, + }, + ); +} + +/** + * @description: getLoad + */ +export function getLoad(params: CodeParams) { + return defHttp.get({ url: Api.Load, params }); +} + +export function update(params?:UpdateParams) { + console.log(params) + return defHttp.post({ + url: Api.Update, + params + }); +} + +export function del(params:DeleteParams) { + return defHttp.post({ url: Api.Delete + "?id=" + params.id }); +} + + diff --git a/src/api/sys/user.ts b/src/api/sys/user.ts index 4a6253f..ee82c31 100644 --- a/src/api/sys/user.ts +++ b/src/api/sys/user.ts @@ -1,10 +1,3 @@ -/* - * @Author: 刘妍 - * @Date: 2024-01-13 13:04:15 - * @LastEditors: Do not edit - * @LastEditTime: 2024-02-05 16:06:58 - * @Description: - */ import { defHttp } from '@/utils/http/axios'; import { LoginParams, LoginResultModel, GetUserInfoModel } from './model/userModel'; diff --git a/src/components/Bwflow/index.ts b/src/components/Bwflow/index.ts index 4d6ee65..1dec7cc 100644 --- a/src/components/Bwflow/index.ts +++ b/src/components/Bwflow/index.ts @@ -1,10 +1,3 @@ -/* - * @Author: 刘妍 - * @Date: 2024-03-01 15:55:24 - * @LastEditors: Do not edit - * @LastEditTime: 2024-03-02 16:08:00 - * @Description: - */ import { withInstall } from '@/utils'; import bWflowViewer from './src/bWflowViewer.vue' diff --git a/src/components/PermissionBtn/index.vue b/src/components/PermissionBtn/index.vue index 257c0a6..27bba6e 100644 --- a/src/components/PermissionBtn/index.vue +++ b/src/components/PermissionBtn/index.vue @@ -1,10 +1,3 @@ -