|
@@ -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
|