You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by me...@apache.org on 2020/09/23 07:48:59 UTC

[shardingsphere-ui] branch master updated: Optimize scaling finish percentage page. (#22)

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

menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 05733ae  Optimize scaling finish percentage page. (#22)
05733ae is described below

commit 05733ae1cb81b9e9ac6f26da3181ea8967198d98
Author: 邱鹿 Lucas <lu...@163.com>
AuthorDate: Wed Sep 23 15:48:49 2020 +0800

    Optimize scaling finish percentage page. (#22)
    
    Co-authored-by: qiulu3 <Lucas209910>
---
 shardingsphere-ui-frontend/src/views/data-scaling/module/index.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shardingsphere-ui-frontend/src/views/data-scaling/module/index.vue b/shardingsphere-ui-frontend/src/views/data-scaling/module/index.vue
index 76f6822..94b6186 100644
--- a/shardingsphere-ui-frontend/src/views/data-scaling/module/index.vue
+++ b/shardingsphere-ui-frontend/src/views/data-scaling/module/index.vue
@@ -540,8 +540,9 @@ export default {
       let data = 0
       if (obj.estimatedRows) {
         data = obj.syncedRows / obj.estimatedRows
+        return nDecimal(data, 2) * 100
       }
-      return data
+      return 100
     },
     getOption(obj) {
       let data = 0