---初始化后台管理web页面项目

This commit is contained in:
2025-08-20 14:39:30 +08:00
parent ad49711a7e
commit 87545a8baf
2057 changed files with 282864 additions and 213 deletions

View File

@ -0,0 +1,94 @@
import { ApproveCode } from '/@/enums/workflowEnum';
import { getVariablesTree } from '/@bpmn/config/info';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
// 运算变量
export const getDataOfVariablesTree = () => {
const res = getVariablesTree({ needUserNodeButton: true, needHideComponents: true });
return res ? res : [];
};
// 运算符
export const operators = [
{
value: '==',
label: '==',
},
{
value: '+',
label: '+',
},
{
value: '-',
label: '-',
},
{
value: '*',
label: '*',
},
{
value: '/',
label: '/',
},
{
value: '(',
label: '(',
},
{
value: ')',
label: ')',
},
{
value: '!=',
label: '!=',
},
{
value: '>',
label: '>',
},
{
value: '>=',
label: '>=',
},
{
value: '<',
label: '<',
},
{
value: '<=',
label: '<=',
},
];
export const buttons = [
{
key: ApproveCode.AGREE,
title: t('同意'),
},
{
key: ApproveCode.REJECT,
title: t('拒绝'),
},
];
// 与或非
export const andOrNotList = [
{
value: '&&',
label: t('与'),
},
{
value: '||',
label: t('或'),
},
{
value: '!=',
label: t('非'),
},
];
//特殊值
export const specialValues = [
{
value: 'null',
label: 'null',
},
];