Skip to content

Commit

Permalink
fix: 节点审批审批失败但出现审批成功message修复 && 任务名过长样式异常问题修复 (#7453)
Browse files Browse the repository at this point in the history
* fix: 节点审批审批失败但出现审批成功message修复 --ignore

* fix: 任务名过长样式异常问题修复 --ignore
# Reviewed, transaction id: 7452
  • Loading branch information
ywywZhou authored May 10, 2024
1 parent a76850c commit 5067b34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,8 @@
if (stack.length > 0) {
params.subprocess_id = stack.join(',')
}
await this.itsmTransition(params)
const resp = await this.itsmTransition(params)
if (!resp.result) return
this.approval.id = ''
this.approval.is_passed = true
this.approval.message = ''
Expand Down
64 changes: 14 additions & 50 deletions frontend/desktop/src/pages/task/TaskExecute/TaskOperationHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,8 @@
<page-header class="operation-header">
<div class="head-left-area">
<i class="bk-icon icon-arrows-left back-icon" @click="onBack"></i>
<div class="bread-crumbs-wrapper">
<span
class="path-item name-ellipsis"
v-for="(path, index) in nodeNav"
:key="path.id"
v-bk-overflow-tips
:title="showNodeList.includes(index) ? path.name : ''">
<span v-if="!!index && showNodeList.includes(index) || index === 1">/</span>
<span v-if="showNodeList.includes(index)" class="node-name" :title="path.name" @click="onSelectSubflow(path.id)">
{{path.name}}
</span>
<span class="node-ellipsis" v-else-if="index === 1">...</span>
</span>
</div>
<bk-popover theme="light" placement="bottom-start" :disabled="!isStateDetailShow" ext-cls="state-detail-tips">
<div class="task-name" v-bk-overflow-tips>{{ nodeNav[0].name }}</div>
<bk-popover theme="light" placement="bottom-start" :disabled="!isStateDetailShow" class="state-popover" ext-cls="state-detail-tips">
<span v-if="stateStr" :class="['task-state', state]">
<i v-if="isStateDetailShow" class="common-icon-info"></i>
{{ stateStr }}
Expand Down Expand Up @@ -251,47 +238,23 @@
.head-left-area {
display: flex;
align-items: center;
margin-right: 20px;
.back-icon {
font-size: 28px;
color: #3a84ff;
cursor: pointer;
}
}
.bread-crumbs-wrapper {
font-size: 0;
.path-item {
display: inline-block;
font-size: 14px;
overflow: hidden;
&.name-ellipsis {
max-width: 700px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.node-name {
margin: 0 4px;
font-size: 14px;
color: #3a84ff;
cursor: pointer;
}
.node-ellipsis {
margin-right: 4px;
}
&:first-child {
.node-name {
margin-left: 0px;
}
}
&:last-child {
.node-name {
&:last-child {
color: #313238;
cursor: text;
}
}
}
}
.task-name {
max-width: 700px;
margin: 0 4px;
font-size: 14px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.state-popover {
flex-shrink: 0;
}
.task-state {
flex-shrink: 0;
Expand Down Expand Up @@ -378,6 +341,7 @@
height: 100%;
.tab-operate {
display: flex;
flex-shrink: 0;
align-items: center;
position: relative;
font-size: 14px;
Expand Down

0 comments on commit 5067b34

Please sign in to comment.