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/25 14:15:13 UTC
[incubator-shardingsphere-benchmark] branch master updated:
feature[shadingsphere-benchmark-ui]: Optimize table display
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 f9e4842 feature[shadingsphere-benchmark-ui]: Optimize table display
new fbec58f Merge pull request #40 from wqzwh/master
f9e4842 is described below
commit f9e48425ae50353c48603ef680d849a6ec3d13e6
Author: wqzwh <wa...@163.com>
AuthorDate: Wed Dec 25 19:50:10 2019 +0800
feature[shadingsphere-benchmark-ui]: Optimize table display
---
shadingsphere-benchmark-ui/src/utils/mixin.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/shadingsphere-benchmark-ui/src/utils/mixin.js b/shadingsphere-benchmark-ui/src/utils/mixin.js
index 8b693fe..4b2e4d7 100644
--- a/shadingsphere-benchmark-ui/src/utils/mixin.js
+++ b/shadingsphere-benchmark-ui/src/utils/mixin.js
@@ -38,6 +38,7 @@ const mountedMixin = {
title: 'Table Description',
key: 'tableDescription',
render: (h, params) => {
+ if (params.row.tableDescription === 'None') return h('div', '-')
const rows = params.row.tableDescription.split('\n')
const html = []
for (const v of rows) {
@@ -51,6 +52,7 @@ const mountedMixin = {
align: 'center',
key: 'encryptRule',
render: (h, params) => {
+ if (params.row.encryptRule === 'None') return h('div', '-')
const rows = params.row.encryptRule.split('↵')
let html = ``
for (const v of rows) {
@@ -83,6 +85,7 @@ const mountedMixin = {
align: 'center',
key: 'masterSlaveRule',
render: (h, params) => {
+ if (params.row.masterSlaveRule === 'None') return h('div', '-')
const rows = params.row.masterSlaveRule.split('↵')
let html = ``
for (const v of rows) {
@@ -115,6 +118,7 @@ const mountedMixin = {
align: 'center',
key: 'shardingRule',
render: (h, params) => {
+ if (params.row.shardingRule === 'None') return h('div', '-')
const rows = params.row.shardingRule.split('↵')
let html = ``
for (const v of rows) {
@@ -146,6 +150,7 @@ const mountedMixin = {
title: 'SQL Example',
key: 'sqlExample',
render: (h, params) => {
+ if (params.row.sqlExample === 'None') return h('div', '-')
const rows = params.row.sqlExample.split('\n')
const html = []
for (const v of rows) {