Browse Source

优化

master
陈裕财 4 years ago
parent
commit
b3eabb4b92
  1. 10
      src/common/js/util.js
  2. 4
      src/views/xm/core/xmIterationMenu/XmIterationMenuMng.vue
  3. 3
      src/views/xm/core/xmMenu/XmEpicFeatures.vue
  4. 3
      src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue
  5. 2
      src/views/xm/core/xmMenu/XmMenuMng.vue

10
src/common/js/util.js

@ -82,7 +82,15 @@ export default {
var defaultInnerHeight=616; var defaultInnerHeight=616;
var pageHeight=32/defaultInnerHeight*innerHeight var pageHeight=32/defaultInnerHeight*innerHeight
var top=148/defaultInnerHeight*innerHeight; var top=148/defaultInnerHeight*innerHeight;
var bottomHeight=32/defaultInnerHeight*innerHeight
var bottomHeight=38/defaultInnerHeight*innerHeight
if(innerHeight>=916){
bottomHeight=20/defaultInnerHeight*innerHeight
}else if(innerHeight>=800){
bottomHeight=28/defaultInnerHeight*innerHeight
}else if(innerHeight>=700){
bottomHeight=32/defaultInnerHeight*innerHeight
}
if(table!=null){ if(table!=null){
var rect=table.getBoundingClientRect() var rect=table.getBoundingClientRect()
if(rect && rect.top!=0){ if(rect && rect.top!=0){

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

@ -1,6 +1,6 @@
<template> <template>
<section> <section>
<el-row class="padding-top">
<el-row>
<el-col :span="8"> <el-col :span="8">
<xm-epic-features-select :xm-product="{id:xmIteration.productId,name:''}" :show-select="false" @row-click="onEpicFeatureSelect"></xm-epic-features-select> <xm-epic-features-select :xm-product="{id:xmIteration.productId,name:''}" :show-select="false" @row-click="onEpicFeatureSelect"></xm-epic-features-select>
</el-col> </el-col>
@ -18,7 +18,7 @@
</span> </span>
</el-row> </el-row>
<el-row class="page-main padding-top padding-left">
<el-row class="page-main padding-left">
<!--列表 XmIterationMenu 迭代定义--> <!--列表 XmIterationMenu 迭代定义-->
<el-table ref="table" :height="maxTableHeight" :data="xmIterationMenusTreeData" row-key="menuId" @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" row-key="menuId" @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>

3
src/views/xm/core/xmMenu/XmEpicFeatures.vue

@ -116,7 +116,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination layout="total, sizes, 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-row>
<!--编辑 XmMenu xm_project_menu界面--> <!--编辑 XmMenu xm_project_menu界面-->
@ -136,7 +136,6 @@
</el-drawer> </el-drawer>
</el-col> </el-col>
</el-row> </el-row>
<el-pagination layout="total, sizes, 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>
<tag-dialog ref="tagDialog" :tagIds="filters.tags?filters.tags.map(i=>i.tagId):[]" :jump="true" @select-confirm="onTagSelected"> <tag-dialog ref="tagDialog" :tagIds="filters.tags?filters.tags.map(i=>i.tagId):[]" :jump="true" @select-confirm="onTagSelected">
</tag-dialog> </tag-dialog>

3
src/views/xm/core/xmMenu/XmEpicFeaturesSelect.vue

@ -43,10 +43,11 @@
</el-table-column> </el-table-column>
</template> </template>
</el-table> </el-table>
<el-pagination layout="total, sizes, 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-row>
</el-col> </el-col>
</el-row> </el-row>
<el-pagination layout="total, sizes, 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>
</section> </section>

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

@ -341,6 +341,7 @@
</el-table-column> </el-table-column>
</template> </template>
</el-table> </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-row>
@ -379,7 +380,6 @@
</el-drawer> </el-drawer>
</el-col> </el-col>
</el-row> </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>
<tag-dialog ref="tagDialog" :tagIds="filters.tags?filters.tags.map(i=>i.tagId):[]" :jump="true" @select-confirm="onTagSelected"> <tag-dialog ref="tagDialog" :tagIds="filters.tags?filters.tags.map(i=>i.tagId):[]" :jump="true" @select-confirm="onTagSelected">
</tag-dialog> </tag-dialog>

Loading…
Cancel
Save