diff --git a/src/api/expense/index.ts b/src/api/expense/index.ts index 7964b5a..631d01e 100644 --- a/src/api/expense/index.ts +++ b/src/api/expense/index.ts @@ -16,7 +16,7 @@ export const projectClassificationList = (query?: DemoQuery): AxiosPromise => { diff --git a/src/api/fileTemplate/index.ts b/src/api/fileTemplate/index.ts new file mode 100644 index 0000000..af8ba5a --- /dev/null +++ b/src/api/fileTemplate/index.ts @@ -0,0 +1,109 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DemoVO, DemoForm, DemoQuery } from '@/api/fileTemplate/type'; + +/** + * 查询文件模板配置列表 + * @param query + * @returns {*} + */ +export const fileTemplateConfigList = (query?: DemoQuery): AxiosPromise => { + return request({ + url: '/system/fileTemplateConfig/list', + method: 'get', + params: query + }); +}; +/** + * 文件模板配置下拉列表 + * @param query + * @returns {*} + */ +export const fileTemplateConfigDropList= (query?: DemoQuery): AxiosPromise => { + return request({ + url: '/system/fileTemplateConfig/dropList', + method: 'get', + params: query + }); + }; + +/** + * 获取费用项目分类-费用项详细信息 + * @param id + */ +export const getFileTemplateConfigDetail = (query?: DemoQuery): AxiosPromise => { + return request({ + url: '/fy/fileTemplateConfig/queryList' , + method: 'get', + params: query + }); +}; + +/** + * 新增文件模板配置 + * @param data + */ +export const addFileTemplateConfig = (data: DemoForm) => { + return request({ + url: '/system/fileTemplateConfig', + method: 'post', + data: data + }); +}; + +/** + * 新增文件模板配置 + * @param data + */ +export const addFileTemplateConfigDetail = (data: DemoForm) => { + return request({ + url: '/system/fileTemplateConfig', + method: 'post', + data: data + }); + }; + + /** + * 配置 + * @param data + */ +export const fileTemplateConfig = (data: DemoForm) => { + return request({ + url: '/system/fileTemplateConfig/config', + method: 'put', + data: data + }); + }; +/** + * 修改测试单 + * @param data + */ +export const updateDemo = (data: DemoForm) => { + return request({ + url: '/demo/demo', + method: 'put', + data: data + }); +}; + +/** + * 删除测试单 + * @param id + */ +export const delDemo = (id: string | number | Array) => { + return request({ + url: '/demo/demo/' + id, + method: 'delete' + }); +}; +/** + * 启用/停用 + * @param id + */ +export const fileTemplateConfigSwitch = (data: DemoForm) => { + return request({ + url: '/system/fileTemplateConfig/switch' , + method: 'put', + data: data + }); + }; diff --git a/src/api/fileTemplate/type.ts b/src/api/fileTemplate/type.ts new file mode 100644 index 0000000..f11ed4a --- /dev/null +++ b/src/api/fileTemplate/type.ts @@ -0,0 +1,104 @@ +export interface DemoVO { + /** + * 主键 + */ + id: string | number; + /** + * 费用分类ID + */ + projectClassificationId?: string | number; + /** + * 部门id + */ + deptId: string | number; + + /** + * 用户id + */ + userId: string | number; + + /** + * 排序号 + */ + orderNum: number; + + /** + * key键 + */ + testKey: string; + + /** + * 值 + */ + value: string; + } + + export interface DemoForm extends BaseEntity { + + /** + * 费用分类中文名称 + + */ + classificationCnName?: string ; + /** + * 主键 + */ + id?: string | number; + + /** + * 费用分类ID + */ + projectClassificationId?: string | number; + /** + * 部门id + */ + deptId?: string | number; + + /** + * 用户id + */ + userId?: string | number; + + /** + * 排序号 + */ + orderNum?: number; + + /** + * key键 + */ + testKey?: string; + + /** + * 值 + */ + value?: string; + } + + export interface DemoQuery extends PageQuery { + /** + * 部门id + */ + deptId?: string | number; + + /** + * 用户id + */ + userId?: string | number; + + /** + * 排序号 + */ + orderNum?: number; + + /** + * key键 + */ + testKey?: string; + + /** + * 值 + */ + value?: string; + } + \ No newline at end of file diff --git a/src/api/system/log/index.ts b/src/api/system/log/index.ts new file mode 100644 index 0000000..3d4da82 --- /dev/null +++ b/src/api/system/log/index.ts @@ -0,0 +1,39 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DemoVO, DemoForm, DemoQuery } from '@/api/fileTemplate/type'; + +/** + * 查询业务操作日志列表 + * @param query + * @returns {*} + */ +export const operationLogList = (query?: DemoQuery): AxiosPromise => { + return request({ + url: '/system/operationLog/list', + method: 'get', + params: query + }); +}; +/** + * 获取业务操作日志详细信息 + * @param query + * @returns {*} + */ +export const operationLogItem= (id?: String): AxiosPromise => { + return request({ + url: '/system/operationLog/'+id, + method: 'get', + }); + }; +/** + * 新增业务操作日志 + * @param data + */ +export const addOperationLog = (data: DemoForm) => { + return request({ + url: '/system/operationLog', + method: 'post', + data: data + }); +}; + diff --git a/src/api/system/log/type.ts b/src/api/system/log/type.ts new file mode 100644 index 0000000..f11ed4a --- /dev/null +++ b/src/api/system/log/type.ts @@ -0,0 +1,104 @@ +export interface DemoVO { + /** + * 主键 + */ + id: string | number; + /** + * 费用分类ID + */ + projectClassificationId?: string | number; + /** + * 部门id + */ + deptId: string | number; + + /** + * 用户id + */ + userId: string | number; + + /** + * 排序号 + */ + orderNum: number; + + /** + * key键 + */ + testKey: string; + + /** + * 值 + */ + value: string; + } + + export interface DemoForm extends BaseEntity { + + /** + * 费用分类中文名称 + + */ + classificationCnName?: string ; + /** + * 主键 + */ + id?: string | number; + + /** + * 费用分类ID + */ + projectClassificationId?: string | number; + /** + * 部门id + */ + deptId?: string | number; + + /** + * 用户id + */ + userId?: string | number; + + /** + * 排序号 + */ + orderNum?: number; + + /** + * key键 + */ + testKey?: string; + + /** + * 值 + */ + value?: string; + } + + export interface DemoQuery extends PageQuery { + /** + * 部门id + */ + deptId?: string | number; + + /** + * 用户id + */ + userId?: string | number; + + /** + * 排序号 + */ + orderNum?: number; + + /** + * key键 + */ + testKey?: string; + + /** + * 值 + */ + value?: string; + } + \ No newline at end of file diff --git a/src/views/fileTemplate/index.vue b/src/views/fileTemplate/index.vue new file mode 100644 index 0000000..08c20ae --- /dev/null +++ b/src/views/fileTemplate/index.vue @@ -0,0 +1,594 @@ + + + + \ No newline at end of file diff --git a/src/views/login.vue b/src/views/login.vue index f641549..c0a430c 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -73,7 +73,7 @@