|
|
|
@ -28,7 +28,6 @@ |
|
|
|
<el-button v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProducts" icon="el-icon-search"></el-button> |
|
|
|
</template> |
|
|
|
</el-input> |
|
|
|
<el-button v-if="xmIteration" icon="el-icon-plus" @click="productSelectVisible=true">将更多产品加入迭代<strong>{{xmIteration.iterationName}}</strong></el-button> |
|
|
|
<el-button type="primary" @click="showAdd" icon="el-icon-plus" v-if="!xmIteration">产品</el-button> |
|
|
|
<el-popover |
|
|
|
placement="top-start" |
|
|
|
@ -97,18 +96,12 @@ |
|
|
|
<el-button type="primary" size="mini" @click="searchXmProducts" >查询</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-divider content-position="left"><strong>更多操作</strong></el-divider> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24" style="padding-top:5px;"> |
|
|
|
<el-button v-if="xmIteration" size="mini" icon="el-icon-plus" @click="productSelectVisible=true">将更多产品加入迭代<strong>{{xmIteration.iterationName}}</strong></el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-button slot="reference" icon="el-icon-more" circle></el-button> |
|
|
|
</el-popover> |
|
|
|
</el-row> |
|
|
|
<el-row class="page-main page-height-80"> |
|
|
|
<el-row class="page-main page-height-80" v-show="showType"> |
|
|
|
<!--列表 XmProject xm_project--> |
|
|
|
<el-row v-show="showType" v-loading="load.list"> |
|
|
|
<el-row v-loading="load.list"> |
|
|
|
<el-col v-cloak v-for="(p,i) in xmProducts" :key="i" :xl="4" :lg="6" :md="8" :sm="12"> |
|
|
|
<el-card @click.native="intoInfo(p,i)" class="project-card" shadow="always"> |
|
|
|
<div class="project-name" title="这是产品名称">{{p.productName}}</div> |
|
|
|
@ -142,12 +135,12 @@ |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row class="padding-top"> |
|
|
|
<el-row class="padding-top" v-show="!showType"> |
|
|
|
<!--列表 XmProduct 产品表--> |
|
|
|
<el-table ref="table" :height="tableHeight" :data="xmProducts" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> |
|
|
|
<el-table-column prop="productName" label="产品名称" min-width="300"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span><el-link type="primary" @click="showEdit(scope.row)">{{scope.row.productName}}</el-link></span> |
|
|
|
<span><el-link type="primary" @click="intoInfo(p)">{{scope.row.productName}}</el-link></span> |
|
|
|
|
|
|
|
<font class="align-right"><el-tag :type="scope.row.finishRate>=100?'success':'warning'">{{scope.row.finishRate}}%</el-tag> |
|
|
|
|
|
|
|
@ -161,7 +154,6 @@ |
|
|
|
<el-table-column prop="actWorkload" label="实际工作量.人时" width="150" show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column label="操作" width="200" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tooltip v-if="xmIteration" :content="'将产品与迭代【'+ xmIteration.iterationName + '】脱钩'"><el-button @click="doDelXmIterationProductLink( scope.row,scope.$index)" icon="el-icon-remove-outline">与迭代脱钩</el-button></el-tooltip> |
|
|
|
<el-popover |
|
|
|
placement="top-start" |
|
|
|
title="" |
|
|
|
@ -192,8 +184,8 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-pagination layout="total, sizes, prev, pager, 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-pagination layout="total, sizes, prev, pager, 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> |
|
|
|
|
|
|
|
<!--编辑 XmProduct 产品表界面--> |
|
|
|
<el-drawer title="编辑产品" :visible.sync="editFormVisible" size="50%" :with-header="false" append-to-body :close-on-click-modal="false"> |
|
|
|
@ -311,7 +303,7 @@ import XmProductSelect from './XmProductSelect.vue'; |
|
|
|
pickerOptions: util.pickerOptions('datarange'), |
|
|
|
projectVisible:false, |
|
|
|
productSelectVisible:false, |
|
|
|
showType:true, |
|
|
|
showType:false, |
|
|
|
/**begin 自定义属性请在下面加 请加备注**/ |
|
|
|
|
|
|
|
/**end 自定义属性请在上面加 请加备注**/ |
|
|
|
|