|
|
@@ -21,7 +21,8 @@ export default {
|
|
|
formValues: {
|
|
|
title: '',
|
|
|
description: '',
|
|
|
- created_by: '',
|
|
|
+ data_source: '',
|
|
|
+ created_by: this.$store.getters.userInfo?.username || '',
|
|
|
extracted_domains: [],
|
|
|
extracted_fields: [],
|
|
|
extraction_purpose: ''
|
|
|
@@ -46,6 +47,13 @@ export default {
|
|
|
dense: true,
|
|
|
hideDetails: 'auto'
|
|
|
},
|
|
|
+ {
|
|
|
+ type: 'text',
|
|
|
+ key: 'data_source',
|
|
|
+ label: '输出数据源',
|
|
|
+ outlined: true,
|
|
|
+ dense: true
|
|
|
+ },
|
|
|
{
|
|
|
type: 'textarea',
|
|
|
key: 'description',
|
|
|
@@ -77,6 +85,7 @@ export default {
|
|
|
this.formValues = {
|
|
|
title: this.itemData.title || '',
|
|
|
description: this.itemData.description || '',
|
|
|
+ data_source: this.itemData.data_source || '',
|
|
|
extracted_domains: this.itemData.extracted_domains || [],
|
|
|
extracted_fields: this.itemData.extracted_fields || [],
|
|
|
extraction_purpose: this.itemData.extraction_purpose || ''
|
|
|
@@ -91,7 +100,8 @@ export default {
|
|
|
const params = {
|
|
|
title: this.formValues.title,
|
|
|
description: this.formValues.description,
|
|
|
- created_by: this.formValues.created_by
|
|
|
+ created_by: this.formValues.created_by,
|
|
|
+ data_source: this.formValues.data_source
|
|
|
}
|
|
|
return this.itemData.id ? this.formValues : params
|
|
|
}
|