Browse Source

优化

master
陈裕财 4 years ago
parent
commit
4e7e36cbda
  1. 18
      src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue
  2. 2
      src/views/xm/core/xmMenu/XmMenuAdd.vue
  3. 2
      src/views/xm/core/xmMenu/XmMenuEdit.vue
  4. 9
      src/views/xm/core/xmMenu/XmMenuMng.vue
  5. 31
      src/views/xm/core/xmMenu/XmMenuMngBatch.vue
  6. 10
      src/views/xm/core/xmMenu/XmMenuSelect.vue
  7. 10
      src/views/xm/core/xmMenu/XmMenuWithPlan.vue

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

@ -18,14 +18,26 @@
<el-table ref="table" :height="maxTableHeight" :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 ref="table" :height="maxTableHeight" :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 type="selection" width="45"></el-table-column>
<el-table-column prop="productId" label="产品" min-width="120" >
</el-table-column>
<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">
<el-link type="primary" :icon="scope.row.ntype=='1'?'el-icon-folder-opened':''">{{scope.row.seqNo}}</el-link>
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i>
</div>
<div v-if="scope.row.dclass=='2'" class="icon" style="background-color: rgb(0, 153, 51);">
<i class="el-icon-s-flag"></i>
</div>
<div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i>
</div>
<span class="vlink" type="primary">{{scope.row.seqNo}}
&nbsp;&nbsp;{{scope.row.menuName}} &nbsp;&nbsp;{{scope.row.menuName}}
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="productId" label="产品" min-width="120" >
</el-table-column>
<el-table-column prop="iterationName" label="迭代" min-width="120" > <el-table-column prop="iterationName" label="迭代" min-width="120" >
</el-table-column> </el-table-column>
<el-table-column prop="mmUsername" label="责任人" width="140" > <el-table-column prop="mmUsername" label="责任人" width="140" >

2
src/views/xm/core/xmMenu/XmMenuAdd.vue

@ -196,6 +196,8 @@
this.addForm.dclass='1' this.addForm.dclass='1'
} }
}else{
this.addFOrm.dclass=this.xmMenu.dclass
} }
} }
} }

2
src/views/xm/core/xmMenu/XmMenuEdit.vue

@ -136,7 +136,7 @@
<br>手工填报 指需求(不包括需求池)的数据来自手工填报无论是否关联了任务都不从任务汇总 <br>手工填报 指需求(不包括需求池)的数据来自手工填报无论是否关联了任务都不从任务汇总
</font> </font>
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="相关链接" name="4">
<el-collapse-item title="相关链接" name="5">
<el-form-item label="需求链接" prop="demandUrl"> <el-form-item label="需求链接" prop="demandUrl">
<el-input v-model="editForm.demandUrl" placeholder="需求链接" ></el-input> <el-input v-model="editForm.demandUrl" placeholder="需求链接" ></el-input>
</el-form-item> </el-form-item>

9
src/views/xm/core/xmMenu/XmMenuMng.vue

