Преглед изворни кода

数据工厂-工作流管理:点击跳转n8n工作流详情页

Xiao_123 пре 13 часа
родитељ
комит
daa7de3d9d
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      src/views/dataFactory/workflow/WorkflowList.vue

+ 7 - 0
src/views/dataFactory/workflow/WorkflowList.vue

@@ -24,6 +24,9 @@
           {{ item.active ? '激活' : '停用' }}
           {{ item.active ? '激活' : '停用' }}
         </v-chip>
         </v-chip>
       </template>
       </template>
+      <template #name="{ item }">
+        <span class="defaultLink" @click="handleToN8N(item.id)">{{ item.name }}</span>
+      </template>
       <template #tags="{ item }">
       <template #tags="{ item }">
         <v-chip v-for="tag in item.tags" :key="tag" small class="mr-1">{{ tag }}</v-chip>
         <v-chip v-for="tag in item.tags" :key="tag" small class="mr-1">{{ tag }}</v-chip>
       </template>
       </template>
@@ -139,6 +142,10 @@ export default {
       this.workflowId = id
       this.workflowId = id
       this.show = true
       this.show = true
     },
     },
+    // 跳转至n8n
+    handleToN8N (id) {
+      window.open(`${process.env.VUE_APP_N8N_URL}/workflow/${id}`, '_blank')
+    },
     // 激活、停用
     // 激活、停用
     async handleStatus (id, active) {
     async handleStatus (id, active) {
       if (!id) return
       if (!id) return