| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | //侧边栏 |
| | | .sidebar-box { |
| | | margin: 0 20px 0 0 ; |
| | | .box-card{ |
| | | min-height: 300px; |
| | | max-height: calc(100vh - 198px); |
| | | overflow: auto; |
| | | scrollbar-width: none; /* Firefox */ |
| | | -ms-overflow-style: none; /* IE 10+ */ |
| | | &::-webkit-scrollbar { |
| | | display: none; /* Chrome Safari */ |
| | | } |
| | | } |
| | | } |
| | | //main-container全局样式 |
| | | .app-container { |
| | | display: flex; |
| | | padding: 20px; |
| | | flex: 1; |
| | | overflow: auto; |
| | | } |
| | | |
| | | .components-container { |
| | | margin: 30px 50px; |
| | | position: relative; |
| | |
| | | color: rgb(32, 160, 255); |
| | | } |
| | | } |
| | | |
| | | .filter-card{ |
| | | margin-bottom: 20px; |
| | | } |
| | | .filter-container { |
| | | padding-bottom: 10px; |
| | | |
| | | .filter-item { |
| | | display: inline-block; |
| | | vertical-align: middle; |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .app-main { |
| | | /* 50= navbar 50 */ |
| | | display: flex; |
| | | min-height: calc(100vh - 50px); |
| | | width: 100%; |
| | | position: relative; |
| | |
| | | display: flex; |
| | | } |
| | | |
| | | .base-container { |
| | | .app-container { |
| | | /*50 = navbar */ |
| | | flex: 1; |
| | | height: calc(100vh - 198px); |
| | | border-radius:10px; |
| | | overflow: auto; |
| | | scrollbar-width: none; /* Firefox */ |
| | | -ms-overflow-style: none; /* IE 10+ */ |
| | | &::-webkit-scrollbar { |
| | | display: none; /* Chrome Safari */ |
| | | } |
| | | //scrollbar-width: none; /* Firefox */ |
| | | //-ms-overflow-style: none; /* IE 10+ */ |
| | | //&::-webkit-scrollbar { |
| | | // display: none; /* Chrome Safari */ |
| | | //} |
| | | .box-card{ |
| | | .el-card__body{ |
| | | padding-top: 0; |
| | | //padding-top: 0; |
| | | .el-form-item--small.el-form-item{ |
| | | margin-top: 20px; |
| | | margin-bottom: 0; |
| | |
| | | v-for="(custom, idx) in myTable.tools.custom" |
| | | :key="idx" |
| | | site="tools" |
| | | :type="custom.myType" |
| | | :check-permission="custom.checkPermission" |
| | | :name="custom.name" |
| | | @click="custom.click" |
| | |
| | | :sortable="column.sortable" |
| | | :label="column.title" |
| | | :type="column.type" |
| | | :width="column.width" |
| | | :min-width="column.minWidth" |
| | | :min-width="column.width" |
| | | :align="column.align" |
| | | :header-align="column.align" |
| | | > |
| | |
| | | v-if="myTable.operation.show" |
| | | label="操作" |
| | | align="center" |
| | | :width="myTable.operation.width" |
| | | :min-width="myTable.operation.width" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="scope"> |
| | |
| | | }) |
| | | ) |
| | | this.myTable.loading = false |
| | | // this.$refs[this.myTable.ref].doLayout() |
| | | }).catch(() => { |
| | | this.myTable.loading = false |
| | | }) |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | >>> .el-table__fixed-right { |
| | | height: 100% !important; |
| | | >>> .el-table__header { |
| | | width: 100% !important; |
| | | } |
| | | >>> .el-table__body { |
| | | width: 100% !important; |
| | | } |
| | | |
| | | /*详情表单*/ |
| | |
| | | text-align: center; |
| | | margin: 0 auto; |
| | | } |
| | | |
| | | .table-tool-bar{ |
| | | margin-bottom: 20px; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="app-main"> |
| | | <div class="base-container"> |
| | | <el-card shadow="never" class="box-card"> |
| | | <div class="app-container"> |
| | | <el-card shadow="never" class="box-card filter-card"> |
| | | <!--搜索条件--> |
| | | <div class="filter-container"> |
| | | <el-form :inline="true" :model="filterForm" size="small"> |
| | |
| | | <my-table-v3 ref="myTable" :filter="filterForm" :table="table" /> |
| | | <!--添加/编辑弹窗--> |
| | | <add v-if="editSetting.show" :setting="editSetting" @close="editSetting.show=false" @search="search" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | { |
| | | name: '添加', |
| | | checkPermission: 'etaa:paper:add', |
| | | // myType: 'danger', |
| | | mySize: 'mini', |
| | | myType: 'danger', |
| | | click: ()=> { |
| | | this.handleRAdd(); |
| | | } |
| | |
| | | <template> |
| | | <div class="app-main info-main"> |
| | | <div class="app-container"> |
| | | <el-aside class="sidebar-box" style="padding: 0;"> |
| | | <div class="sidebar"> |
| | | <el-card class="box-card" shadow="never"> |
| | |
| | | </div> |
| | | </el-aside> |
| | | |
| | | <div class="base-container flex-1"> |
| | | <el-card shadow="never" class="box-card"> |
| | | <div class="flex-1"> |
| | | <el-card shadow="never" class="box-card filter-card"> |
| | | <!--搜索条件--> |
| | | <div class="filter-container"> |
| | | <el-form :inline="true" :model="filterForm" size="small"> |
| | |
| | | { |
| | | name: '添加试题', |
| | | // checkPermission: 'system:config:remove', |
| | | // myType: 'danger', |
| | | myType: 'danger', |
| | | mySize: 'mini', |
| | | click: ()=> { |
| | | this.handleAdd(); |
| | |
| | | </script> |
| | | <style scope lang="scss"> |
| | | .info-main{ |
| | | display:-webkit-box; |
| | | display: -moz-box; |
| | | display: -0-box; |
| | | min-height: calc( 100vh - 50px); |
| | | } |
| | | .flex-1{ |
| | |
| | | <template> |
| | | <div class="app-main"> |
| | | <div class="base-container"> |
| | | <el-card shadow="never" class="box-card"> |
| | | <div class="app-container"> |
| | | <el-card shadow="never" class="box-card filter-card"> |
| | | <!--搜索条件--> |
| | | <div class="filter-container"> |
| | | <el-form :inline="true" :model="filterFrom" size="small"> |
| | |
| | | <my-table-v3 ref="myTable" :filter="filterFrom" :table="table" /> |
| | | <!--添加/编辑弹窗--> |
| | | <edit v-if="editSetting.show" :setting="editSetting" @close="editSetting.show=false" @search="search" /> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | <template> |
| | | <div class="app-main"> |
| | | <div class="base-container"> |
| | | <div class="app-container"> |
| | | <my-table-v3 ref="myTable" :filter="filterForm" :table="table" /> |
| | | </div> |
| | | </div> |
| | |
| | | <template> |
| | | <div class="app-main"> |
| | | <div class="base-container"> |
| | | <div class="app-container"> |
| | | <my-table-v3 ref="myTable" :filter="filterForm" :table="table" /> |
| | | </div> |
| | | </div> |