736 更改必填项

This commit is contained in:
宋伟佳
2022-01-07 16:58:59 +08:00
parent b5a03548c7
commit c92f6b2590
@@ -2279,20 +2279,15 @@ export default {
synopsis: [ synopsis: [
{type: 'string', max: 1000, message: '文本说明不能超过1000个字符', trigger: 'change'} {type: 'string', max: 1000, message: '文本说明不能超过1000个字符', trigger: 'change'}
], ],
standYear: [ standEnName: [
{required: true, message: '标准年份不能为空', trigger: 'change'}, {required: true, message: '英文名称不能为空', trigger: 'change'},
// {validator: this.verify.testNumberCode, trigger: 'change'}, // {validator: this.verify.valiateEnName, trigger: 'blur'},
{type: 'string', max: 100, message: '标准年份不能超过100个字符', trigger: 'change'} {type: 'string', max: 500, message: '英文名称不能超过500个字符不', trigger: 'change'}
], ],
standName: [ standName: [
{required: false, message: '中文名称不能为空', trigger: 'change'}, {required: false, message: '中文名称不能为空', trigger: 'change'},
{type: 'string', max: 500, message: '中文名称不能超过500个字符', trigger: 'change'} {type: 'string', max: 500, message: '中文名称不能超过500个字符', trigger: 'change'}
], ],
standEnName: [
{required: false, message: '英文名称不能为空', trigger: 'change'},
{type: 'string', max: 500, message: '英文名称不能超过500个字符', trigger: 'change'}
// {validator: this.verify.valiateEnName, trigger: 'blur'}
],
textStatus: [ textStatus: [
{required: true, message: '文本状态不能为空', trigger: 'change'} {required: true, message: '文本状态不能为空', trigger: 'change'}
], ],
@@ -2858,8 +2853,6 @@ export default {
// 编辑标准属性 // 编辑标准属性
selectStandardPro(row, state) { selectStandardPro(row, state) {
// this.sarStandardsInfoEO.country=JSON.parse(item.country ); // this.sarStandardsInfoEO.country=JSON.parse(item.country );
// console.log(this.sarStandardsInfoEO.country);
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoUpdateById', {id: row.id}, { this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoUpdateById', {id: row.id}, {
_this: this _this: this
}, res => { }, res => {
@@ -4809,7 +4802,6 @@ export default {
}) })
// this.rules = rules // this.rules = rules
this.$set(this, 'sarStandardsInfoRules', rules) this.$set(this, 'sarStandardsInfoRules', rules)
setTimeout(() => { setTimeout(() => {
this.reloadAddForm = true this.reloadAddForm = true
}, 1000) }, 1000)
@@ -4893,6 +4885,7 @@ export default {
// rules.standState = [{required: true, message: '标准状态不能为空', trigger: 'change'}] // rules.standState = [{required: true, message: '标准状态不能为空', trigger: 'change'}]
rules.issueTime = [{required: false, message: '发布日期不能为空', trigger: 'change'}] rules.issueTime = [{required: false, message: '发布日期不能为空', trigger: 'change'}]
this.$set(this, 'sarStandardsInfoRules', rules) this.$set(this, 'sarStandardsInfoRules', rules)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.sarStandardsInfoForm.clearValidate() this.$refs.sarStandardsInfoForm.clearValidate()
}) })