Browse Source

优化

master
陈裕财 4 years ago
parent
commit
ba230c57a5
  1. 26
      src/styles/mdp.scss
  2. 23
      src/views/xm/core/xmMenu/XmMenuMng.vue
  3. 11
      src/views/xm/core/xmTask/XmTaskAdd.vue
  4. 14
      src/views/xm/core/xmTask/XmTaskMng.vue

26
src/styles/mdp.scss

@ -220,8 +220,34 @@
/* overflow-x: auto; */ /* overflow-x: auto; */
} }
.tool-bar{
visibility: hidden;
float: right;
}
.el-table__body tr:hover{
.tool-bar{
visibility: visible;
.u-btn{
float: right;
}
}
}
.icon {
color: #fff;
height: 20px;
width: 20px;
border-radius: 15px;
text-align: center;
line-height: 20px;
font-size: 14px;
display: inline-block;
margin-right: 5px;
}
/*2.隐藏滚动条太丑了 /*2.隐藏滚动条太丑了
.el-drawer__container ::-webkit-scrollbar{ .el-drawer__container ::-webkit-scrollbar{
display: none; display: none;

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

@ -1183,31 +1183,8 @@
.align-right{ .align-right{
float: right; float: right;
} }
.icon {
color: #fff;
height: 20px;
width: 20px;
border-radius: 15px;
text-align: center;
line-height: 20px;
font-size: 14px;
display: inline-block;
margin-right: 5px;
}
</style> </style>
<style lang="scss"> <style lang="scss">
.tool-bar{
visibility: hidden;
float: right;
}
.el-table__body tr:hover{
.tool-bar{
visibility: visible;
.u-btn{
float: right;
}
}
}
</style> </style>

11
src/views/xm/core/xmTask/XmTaskAdd.vue

@ -592,15 +592,4 @@
margin-left: 0; margin-left: 0;
} }
.icon {
color: #fff;
height: 20px;
width: 20px;
border-radius: 15px;
text-align: center;
line-height: 20px;
font-size: 14px;
display: inline-block;
margin-right: 5px;
}
</style> </style>

14
src/views/xm/core/xmTask/XmTaskMng.vue

@ -465,6 +465,20 @@
{{ scope.row.name }} {{ scope.row.name }}
</span> </span>
<div class="tool-bar">
<span class="u-btn">
<el-tooltip v-if="scope.row.ntype==='1'" :content=" '新建任务'">
<el-button :style="{backgroundColor:'#409EFF'}" @click="showSubAdd( scope.row,scope.$index)" icon="el-icon-plus" title="新建任务" circle plain size="mini"> </el-button>
</el-tooltip>
<el-tooltip v-if="scope.row.ntype==='1'" :content=" '新建计划'">
<el-button :style="{backgroundColor: '#E6A23C'}" @click="showSubAdd( scope.row,scope.$index)" icon="el-icon-plus" title="新建计划" circle plain size="mini"> </el-button>
</el-tooltip>
<el-tooltip v-if="scope.row.ntype==='0'" :content=" '编辑任务'">
<el-button :style="{backgroundColor: '#409EFF'}" @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑任务" circle plain size="mini"> </el-button>
</el-tooltip>
</span>
</div>
</template> </template>
</el-table-column> </el-table-column>

Loading…
Cancel
Save