Commit 74221579 authored by 杨梦雅's avatar 杨梦雅

任务配置

parent 97b155f9
...@@ -21,11 +21,12 @@ var validator = new schema(descriptor) ...@@ -21,11 +21,12 @@ var validator = new schema(descriptor)
const tasks = { const tasks = {
<% for(var i = 0; i < configList.length; ++i) {%> <% for(var i = 0; i < configList.length; ++i) {%>
<%- taskKeys.includes(configList[i].key) && configList[i].key !== 'label' ? `${configList[i].key}:{ <%- taskKeys.includes(configList[i].key) && configList[i].key !== 'label' ? `${configList[i].key}:{
value:"", value:${configList[i].value || ''},
taskRateType:"", taskRateType:"${configList[i].taskRateType ? TASK_RATE_TYPE[configList[i].taskRateType]: ''}
times:"", times:${configList[i].times || ''},
title:"", title:${configList[i].title || ''},
link:"" link:"",
itemIds:""
},` : '' %><% } %> },` : '' %><% } %>
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment