mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: 1
This commit is contained in:
+3
-4
@@ -2,7 +2,7 @@
|
|||||||
<div class="domains-verify-plan-editor" :class="{ fullscreen }">
|
<div class="domains-verify-plan-editor" :class="{ fullscreen }">
|
||||||
<div class="fullscreen-modal" @click="fullscreenExit"></div>
|
<div class="fullscreen-modal" @click="fullscreenExit"></div>
|
||||||
<div class="plan-wrapper">
|
<div class="plan-wrapper">
|
||||||
<div class="plan-box">
|
<div class="plan-box bg-white dark:bg-neutral-700">
|
||||||
<div class="fullscreen-button pointer flex-center" @click="fullscreen = !fullscreen">
|
<div class="fullscreen-button pointer flex-center" @click="fullscreen = !fullscreen">
|
||||||
<span v-if="!fullscreen" style="font-size: 10px" class="flex-center">
|
<span v-if="!fullscreen" style="font-size: 10px" class="flex-center">
|
||||||
这里可以放大
|
这里可以放大
|
||||||
@@ -273,7 +273,7 @@ watch(
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: rgba(74, 74, 74, 0.78);
|
// background-color: rgba(74, 74, 74, 0.78);
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -287,7 +287,6 @@ watch(
|
|||||||
.plan-box {
|
.plan-box {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
background-color: #fff;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,7 +314,7 @@ watch(
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
//table-layout: fixed;
|
//table-layout: fixed;
|
||||||
th {
|
th {
|
||||||
background-color: #f5f5f5;
|
// background-color: #f5f5f5;
|
||||||
border-top: 1px solid #e8e8e8;
|
border-top: 1px solid #e8e8e8;
|
||||||
border-left: 1px solid #e8e8e8;
|
border-left: 1px solid #e8e8e8;
|
||||||
border-bottom: 1px solid #e8e8e8;
|
border-bottom: 1px solid #e8e8e8;
|
||||||
|
|||||||
+20
@@ -24,6 +24,9 @@
|
|||||||
</a-tabs>
|
</a-tabs>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<fs-button v-if="settingsStore.sysPublic.aiChatEnabled !== false" key="aiChat" :tooltip="{ title: 'AI分析异常' }" type="primary" icon="ion:color-wand-outline" @click="taskModal.onAiChat">AI分析</fs-button>
|
<fs-button v-if="settingsStore.sysPublic.aiChatEnabled !== false" key="aiChat" :tooltip="{ title: 'AI分析异常' }" type="primary" icon="ion:color-wand-outline" @click="taskModal.onAiChat">AI分析</fs-button>
|
||||||
|
<!-- <fs-button v-if="!settingsStore.isComm && currentStatus === 'error'" key="1v1" :tooltip="{ title: '升级专业版,获得一对一分析服务,为您排忧解难' }" class="isPlus" icon="imingcute:vip-1-line" @click="callService">
|
||||||
|
呼叫专家
|
||||||
|
</fs-button> -->
|
||||||
<fs-button key="rerun" type="primary" :tooltip="{ title: '强制重新执行此步骤' }" text="重新运行" icon="icon-park-outline:replay-music" @click="triggerRun(activeKey)"></fs-button>
|
<fs-button key="rerun" type="primary" :tooltip="{ title: '强制重新执行此步骤' }" text="重新运行" icon="icon-park-outline:replay-music" @click="triggerRun(activeKey)"></fs-button>
|
||||||
<fs-button key="downloadLogs" type="primary" :tooltip="{ title: '当前任务日志下载' }" icon="ion:arrow-down-circle-outline" @click="taskModal.onDownloadLogs">下载日志</fs-button>
|
<fs-button key="downloadLogs" type="primary" :tooltip="{ title: '当前任务日志下载' }" icon="ion:arrow-down-circle-outline" @click="taskModal.onDownloadLogs">下载日志</fs-button>
|
||||||
<fs-button key="cancel" :tooltip="{ title: '关闭窗口' }" icon="ion:close-circle-outline" @click="taskModal.onOk">关闭</fs-button>
|
<fs-button key="cancel" :tooltip="{ title: '关闭窗口' }" icon="ion:close-circle-outline" @click="taskModal.onOk">关闭</fs-button>
|
||||||
@@ -39,6 +42,7 @@ import PiStatusShow from "/@/views/certd/pipeline/pipeline/component/status-show
|
|||||||
import { usePreferences } from "/@/vben/preferences";
|
import { usePreferences } from "/@/vben/preferences";
|
||||||
import { useSettingStore } from "/@/store/settings/index";
|
import { useSettingStore } from "/@/store/settings/index";
|
||||||
import { notification } from "ant-design-vue";
|
import { notification } from "ant-design-vue";
|
||||||
|
import { mitter } from "/@/utils/util.mitt";
|
||||||
export default {
|
export default {
|
||||||
name: "PiTaskView",
|
name: "PiTaskView",
|
||||||
components: { PiStatusShow },
|
components: { PiStatusShow },
|
||||||
@@ -196,6 +200,19 @@ export default {
|
|||||||
taskModal.value.open = false;
|
taskModal.value.open = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const currentNode = computed(() => {
|
||||||
|
return detail.value?.nodes?.find(item => item.node.id === activeKey.value);
|
||||||
|
});
|
||||||
|
const currentStatus = computed(() => {
|
||||||
|
return currentNode.value?.node?.status?.result || "";
|
||||||
|
});
|
||||||
|
|
||||||
|
function callService() {
|
||||||
|
if (!settingsStore.isPlus) {
|
||||||
|
mitter.emit("openVipModal");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const settingsStore = useSettingStore();
|
const settingsStore = useSettingStore();
|
||||||
return {
|
return {
|
||||||
detail,
|
detail,
|
||||||
@@ -206,6 +223,9 @@ export default {
|
|||||||
tabPosition,
|
tabPosition,
|
||||||
triggerRun,
|
triggerRun,
|
||||||
settingsStore,
|
settingsStore,
|
||||||
|
currentNode,
|
||||||
|
currentStatus,
|
||||||
|
callService,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user