Browse Source

table高度调整

shibei_master
jiangyy 3 years ago
parent
commit
48f019c8e8
  1. 6
      src/js/store/modules/app.js
  2. 4
      src/views/modules/base/community/buildTable.vue
  3. 10
      src/views/modules/base/community/communityTable.vue
  4. 6
      src/views/modules/base/community/roomTable.vue
  5. 8
      src/views/modules/communityService/ninePlaces/inspect/inspect.vue
  6. 8
      src/views/modules/communityService/ninePlaces/places/places.vue
  7. 8
      src/views/modules/communityService/ninePlaces/team/team.vue

6
src/js/store/modules/app.js

@ -5,13 +5,15 @@ export default {
clientHeight: document.documentElement.clientHeight, clientHeight: document.documentElement.clientHeight,
size: 'medium', size: 'medium',
resolution: 'medium', resolution: 'medium',
env: 'dev' env: 'dev',
iframeHeight:120
}, },
getters: { getters: {
clientHeight: (state) => state.clientHeight, clientHeight: (state) => state.clientHeight,
size: (state) => state.size, size: (state) => state.size,
resolution: (state) => state.resolution, resolution: (state) => state.resolution,
env: (state) => state.env env: (state) => state.env,
iframeHeight: (state) => state.iframeHeight
}, },
mutations: { mutations: {
[type.client_height](state, payload) { [type.client_height](state, payload) {

4
src/views/modules/base/community/buildTable.vue

@ -235,11 +235,11 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 300) return this.$store.state.inIframe ? this.clientHeight - 300 + this.iframeHeight : this.clientHeight - 300
}, },
...mapGetters(['clientHeight']) ...mapGetters(['clientHeight', 'iframeHeight'])
}, },
methods: { methods: {
// //

10
src/views/modules/base/community/communityTable.vue

@ -285,13 +285,13 @@ export default {
}, },
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 300)
return this.$store.state.inIframe ? this.clientHeight - 300 + this.iframeHeight : this.clientHeight - 300
}, },
rowHeight () {
return (this.clientHeight - 200) + 'px' ...mapGetters(['clientHeight', 'iframeHeight'])
},
...mapGetters(['clientHeight'])
}, },
methods: { methods: {
// //

6
src/views/modules/base/community/roomTable.vue

@ -131,7 +131,7 @@
@click="handleDetail(scope.row)">查看</el-button> @click="handleDetail(scope.row)">查看</el-button>
<el-button v-if="scope.row.showBtn" <el-button v-if="scope.row.showBtn"
type="text" type="text"
class="div-table-button--edit" class="div-table-button--edit"
size="small" size="small"
@click="handleEdit(scope.row)">修改</el-button> @click="handleEdit(scope.row)">修改</el-button>
@ -230,11 +230,11 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 300) return this.$store.state.inIframe ? this.clientHeight - 300 + this.iframeHeight : this.clientHeight - 300
}, },
...mapGetters(['clientHeight']) ...mapGetters(['clientHeight', 'iframeHeight'])
}, },
methods: { methods: {
// //

8
src/views/modules/communityService/ninePlaces/inspect/inspect.vue

@ -529,13 +529,11 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 420) return this.$store.state.inIframe ? this.clientHeight - 420 + this.iframeHeight : this.clientHeight - 420
}, },
rowHeight () {
return (this.clientHeight - 200) + 'px' ...mapGetters(['clientHeight', 'iframeHeight'])
},
...mapGetters(['clientHeight'])
}, },
watch: { watch: {

8
src/views/modules/communityService/ninePlaces/places/places.vue

@ -464,13 +464,11 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 420) return this.$store.state.inIframe ? this.clientHeight - 300 + this.iframeHeight : this.clientHeight - 300
}, },
rowHeight () {
return (this.clientHeight - 200) + 'px' ...mapGetters(['clientHeight', 'iframeHeight'])
},
...mapGetters(['clientHeight'])
}, },
watch: { watch: {

8
src/views/modules/communityService/ninePlaces/team/team.vue

@ -441,13 +441,11 @@ export default {
computed: { computed: {
tableHeight () { tableHeight () {
return (this.clientHeight - 370) return this.$store.state.inIframe ? this.clientHeight - 370 + this.iframeHeight : this.clientHeight - 370
}, },
rowHeight () {
return (this.clientHeight - 200) + 'px' ...mapGetters(['clientHeight', 'iframeHeight'])
},
...mapGetters(['clientHeight'])
}, },
watch: { watch: {

Loading…
Cancel
Save