This is an automated email from the ASF dual-hosted git repository.

muchunjin pushed a commit to branch dev-2.1.2
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev-2.1.2 by this push:
     new 28d06fc0e correct yarn url address
28d06fc0e is described below

commit 28d06fc0e7724d267aa0957517f4626307c9643b
Author: macksonmu <[email protected]>
AuthorDate: Sun Jul 2 11:44:21 2023 +0800

    correct yarn url address
---
 .../src/views/flink/app/components/AppDetail/DetailTab.vue       | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppDetail/DetailTab.vue
 
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppDetail/DetailTab.vue
index f26c20570..0d7fa96a2 100644
--- 
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppDetail/DetailTab.vue
+++ 
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/AppDetail/DetailTab.vue
@@ -37,7 +37,6 @@
     getSavePointColumns,
   } from '../../data/detail.data';
   import { getMonacoOptions } from '../../data';
-  import { handleView } from '../../utils';
   import { useRoute } from 'vue-router';
   import { fetchGetVer, fetchListVer, fetchRemoveConf } from 
'/@/api/flink/config';
   import { fetchRemoveSavePoint, fetchSavePonitHistory } from 
'/@/api/flink/app/savepoint';
@@ -47,6 +46,7 @@
     fetchOptionLog,
     fetchRemoveBackup,
     fetchDeleteOperationLog,
+    fetchYarn,
   } from '/@/api/flink/app/app';
   import { decodeByBase64 } from '/@/utils/cipher';
   import { useModal } from '/@/components/Modal';
@@ -271,6 +271,11 @@
     });
   }
 
+  async function handleYarnUrl(yarnAppId: string) {
+    const res = await fetchYarn();
+    window.open(res + '/proxy/' + yarnAppId + '/');
+  }
+
   function getSavePointAction(record: Recordable): ActionItem[] {
     return [
       {
@@ -528,7 +533,7 @@
               <Tag color="orange" v-if="record.optionName === 
OperationEnum.CANCEL"> Cancel </Tag>
             </template>
             <template v-if="column.dataIndex === 'yarnAppId'">
-              <a type="link" :href="record.yarnAppId" target="_blank">
+              <a type="link" @click="handleYarnUrl(record.yarnAppId)" 
target="_blank">
                 {{ record.yarnAppId }}
               </a>
             </template>

Reply via email to