Commit dd9ec4a9 authored by 王波's avatar 王波

Merge branch 'b-template-component-taskConfig' into 'b-template-component'

模板任务标题

See merge request !27
parents 3c729c45 bba4334f
......@@ -24,7 +24,7 @@ const tasks = {
value:${configList[i].value || '""'},
taskRateType: ${configList[i].taskRateType ? `TASK_RATE_TYPE["${configList[i].taskRateType}"]`: '""'},
times:${configList[i].times || '""'},
title:"${configList[i].name || ''}",
title:"${configList[i].taskConfigMode === 'fixed' ? configList[i].name : ''}",
link:"",
itemIds:""
},` : '' %><% } %>
......
......@@ -28,7 +28,7 @@ export const isNumber = val => {
* @returns { boolean }
*/
export const validateRangeNumber = (number, [min, max] = [], fixed = 0) => {
let pattern = new RegExp(`^[0-9]+(\\.[0-9]{1,${fixed}})?$`);
let pattern = /`^[0-9]+(\\.[0-9]{1,${fixed}})?$`/;
// 判断空字符
if (typeof number === 'string' && !number.trim()) return false
......
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