Browse Source

优化滚动条

master
陈裕财 4 years ago
parent
commit
c7a91bec18
  1. 9
      src/styles/mdp.scss
  2. 18
      src/views/xm/core/xmTask/XmPhase.vue
  3. 6
      src/views/xm/core/xmTask/XmTaskMng.vue

9
src/styles/mdp.scss

@ -257,6 +257,15 @@ table tr.hover-row{
display:none; display:none;
} }
} }
/**
*解决表格固定列无法滚动问题
*/
.el-table {
.el-table__fixed {
height:auto !important;
bottom:17px !important;
}
}
.icon { .icon {
color: #fff; color: #fff;

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

@ -177,15 +177,13 @@
<el-table-column <el-table-column
label="全选" label="全选"
type="selection" type="selection"
width="50"
fixed="left"
width="50"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
sortable sortable
prop="name" prop="name"
class-name="title"
fixed="left"
class-name="title"
label="计划名称" label="计划名称"
min-width="300" min-width="300"
> >
@ -211,14 +209,14 @@
</span> </span>
</div> </div>
</template> </template>
</el-table-column>
<el-table-column
</el-table-column>
<el-table-column
label="状态" label="状态"
type="taskState" type="taskState"
width="100"
width="100"
> >
<template slot-scope="scope">
<template slot-scope="scope"
>
<div class="cell-text"> <div class="cell-text">
<el-tag v-for="(item,index) in formatDictsWithClass(dicts,'taskState',scope.row.taskState)" :key="index" :type="item.className">{{item.name}}</el-tag> <el-tag v-for="(item,index) in formatDictsWithClass(dicts,'taskState',scope.row.taskState)" :key="index" :type="item.className">{{item.name}}</el-tag>
@ -229,7 +227,7 @@
</el-select> </el-select>
</span> </span>
</template> </template>
</el-table-column>
</el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
ref="pagination" ref="pagination"

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

@ -9,7 +9,7 @@
<el-row> <el-row>
<xm-project-select style="display:inline;" v-if="!selProject||!selProject.id" :auto-select="isTaskCenter?false:true" :link-iteration-id="xmIteration?xmIteration.id:null" :link-product-id="xmProduct?xmProduct.id:null" @row-click="onProjectRowClick" @clear="onProjectClear" ></xm-project-select> <xm-project-select style="display:inline;" v-if="!selProject||!selProject.id" :auto-select="isTaskCenter?false:true" :link-iteration-id="xmIteration?xmIteration.id:null" :link-product-id="xmProduct?xmProduct.id:null" @row-click="onProjectRowClick" @clear="onProjectClear" ></xm-project-select>
<el-select style="width: 100px" v-model="filters.taskState" placeholder="状态" clearable>
<el-select style="width: 100px" v-model="filters.taskState" placeholder="状态" clearable class="hidden-md-and-down">
<el-option :value="item.id" :label="item.name" v-for="(item,index) in dicts.taskState" :key="index"></el-option> <el-option :value="item.id" :label="item.name" v-for="(item,index) in dicts.taskState" :key="index"></el-option>
</el-select> </el-select>
<el-select <el-select
@ -39,7 +39,7 @@
> >
</el-select> </el-select>
<el-select <el-select
class="hidden-md-and-down"
class="hidden-lg-and-down"
v-model="filters.taskType" v-model="filters.taskType"
placeholder="类型" placeholder="类型"
style="width: 100px" style="width: 100px"
@ -58,7 +58,7 @@
> >
</el-select> </el-select>
<el-checkbox <el-checkbox
class="hidden-md-and-down"
class="hidden-lg-and-down"
v-model="filters.taskOut" v-model="filters.taskOut"
true-label="1" true-label="1"
false-label="" false-label=""

Loading…
Cancel
Save