Skip to content

Commit

Permalink
refactor: 💡 优化样式
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaodeezhu committed Feb 15, 2022
1 parent a693b98 commit 33305ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/components/common/InstanceDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
</el-row>
<el-row class="job-detail-text">
<el-col :span="24">
<span class="power-job-text">{{ $t("message.status") }}:</span>
<span class="power-job-text" :style="{width: instanceDetail.nodeType == 2 ? '64px' : ''}">{{ $t("message.status") }}:</span>
<span class="title">{{
this.common.translateInstanceStatus(instanceDetail.status)
}}</span>
</el-col>
</el-row>
<el-row v-if="instanceDetail.nodeType != 2 && instanceDetail.nodeType != 3">
<el-row class="job-detail-text" v-if="instanceDetail.nodeType != 2 && instanceDetail.nodeType != 3">
<el-col :span="24">
<span class="power-job-text"
>{{ $t("message.runningTimes") }}:</span
Expand All @@ -55,13 +55,13 @@
</el-row>
<el-row class="job-detail-text">
<el-col :span="24">
<span class="power-job-text">{{ $t("message.startTime") }}:</span>
<span class="power-job-text" :style="{width: instanceDetail.nodeType == 2 ? '64px' : ''}">{{ $t("message.startTime") }}:</span>
<span class="title">{{ instanceDetail.actualTriggerTime || instanceDetail.startTime }}</span>
</el-col>
</el-row>
<el-row>
<el-row class="job-detail-text">
<el-col :span="24">
<span class="power-job-text"
<span class="power-job-text" :style="{width: instanceDetail.nodeType == 2 ? '64px' : ''}"
>{{ $t("message.finishedTime") }}:</span
>
<span class="title">{{ instanceDetail.finishedTime }}</span>
Expand Down Expand Up @@ -89,7 +89,7 @@
'power-job-result-detail': resultAll,
}"
>
<span class="power-job-text">{{ $t("message.result") }}:</span>
<span class="power-job-text" :style="{width: instanceDetail.nodeType == 2 ? '64px' : ''}">{{ $t("message.result") }}:</span>
<el-popover
width="400"
placement="right"
Expand Down Expand Up @@ -259,7 +259,7 @@ export default {
margin-right: 4px;
font-size: 14px;
word-break: break-all;
flex-basis: 148px;
/* flex-basis: 148px; */
}
.result:hover {
transition: 0.5s;
Expand Down
7 changes: 5 additions & 2 deletions src/components/dag/WorkflowInstanceDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@
</el-row>
<el-row class="job-detail-text" v-if="nodeDetail && nodeDetail.nodeType == 2">
<el-col :span="24">
<span class="power-job-text">{{$t('message.nodeParams')}}:</span>
<JSEditor :code="nodeDetail.nodeParams" key="nodeParams" :editorOptions="{readOnly: true}"></JSEditor>
<span class="power-job-text" :style="{width: nodeDetail.nodeType == 2 ? '64px' : ''}">{{$t('message.nodeParams')}}:</span>
<div :style="{paddingTop: '10px'}">
<JSEditor :code="nodeDetail.nodeParams" key="nodeParams" :editorOptions="{readOnly: true}"></JSEditor>
</div>

<!-- <span class="title">{{nodeDetail.nodeParams}}</span> -->
</el-col>
</el-row>
Expand Down

0 comments on commit 33305ad

Please sign in to comment.