@ -160,20 +160,20 @@
<div class="icon" style="background-color: rgb(255, 153, 51);"> <div 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>
<el-button @click="showAdd">新建史诗</el-button>
<el-button @click="showAdd('1')">新建史诗</el-button>
</el-col> </el-col>
<el-col :span="24" style="padding-top:5px;"> <el-col :span="24" style="padding-top:5px;">
<div class="icon" style="background-color: rgb(0, 153, 51);"> <div class="icon" style="background-color: rgb(0, 153, 51);">
<i class="el-icon-s-flag"></i> <i class="el-icon-s-flag"></i>
</div> </div>
<el-button @click="showAdd">新建特性</el-button>
<el-button @click="showAdd('2')">新建特性</el-button>
</el-col> </el-col>
<el-col :span="24" style="padding-top:5px;"> <el-col :span="24" style="padding-top:5px;">
<div class="icon" style="background-color: rgb(79, 140, 255);"> <div class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i> <i class="el-icon-document"></i>
</div> </div>
<el-button @click="showAdd" >新建用户故事</el-button>
<el-button @click="showAdd('3')" >新建用户故事</el-button>
</el-col> </el-col>
@ -671,11 +671,12 @@
this.editForm = Object.assign({}, row); this.editForm = Object.assign({}, row);
}, },
// XmMenu xm_project_menu // XmMenu xm_project_menu
showAdd: function () {
showAdd: function (dclass) {
if(this.filters.product && this.filters.product.id){ if(this.filters.product && this.filters.product.id){
this.parentMenu=null; this.parentMenu=null;
this.addForm.productId=this.filters.product.id this.addForm.productId=this.filters.product.id
this.addForm.productName=this.filters.product.productName this.addForm.productName=this.filters.product.productName
this.addForm.dclass=dclass
this.addFormVisible = true; this.addFormVisible = true;
}else{ }else{
this.productVisible=true; this.productVisible=true;

31
src/views/xm/core/xmMenu/XmMenuMngBatch.vue

@ -8,14 +8,23 @@
<el-row style="padding-top:12px;"> <el-row style="padding-top:12px;">
<el-table ref="table" :indent="16" lazy :load="loadXmMenusLazy" :height="maxTableHeight" :data="xmMenusTreeData" class="drag-table" row-key="menuId" :tree-props="{children: 'children', hasChildren: 'childrenCnt'}" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> <el-table ref="table" :indent="16" lazy :load="loadXmMenusLazy" :height="maxTableHeight" :data="xmMenusTreeData" class="drag-table" row-key="menuId" :tree-props="{children: 'children', hasChildren: 'childrenCnt'}" 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 type="selection" width="45"></el-table-column>
<el-table-column prop="seqNo" label="序号" width="150">
<template slot-scope="scope">
<el-input style="width:100%;" v-model="scope.row.seqNo" @change="fieldChange(scope.row,'seqNo')"></el-input>
<el-table-column prop="seqNo" label="序号" width="200" fixed="left">
<template slot-scope="scope">
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i>
</div>
<div v-if="scope.row.dclass=='2'" class="icon" style="background-color: rgb(0, 153, 51);">
<i class="el-icon-s-flag"></i>
</div>
<div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i>
</div>
<el-input style="width:70%;" v-model="scope.row.seqNo" @change="fieldChange(scope.row,'seqNo')"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="menuName" label="需求名称" min-width="140" show-overflow-tooltip>
<template slot-scope="scope">
<el-table-column prop="menuName" label="需求名称" min-width="140" show-overflow-tooltip fixed="left">
<template slot-scope="scope">
<el-input v-model="scope.row.menuName" @change="fieldChange(scope.row,'menuName')"></el-input> <el-input v-model="scope.row.menuName" @change="fieldChange(scope.row,'menuName')"></el-input>
</template> </template>
</el-table-column> </el-table-column>
@ -272,10 +281,10 @@
text-align:center; text-align:center;
float:left; float:left;
padding-top:5px; padding-top:5px;
}
.el-table{
box-sizing: border-box;
/deep/ .cell {
}
.el-table {
box-sizing: border-box;
/deep/ .cell {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
@ -284,7 +293,7 @@
word-break: break-all; word-break: break-all;
line-height: 23px; line-height: 23px;
padding-right: 10px; padding-right: 10px;
display: flex;
}
display: flex;
}
} }
</style> </style>

10
src/views/xm/core/xmMenu/XmMenuSelect.vue

@ -114,6 +114,16 @@
<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 v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i>
</div>
<div v-if="scope.row.dclass=='2'" class="icon" style="background-color: rgb(0, 153, 51);">
<i class="el-icon-s-flag"></i>
</div>
<div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i>
</div>
<span class="vlink" :class="scope.row.ntype==='1'?'el-icon-folder-opened':''" @click="toMenu(scope.row)">{{scope.row.seqNo}}&nbsp; <span class="vlink" :class="scope.row.ntype==='1'?'el-icon-folder-opened':''" @click="toMenu(scope.row)">{{scope.row.seqNo}}&nbsp;
{{scope.row.menuName}}</span> {{scope.row.menuName}}</span>
</template> </template>

10
src/views/xm/core/xmMenu/XmMenuWithPlan.vue

@ -18,6 +18,16 @@
<el-table-column sortable type="selection" width="40"></el-table-column> <el-table-column sortable type="selection" width="40"></el-table-column>
<el-table-column prop="menuName" label="需求名称" min-width="150" > <el-table-column prop="menuName" label="需求名称" min-width="150" >
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.dclass=='1'" class="icon" style="background-color: rgb(255, 153, 51);">
<i class="el-icon-s-promotion"></i>
</div>
<div v-if="scope.row.dclass=='2'" class="icon" style="background-color: rgb(0, 153, 51);">
<i class="el-icon-s-flag"></i>
</div>
<div v-if="scope.row.dclass=='3'" class="icon" style="background-color: rgb(79, 140, 255);">
<i class="el-icon-document"></i>
</div>
<span class="vlink" type="primary" @click="toMenu(scope.row)"> {{scope.row.seqNo}}&nbsp; {{scope.row.menuName}} </span> <span class="vlink" type="primary" @click="toMenu(scope.row)"> {{scope.row.seqNo}}&nbsp; {{scope.row.menuName}} </span>
</template> </template>
</el-table-column> </el-table-column>

Loading…
Cancel
Save