From d487cd8b0248954f02d75c5ece8d4a2f41b3c950 Mon Sep 17 00:00:00 2001 From: Shiwen Cheng Date: Mon, 2 Aug 2021 11:33:45 +0800 Subject: [PATCH] [1.3.7-prepare][Improvement-5567][UI] Add project id in web ui url for sharing and project name in project page #5568 (#5913) --- .../js/conf/home/pages/dag/_source/dag.vue | 4 +- .../pages/dag/_source/formModel/formModel.vue | 4 +- .../conf/home/pages/dag/definitionDetails.vue | 3 +- .../src/js/conf/home/pages/dag/index.vue | 3 +- .../conf/home/pages/dag/instanceDetails.vue | 3 +- .../pages/_source/taskRecordList/index.vue | 6 ++- .../definition/pages/list/_source/list.vue | 10 ++-- .../pages/definition/pages/list/index.vue | 8 +++- .../pages/definition/pages/tree/index.vue | 9 +++- .../pages/definition/timing/_source/list.vue | 7 ++- .../pages/index/_source/defineUserCount.vue | 6 ++- .../pages/index/_source/processStateCount.vue | 7 ++- .../pages/index/_source/taskCtatusCount.vue | 7 ++- .../home/pages/projects/pages/index/index.vue | 10 ++-- .../pages/instance/pages/gantt/index.vue | 2 + .../instance/pages/list/_source/list.vue | 8 ++-- .../pages/instance/pages/list/index.vue | 5 ++ .../projects/pages/list/_source/list.vue | 9 ++-- .../pages/taskInstance/_source/list.vue | 4 +- .../projects/pages/taskInstance/index.vue | 10 ++-- .../src/js/conf/home/router/index.js | 46 ++++++++++--------- .../src/js/conf/home/store/dag/mutations.js | 3 ++ .../src/js/conf/home/store/dag/state.js | 7 ++- .../js/conf/home/store/projects/actions.js | 12 +++++ .../secondaryMenu/secondaryMenu.vue | 9 +++- .../src/js/module/mixin/switchProject.js | 33 +++++++++++++ .../src/js/module/project/router.js | 38 +++++++++++++++ 27 files changed, 214 insertions(+), 59 deletions(-) create mode 100644 dolphinscheduler-ui/src/js/module/mixin/switchProject.js create mode 100644 dolphinscheduler-ui/src/js/module/project/router.js diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue index dbba0b0ff4..d1cc0372de 100755 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.vue @@ -366,7 +366,7 @@ // source @/conf/home/pages/dag/_source/editAffirmModel/index.js if (sourceType !== 'affirm') { // Jump process definition - this.$router.push({ name: 'projects-definition-list' }) + this.$router.push({ name: 'projects-definition-list', params: { projectId: this.projectId } }) } resolve() }).catch(e => { @@ -652,7 +652,7 @@ } }, computed: { - ...mapState('dag', ['tasks', 'locations', 'connects', 'isEditDag', 'name']) + ...mapState('dag', ['projectId', 'tasks', 'locations', 'connects', 'isEditDag', 'name']) }, components: {} } diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue index 24a910a751..c7377596ec 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue @@ -268,7 +268,7 @@ diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue index 974d57ff95..b8736137eb 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue @@ -49,7 +49,7 @@ diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue index 60e9413b2e..9d4f5282ef 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue @@ -51,7 +51,7 @@ diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue index 2b5cbbc017..b3dc68bd8b 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue @@ -15,7 +15,7 @@ * limitations under the License. */