0a706607 by weimo934

Merge remote-tracking branch 'origin/master'

2 parents b3866baa b0ed247e
1 <template> 1 <template>
2 <div class="tree_item_box" :class="list.length>10 ? 'ofy_scroll':''" :style="{maxHeight:(list.length > 10 ? treeXzqHeight:'unset')+'px'}"> 2 <div class="tree_item_box" >
3 <div 3 <div
4 class="column-start-start linkLine_default" 4 class="column-start-start linkLine_default"
5 v-for="(item, s_index) in list" 5 v-for="(item, s_index) in list"
...@@ -97,9 +97,7 @@ export default { ...@@ -97,9 +97,7 @@ export default {
97 } 97 }
98 }, 98 },
99 mounted(){ 99 mounted(){
100 this.$nextTick(()=>{ 100
101 this.treeXzqHeight = this.$parent.$el.clientHeight-(this.formatData.length-1)*26+60;
102 })
103 }, 101 },
104 methods: { 102 methods: {
105 itemClick(item) { 103 itemClick(item) {
...@@ -231,10 +229,10 @@ export default { ...@@ -231,10 +229,10 @@ export default {
231 width: 100%; 229 width: 100%;
232 cursor: pointer; 230 cursor: pointer;
233 } 231 }
234 .ofy_scroll{ 232 // .ofy_scroll{
235 overflow-y: scroll; 233 // overflow-y: scroll;
236 overflow-x: hidden; 234 // overflow-x: hidden;
237 } 235 // }
238 .basic_layer { 236 .basic_layer {
239 width: 100%; 237 width: 100%;
240 position: relative; 238 position: relative;
......
...@@ -299,8 +299,10 @@ export default { ...@@ -299,8 +299,10 @@ export default {
299 }, 299 },
300 //右键菜单的删除 300 //右键菜单的删除
301 deleteByBsm(){ 301 deleteByBsm(){
302 console.log(this.zdData.zdbsm); 302 let params={"bsm":this.zdData.bsm,"type":this.zdData.type};
303 let params={"bsm":this.zdData.zdbsm,"type":this.zdData.type} 303 if(this.zdData.type=='zd'){
304 params={"bsm":this.zdData.zdbsm,"type":this.zdData.type};
305 }
304 deleteZdInfoByBsm(params) 306 deleteZdInfoByBsm(params)
305 .then((res) => { 307 .then((res) => {
306 if(res.code=200){ 308 if(res.code=200){
...@@ -326,6 +328,8 @@ export default { ...@@ -326,6 +328,8 @@ export default {
326 .content { 328 .content {
327 height: 100%; 329 height: 100%;
328 width: 100%; 330 width: 100%;
331 overflow-y: scroll;
332 overflow-x: hidden;
329 } 333 }
330 .column-start-center { 334 .column-start-center {
331 display: flex; 335 display: flex;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
14 <LineTree :pd="pd" @itemClick="itemClick"></LineTree> 14 <LineTree :pd="pd" @itemClick="itemClick"></LineTree>
15 </div> 15 </div>
16 </el-aside> 16 </el-aside>
17 <el-container> 17 <el-container class="calcWidth">
18 <el-header> 18 <el-header>
19 <div class="header-top"> 19 <div class="header-top">
20 <div class="top-items" @click="toggleClick"> 20 <div class="top-items" @click="toggleClick">
...@@ -328,6 +328,9 @@ export default { ...@@ -328,6 +328,9 @@ export default {
328 .home-box { 328 .home-box {
329 width: 100%; 329 width: 100%;
330 height: 100vh; 330 height: 100vh;
331 .calcWidth{
332 width: calc(100% - 300px);
333 }
331 .el-container { 334 .el-container {
332 height: 100%; 335 height: 100%;
333 } 336 }
......
...@@ -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 }
......
...@@ -413,11 +413,12 @@ export default { ...@@ -413,11 +413,12 @@ export default {
413 formData: {}, 413 formData: {},
414 }; 414 };
415 }, 415 },
416 created() { 416 created() {
417 let bsm=this.$store.state.zdbsm; 417
418 this.getZdjbxxData(bsm); 418 },
419 mounted() {
420 this.getZdjbxxData(this.$store.state.zdbsm);
419 }, 421 },
420 mounted() {},
421 methods: { 422 methods: {
422 //根据zdbsm查询基本信息 423 //根据zdbsm查询基本信息
423 getZdjbxxData(bsm) { 424 getZdjbxxData(bsm) {
......