Commit 248bd9e5 authored by 徐来柯's avatar 徐来柯

optiomize

parent 9e6da03f
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
position: relative; position: relative;
margin-top:100px; margin-top:100px;
width:100%; width:100%;
height:calc(100vh - 140px); height:calc(100vh - 130px);
background: #EEEEEE; background: #EEEEEE;
padding-top:10px; padding-top:10px;
.wrap { .wrap {
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
// 分页样式 // 分页样式
.page_bottom{ .page_bottom{
width:97%; width: 99%;
margin: auto; margin: auto;
height:50px; height:50px;
padding-top:12px; padding-top: 15px;
user-select: none; user-select: none;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
...@@ -36,11 +36,6 @@ export default new Vuex.Store({ ...@@ -36,11 +36,6 @@ export default new Vuex.Store({
tableHeight: 585, tableHeight: 585,
}, },
getters: {
someHeight: state => {
return state.tableHeight - 10
}
},
mutations: { mutations: {
changecolor(state,n){ changecolor(state,n){
state.color = n; state.color = n;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<search-form :formList="[1,2]" :searchList="searchList" :formData="formData" @searchData="searchData" /> <search-form :formList="[1,2]" :searchList="searchList" :formData="formData" @searchData="searchData" />
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.state.tableHeight"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<search-form ref="form" :formList="[1,2,3]" :searchList="searchList" :btnList="[1,2]" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-form ref="form" :formList="[1,2,3]" :searchList="searchList" :btnList="[1,2]" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" />
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.state.tableHeight"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<search-form ref="form" :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-form ref="form" :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" />
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.state.tableHeight"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="conterFool_middle" style="width:98%;margin:auto"> <div class="conterFool_middle" style="width:98%;margin:auto">
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.state.tableHeight"
class="conterFool_middle" class="conterFool_middle"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
...@@ -774,7 +774,7 @@ export default { ...@@ -774,7 +774,7 @@ export default {
position: relative; position: relative;
margin-top:100px; margin-top:100px;
width:100%; width:100%;
height:calc(100vh - 140px); height:calc(100vh - 130px);
background: #EEEEEE; background: #EEEEEE;
padding-top:10px; padding-top:10px;
.noneBox{ .noneBox{
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<search-form ref="form" :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-form ref="form" :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" />
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.state.tableHeight"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-table <el-table
border border
ref="multipleTable" ref="multipleTable"
:height="$store.getters.someHeight" :height="$store.state.tableHeight"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
......
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
props: { props: {
baseTableHeight: { baseTableHeight: {
type: Number, type: Number,
default: 575 default: 585
}, },
// 是否显示表格勾选框 // 是否显示表格勾选框
showSelection: { showSelection: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment