From b414136dc7d47f6ec4125c9234a03ea2c2f7d097 Mon Sep 17 00:00:00 2001 From: zyn Date: Thu, 9 Nov 2023 16:00:21 +0800 Subject: [PATCH] =?UTF-8?q?78280=20=E5=9B=BD=E5=86=85=E5=A4=96=E6=94=BF?= =?UTF-8?q?=E7=AD=96-=E7=BC=96=E8=BE=91=E6=97=B6=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E7=BA=B3=E5=85=A5=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95-?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=98=AF-=E6=97=A0=E6=B3=95=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../policy/components/editDrawer.vue | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) 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)