Commit 467a4f73 authored by 徐来柯's avatar 徐来柯

update

parent 450a6f7d
...@@ -36,6 +36,11 @@ export default new Vuex.Store({ ...@@ -36,6 +36,11 @@ 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.state.tableHeight" :height="$store.getters.someHeight"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<search-form :formList="[1,2,3]" :searchList="searchList" :btnList="[1,2]" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-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.state.tableHeight" :height="$store.getters.someHeight"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<search-form :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-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.state.tableHeight" :height="$store.getters.someHeight"
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.state.tableHeight" :height="$store.getters.someHeight"
class="conterFool_middle" class="conterFool_middle"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<search-form :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-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.state.tableHeight" :height="$store.getters.someHeight"
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.state.tableHeight" :height="$store.getters.someHeight"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
......
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