|
@@ -16,7 +16,7 @@
|
|
|
*/
|
|
|
import { ref, onMounted, watch } from 'vue'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
-import { useCustomParams, useDatasource } from '.'
|
|
|
+import {useCustomParams, useDatasource, useResources} from '.'
|
|
|
import type { IJsonItem } from '../types'
|
|
|
|
|
|
export function useDataX(model: { [field: string]: any }): IJsonItem[] {
|
|
@@ -103,6 +103,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
|
|
|
const otherStatementSpan = ref(22)
|
|
|
const jobSpeedSpan = ref(12)
|
|
|
const customParameterSpan = ref(0)
|
|
|
+ const useResourcesSpan = ref(0)
|
|
|
|
|
|
const initConstants = () => {
|
|
|
if (model.customConfig) {
|
|
@@ -113,6 +114,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
|
|
|
otherStatementSpan.value = 0
|
|
|
jobSpeedSpan.value = 0
|
|
|
customParameterSpan.value = 24
|
|
|
+ useResourcesSpan.value = 24
|
|
|
} else {
|
|
|
sqlEditorSpan.value = 24
|
|
|
jsonEditorSpan.value = 0
|
|
@@ -121,6 +123,8 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
|
|
|
otherStatementSpan.value = 22
|
|
|
jobSpeedSpan.value = 12
|
|
|
customParameterSpan.value = 0
|
|
|
+ useResourcesSpan.value = 0
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -167,6 +171,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] {
|
|
|
message: t('project.node.sql_empty_tips')
|
|
|
}
|
|
|
},
|
|
|
+ useResources(useResourcesSpan),
|
|
|
...useDatasource(model, {
|
|
|
typeField: 'dtType',
|
|
|
sourceField: 'dataTarget',
|