78280 国内外政策-编辑时是否纳入认证清单-选择是-无法提交

This commit is contained in:
zyn
2023-11-09 16:00:21 +08:00
parent aeb3667673
commit b414136dc7
@@ -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)