From 2c25ff0577bb629782dbccc4503e4c9470c3570d Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Sun, 12 Dec 2021 15:50:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=A4=96=E7=BC=96=E8=BE=91=E7=9A=84?= =?UTF-8?q?=E5=85=B3=E8=81=94=E4=BF=A1=E6=81=AF=E5=8F=96=E6=B6=88=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../foreignStandardsAndRegulations/index.vue | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index 3a4691c0f..6b09c85cb 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -4609,23 +4609,23 @@ export default { rules.issueTime = [{required: false, message: '发布日期不能为空', trigger: 'change'}] } if (item.attrLen && item.attrType !== 'INPUT_NUM' && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'DATE_PIC_OPTS') { - if (item.attrField === 'DTBJH' || item.attrField === 'YYBJ') { - rule.push({type: 'string', max: 100, message: `${item.attrName}不能超过100个字符`, trigger: 'blur'}) - } else { - rule.push({ - type: 'string', - max: item.attrLen, - message: `${item.attrName}不能超过${item.attrLen}个字符`, - trigger: 'blur' - }) - } + // if (item.attrField === 'DTBJH' || item.attrField === 'YYBJ') { + // rule.push({type: 'string', max: 100, message: `${item.attrName}不能超过100个字符`, trigger: 'blur'}) + // } else { + // rule.push({ + // type: 'string', + // max: item.attrLen, + // message: `${item.attrName}不能超过${item.attrLen}个字符`, + // trigger: 'blur' + // }) + // } } if (item.attrField === 'DTBJH' || item.attrField === 'YYBJ' || item.attrField === 'BYYBJ' || item.attrField === 'CBBH' || item.attrField === 'DXBZ') { - if (item.attrField === 'CBBH') { - rule.push({type: 'string', validator: this.verify.validateStandardItemNoRepeat, trigger: 'blur'}) - } else { - rule.push({type: 'string', validator: this.verify.validateStandardItem, trigger: 'blur'}) - } + // if (item.attrField === 'CBBH') { + // rule.push({type: 'string', validator: this.verify.validateStandardItemNoRepeat, trigger: 'blur'}) + // } else { + // rule.push({type: 'string', validator: this.verify.validateStandardItem, trigger: 'blur'}) + // } } if (rule.length > 0) { // this.$set(this.rules, item.attrField, rule)