Browse Source

优化

master
陈裕财 3 years ago
parent
commit
029dc5ba6d
  1. 9
      src/views/xm/core/components/XmIterationSelect.vue
  2. 12
      src/views/xm/core/components/XmProductSelect.vue
  3. 2
      src/views/xm/core/components/XmProjectSelect.vue
  4. 13
      src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue

9
src/views/xm/core/components/XmIterationSelect.vue

@ -11,9 +11,8 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="refreshSelect" @click="refreshSelect"
title="重新从后台刷新数据回来" title="重新从后台刷新数据回来"
>刷新</el-button>&nbsp;&nbsp;
<el-button v-if="clearable!==false && editForm && editForm.id" type="text" icon="el-icon-circle-close" @click="clearSelectIteration" title="清空当前选中的迭代">清空&nbsp;&nbsp;</el-button>
>刷新</el-button>
<el-button <el-button
@click="addIterationVisible = true" @click="addIterationVisible = true"
icon="el-icon-plus" icon="el-icon-plus"
@ -112,6 +111,8 @@
<el-table-column prop="iterationName" label="迭代" > <el-table-column prop="iterationName" label="迭代" >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="icon" style="background-color:#409eff"><i class="el-icon-connection" ></i></div>{{scope.row.iterationName}} <font :color="calcFinishRate(scope.row)==100?'green':'#FF8C00'">{{calcFinishRate(scope.row)}}%</font> <div class="icon" style="background-color:#409eff"><i class="el-icon-connection" ></i></div>{{scope.row.iterationName}} <font :color="calcFinishRate(scope.row)==100?'green':'#FF8C00'">{{calcFinishRate(scope.row)}}%</font>
<el-button type="text" size="mini" circle plain v-if="editForm&&editForm.id==scope.row.id" @click.stop="clearSelectIteration()" title="取消选中状态" icon="el-icon-circle-close"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -135,7 +136,7 @@
}} }}
</div> </div>
</el-link> </el-link>
<el-button v-if="editForm&&editForm.id" type="text" icon="el-icon-circle-close" @click.stop="clearSelectIteration"></el-button>&nbsp;
<el-button type="text" size="mini" title="取消选中状态" circle plain v-if="editForm&&editForm.id" icon="el-icon-circle-close" @click.stop="clearSelectIteration"></el-button>&nbsp;
</slot> </slot>
</div> </div>
</slot> </slot>

12
src/views/xm/core/components/XmProductSelect.vue

@ -13,14 +13,6 @@
@click="refreshSelect" @click="refreshSelect"
title="重新从后台刷新数据回来" title="重新从后台刷新数据回来"
>刷新</el-button >刷新</el-button
>&nbsp;&nbsp;
<el-button
v-if="editForm && editForm.id"
type="text"
icon="el-icon-circle-close"
@click="clearSelect"
title="清空当前选中的产品"
>取消选中状态&nbsp;&nbsp;</el-button
> >
<el-button <el-button
@click="addProductVisible = true" @click="addProductVisible = true"
@ -167,6 +159,8 @@
<template slot="header" slot-scope="scope"> 产品名称 </template> <template slot="header" slot-scope="scope"> 产品名称 </template>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="icon" style="background-color:#409eff"><i class="el-icon-s-opportunity" ></i></div><font>{{ scope.row.productName }}</font> <div class="icon" style="background-color:#409eff"><i class="el-icon-s-opportunity" ></i></div><font>{{ scope.row.productName }}</font>
<el-button type="text" size="mini" circle plain v-if="editForm&&editForm.id==scope.row.id" @click.stop="clearSelect()" title="取消选中状态" icon="el-icon-circle-close"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -204,7 +198,7 @@
}} }}
</div> </div>
</el-link> </el-link>
<el-button v-if="editForm&&editForm.id" type="text" icon="el-icon-circle-close" @click.stop="clearSelect"></el-button>&nbsp;
<el-button type="text" size="mini" title="取消选中状态" circle plain v-if="editForm&&editForm.id" icon="el-icon-circle-close" @click.stop="clearSelect"></el-button>&nbsp;
</slot> </slot>
</div> </div>

2
src/views/xm/core/components/XmProjectSelect.vue

@ -200,7 +200,7 @@
}} }}
</div> </div>
</el-link> </el-link>
<el-button v-if="editForm&&editForm.id" type="text" icon="el-icon-circle-close" @click.stop="clearSelect"></el-button>&nbsp;
<el-button type="text" size="mini" title="取消选中状态" circle plain v-if="editForm&&editForm.id" icon="el-icon-circle-close" @click.stop="clearSelect"></el-button>&nbsp;
</slot> </slot>
</span> </span>
</slot> </slot>

13
src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue

@ -25,7 +25,7 @@
<el-table-column prop="menuName" label="已加入迭代的用户故事" min-width="140" > <el-table-column prop="menuName" label="已加入迭代的用户故事" min-width="140" >
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display:flex;">
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);"> <div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i> <i class="el-icon-s-promotion"></i>
</div> </div>
@ -35,14 +35,9 @@
<div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);"> <div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i> <i class="el-icon-document"></i>
</div> </div>
<span class="vlink" type="primary">{{scope.row.seqNo}}
&nbsp;&nbsp;{{scope.row.menuName}}
</span>
<div class="tool-bar">
<span class="u-btn">
<el-button @click="showEdit( scope.row,scope.$index)" icon="el-icon-edit" title="编辑" circle plain > </el-button>
</span>
</div>
<el-link @click="showEdit( scope.row,scope.$index)" >{{scope.row.seqNo}}
&nbsp;&nbsp;{{scope.row.menuName}}</el-link>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="finishRate" label="进度" width="100" show-overflow-tooltip sortable> <el-table-column prop="finishRate" label="进度" width="100" show-overflow-tooltip sortable>

Loading…
Cancel
Save