feat(X-Pack): [数据填报]表单绑定数据源需为必填
This commit is contained in:
parent
4fc92598b6
commit
fc1e4eb965
@ -671,6 +671,7 @@ export default {
|
||||
form_update_rule_none: 'Update Rules cannot be null',
|
||||
form_components_cannot_null: 'Form components cannot be null',
|
||||
option_list_cannot_empty: 'Option list cannot be empty',
|
||||
option_list_datasource_cannot_empty: 'Datasource Settings of option list cannot be empty',
|
||||
component_setting_error: 'Component setting error',
|
||||
table_name: 'Table',
|
||||
form_column: 'Form Column',
|
||||
|
||||
@ -671,6 +671,7 @@ export default {
|
||||
form_update_rule_none: '請配置更新規則',
|
||||
form_components_cannot_null: '請添加表單組件',
|
||||
option_list_cannot_empty: '選項值不能為空',
|
||||
option_list_datasource_cannot_empty: '選項值綁定數據源配置不能為空',
|
||||
component_setting_error: '組件設置錯誤',
|
||||
table_name: '數據庫表名',
|
||||
form_column: '表單字段',
|
||||
|
||||
@ -669,6 +669,7 @@ export default {
|
||||
form_update_rule_none: '请配置更新规则',
|
||||
form_components_cannot_null: '请添加表单组件',
|
||||
option_list_cannot_empty: '选项值不能为空',
|
||||
option_list_datasource_cannot_empty: '选项值绑定数据源配置不能为空',
|
||||
component_setting_error: '组件设置错误',
|
||||
table_name: '数据库表名',
|
||||
form_column: '表单字段',
|
||||
|
||||
@ -722,6 +722,18 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (f.settings.optionDatasource === undefined ||
|
||||
f.settings.optionTable === undefined ||
|
||||
f.settings.optionColumn === undefined) {
|
||||
this.selectItem(f.id)
|
||||
this.$message({
|
||||
message: this.$t('data_fill.form.option_list_datasource_cannot_empty'),
|
||||
type: 'error',
|
||||
showClose: true
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user