From b2c1bbf4659fe171b0b7b71979fd54a9c7e4e069 Mon Sep 17 00:00:00 2001 From: yaojn Date: Fri, 18 Apr 2025 17:02:44 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E8=B6=85=E7=BA=A7?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E7=BC=96=E8=BE=91=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E5=90=8E=E8=BF=94=E5=9B=9E=EF=BC=8C=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E7=9A=84=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6=E6=9C=AA=E5=9B=9E?= =?UTF-8?q?=E6=98=BE=E3=80=82=20=20=20=20-=20[=E5=85=B3=E8=81=94]#[1402217?= =?UTF-8?q?410560001]=E8=B6=85=E7=BA=A7=E6=B5=81=E6=B0=B4=E7=BA=BF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=B5=81=E6=B0=B4=E7=BA=BF=E5=90=8E=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=EF=BC=8C=E4=B9=8B=E5=89=8D=E7=9A=84=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=9C=AA=E5=9B=9E=E6=98=BE=E3=80=82=20http:/?= =?UTF-8?q?/192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/93?= =?UTF-8?q?9050947543057/1402217410560001?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/deploy/pipeline/pipeline-manage.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/pages/deploy/pipeline/pipeline-manage.vue b/src/views/pages/deploy/pipeline/pipeline-manage.vue index b69f695a..e6e8cc69 100644 --- a/src/views/pages/deploy/pipeline/pipeline-manage.vue +++ b/src/views/pages/deploy/pipeline/pipeline-manage.vue @@ -72,7 +72,7 @@ export default { isAddDeployJobDialogShow: false, isListDeployJobDialogShow: false, currentPipelineId: null, - searchParam: {keyword: '', type: ''}, + searchParam: { keyword: '', type: '' }, pipelineData: {}, jobType: 'all', jobTypeDataList: [] @@ -105,7 +105,11 @@ export default { if (row.appSystemId) { this.$set(params, 'appSystemId', row.appSystemId); } - this.$router.push({ path: '/pipeline-edit', query: params}); + this.$addHistoryData('searchParam', { + keyword: this.searchParam.keyword, + jobType: this.jobType + }); + this.$router.push({ path: '/pipeline-edit', query: params }); }, addPipeline() { this.$router.push({ path: '/pipeline-edit' }); @@ -163,6 +167,12 @@ export default { }); } }); + }, + restoreHistory(historyData) { + const { searchParam = {} } = historyData; + const { keyword = '', jobType = '' } = searchParam || {}; + this.searchParam.keyword = keyword; + this.jobType = jobType; } }, filter: {}, -- Gitee