update 联调在线编辑

This commit is contained in:
赵霄
2024-01-24 15:31:11 +08:00
parent dbd9ad5c72
commit b150393701
3 changed files with 10 additions and 7 deletions
@@ -209,14 +209,14 @@ export default {
/**
* 跳转在线编辑
*/
toOnlineEditor () {
async toOnlineEditor () {
// 获取参数(用于自动生成封面)
const params = this.$refs.baseInfoForm.getOnlineEditorParams()
// 校验必填字段(最后一个字段是企标编号)
const requiredField = ['implementation_date', 'release_date', 'standard_name', 'standard_number', 'espId']
const validateResult = this.$refs.baseInfoForm.validateFormByFields(requiredField)
if (validateResult) {
onlineEditor(params, this.onEditFile)
this.onEditFile = await onlineEditor(params, this.onEditFile)
}
}
}