Commit 5c1dde0b by chenwq

优化模版表单数据验证逻辑,仅在特定模版下处理 dayOffStatus 字段

1 parent 0afbd300
...@@ -122,6 +122,7 @@ Page({ ...@@ -122,6 +122,7 @@ 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')) {
...@@ -135,6 +136,7 @@ Page({ ...@@ -135,6 +136,7 @@ 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!