This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 06ac176f6c5863c719c0e664c268ba1da17f4de8
Author: Qian Xia <lauraxiaq...@gmail.com>
AuthorDate: Wed Jul 5 17:25:51 2023 +0800

    KYLIN-5613 same time format
---
 kystudio/src/components/query/query_history_table.vue | 6 +++---
 kystudio/src/components/query/query_result.vue        | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/kystudio/src/components/query/query_history_table.vue 
b/kystudio/src/components/query/query_history_table.vue
index 5c0fdae5a2..7e5408bf46 100644
--- a/kystudio/src/components/query/query_history_table.vue
+++ b/kystudio/src/components/query/query_history_table.vue
@@ -90,15 +90,15 @@
                               @click.stop="toggleDetail(step.name)"></i>
                           </el-col>
                           <el-col :span="4">
-                            <span class="step-duration ksd-fright" 
:class="{'font-medium': index === 0, 'sub-step': ['PREPARATION', 
'JOB_EXECUTION'].includes(step.group)}">{{Math.round(step.duration / 1000 * 
100) / 100}}s</span>
+                            <span class="step-duration ksd-fright" 
:class="{'font-medium': index === 0, 'sub-step': ['PREPARATION', 
'JOB_EXECUTION'].includes(step.group)}">{{step.duration / 1000 | 
fixed(2)}}s</span>
                           </el-col>
                           <el-col :span="6" 
v-if="props.row.query_steps&&props.row.query_steps[0].duration>0">
                             <el-progress :stroke-width="6" 
:percentage="getProgress(step.duration, props.row.query_steps[0].duration)" 
color="#A6D6F6" :show-text="false"></el-progress>
                           </el-col>
                         </el-row>
-                        <span slot="reference" 
class="duration">{{Math.round(props.row.duration / 1000 * 100) / 100}}s</span>
+                        <span slot="reference" 
class="duration">{{props.row.duration / 1000 | fixed(2)}}s</span>
                       </el-popover>
-                      <span v-else>{{Math.round(props.row.duration / 1000 * 
100) / 100}}s</span>
+                      <span v-else>{{props.row.duration / 1000 | 
fixed(2)}}s</span>
                     </span>
                   </p>
                   <template v-if="props.row.query_status === 'SUCCEEDED'">
diff --git a/kystudio/src/components/query/query_result.vue 
b/kystudio/src/components/query/query_result.vue
index b59e864d7b..c091bb7445 100644
--- a/kystudio/src/components/query/query_result.vue
+++ b/kystudio/src/components/query/query_result.vue
@@ -73,16 +73,16 @@
                       <i class="el-icon-ksd-more_01" :class="{'up': 
isShowDetail}" v-if="step.name==='PREPARATION'" @click.stop="isShowDetail = 
!isShowDetail"></i>
                     </el-col>
                     <el-col :span="4">
-                      <span class="step-duration ksd-fright" 
:class="{'font-medium': index === 0, 'sub-step': step.group === 
'PREPARATION'}">{{Math.round(step.duration / 1000 * 100) / 100}}s</span>
+                      <span class="step-duration ksd-fright" 
:class="{'font-medium': index === 0, 'sub-step': step.group === 
'PREPARATION'}">{{step.duration / 1000 | fixed(2) }}s</span>
                     </el-col>
                     <el-col :span="6" 
v-if="querySteps&&querySteps[0].duration>0">
                       <el-progress :stroke-width="6" 
:percentage="getProgress(step.duration, querySteps[0].duration)" 
color="#A6D6F6" :show-text="false"></el-progress>
                     </el-col>
                   </el-row>
-                  <span slot="reference" 
class="duration">{{Math.round(extraoption.duration / 1000 * 
100)/100||0.00}}s</span>
+                  <span slot="reference" 
class="duration">{{extraoption.duration / 1000 | fixed(2)}}s</span>
                 </el-popover>
               </span>
-              <span class="text" v-else>{{Math.round(extraoption.duration / 
1000 * 100) / 100 || 0.00}}s</span>
+              <span class="text" v-else>{{extraoption.duration / 1000 | 
fixed(2)}}s</span>
             </p>
             <p class="resultText" v-if="!extraoption.pushDown">
               <span class="label">{{$t('kylinLang.query.total_scan_count')}}: 
</span>

Reply via email to