版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
languagejson
themeDJango
titleTrainEmployeeExam.meta.list.arrangeExam.json
linenumberstrue
{
    "actions": [{
        "key": "unlock_exam",
        "label": "解锁考试",
        "action": "CUSTOM_ACTION",
        "condition": "ITEM",
        "hide": false,
        "api": "train.employee.exam.unlock.exam",
        "params": "=function(){return {employee_exam_id:ITEM().id}}",
        "roles": [
            "cm-train"
        ]
    }]
}

如图所示:

培训班考试意外退出解锁方法:

在培训班学员界面,点击考试进度字段,穿透到考试界面,配置按钮解锁

{
    "actions": [{
        "key": "unlock_exam",
        "label": "解锁考试",
        "action": "CUSTOM_ACTION",
        "condition": "ITEM",
        "hide": false,
        "api": "train.employee.exam.unlock.exam",
        "params": "=function(){return {employee_exam_id:ITEM().id}}"
    }],
    "list_config": {
        "selector_type": 1
    }}

Image Added

Image Added

Image Added