bug: 国内标准,编辑页面,标准编号输入@没有出现格式校验和字符限制
This commit is contained in:
@@ -1433,10 +1433,10 @@ export default {
|
|||||||
assemClassOptions: [], // 总成分类下拉框
|
assemClassOptions: [], // 总成分类下拉框
|
||||||
qcdwOptions: [], // 起草单位
|
qcdwOptions: [], // 起草单位
|
||||||
nylxOptions: [], // 能源类型
|
nylxOptions: [], // 能源类型
|
||||||
sycpxOptions: [], // 适用产品线
|
// sycpxOptions: [], // 适用产品线
|
||||||
syzrOptions: [], // 适用认证
|
syzrOptions: [], // 适用认证
|
||||||
zrbmOptions: [], // 责任部门
|
// zrbmOptions: [], // 责任部门
|
||||||
zrgcsOptions: [], // 责任工程师
|
// zrgcsOptions: [], // 责任工程师
|
||||||
standAttributeList: [],
|
standAttributeList: [],
|
||||||
sarStandardsSearch: {
|
sarStandardsSearch: {
|
||||||
page: 1,
|
page: 1,
|
||||||
@@ -1466,7 +1466,7 @@ export default {
|
|||||||
standNature: '', // 标准性质
|
standNature: '', // 标准性质
|
||||||
putTime: '', // 实施日期
|
putTime: '', // 实施日期
|
||||||
isRelateAccess: '', // 是否纳入标准清单
|
isRelateAccess: '', // 是否纳入标准清单
|
||||||
nameShow: '', // 我司参与深度
|
// nameShow: '', // 我司参与深度
|
||||||
qcdw: '', // 起草单位
|
qcdw: '', // 起草单位
|
||||||
nameShow: '', // 归口管理部门
|
nameShow: '', // 归口管理部门
|
||||||
ZCCTime: '', // 在产车实施日期
|
ZCCTime: '', // 在产车实施日期
|
||||||
@@ -1772,10 +1772,10 @@ export default {
|
|||||||
{required: true, message: '中文名称不能为空', trigger: 'change'},
|
{required: true, message: '中文名称不能为空', trigger: 'change'},
|
||||||
{type: 'string', max: 500, message: '中文名称不能超过500个字符', trigger: 'change'}
|
{type: 'string', max: 500, message: '中文名称不能超过500个字符', trigger: 'change'}
|
||||||
],
|
],
|
||||||
// standEnName: [
|
standEnName: [
|
||||||
// {required: true, message: '英文名称不能为空', trigger: 'change'},
|
{required: false, message: '英文名称不能为空', trigger: 'change'},
|
||||||
// {type: 'string', max: 1000, message: '英文名称不能超过1000个字符', trigger: 'change'}
|
{type: 'string', max: 500, message: '英文名称不能超过500个字符', trigger: 'change'}
|
||||||
// ],
|
],
|
||||||
// isRelateAccess: [
|
// isRelateAccess: [
|
||||||
// { required: true, message: '重要度不能为空', trigger: 'change' }
|
// { required: true, message: '重要度不能为空', trigger: 'change' }
|
||||||
// ],
|
// ],
|
||||||
@@ -1793,7 +1793,7 @@ export default {
|
|||||||
standNumber: [
|
standNumber: [
|
||||||
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
|
{required: true, type: 'string', message: '标准编号不能为空', trigger: 'change'},
|
||||||
{type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'},
|
{type: 'string', max: 100, message: '标准编号不能超过100个字符', trigger: 'change'},
|
||||||
{type: 'string', validator: this.verify.validateStandardItem, trigger: 'change'}
|
{ validator: this.verify.validateStandardItem, trigger: 'change'}
|
||||||
],
|
],
|
||||||
standYear: [
|
standYear: [
|
||||||
{required: true, message: '标准年份不能为空', trigger: 'change'},
|
{required: true, message: '标准年份不能为空', trigger: 'change'},
|
||||||
@@ -1805,7 +1805,7 @@ export default {
|
|||||||
{type: 'string', max: 500, message: '标准名称不能超过500个字符', trigger: 'change'}
|
{type: 'string', max: 500, message: '标准名称不能超过500个字符', trigger: 'change'}
|
||||||
],
|
],
|
||||||
standEnName: [
|
standEnName: [
|
||||||
{type: 'string', max: 1000, message: '标准英文名称不能超过1000个字符', trigger: 'change'},
|
{type: 'string', max: 500, message: '标准英文名称不能超过500个字符', trigger: 'change'},
|
||||||
{validator: this.verify.valiateEnName, trigger: 'blur'}
|
{validator: this.verify.valiateEnName, trigger: 'blur'}
|
||||||
],
|
],
|
||||||
synopsis: [
|
synopsis: [
|
||||||
@@ -2266,6 +2266,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
Promise.all([this.queryDisplayLocation()]).then((values) => {
|
Promise.all([this.queryDisplayLocation()]).then((values) => {
|
||||||
const [displayLocation] = values
|
const [displayLocation] = values
|
||||||
|
console.log(this.formFieldList, 'assssssssssss')
|
||||||
const formFieldList = this.formFieldList
|
const formFieldList = this.formFieldList
|
||||||
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
|
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
|
||||||
if(this.sarStandardsInfoEO.standSystem){
|
if(this.sarStandardsInfoEO.standSystem){
|
||||||
@@ -4110,10 +4111,14 @@ export default {
|
|||||||
rules.issueTime = [{required: false, message: '发布日期不能为空', trigger: 'change'}]
|
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.attrLen && item.attrType !== 'INPUT_NUM' && item.attrType !== 'DATE_PICKER' && item.attrType !== 'SEL_OPTION' && item.attrType !== 'SEL_OPTS' && item.attrType !== 'DATE_PIC_OPTS') {
|
||||||
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') {
|
if (item.attrField === 'DTBJH' || item.attrField === 'YYBJ' || item.attrField === 'BYYBJ' || item.attrField === 'CBBH') {
|
||||||
rule.push({type: 'string', validator: this.verify.validateStandardItem, trigger: 'blur'})
|
rule.push({ validator: this.verify.validateStandardItem, trigger: 'blur'})
|
||||||
}
|
}
|
||||||
if (rule.length > 0) {
|
if (rule.length > 0) {
|
||||||
rules[item.attrField] = rule
|
rules[item.attrField] = rule
|
||||||
|
|||||||
Reference in New Issue
Block a user