update 在线编辑调试

This commit is contained in:
赵霄
2024-01-23 16:47:14 +08:00
parent 5b91dbab19
commit f2bcb2ad89
4 changed files with 41 additions and 31 deletions
@@ -35,7 +35,7 @@
:standard-number="formInline.standard_number"
:searchParam="{projectStatus: 1}"
@listChange="listChange"
:disabled="disabled"/>
:disabled="disabled" />
</a-form-model-item>
</div>
<!--
@@ -201,6 +201,7 @@ import StandardSelection from '@/components/selection/StandardSelection'
import UploadFile from '@/components/UploadFile'
import EnterprisePlanSelection from '@/components/selection/EnterprisePlanSelection'
import TreeSelection from '@/components/selection/TreeSelection'
import error from '../../../result/Error'
export default {
name: 'BaseInfoForm',
@@ -680,6 +681,20 @@ export default {
standard_name: this.formInline.standard_name, // 标准名称
standard_english_name: this.formInline.standard_english_name // 标准英文名称
}
},
/**
* 校验部分字段
* @param fields
*/
validateFormByFields (fields) {
const resultList = []
this.$refs.ruleForm.validateField(fields, (error) => {
resultList.push(error)
})
if (resultList.every(tt => !tt)) {
return true
}
return false
}
}
}