constant.ts 713 B

1234567891011121314151617181920
  1. export type LabelType = 'scene' | 'label' | 'workspace';
  2. export const templateTips = [
  3. {
  4. tab: 'scene',
  5. tip: '决定了平台主页的页面布局、功能模块、监测数据类型,系统已进行初始化配置,请勿修改、删除。',
  6. },
  7. {
  8. tab: 'label',
  9. tip: '用于关联公司场景与模板之间的关系,实现模板的实例化。为系统底层能力,请勿修改、删除。',
  10. },
  11. {
  12. tab: 'workspace',
  13. tip: '决定了每个车间的页面布局、功能模块、监测数据类型,系统已进行初始化配置,请勿修改、删除。',
  14. },
  15. ];
  16. export const getTipByTab = (tab: LabelType) =>
  17. templateTips.find((item) => item.tab === tab)?.tip || '';