更正和添加页面样式修改,报错问题解决
Showing
2 changed files
with
10 additions
and
11 deletions
| ... | @@ -69,7 +69,7 @@ | ... | @@ -69,7 +69,7 @@ |
| 69 | type: [], | 69 | type: [], |
| 70 | }, | 70 | }, |
| 71 | tableData: [], | 71 | tableData: [], |
| 72 | tableHeight: "", | 72 | tableHeight: 0, |
| 73 | }; | 73 | }; |
| 74 | }, | 74 | }, |
| 75 | created() { | 75 | created() { |
| ... | @@ -79,9 +79,9 @@ | ... | @@ -79,9 +79,9 @@ |
| 79 | pageNo: this.pageNo, | 79 | pageNo: this.pageNo, |
| 80 | pageSize: this.pageSize, | 80 | pageSize: this.pageSize, |
| 81 | }) | 81 | }) |
| 82 | this.$nextTick(()=>{ | 82 | this.$nextTick(() => { |
| 83 | this.tableHeight = this.$refs.dataGrid.offsetHeight - 68; | 83 | this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255; |
| 84 | }) | 84 | }); |
| 85 | }, | 85 | }, |
| 86 | methods: { | 86 | methods: { |
| 87 | handleCurrentChange(val) { | 87 | handleCurrentChange(val) { |
| ... | @@ -150,7 +150,7 @@ | ... | @@ -150,7 +150,7 @@ |
| 150 | padding: 0 18px; | 150 | padding: 0 18px; |
| 151 | display: flex; | 151 | display: flex; |
| 152 | flex-direction: column; | 152 | flex-direction: column; |
| 153 | background-color: #fcfdff; | 153 | background-color: #EAEDF5; |
| 154 | .demo-form-inline { | 154 | .demo-form-inline { |
| 155 | margin-top: 18px; | 155 | margin-top: 18px; |
| 156 | .moreSearchBtn { | 156 | .moreSearchBtn { | ... | ... |
| ... | @@ -71,16 +71,16 @@ | ... | @@ -71,16 +71,16 @@ |
| 71 | }, | 71 | }, |
| 72 | queryData: {}, | 72 | queryData: {}, |
| 73 | tableData: [], | 73 | tableData: [], |
| 74 | tableHeight: "", | 74 | tableHeight: 0, |
| 75 | }; | 75 | }; |
| 76 | }, | 76 | }, |
| 77 | created() { | 77 | created() { |
| 78 | }, | 78 | }, |
| 79 | mounted() { | 79 | mounted() { |
| 80 | this.getData({}) | 80 | this.getData({}) |
| 81 | this.$nextTick(()=>{ | 81 | this.$nextTick(() => { |
| 82 | this.tableHeight = this.$refs.dataGrid.offsetHeight - 68; | 82 | this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255; |
| 83 | }) | 83 | }); |
| 84 | }, | 84 | }, |
| 85 | methods: { | 85 | methods: { |
| 86 | handleCurrentChange(val) { | 86 | handleCurrentChange(val) { |
| ... | @@ -168,7 +168,7 @@ | ... | @@ -168,7 +168,7 @@ |
| 168 | padding: 0 18px; | 168 | padding: 0 18px; |
| 169 | display: flex; | 169 | display: flex; |
| 170 | flex-direction: column; | 170 | flex-direction: column; |
| 171 | background-color: #fcfdff; | 171 | background-color: #EAEDF5; |
| 172 | .demo-form-inline { | 172 | .demo-form-inline { |
| 173 | margin-top: 18px; | 173 | margin-top: 18px; |
| 174 | .moreSearchBtn { | 174 | .moreSearchBtn { |
| ... | @@ -182,7 +182,6 @@ | ... | @@ -182,7 +182,6 @@ |
| 182 | } | 182 | } |
| 183 | .dataGrid { | 183 | .dataGrid { |
| 184 | flex: 1; | 184 | flex: 1; |
| 185 | margin-top: 20px; | ||
| 186 | .pagination { | 185 | .pagination { |
| 187 | padding: 18px 0; | 186 | padding: 18px 0; |
| 188 | } | 187 | } | ... | ... |
-
Please register or sign in to post a comment