Skip to content

Commit ac266ec

Browse files
authored
Fix host being null, causing the list to not be displayed (#4718)
1 parent adac9c1 commit ac266ec

File tree

2 files changed

+4
-4
lines changed
  • dolphinscheduler-ui/src/js/conf/home/pages/projects/pages

2 files changed

+4
-4
lines changed

Diff for: dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<th scope="col" style="min-width: 135px">
5656
<span>{{$t('Executor')}}</span>
5757
</th>
58-
<th scope="col" :style="{'min-width': ((Math.max(list.length && list[0].host.length, 22) + 40) * 6) + 'px'}">
58+
<th scope="col" style="max-width: 600px">
5959
<span>{{$t('host')}}</span>
6060
</th>
6161
<th scope="col" style="min-width: 230px">
@@ -93,7 +93,7 @@
9393
<span v-if="item.executorName">{{item.executorName}}</span>
9494
<span v-else>-</span>
9595
</td>
96-
<td><span>{{item.host || '-'}}</span></td>
96+
<td style="max-width: 600px"><span style="padding-right: 5px">{{item.host || '-'}}</span></td>
9797
<td style="z-index: inherit;">
9898
<div v-show="item.disabled">
9999
<x-button type="info"

Diff for: dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<th scope="col" style="min-width: 130px">
4747
<span>{{$t('End Time')}}</span>
4848
</th>
49-
<th scope="col" :style="{'min-width': (Math.max(list.length && list[0].host.length, 22) * 6) + 'px'}">
49+
<th scope="col" style="max-width: 600px">
5050
<span>{{$t('host')}}</span>
5151
</th>
5252
<th scope="col" style="min-width: 70px">
@@ -87,7 +87,7 @@
8787
<span v-if="item.endTime">{{item.endTime | formatDate}}</span>
8888
<span v-else>-</span>
8989
</td>
90-
<td><span>{{item.host || '-'}}</span></td>
90+
<td style="max-width: 600px"><span style="padding-right: 5px">{{item.host || '-'}}</span></td>
9191
<td><span>{{item.duration}}</span></td>
9292
<td><span>{{item.retryTimes}}</span></td>
9393
<td>

0 commit comments

Comments
 (0)