Browse Source

优化

master
陈裕财 4 years ago
parent
commit
9818ec2b8b
  1. 18
      src/views/xm/core/xmIteration/XmIterationMng.vue
  2. 10
      src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue

18
src/views/xm/core/xmIteration/XmIterationMng.vue

@ -1,5 +1,5 @@
<template>
<section class="page-container page-full-height padding border">
<section class="page-container padding border">
<el-row>
<el-checkbox v-model="gstcVisible" class="hidden-md-and-down">甘特图</el-checkbox>
@ -16,10 +16,8 @@
:default-time="['00:00:00','23:59:59']" :picker-options="pickerOptions">
</el-date-picker>
<el-input v-model="filters.key" style="width: 15%;" placeholder="模糊查询">
<template slot="append">
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmIterations" icon="el-icon-search"></el-button>
</template>
</el-input>
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmIterations" icon="el-icon-search"></el-button>
<el-button type="primary" @click="showAdd" icon="el-icon-plus">迭代计划</el-button>
<el-popover
placement="top-start"
@ -77,14 +75,18 @@
<!--列表 XmIteration 迭代定义-->
<el-table ref="table" :height="tableHeight" v-if="!gstcVisible" :data="xmIterationTreeData" row-key="id" default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" aria-disabled width="55"></el-table-column>
<el-table-column prop="iterationName" label="迭代名称" min-width="160" show-overflow-tooltip>
<el-table-column prop="iterationName" label="迭代名称" min-width="260">
<template slot-scope="scope">
<span>{{scope.row.seqNo}} &nbsp;&nbsp;<el-link type="primary" @click="intoInfo( scope.row,scope.$index)"> {{scope.row.iterationName}} </el-link></span>
<el-link type="primary" @click="intoInfo( scope.row,scope.$index)"> {{scope.row.seqNo}} &nbsp;&nbsp;{{scope.row.iterationName}} </el-link>
</template>
</el-table-column>
<el-table-column prop="finishRate" label="总进度" min-width="80" >
<template slot-scope="scope">
{{scope.row.finishRate}}%
<font class="align-right"><el-tag :type="scope.row.finishRate>=100?'success':'warning'">{{scope.row.finishRate}}%</el-tag>
<el-tooltip content="点击统计进度,由任务汇总"><el-button type="text" icon="el-icon-video-play" @click.stop="loadTasksToXmIterationState( scope.row)"></el-button></el-tooltip>
</font>
</template>
</el-table-column>
<el-table-column prop="startTime" label="开始时间" min-width="80" :formatter="formatterDate" show-overflow-tooltip></el-table-column>
@ -93,7 +95,7 @@
<el-table-column prop="adminUsername" label="负责人姓名" min-width="80" show-overflow-tooltip></el-table-column>
<el-table-column prop="distBudgetWorkload" label="已分配工作量" min-width="80" show-overflow-tooltip></el-table-column>
<el-table-column prop="actWorkload" label="实际工作量" min-width="80" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="400" fixed="right">
<el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope">
<el-button type="danger" @click="handleDel(scope.row,scope.$index)" icon="el-icon-delete"></el-button>
</template>

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

@ -6,21 +6,19 @@
<xm-iteration-mng :simple="true" @row-click="onIterationRowClick" @clear-select="onIterationClearSelect"></xm-iteration-mng>
</el-col>
<el-col :span="xmIteration?24:16">
<el-row>
<el-row class="padding-left">
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询">
<template slot="append">
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmIterationMenus" icon="el-icon-search"></el-button>
</template>
</el-input>
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmIterationMenus" icon="el-icon-search"></el-button>
<el-button type="primary" @click="showAdd" icon="el-icon-plus">加入更多故事到迭代计划</el-button>
</el-row>
<el-row class="page-main padding-top">
<el-row class="page-main padding-top padding-left">
<!--列表 XmIterationMenu 迭代定义-->
<el-table ref="table" :height="tableHeight" :data="xmIterationMenusTreeData" default-expand-all row-key="menuId" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="45"></el-table-column>
<el-table-column prop="menuName" label="故事名称" min-width="140" >
<template slot-scope="scope">
{{scope.row.seqNo}}&nbsp;&nbsp;{{scope.row.menuName}}
<el-link type="primary" :icon="scope.row.ntype=='1'?'el-icon-folder-opened':''">{{scope.row.seqNo}}&nbsp;&nbsp;{{scope.row.menuName}}</el-link>
</template>
</el-table-column>
<el-table-column prop="mmUsername" label="责任人" width="140" >

Loading…
Cancel
Save