Browse Source

优化

master
陈裕财 3 years ago
parent
commit
1229ab4fdc
  1. 4
      src/views/xm/core/components/XmIterationSelect.vue
  2. 9
      src/views/xm/core/components/XmProductSelect.vue
  3. 4
      src/views/xm/core/components/XmProjectSelect.vue

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

@ -104,14 +104,14 @@
<el-table ref="table" :height="maxTableHeight" :data="xmIterations" row-key="id" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column prop="iterationName" label="迭代" >
<template slot-scope="scope">
{{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>
</template>
</el-table-column>
</el-table>
<el-pagination layout="total, prev, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination>
</el-row>
<el-link title="点击选中迭代" @click="referenceClick" type="warning" slot="reference" icon="el-icon-search"><font style="font-size:14px;"><slot name="title">{{editForm&&editForm.id?editForm.iterationName:'选择迭代'}}</slot></font></el-link>
<el-link title="点击选中迭代" @click="referenceClick" type="primary" slot="reference" icon="el-icon-connection"><font style="font-size:14px;"><slot name="title">{{editForm&&editForm.id?editForm.iterationName:'选择迭代'}}</slot></font></el-link>
</el-popover>

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

@ -171,7 +171,7 @@
<el-table-column prop="productName" label="产品名称">
<template slot="header" slot-scope="scope"> 产品名称 </template>
<template slot-scope="scope">
<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>
</template>
</el-table-column>
</el-table>
@ -190,12 +190,13 @@
><el-link
title="产品,点击选择、清除选择"
@click="referenceClick"
type="warning"
type="primary"
slot="reference"
v-loading="load.list"
icon="el-icon-search"
icon="el-icon-s-opportunity"
><font style="font-size: 14px"
><slot name="title">{{
><slot name="title">
{{
editForm && editForm.id ? editForm.productName : "选择产品"
}}</slot></font
></el-link

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

@ -175,7 +175,7 @@
项目名称
</template>
<template slot-scope="scope">
<font>{{ scope.row.name }}</font>
<div class="icon" style="background-color:#ffd04b"><i class="el-icon-odometer" ></i></div><font>{{ scope.row.name }}</font>
</template>
</el-table-column>
</el-table>
@ -195,7 +195,7 @@
><el-link
title="项目,点击选择、清除选择"
type="warning"
icon="el-icon-search"
icon="el-icon-odometer"
><font style="font-size: 14px"
><slot name="title">{{
editForm && editForm.id ? editForm.name : "选择项目"

Loading…
Cancel
Save