Commit be9f1db9 authored by renjintao's avatar renjintao

shopIndex

parent 9f7da4b7
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
:action="action" :action="action"
:conditions="easySearch" :conditions="easySearch"
style="margin-top: 45px;" style="margin-top: 45px;"
:height="tdHeight"
> >
<template slot="easySearch"> <template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline> <Form ref="formInline" :model="easySearch" inline>
...@@ -103,6 +104,7 @@ export default { ...@@ -103,6 +104,7 @@ export default {
editModal: false, editModal: false,
detailModal: false, detailModal: false,
deletelModal: false, deletelModal: false,
tdHeight: "",
curId: 0, curId: 0,
curId1: 0, curId1: 0,
curShopName: '', curShopName: '',
...@@ -250,8 +252,17 @@ export default { ...@@ -250,8 +252,17 @@ export default {
}, },
mounted() { mounted() {
this.loadData() this.loadData()
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight;
this.tdHeight = window.screenHeight - 265;
})();
};
},
created() {
this.tdHeight = window.innerHeight - 265;
}, },
created() {},
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch('loadDictionary') // 加载数据字典
}, },
...@@ -352,6 +363,6 @@ export default { ...@@ -352,6 +363,6 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.full { .full {
margin-top: 0; margin-top:0;
} }
</style> </style>
\ No newline at end of file
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