| | |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | @row-click="singleElection" |
| | | height="calc(100% - 124px)" |
| | | height="calc(100% - 80px)" |
| | | > |
| | | <el-table-column align="center" width="55"> |
| | | <template slot-scope="scope"> |
| | |
| | | > |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="text-align: center; margin-top: 20px" class="pagination_box"> |
| | | <div style="text-align: center; margin-top: 10px" class="pagination_box"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | <el-table |
| | | :data="usertableData" |
| | | style="width: 100%" |
| | | height="calc(100% - 124px)" |
| | | height="calc(100% - 80px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"> </el-table-column> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <div style="margin-top: 20px; text-align: center" class="pagination_box"> |
| | | <div style="margin-top: 10px; text-align: center" class="pagination_box"> |
| | | <el-pagination |
| | | @size-change="userhandleSizeChange" |
| | | @current-change="userhandleCurrentChange" |
| | |
| | | resize[i].left = resize[i].offsetLeft; |
| | | // 鼠标拖动事件 |
| | | document.onmousemove = function (e) { |
| | | |
| | | |
| | | let endX = e.clientX; |
| | | console.log(endX ,startX) |
| | | let moveLen = resize[i].left + (endX - startX) - left1[i].offsetWidth ; // (endx-startx)=移动的距离。resize[i].left+移动的距离=左边区域最后的宽度 |
| | | let maxT = box[i].clientWidth - resize[i].offsetWidth; // 容器宽度 - 左边区域的宽度 = 右边区域的宽度 |
| | | |
| | | |
| | | if (moveLen < 205) moveLen = 205; // 左边区域的最小宽度为32px |
| | | if (moveLen > maxT - 300) moveLen = maxT - 300; //右边区域最小宽度为150px |
| | | |
| | |
| | | <style lang="less" scoped> |
| | | //@import url(); 引入公共css类 |
| | | .menuSettings_box { |
| | | height: 98%; |
| | | //height: 98%; |
| | | height: 100%; |
| | | width: 98%; |
| | | padding: 1%; |
| | | padding: 0 1%; |
| | | // position: relative; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | .menuSettings_tree { |
| | | width: 33%; |
| | | height: 98%; |
| | | //height: 98%; |
| | | height: 100%; |
| | | position: relative; |
| | | padding: 10px; |
| | | border-radius: 10px; |
| | |
| | | .el-table /deep/ th, |
| | | .el-table /deep/ tr { |
| | | background-color: transparent !important; |
| | | } |
| | | } |
| | | </style> |
| | | |
| | | |