@@ -136,43 +136,49 @@ function formattedProp(propName: keyof typeof NodeProp) {
136
136
</td >
137
137
<td
138
138
class =" text-end grid-progress-cell text-nowrap"
139
- v-if =" node[NodeProp.IO_READ_TIME] "
139
+ v-if =" columns.includes('ioread') "
140
140
v-tippy =" { content: ioTooltip, allowHTML: true }"
141
141
>
142
- <GridProgressBar
143
- :percentage ="
144
- (node[NodeProp.EXCLUSIVE_IO_READ_TIME] /
145
- (plan.content.Plan[NodeProp.IO_READ_TIME] +
146
- plan.content.Plan[NodeProp.IO_WRITE_TIME])) *
147
- 100
148
- "
149
- ></GridProgressBar >
150
- {{ Math.round(node[NodeProp.EXCLUSIVE_IO_READ_TIME]).toLocaleString() }}
151
- <div v-if =" showDetails" class =" small text-body-secondary" >
152
- {{ duration(node[NodeProp.EXCLUSIVE_IO_READ_TIME]) }}
153
- <br />
154
- {{ transferRate(node[NodeProp.AVERAGE_IO_READ_SPEED]) }}
155
- </div >
142
+ <template v-if =" node [NodeProp .IO_READ_TIME ]" >
143
+ <GridProgressBar
144
+ :percentage ="
145
+ (node[NodeProp.EXCLUSIVE_IO_READ_TIME] /
146
+ (plan.content.Plan[NodeProp.IO_READ_TIME] +
147
+ plan.content.Plan[NodeProp.IO_WRITE_TIME])) *
148
+ 100
149
+ "
150
+ ></GridProgressBar >
151
+ {{ Math.round(node[NodeProp.EXCLUSIVE_IO_READ_TIME]).toLocaleString() }}
152
+ <div v-if =" showDetails" class =" small text-body-secondary" >
153
+ {{ duration(node[NodeProp.EXCLUSIVE_IO_READ_TIME]) }}
154
+ <br />
155
+ {{ transferRate(node[NodeProp.AVERAGE_IO_READ_SPEED]) }}
156
+ </div >
157
+ </template >
156
158
</td >
157
159
<td
158
160
class =" text-end grid-progress-cell text-nowrap"
159
- v-if =" node[NodeProp.IO_WRITE_TIME] "
161
+ v-if =" columns.includes('iowrite') "
160
162
v-tippy =" { content: ioTooltip, allowHTML: true }"
161
163
>
162
- <GridProgressBar
163
- :percentage ="
164
- (node[NodeProp.EXCLUSIVE_IO_WRITE_TIME] /
165
- (plan.content.Plan[NodeProp.IO_READ_TIME] +
166
- plan.content.Plan[NodeProp.IO_WRITE_TIME])) *
167
- 100
168
- "
169
- ></GridProgressBar >
170
- {{ Math.round(node[NodeProp.EXCLUSIVE_IO_WRITE_TIME]).toLocaleString() }}
171
- <div v-if =" showDetails" class =" small text-body-secondary" >
172
- {{ duration(node[NodeProp.EXCLUSIVE_IO_WRITE_TIME]) }}
173
- <br />
174
- {{ transferRate(node[NodeProp.AVERAGE_IO_WRITE_SPEED]) }}
175
- </div >
164
+ <template v-if =" node [NodeProp .IO_WRITE_TIME ]" >
165
+ <GridProgressBar
166
+ :percentage ="
167
+ (node[NodeProp.EXCLUSIVE_IO_WRITE_TIME] /
168
+ (plan.content.Plan[NodeProp.IO_READ_TIME] +
169
+ plan.content.Plan[NodeProp.IO_WRITE_TIME])) *
170
+ 100
171
+ "
172
+ ></GridProgressBar >
173
+ {{
174
+ Math.round(node[NodeProp.EXCLUSIVE_IO_WRITE_TIME]).toLocaleString()
175
+ }}
176
+ <div v-if =" showDetails" class =" small text-body-secondary" >
177
+ {{ duration(node[NodeProp.EXCLUSIVE_IO_WRITE_TIME]) }}
178
+ <br />
179
+ {{ transferRate(node[NodeProp.AVERAGE_IO_WRITE_SPEED]) }}
180
+ </div >
181
+ </template >
176
182
</td >
177
183
<td
178
184
class =" text-end grid-progress-cell text-nowrap"
0 commit comments