diff --git a/src/pages/policyRegulation/policy/components/editDrawer.vue b/src/pages/policyRegulation/policy/components/editDrawer.vue index bb465a28c..7822f056f 100644 --- a/src/pages/policyRegulation/policy/components/editDrawer.vue +++ b/src/pages/policyRegulation/policy/components/editDrawer.vue @@ -834,7 +834,7 @@ export default { {type: 'string', max: 500, message: '备注不能超过500个字符', trigger: 'change'} ], },// 认证清单为否 的校验 - commentCycleDate2:'', + commentCycleDate2:[], pickerOptions: { shortcuts: [{ text: '最近一周', @@ -1111,26 +1111,7 @@ export default { if (this.sarLawsStandEO.isRelateAccess === '2') { rules = this.littleSarLawsStandRules } else { - const formFieldList = this.formFieldList rules = {...this.moreSarLawsStandRules} - formFieldList.forEach((item) => { - const rule = [] - if (item.isMust === '0') { - if (item.attrType === 'DATE_PICKER') { - rule.push({required: true, type: 'date', message: `${item.attrName}不能为空`, trigger: 'change'}) - } else if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') { - rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' }) - } else { - rule.push({ required: true, message: `${item.attrName}不能为空`, trigger: 'change' }) - } - } - if (item.attrLen && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS') { - rule.push({type: 'string', max: item.attrLen, message: `${item.attrName}不能超过${item.attrLen}个字符`, trigger: 'change'}) - } - if (rule.length > 0) { - rules[item.attrField] = rule - } - }) } this.$set(this, 'sarLawsStandRules', rules)