精简搜索函数, 添加页面
This commit is contained in:
@@ -74,12 +74,12 @@ const request = (url: string, options: any, config = { showLoading: true, showEr
|
||||
};
|
||||
|
||||
// 封装get方法
|
||||
export const get = (url: string, data = {}, config?: any): any => {
|
||||
export const get = (url: string, data = {}, config?: any) => {
|
||||
return request(url, { method: 'GET', data }, config);
|
||||
};
|
||||
|
||||
// 封装post方法
|
||||
export const post = (url: string, data = {}, config?: any): any => {
|
||||
export const post = (url: string, data = {}, config?: any) => {
|
||||
return request(url, { method: 'POST', data }, config);
|
||||
};
|
||||
|
||||
|
||||
@@ -25,11 +25,11 @@ export const menuConfig = [
|
||||
icon: 'tools',
|
||||
iconColor: iconColor,
|
||||
children: [
|
||||
// {
|
||||
// title: "生产任务",
|
||||
// url: "/pages/produce/orderTask/orderTask",
|
||||
// auth: "SF_ERP_PRODUCT_TASK_VIEW",
|
||||
// },
|
||||
{
|
||||
title: '生产任务',
|
||||
url: '/pages/produce/orderTask/orderTask',
|
||||
auth: 'SF_ERP_PRODUCT_TASK_VIEW',
|
||||
},
|
||||
{
|
||||
title: '流程管理',
|
||||
url: '/pages/produce/processManage/processManage',
|
||||
|
||||
@@ -357,9 +357,6 @@ export const numRetentionDigitsString = (value?: number) => {
|
||||
|
||||
/**
|
||||
* sleep
|
||||
* @param callback 回调函数
|
||||
* @param ms 毫秒, 默认300ms
|
||||
* @returns
|
||||
*/
|
||||
export const sleep = (callback?: () => void, ms = 300): Promise<boolean> => {
|
||||
return new Promise((resolve) => {
|
||||
@@ -370,6 +367,9 @@ export const sleep = (callback?: () => void, ms = 300): Promise<boolean> => {
|
||||
});
|
||||
};
|
||||
|
||||
export const searchValueFormat = (value: any) =>
|
||||
isArray(value) || isObject(value) ? value : `${value || ''}`.trim();
|
||||
|
||||
export const cloneLite = (data: any) => JSON.parse(JSON.stringify(data));
|
||||
|
||||
/** 转换文件大小 */
|
||||
|
||||
Reference in New Issue
Block a user