Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix some types missing when direct was e… (#8898)

* [Fix][UI Next][V1.0.0-Alpha] Fix some types missing when direct was export  in  sqoop task node.

* Fix][UI Next][V1.0.0-Alpha] Remove watch in use sqoop file.
3.0.0/version-upgrade
Amy0104 3 years ago committed by GitHub
parent
commit
8402367d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sqoop-source-type.ts
  2. 3
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sqoop-target-type.ts
  3. 7
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sqoop.ts

3
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sqoop-source-type.ts

@ -87,7 +87,8 @@ export function useSourceType(model: { [field: string]: any }): IJsonItem[] {
watch(
() => model.modelType,
(modelType: ModelType) => {
getSourceTypesByModelType(modelType)
sourceTypes.value = getSourceTypesByModelType(modelType)
model.sourceType = sourceTypes.value[0].value
}
)

3
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sqoop-target-type.ts

@ -92,7 +92,8 @@ export function useTargetType(model: { [field: string]: any }): IJsonItem[] {
watch(
() => [model.sourceType, model.srcQueryType],
([sourceType, srcQueryType]) => {
getTargetTypesBySourceType(sourceType, srcQueryType)
targetTypes.value = getTargetTypesBySourceType(sourceType, srcQueryType)
model.targetType = targetTypes.value[0].value
}
)

7
dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-sqoop.ts

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { watch, computed, unref } from 'vue'
import { computed, unref } from 'vue'
import { useI18n } from 'vue-i18n'
import { useCustomParams, useSourceType, useTargetType } from '.'
import type { IJsonItem, ModelType } from '../types'
@ -24,11 +24,6 @@ export function useSqoop(model: { [field: string]: any }): IJsonItem[] {
const customSpan = computed(() => (model.isCustomTask ? 24 : 0))
const unCustomSpan = computed(() => (model.isCustomTask ? 0 : 24))
watch(
() => model.srcQueryType,
() => {}
)
return [
{
type: 'switch',

Loading…
Cancel
Save