新增前端vue
This commit is contained in:
38
web-vue/web/api/sys/config.ts
Normal file
38
web-vue/web/api/sys/config.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author ThinkGem
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface Config extends BasicModel<Config> {
|
||||
configName?: string; // 名称
|
||||
configKey?: string; // 参数键
|
||||
configValue?: string; // 参数值
|
||||
isSys?: string; // 系统内置(1是 0否)
|
||||
}
|
||||
|
||||
export const configList = (params?: Config | any) =>
|
||||
defHttp.get<Config>({ url: adminPath + '/sys/config/list', params });
|
||||
|
||||
export const configListData = (params?: Config | any) =>
|
||||
defHttp.post<Page<Config>>({ url: adminPath + '/sys/config/listData', params });
|
||||
|
||||
export const configForm = (params?: Config | any) =>
|
||||
defHttp.get<Config>({ url: adminPath + '/sys/config/form', params });
|
||||
|
||||
export const checkConfigKey = (oldConfigKey: string, configKey: string) =>
|
||||
defHttp.get<Config>({
|
||||
url: adminPath + '/sys/config/checkConfigKey',
|
||||
params: { oldConfigKey, configKey },
|
||||
});
|
||||
|
||||
export const configSave = (params?: any, data?: Config | any) =>
|
||||
defHttp.postJson<Config>({ url: adminPath + '/sys/config/save', params, data });
|
||||
|
||||
export const configDelete = (params?: Config | any) =>
|
||||
defHttp.get<Config>({ url: adminPath + '/sys/config/delete', params });
|
||||
38
web-vue/web/api/sys/log.ts
Normal file
38
web-vue/web/api/sys/log.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author ThinkGem
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface Log extends BasicModel<Log> {
|
||||
logTitle?: string; // 日志标题
|
||||
requestUri?: string; // 请求URI
|
||||
logType?: string; // 日志类型
|
||||
createBy?: string; // 操作用户编码
|
||||
createByName?: string; // 操作用户名称
|
||||
requestMethod?: string; // 操作方式
|
||||
requestParams?: string; // 操作提交的数据
|
||||
diffModifyData?: string; // 新旧数据比较结果
|
||||
bizType?: string; // 业务类型
|
||||
bizKey?: string; // 业务主键
|
||||
remoteAddr?: string; // 客户端IP
|
||||
serverAddr?: string; // 请求服务器地址
|
||||
isException?: string; // 是否异常
|
||||
exceptionInfo?: string; // 异常信息
|
||||
userAgent?: string; // 用户代理
|
||||
deviceName?: string; // 设备名称
|
||||
browserName?: string; // 浏览器名称
|
||||
executeTime?: number; // 响应时间
|
||||
}
|
||||
|
||||
export const logList = (params?: Log | any) => defHttp.get<Log>({ url: adminPath + '/sys/log/list', params });
|
||||
|
||||
export const logListData = (params?: Log | any) =>
|
||||
defHttp.post<Page<Log>>({ url: adminPath + '/sys/log/listData', params });
|
||||
|
||||
export const logForm = (params?: Log | any) => defHttp.get<Log>({ url: adminPath + '/sys/log/form', params });
|
||||
50
web-vue/web/api/sys/menu.ts
Normal file
50
web-vue/web/api/sys/menu.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author ThinkGem
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { TreeDataModel, TreeModel } from '@jeesite/core/api/model/baseModel';
|
||||
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface Menu extends TreeModel<Menu> {
|
||||
menuCode?: string; // 菜单编码
|
||||
menuNameRaw?: string; // 菜单名称
|
||||
menuType?: string; // 菜单类型(1菜单 2权限)
|
||||
menuUrl?: string; // 菜单链接
|
||||
menuTarget?: string; // 目标窗口
|
||||
menuIcon?: string; // 菜单图标
|
||||
menuColor?: string; // 菜单颜色
|
||||
menuTitle?: string; // 菜单标题
|
||||
permission?: string; // 权限标识
|
||||
weight?: number; // 菜单权重(权重越大,表示菜单的重要性越大)
|
||||
isShow?: string; // 是否显示(1显示 0隐藏)
|
||||
sysCode?: string; // 归属系统(default:主导航菜单、mobileApp:APP菜单)
|
||||
moduleCodes?: string; // 归属模块(多个用逗号隔开)
|
||||
}
|
||||
|
||||
export const menuIndex = (params?: Menu | any) => defHttp.get<Menu>({ url: adminPath + '/sys/menu/index', params });
|
||||
|
||||
export const menuList = (params?: Menu | any) => defHttp.get<Menu>({ url: adminPath + '/sys/menu/list', params });
|
||||
|
||||
export const menuListData = (params?: Menu | any) =>
|
||||
defHttp.post<Menu[]>({ url: adminPath + '/sys/menu/listData', params });
|
||||
|
||||
export const menuForm = (params?: Menu | any) => defHttp.get<Menu>({ url: adminPath + '/sys/menu/form', params });
|
||||
|
||||
export const menuCreateNextNode = (params?: Menu | any) =>
|
||||
defHttp.get<Menu>({ url: adminPath + '/sys/menu/createNextNode', params });
|
||||
|
||||
export const menuSave = (params?: any, data?: Menu | any) =>
|
||||
defHttp.postJson<Menu>({ url: adminPath + '/sys/menu/save', params, data });
|
||||
|
||||
export const menuDisable = (params?: Menu | any) => defHttp.get<Menu>({ url: adminPath + '/sys/menu/disable', params });
|
||||
|
||||
export const menuEnable = (params?: Menu | any) => defHttp.get<Menu>({ url: adminPath + '/sys/menu/enable', params });
|
||||
|
||||
export const menuDelete = (params?: Menu | any) => defHttp.get<Menu>({ url: adminPath + '/sys/menu/delete', params });
|
||||
|
||||
export const menuTreeData = (params?: any) =>
|
||||
defHttp.get<TreeDataModel[]>({ url: adminPath + '/sys/menu/treeData', params });
|
||||
43
web-vue/web/api/sys/module.ts
Normal file
43
web-vue/web/api/sys/module.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author ThinkGem
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface Module extends BasicModel<Module> {
|
||||
moduleCode?: string; // 模块编码
|
||||
moduleName?: string; // 模块名称
|
||||
description?: string; // 模块描述
|
||||
mainClassName?: string; // 主类全名
|
||||
currentVersion?: string; // 当前版本
|
||||
upgradeInfo?: string; // 升级信息
|
||||
}
|
||||
|
||||
export const moduleList = (params?: Module | any) =>
|
||||
defHttp.get<Module>({ url: adminPath + '/sys/module/list', params });
|
||||
|
||||
export const moduleListData = (params?: Module | any) =>
|
||||
defHttp.post<Page<Module>>({ url: adminPath + '/sys/module/listData', params });
|
||||
|
||||
export const moduleSelectData = (params?: Module | any) =>
|
||||
defHttp.post<Recordable[]>({ url: adminPath + '/sys/module/selectData', params });
|
||||
|
||||
export const moduleForm = (params?: Module | any) =>
|
||||
defHttp.get<Module>({ url: adminPath + '/sys/module/form', params });
|
||||
|
||||
export const moduleSave = (params?: any, data?: Module | any) =>
|
||||
defHttp.postJson<Module>({ url: adminPath + '/sys/module/save', params, data });
|
||||
|
||||
export const moduleDisable = (params?: Module | any) =>
|
||||
defHttp.get<Module>({ url: adminPath + '/sys/module/disable', params });
|
||||
|
||||
export const moduleEnable = (params?: Module | any) =>
|
||||
defHttp.get<Module>({ url: adminPath + '/sys/module/enable', params });
|
||||
|
||||
export const moduleDelete = (params?: Module | any) =>
|
||||
defHttp.get<Module>({ url: adminPath + '/sys/module/delete', params });
|
||||
25
web-vue/web/api/sys/secAdmin.ts
Normal file
25
web-vue/web/api/sys/secAdmin.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author ThinkGem
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { User } from '@jeesite/core/api/sys/user';
|
||||
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export const secAdminList = (params?: User | any) =>
|
||||
defHttp.get<User>({ url: adminPath + '/sys/secAdmin/list', params });
|
||||
|
||||
export const secAdminListData = (params?: User | any) =>
|
||||
defHttp.post<Page<User>>({ url: adminPath + '/sys/secAdmin/listData', params });
|
||||
|
||||
export const secAdminForm = (params?: User | any) =>
|
||||
defHttp.get<User>({ url: adminPath + '/sys/secAdmin/form', params });
|
||||
|
||||
export const secAdminSave = (params?: any) => defHttp.post<User>({ url: adminPath + '/sys/secAdmin/save', params });
|
||||
|
||||
export const secAdminDelete = (params?: User | any) =>
|
||||
defHttp.get<User>({ url: adminPath + '/sys/secAdmin/delete', params });
|
||||
Reference in New Issue
Block a user