From 470945e9d7644d9b2a9b69ba8a2f20b44859d61c Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 17 Nov 2022 10:21:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E4=BD=9C=E5=8F=B0UI=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1010739 --user=郭雨琦 https://www.tapd.cn/55049933/prong/stories/view/1155049933001010739 --- .../src/business/app-layout/index.vue | 1 + .../src/components/MsBorderPieChart.vue | 223 +++++++++++++++++- .../frontend/src/components/chart/MsChart.vue | 1 + .../frontend/src/i18n/lang/en-US.js | 6 +- .../frontend/src/i18n/lang/zh-CN.js | 6 +- .../frontend/src/i18n/lang/zh-TW.js | 6 +- .../frontend/src/business/issue/IssueList.vue | 7 + 7 files changed, 235 insertions(+), 15 deletions(-) diff --git a/framework/sdk-parent/frontend/src/business/app-layout/index.vue b/framework/sdk-parent/frontend/src/business/app-layout/index.vue index 2ffb6ee606..53df795fa3 100644 --- a/framework/sdk-parent/frontend/src/business/app-layout/index.vue +++ b/framework/sdk-parent/frontend/src/business/app-layout/index.vue @@ -275,6 +275,7 @@ export default { .ms-aside-right { flex: 1; height: calc(100vh); + background-color: #F5F6F7; } .ms-right-fixed { diff --git a/framework/sdk-parent/frontend/src/components/MsBorderPieChart.vue b/framework/sdk-parent/frontend/src/components/MsBorderPieChart.vue index d149038afd..a416a9d629 100644 --- a/framework/sdk-parent/frontend/src/components/MsBorderPieChart.vue +++ b/framework/sdk-parent/frontend/src/components/MsBorderPieChart.vue @@ -1,10 +1,14 @@ + + diff --git a/framework/sdk-parent/frontend/src/components/chart/MsChart.vue b/framework/sdk-parent/frontend/src/components/chart/MsChart.vue index 30f2bb4021..8ccbbd33f7 100644 --- a/framework/sdk-parent/frontend/src/components/chart/MsChart.vue +++ b/framework/sdk-parent/frontend/src/components/chart/MsChart.vue @@ -9,6 +9,7 @@ :group="group" @click="onClick" @datazoom="datazoom" + v-on="$listeners" :watch-shallow="watchShallow" :manual-update="manualUpdate" :autoresize="autoresize" id="chartsShow"/> diff --git a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js index 328fb86ffb..1090ac24e8 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js @@ -515,6 +515,8 @@ const message = { custom_update_list_rule: 'Customize to-be-updated list rules', ignore: 'Ignore', past: 'past', + case_count:'case count', + issues_count:'issues count', api_change: 'Api Change', dash_board: 'My DashBoard', upcoming: 'My Upcoming', @@ -522,8 +524,8 @@ const message = { creation: 'My Creation', creation_case: 'My Creation Case', creation_issue: 'My Creation Issue', - creation_case_tip: 'No use case has been created yet, create it now', - creation_issue_tip: 'No defects have been created yet, create them now', + creation_case_tip: 'No case,', + creation_issue_tip: 'No defects,', delNotSame: 'Remove parameters in use cases that cannot correspond to API documentation', apply_tip:'The workbench pending update setting is not enabled', table_name: { diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js index c949b0bde0..1c835b3429 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js @@ -518,6 +518,8 @@ const message = { custom_update_list_rule: '自定义待更新列表规则', ignore: '忽略', past: '过去', + case_count:'用例数量', + issues_count:'缺陷数量', api_change: '接口变更', dash_board: '我的仪表盘', upcoming: '我的待办', @@ -525,8 +527,8 @@ const message = { creation: '我创建的', creation_case: '我创建的用例', creation_issue: '我创建的缺陷', - creation_case_tip: '暂时还没有创建用例,马上创建', - creation_issue_tip: '暂时还没有创建缺陷,马上创建', + creation_case_tip: '暂无用例,前去', + creation_issue_tip: '暂无缺陷,前去', delNotSame: '删除用例中无法与API文档对应的参数', table_name: { track_case: '功能用例', diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js index eaa1ccbee0..95478d1b8a 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js @@ -518,6 +518,8 @@ const message = { custom_update_list_rule: '自定義待更新列表規則', ignore: '忽略', past: '過去', + case_count:'用例數量', + issues_count:'缺陷數量', api_change: '接口變更', dash_board: '我的儀表盤', upcoming: '我的待辦', @@ -525,8 +527,8 @@ const message = { creation: '我創建的', creation_case: '我創建的用例', creation_issue: '我創建的缺陷', - creation_case_tip: '暫時還沒有創建用例,馬上創建', - creation_issue_tip: '暫時還沒有創建缺陷,馬上創建', + creation_case_tip: '暫無用例,前去', + creation_issue_tip: '暫無缺陷,前去', delNotSame: '刪除用例中無法與API文檔對應的參數', apply_tip:'未開啟工作台待更新設置', table_name: { diff --git a/test-track/frontend/src/business/issue/IssueList.vue b/test-track/frontend/src/business/issue/IssueList.vue index 9b20fedbf4..1ebce9d082 100644 --- a/test-track/frontend/src/business/issue/IssueList.vue +++ b/test-track/frontend/src/business/issue/IssueList.vue @@ -548,6 +548,13 @@ export default { getIssuesById(id).then((response) => { this.handleEdit(response.data) }); + } else { + let type = this.$route.query.type; + if (type === 'create') { + this.$nextTick(() => { + this.handleCreate() + }); + } } } }