// 国内英文名称不必填 国外必填
This commit is contained in:
@@ -1489,7 +1489,7 @@
|
|||||||
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }
|
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
standEnName: [
|
standEnName: [
|
||||||
{ required: true, message: '请输入标准英文名称', trigger: 'blur' },
|
{ required: false, message: '请输入标准英文名称', trigger: 'blur' },
|
||||||
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }
|
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
standNature: [
|
standNature: [
|
||||||
@@ -1557,6 +1557,14 @@
|
|||||||
handler: function(val) {
|
handler: function(val) {
|
||||||
this.verifySarStandard = false
|
this.verifySarStandard = false
|
||||||
this.standardSearchForm.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
this.standardSearchForm.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||||
|
|
||||||
|
// 国内英文名称不必填 国外必填
|
||||||
|
if(this.form.standInData === '1'){
|
||||||
|
this.rules.standEnName[0].required=true;
|
||||||
|
}else {
|
||||||
|
this.rules.standEnName[0].required=false;
|
||||||
|
}
|
||||||
|
|
||||||
//切换清空表单
|
//切换清空表单
|
||||||
this.form= {
|
this.form= {
|
||||||
// 基础信息
|
// 基础信息
|
||||||
|
|||||||
Reference in New Issue
Block a user