Browse Source

故事界面优化

master
陈裕财 5 years ago
parent
commit
3c5c412ba7
  1. 9
      src/views/xm/core/xmMenu/XmMenuMng.vue
  2. 9
      src/views/xm/core/xmMenu/XmMenuMngBatch.vue
  3. 2
      src/views/xm/core/xmMenu/XmMenuWithPlan.vue

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

@ -202,7 +202,7 @@
</el-row> </el-row>
<el-row v-if="batchEditVisible && filters.product" :span="24"> <el-row v-if="batchEditVisible && filters.product" :span="24">
<xm-menu-mng-batch @no-batch-edit=noBatchEdit :product="filters.product"></xm-menu-mng-batch>
<xm-menu-mng-batch :sel-project="selProject" @no-batch-edit="noBatchEdit" :product="filters.product"></xm-menu-mng-batch>
</el-row> </el-row>
</section> </section>
</template> </template>
@ -813,9 +813,12 @@
if(this.filters.product==null){ if(this.filters.product==null){
this.productVisible=true; this.productVisible=true;
} }
this.$nextTick(() => {
this.$nextTick(() => {
var clientRect=this.$refs.table.$el.getBoundingClientRect(); var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=70/1000 * window.innerHeight;
var subHeight=65/1000 * window.innerHeight;
if(this.selProject){
subHeight=110/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight; this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
this.getXmMenus(); this.getXmMenus();
}); });

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

@ -94,8 +94,8 @@
</el-row> </el-row>
<el-row style="padding-top:12px;"> <el-row style="padding-top:12px;">
<el-table ref="table" :max-height="tableHeight" :data="xmMenusTreeData" class="drag-table" 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" :max-height="tableHeight" :data="xmMenusTreeData" class="drag-table" 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 sortable type="selection" width="45"></el-table-column>
<el-table-column sortable prop="seqNo" label="序号" min-width="100">
<el-table-column type="selection" width="45"></el-table-column>
<el-table-column prop="seqNo" label="序号" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display:flex;width:100%;"> <div style="display:flex;width:100%;">
<el-popover <el-popover
@ -1087,7 +1087,10 @@
this.getXmMenus(); this.getXmMenus();
var clientRect=this.$refs.table.$el.getBoundingClientRect(); var clientRect=this.$refs.table.$el.getBoundingClientRect();
var subHeight=65/1000 * window.innerHeight; var subHeight=65/1000 * window.innerHeight;
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
if(this.selProject){
subHeight=110/1000 * window.innerHeight;
}
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight;
}); });

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

@ -94,7 +94,7 @@
</el-row> </el-row>
<el-row v-show="batchEditVisible"> <el-row v-show="batchEditVisible">
<el-table :data="xmMenusTreeData" 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 :max-height="tableHeight" :data="xmMenusTreeData" 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 prop="menuName" label="故事名称" min-width="150" > <el-table-column prop="menuName" label="故事名称" min-width="150" >
<template slot-scope="scope"> <template slot-scope="scope">

Loading…
Cancel
Save