Commit 0afbd300 by chenwq

优化模版表单数据验证逻辑,简化对 dayOffStatus 的处理

1 parent 37de2abf
...@@ -122,7 +122,6 @@ Page({ ...@@ -122,7 +122,6 @@ Page({
} }
const pAttrList = Object.keys(allRuleObj) const pAttrList = Object.keys(allRuleObj)
console.log(tmlpCode, 'pAttrList---') console.log(tmlpCode, 'pAttrList---')
if (tmlpCode == 'uuid-temp-001') {
pAttrList.forEach(pAttrItem => { pAttrList.forEach(pAttrItem => {
tmlpObj[pAttrItem].forEach(item => { tmlpObj[pAttrItem].forEach(item => {
if (!item.name.includes('dayOffStatus')) { if (!item.name.includes('dayOffStatus')) {
...@@ -136,7 +135,6 @@ Page({ ...@@ -136,7 +135,6 @@ Page({
} }
}) })
}) })
}
console.log(tmlpObj, attr) console.log(tmlpObj, attr)
this.setData({ this.setData({
tmlpObj tmlpObj
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!