Files
smart-admin/smart-admin-web-javascript/src/constants/common-const.js

73 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 通用常量
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-06 19:57:29
* @Wechat: zhuda1024
* @Email: [email protected]
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
export const PAGE_SIZE = 10;
export const PAGE_SIZE_OPTIONS = ['5', '10', '15', '20', '30', '40', '50', '75', '100', '150', '200', '300', '500'];
//登录页面名字
export const PAGE_PATH_LOGIN = '/login';
//首页页面名字
export const HOME_PAGE_PATH = '/home';
//404页面名字
export const PAGE_PATH_404 = '/404';
export const showTableTotal = function (total) {
return `${total}`;
};
export const FLAG_NUMBER_ENUM = {
TRUE: {
value: 1,
desc: '是',
},
FALSE: {
value: 0,
desc: '否',
},
};
export const GENDER_ENUM = {
UNKNOWN: {
value: 0,
desc: '未知',
},
MAN: {
value: 1,
desc: '男',
},
WOMAN: {
value: 2,
desc: '女',
},
};
export const USER_TYPE_ENUM = {
ADMIN_EMPLOYEE: {
value: 1,
desc: '员工',
},
};
export const DATA_TYPE_ENUM = {
NORMAL: {
value: 1,
desc: '普通',
},
ENCRYPT: {
value: 10,
desc: '加密',
},
};