index.js 3.05 KB
/*
 * @Description:
 * @Author: huyue
 * @Date: 2024-04-01 15:03:31
 * @LastEditors: huyue
 * @LastEditTime: 2024-09-02 16:06:04
 */

// 内容类型
export const CONTENT_TYPE_OPTIONS = [
  {
    id: 0,
    label: "图片"
  },
  {
    id: 1,
    label: "视频"
  },
  {
    id: 2,
    label: "PDF"
  },
  {
    id: 3,
    label: "富文本"
  },
  {
    id: 4,
    label: "Excel"
  },
  {
    id: 5,
    label: "Word"
  }
]
// 场景
export const SCENE_OPTIONS = [
  {
    id: 1,
    label: "精品升级"
  },
  {
    id: 2,
    label: "次新车转化"
  },
  {
    id: 3,
    label: "售后众筹"
  },
  {
    id: 0,
    label: "会员权益/升级"
  },
  {
    id: 4,
    label: "积分商城"
  }
]
// 渠道
export const CHANNEL_OPTIONS = [
  {
    id: 0,
    label: "培训资料"
  },
  {
    id: 1,
    label: "营销素材"
  },
  {
    id: 2,
    label: "展业助手"
  },
  {
    id: 3,
    label: "场景集市"
  }
]
// 状态
export const STATUS_OPTIONS = [
  {
    id: 0,
    label: "草稿"
  },
  {
    id: 1,
    label: "启用"
  },
  {
    id: 2,
    label: "停用"
  }
]

export const STATUS_ENUM = {
  0: {
    name: "草稿",
    color: "#CCCCCC"
  },
  1: {
    name: "启用",
    color: "#2CCA74"
  },
  2: {
    name: "停用",
    color: "#EB4E4E"
  }
}
// 学习进度 (1未学习 2未完成 3待考核 4未通过 5已完成)
export const LEARN_PROGRESS_OPTIONS = [
  {
    id: 1,
    label: "未学习",
    backgroundColor: "#EB4E4E"
  },
  {
    id: 2,
    label: "未完成",
    backgroundColor: "#E5E5E5"
  },
  {
    id: 3,
    label: "待考核",
    backgroundColor: "#FDB757"
  },
  {
    id: 4,
    label: "未通过",
    backgroundColor: "#EB4E4E"
  },
  {
    id: 5,
    label: "已完成",
    backgroundColor: "#2CCA74"
  }
]
// 任务状态( 0:未开始  1:进行中 2:已结束)
export const TASK_STATUS_OPTIONS = [
  {
    id: 0,
    label: "未开始",
    backgroundColor: "#EB4E4E"
  },
  {
    id: 1,
    label: "进行中",
    backgroundColor: "#FDB757"
  },
  {
    id: 2,
    label: "已结束",
    backgroundColor: "#8C8C8C"
  }
]
// 处罚
export const PUNISH_OPTIONS = [
  {
    label: "不处罚",
    id: "0",
    backgroundColor: "#8C8C8C"
  },
  {
    label: "未触发",
    id: "1",
    backgroundColor: "#FDB757"
  },
  {
    label: "处罚中",
    id: "2",
    backgroundColor: "#EB4E4E"
  },
  {
    label: "已结束",
    id: "3",
    backgroundColor: "#8C8C8C"
  }
]

// 学习进度 (1未学习 2未完成 3待考核 4未通过 5已完成)
// 完成标准(0无 1学习+考核)

// 活动状态
export const ACTIVITY_STATUS_OPTIONS = [
  {
    label: "进行中",
    id: "0",
    backgroundColor: "#FDB757"
  },
  {
    label: "已结束",
    id: "1",
    backgroundColor: "#8C8C8C"
  },
  {
    label: "即将开始",
    id: "2",
    backgroundColor: "#EB4E4E"
  }
]

// 活动状态
export const SCENETYPE_OPTIONS = [
  {
    label: "轻改",
    id: 0,
    backgroundColor: "#FDB757"
  },
  {
    label: "权益",
    id: 1,
    backgroundColor: "#8C8C8C"
  },
  {
    label: "延保",
    id: 2,
    backgroundColor: "#EB4E4E"
  }
]