78280 国内外政策-编辑时是否纳入认证清单-选择是-无法提交
This commit is contained in:
@@ -834,7 +834,7 @@ export default {
|
|||||||
{type: 'string', max: 500, message: '备注不能超过500个字符', trigger: 'change'}
|
{type: 'string', max: 500, message: '备注不能超过500个字符', trigger: 'change'}
|
||||||
],
|
],
|
||||||
},// 认证清单为否 的校验
|
},// 认证清单为否 的校验
|
||||||
commentCycleDate2:'',
|
commentCycleDate2:[],
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
shortcuts: [{
|
shortcuts: [{
|
||||||
text: '最近一周',
|
text: '最近一周',
|
||||||
@@ -1111,26 +1111,7 @@ export default {
|
|||||||
if (this.sarLawsStandEO.isRelateAccess === '2') {
|
if (this.sarLawsStandEO.isRelateAccess === '2') {
|
||||||
rules = this.littleSarLawsStandRules
|
rules = this.littleSarLawsStandRules
|
||||||
} else {
|
} else {
|
||||||
const formFieldList = this.formFieldList
|
|
||||||
rules = {...this.moreSarLawsStandRules}
|
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)
|
this.$set(this, 'sarLawsStandRules', rules)
|
||||||
|
|||||||
Reference in New Issue
Block a user