You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2019/12/13 07:29:16 UTC

[incubator-shardingsphere-benchmark] branch master updated: feature[shadingsphere-benchmark-ui]: support for new fileds #34

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 789736c  feature[shadingsphere-benchmark-ui]: support for new fileds #34
     new 3ea9829  Merge pull request #35 from wqzwh/master
789736c is described below

commit 789736c3911697913a44e020d592de414a341629
Author: wqzwh <wa...@163.com>
AuthorDate: Fri Dec 13 15:24:53 2019 +0800

    feature[shadingsphere-benchmark-ui]: support for new fileds #34
---
 shadingsphere-benchmark-ui/src/utils/mixin.js | 34 +++++++++++++++++++++++----
 1 file changed, 30 insertions(+), 4 deletions(-)

diff --git a/shadingsphere-benchmark-ui/src/utils/mixin.js b/shadingsphere-benchmark-ui/src/utils/mixin.js
index 05ffeaa..e5295cc 100644
--- a/shadingsphere-benchmark-ui/src/utils/mixin.js
+++ b/shadingsphere-benchmark-ui/src/utils/mixin.js
@@ -34,10 +34,34 @@ const mountedMixin = {
           key: 'tableDescription'
         },
         {
-          title: 'scene description',
-          key: 'sceneDescription',
+          title: 'encrypt rule',
+          key: 'encryptRule',
           render: (h, params) => {
-            const rows = params.row.sceneDescription.split('\n')
+            const rows = params.row.encryptRule.split('\n')
+            const html = []
+            for (const v of rows) {
+              html.push(h('div', v))
+            }
+            return h('div', html)
+          }
+        },
+        {
+          title: 'master slaveRule',
+          key: 'masterSlaveRule',
+          render: (h, params) => {
+            const rows = params.row.masterSlaveRule.split('\n')
+            const html = []
+            for (const v of rows) {
+              html.push(h('div', v))
+            }
+            return h('div', html)
+          }
+        },
+        {
+          title: 'sharding rule',
+          key: 'shardingRule',
+          render: (h, params) => {
+            const rows = params.row.shardingRule.split('\n')
             const html = []
             for (const v of rows) {
               html.push(h('div', v))
@@ -119,8 +143,10 @@ const mountedMixin = {
             if (k !== m) {
               desc[k] = {
                 mysqlVerison: sourceData[m]['mysqlVerison'],
+                encryptRule: sourceData[m]['encryptRule'],
+                masterSlaveRule: sourceData[m]['masterSlaveRule'],
+                shardingRule: sourceData[m]['shardingRule'],
                 tableDescription: sourceData[m]['tableDescription'],
-                sceneDescription: sourceData[m]['sceneDescription'],
                 sqlExample: sourceData[m][k].SqlExample
               }
             }