diff --git a/core/datacap-ui/src/model/source.ts b/core/datacap-ui/src/model/source.ts index b8602325..ca42e4dd 100644 --- a/core/datacap-ui/src/model/source.ts +++ b/core/datacap-ui/src/model/source.ts @@ -22,6 +22,7 @@ export interface SourceModel updateTime?: string configures?: Map schema?: any + code?: string } export class SourceRequest diff --git a/core/datacap-ui/src/views/pages/admin/dataset/DatasetInfo.vue b/core/datacap-ui/src/views/pages/admin/dataset/DatasetInfo.vue index 8474d6d7..fffa9bc0 100644 --- a/core/datacap-ui/src/views/pages/admin/dataset/DatasetInfo.vue +++ b/core/datacap-ui/src/views/pages/admin/dataset/DatasetInfo.vue @@ -360,7 +360,7 @@ export default defineComponent({ id: null, name: null as string | null | undefined, description: null as string | null | undefined, - query: null, + query: null as string | null, syncMode: 'MANUAL', columns: [] as any[], source: { id: null }, @@ -434,7 +434,7 @@ export default defineComponent({ DatasetService.saveOrUpdate(this.formState as unknown as DatasetModel) .then(response => { if (response.status) { - ToastUtils.success(`${ this.$t('dataset.tip.publishSuccess').replace('$VALUE', this.formState.name) }`) + ToastUtils.success(`${ this.$t('dataset.tip.publishSuccess').replace('$VALUE', this.formState.name as string) }`) this.$router.push('/admin/dataset') } })