zhengyiming
2025-02-10 0f686ea1fe4700a909a6159efcf1fcb0e1f88a17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
export enum ResourceStatus {
  /**
   * 已驳回
   */
  Reject = -10,
  /**
   * 未提交
   */
  Draft = 10,
  /**
   * 待审核
   */
  WaitAudit = 20,
  /**
   * 进行中
   */
  Running = 30,
  /**
   * 已下架
   */
  OffShelf = 40,
  /**
   * 系统下架
   */
  SystemOffShelf = 50,
}
 
export const ResourceStatusText = {
  [ResourceStatus.Reject]: '已驳回',
  [ResourceStatus.Draft]: '未提交',
  [ResourceStatus.WaitAudit]: '待审核',
  [ResourceStatus.Running]: '发布中',
  [ResourceStatus.OffShelf]: '已停止',
  [ResourceStatus.SystemOffShelf]: '系统下架',
};
 
export const ResourceStatusTextMap = {
  [ResourceStatus.Running]: '发布中',
  [ResourceStatus.WaitAudit]: '待审核',
  [ResourceStatus.Reject]: '已驳回',
  [ResourceStatus.OffShelf]: '已停止',
  // [ResourceStatus.SystemOffShelf, '系统下架'],
  // [ResourceStatus.Draft, '未提交'],
};
 
export const ResourceStatusTextTag = {
  [ResourceStatus.Reject]: 'danger',
  [ResourceStatus.Draft]: 'warning',
  [ResourceStatus.WaitAudit]: 'warning',
  [ResourceStatus.Running]: 'success',
  [ResourceStatus.OffShelf]: 'danger',
  [ResourceStatus.SystemOffShelf]: 'danger',
};
 
export enum ResourceOperateBtnStatus {
  Add = 1,
  Edit,
  Copy,
}