Browse Source

优化

master
陈裕财 3 years ago
parent
commit
920c02f0d5
  1. 2
      src/styles/mdp.scss
  2. 23
      src/views/xm/core/xmMenu/XmEpicFeatures.vue
  3. 33
      src/views/xm/core/xmTask/XmPhase.vue

2
src/styles/mdp.scss

@ -238,7 +238,7 @@
} }
.tool-bar{ .tool-bar{
z-index: 10000;
z-index: 500;
top: 50%; top: 50%;
right:0%; right:0%;
transform: translate(-10%, -50%); transform: translate(-10%, -50%);

23
src/views/xm/core/xmMenu/XmEpicFeatures.vue

@ -110,19 +110,20 @@
</div> </div>
<span class="hidden-md-and-down">{{scope.row.seqNo}}</span><span>{{scope.row.menuName}} </span> <span class="hidden-md-and-down">{{scope.row.seqNo}}</span><span>{{scope.row.menuName}} </span>
<span
:style="{borderRadius: '30px',color:scope.row.finishRate >= 100 ? 'green' : 'blue'}"
>
{{ (scope.row.finishRate != null ? scope.row.finishRate : 0) + "%" }}
</span>
<el-tag class="hidden-md-and-down" v-for="(item,index) in formatDictsWithClass(dicts,'menuStatus',scope.row.status)" :key="index" :type="item.className">{{item.name}}</el-tag>
<div class="tool-bar" v-if="!disabledMng">
<div class="tool-bar left" v-if="!disabledMng">
<span class="u-btn"> <span class="u-btn">
<el-button v-if=" scope.row.dclass==='1' " @click.stop="showSubAdd( scope.row,scope.$index)" icon="el-icon-plus" title="新建特性" circle plain > </el-button>
<el-button size="mini" v-if=" scope.row.dclass==='1' " @click.stop="showSubAdd( scope.row,scope.$index)" icon="el-icon-plus" title="新建特性" circle > </el-button>
<el-button @click.stop="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑" circle plain > </el-button>
<el-button size="mini" @click.stop="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑" circle > </el-button>
</span> </span>
</div> </div>
<el-tag style="float:right;" class="hidden-md-and-down" v-for="(item,index) in formatDictsWithClass(dicts,'menuStatus',scope.row.status)" :key="index" :type="item.className">{{item.name}}</el-tag>
<span
:style="{borderRadius: '30px',color:scope.row.finishRate >= 100 ? 'green' : 'blue',float:'right'}"
>
{{ (scope.row.finishRate != null ? scope.row.finishRate : 0) + "%" }}
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -741,6 +742,10 @@
.align-right{ .align-right{
float: right; float: right;
} }
.tool-bar.left{
transform: translate(-100%, -50%);
}
</style> </style>
<style lang="scss"> <style lang="scss">

33
src/views/xm/core/xmTask/XmPhase.vue

@ -127,7 +127,6 @@
prop="name" prop="name"
class-name="title" class-name="title"
label="计划名称" label="计划名称"
min-width="300"
> >
<template slot="header"> <template slot="header">
<div style="display:flex;"> <div style="display:flex;">
@ -145,23 +144,15 @@
</div> </div>
--> -->
<span class="hidden-md-and-down"> <span class="hidden-md-and-down">
{{ scope.row.sortLevel }}&nbsp;</span><span> {{ scope.row.name }}
{{ scope.row.sortLevel }}&nbsp;
</span>
<span> {{ scope.row.name }}
</span> </span>
<el-link
style="border-radius: 30px"
:type="scope.row.rate >= 100 ? 'success' : 'warning'"
@click.stop="calcProgress(scope.row)"
class="el-icon-refresh"
>
{{ (scope.row.rate != null ? scope.row.rate : 0) + "%" }}
</el-link>
<el-tag class="hidden-md-and-down" v-for="(item,index) in formatDictsWithClass(dicts,'taskState',scope.row.taskState)" :key="index" :type="item.className">{{item.name}}</el-tag>
<div class="tool-bar">
<div class="tool-bar left">
<span class="u-btn"> <span class="u-btn">
<el-popover <el-popover
placement="top-start" placement="top-start"
title="选择创建计划/任务的方式" title="选择创建计划/任务的方式"
width="300"
trigger="click" trigger="click"
> >
<el-row> <el-row>
@ -195,11 +186,22 @@
<el-button @click.stop="showSubAdd( scope.row,scope.$index,'1')" icon="el-icon-plus" title="新建子计划">直接创建子计划 </el-button> <el-button @click.stop="showSubAdd( scope.row,scope.$index,'1')" icon="el-icon-plus" title="新建子计划">直接创建子计划 </el-button>
</el-row> </el-row>
</el-row> </el-row>
<el-button slot="reference" :style="{backgroundColor: '#E6A23C'}" icon="el-icon-plus" title="新建子计划" circle plain > </el-button>
<el-button slot="reference" icon="el-icon-plus" title="新建子计划" circle plain > </el-button>
</el-popover> </el-popover>
<el-button @click.stop="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑" circle plain > </el-button> <el-button @click.stop="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑" circle plain > </el-button>
</span> </span>
</div> </div>
<el-tag style="float: right;" class="hidden-md-and-down" v-for="(item,index) in formatDictsWithClass(dicts,'taskState',scope.row.taskState)" :key="index" :type="item.className">{{item.name}}</el-tag>
<el-link
style="border-radius: 30px; float: right;"
:type="scope.row.rate >= 100 ? 'success' : 'warning'"
@click.stop="calcProgress(scope.row)"
class="el-icon-refresh"
>
{{ (scope.row.rate != null ? scope.row.rate : 0) + "%" }}
</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -1141,5 +1143,8 @@ export default {
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
} }
.tool-bar.left{
transform: translate(-160%, -50%);
}
</style> </style>
Loading…
Cancel
Save