From cd31fb7a50839d4d0f493f8dac1f6e6a1429c08a Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Fri, 18 Mar 2022 20:58:39 +0800 Subject: [PATCH] add group for service list --- src/locales/lang/en.ts | 1 + src/locales/lang/zh.ts | 1 + src/types/dashboard.ts | 1 + .../widget/graph-styles/ServiceList.vue | 10 ++ src/views/dashboard/data.ts | 1 + src/views/dashboard/graphs/ServiceList.vue | 132 +++++++++++++----- 6 files changed, 110 insertions(+), 36 deletions(-) diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index a9950aea..306fdf5a 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -109,6 +109,7 @@ const msg = { showXAxis: "Show X Axis", showYAxis: "Show Y Axis", nameError: "The dashboard name cannot be duplicate", + showGroup: "Show Group", hourTip: "Select Hour", minuteTip: "Select Minute", secondTip: "Select Second", diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index 774b4e55..ecfdce28 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -109,6 +109,7 @@ const msg = { showXAxis: "显示X轴", showYAxis: "显示Y轴", nameError: "仪表板名称不能重复", + showGroup: "显示分组", hourTip: "选择小时", minuteTip: "选择分钟", secondTip: "选择秒数", diff --git a/src/types/dashboard.ts b/src/types/dashboard.ts index ebbeb0ef..eb70d285 100644 --- a/src/types/dashboard.ts +++ b/src/types/dashboard.ts @@ -107,6 +107,7 @@ export interface ServiceListConfig { type?: string; dashboardName: string; fontSize: number; + showGroup: boolean; } export interface InstanceListConfig { diff --git a/src/views/dashboard/configuration/widget/graph-styles/ServiceList.vue b/src/views/dashboard/configuration/widget/graph-styles/ServiceList.vue index 78df72d3..9c0caea7 100644 --- a/src/views/dashboard/configuration/widget/graph-styles/ServiceList.vue +++ b/src/views/dashboard/configuration/widget/graph-styles/ServiceList.vue @@ -13,6 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->