|
|
@ -41,8 +41,9 @@ |
|
|
</el-popover> |
|
|
</el-popover> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
<el-row ref="table"> |
|
|
<el-row v-show="batchEditVisible" class="app-container"> |
|
|
<el-row v-show="batchEditVisible" class="app-container"> |
|
|
<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="table1" :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 type="selection" width="45"></el-table-column> |
|
|
<el-table-column sortable prop="seqNo" label="序号" min-width="100"> |
|
|
<el-table-column sortable prop="seqNo" label="序号" min-width="100"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
@ -87,7 +88,7 @@ |
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row v-show="!batchEditVisible" class="app-container"> |
|
|
<el-row v-show="!batchEditVisible" class="app-container"> |
|
|
<el-table :max-height="tableHeight" :data="xmMenusTreeData" 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="table2" :max-height="tableHeight" :data="xmMenusTreeData" 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="40"></el-table-column> |
|
|
<el-table-column sortable type="selection" width="40"></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"> |
|
|
@ -152,6 +153,7 @@ |
|
|
<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-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> |
|
|
|
|
|
</el-row> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<!--编辑 XmMenu xm_project_menu界面--> |
|
|
<!--编辑 XmMenu xm_project_menu界面--> |
|
|
<el-dialog title="编辑故事" :visible.sync="editFormVisible" width="50%" append-to-body :close-on-click-modal="false"> |
|
|
<el-dialog title="编辑故事" :visible.sync="editFormVisible" width="50%" append-to-body :close-on-click-modal="false"> |
|
|
@ -259,7 +261,6 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -1042,9 +1043,16 @@ |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
var clientRect=this.$refs.table.$el.getBoundingClientRect(); |
|
|
|
|
|
var subHeight=65; |
|
|
|
|
|
this.tableHeight = window.innerHeight -clientRect.y - this.$refs.table.$el.offsetTop-subHeight; |
|
|
|
|
|
|
|
|
var subHeight=300/1000 * window.innerHeight |
|
|
|
|
|
if(this.selProject){ |
|
|
|
|
|
subHeight=400/1000 * window.innerHeight |
|
|
|
|
|
} |
|
|
|
|
|
this.tableHeight = window.innerHeight - subHeight |
|
|
|
|
|
|
|
|
|
|
|
let self = this; |
|
|
|
|
|
window.onresize = function() { |
|
|
|
|
|
self.tableHeight = window.innerHeight - subHeight; |
|
|
|
|
|
} |
|
|
this.getXmMenus(); |
|
|
this.getXmMenus(); |
|
|
}); |
|
|
}); |
|
|
// 阻止默认行为 |
|
|
// 阻止默认行为 |
|
|
|