这里可以放大
@@ -273,7 +273,7 @@ watch(
left: 0;
width: 100%;
height: 100%;
- background-color: rgba(74, 74, 74, 0.78);
+ // background-color: rgba(74, 74, 74, 0.78);
z-index: 1000;
margin: auto;
display: flex;
@@ -287,7 +287,6 @@ watch(
.plan-box {
position: relative;
margin: auto;
- background-color: #fff;
}
}
@@ -315,7 +314,7 @@ watch(
height: 100%;
//table-layout: fixed;
th {
- background-color: #f5f5f5;
+ // background-color: #f5f5f5;
border-top: 1px solid #e8e8e8;
border-left: 1px solid #e8e8e8;
border-bottom: 1px solid #e8e8e8;
diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue
index 674f2ff62..6c07a8fb1 100644
--- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue
+++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue
@@ -24,6 +24,9 @@
AI分析
+
下载日志
关闭
@@ -39,6 +42,7 @@ import PiStatusShow from "/@/views/certd/pipeline/pipeline/component/status-show
import { usePreferences } from "/@/vben/preferences";
import { useSettingStore } from "/@/store/settings/index";
import { notification } from "ant-design-vue";
+import { mitter } from "/@/utils/util.mitt";
export default {
name: "PiTaskView",
components: { PiStatusShow },
@@ -196,6 +200,19 @@ export default {
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();
return {
detail,
@@ -206,6 +223,9 @@ export default {
tabPosition,
triggerRun,
settingsStore,
+ currentNode,
+ currentStatus,
+ callService,
};
},
};