Browse Source

fix offline workflow error (#16330)

dev
xiangzihao 5 months ago committed by GitHub
parent
commit
f54b8d31fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      dolphinscheduler-ui/src/layouts/content/use-dataList.ts
  2. 2
      dolphinscheduler-ui/src/locales/en_US/about.ts
  3. 2
      dolphinscheduler-ui/src/locales/en_US/index.ts
  4. 2
      dolphinscheduler-ui/src/locales/zh_CN/index.ts
  5. 12
      dolphinscheduler-ui/src/views/about/index.tsx
  6. 10
      dolphinscheduler-ui/src/views/projects/components/dependencies/use-dependencies.ts

2
dolphinscheduler-ui/src/layouts/content/use-dataList.ts

@ -364,7 +364,7 @@ export function useDataList() {
{
label: t('user_dropdown.about'),
key: 'about',
icon: renderIcon(SelectOutlined),
icon: renderIcon(SelectOutlined)
},
{
label: t('user_dropdown.logout'),

2
dolphinscheduler-ui/src/locales/en_US/about.ts

@ -18,4 +18,4 @@
export default {
about: 'About',
about_version: 'Product Version'
}
}

2
dolphinscheduler-ui/src/locales/en_US/index.ts

@ -32,7 +32,7 @@ import security from '@/locales/en_US/security'
import theme from '@/locales/en_US/theme'
import user_dropdown from '@/locales/en_US/user-dropdown'
import ui_setting from '@/locales/en_US/ui_setting'
import about from "@/locales/en_US/about";
import about from '@/locales/en_US/about'
export default {
login,

2
dolphinscheduler-ui/src/locales/zh_CN/index.ts

@ -32,7 +32,7 @@ import security from '@/locales/zh_CN/security'
import theme from '@/locales/zh_CN/theme'
import user_dropdown from '@/locales/zh_CN/user-dropdown'
import ui_setting from '@/locales/zh_CN/ui_setting'
import about from "@/locales/zh_CN/about";
import about from '@/locales/zh_CN/about'
export default {
login,

12
dolphinscheduler-ui/src/views/about/index.tsx

@ -16,7 +16,7 @@
*/
import { useI18n } from 'vue-i18n'
import { defineComponent, onMounted, ref} from 'vue'
import { defineComponent, onMounted, ref } from 'vue'
import Card from '@/components/card'
import { NSpace } from 'naive-ui'
import { queryProductInfo } from '@/service/modules/ui-plugins'
@ -30,7 +30,7 @@ const about = defineComponent({
if (!productInfo) throw Error()
info.value = productInfo.version
}
onMounted( () => {
onMounted(() => {
queryProduct()
})
@ -41,13 +41,11 @@ const about = defineComponent({
const { info } = this
return (
<div>
<Card
title={t('about.about')}
>
<Card title={t('about.about')}>
<NSpace vertical>
<NSpace align='center' >
<NSpace align='center'>
<span>{t('about.about_version')}</span>
<div>{ info }</div>
<div>{info}</div>
</NSpace>
</NSpace>
</Card>

10
dolphinscheduler-ui/src/views/projects/components/dependencies/use-dependencies.ts

@ -110,8 +110,14 @@ export function useDependencies() {
if (workflowCode && projectCode) {
await queryDependentTasks(projectCode, dependentTaskReq).then(
(res: any) => {
res
.filter((item: any) => item.processDefinitionCode !== workflowCode)
res.data
.filter((item: any) => {
if (item.processDefinitionCode) {
return item.processDefinitionCode !== workflowCode
} else {
return false
}
})
.forEach((item: any) => {
dependentTaskLinks.push({
text:

Loading…
Cancel
Save