Selaa lähdekoodia

chore: 页面数据清理以及设置车辆检测铺满效果

TwoKe945 1 vuosi sitten
vanhempi
commit
2ef8c769e9

+ 6 - 6
src/components/GlobalHeader/RightContent.vue

@@ -1,23 +1,23 @@
 <template>
 <template>
   <div :class="wrpCls">
   <div :class="wrpCls">
     <a-space size="middle">
     <a-space size="middle">
-      <a-tooltip placement="bottom">
+      <!-- <a-tooltip placement="bottom">
         <template slot="title">
         <template slot="title">
           源码地址
           源码地址
         </template>
         </template>
         <a-icon type="github" @click="toGithub" :style="{ fontSize: '20px' }"/>
         <a-icon type="github" @click="toGithub" :style="{ fontSize: '20px' }"/>
-      </a-tooltip>
-      <a-tooltip placement="bottom">
+      </a-tooltip> -->
+      <!-- <a-tooltip placement="bottom">
         <template slot="title">
         <template slot="title">
           文档地址
           文档地址
         </template>
         </template>
         <a-icon type="question-circle-o" @click="toDoc" :style="{ fontSize: '20px' }"/>
         <a-icon type="question-circle-o" @click="toDoc" :style="{ fontSize: '20px' }"/>
-      </a-tooltip>
+      </a-tooltip> -->
       <screenfull />
       <screenfull />
-      <notice-icon v-hasPermi="['system:notice:list']" />
+      <!-- <notice-icon v-hasPermi="['system:notice:list']" /> -->
       <avatar-dropdown :menu="showMenu" :current-user="currentUser" :class="prefixCls" />
       <avatar-dropdown :menu="showMenu" :current-user="currentUser" :class="prefixCls" />
       <!-- 暂只支持中文,国际化可自行扩展 -->
       <!-- 暂只支持中文,国际化可自行扩展 -->
-      <select-lang :class="prefixCls" />
+      <!-- <select-lang :class="prefixCls" /> -->
     </a-space>
     </a-space>
   </div>
   </div>
 </template>
 </template>

+ 1 - 1
src/components/PageFullContent/index.vue

@@ -10,6 +10,6 @@ export default {}
 
 
 <style scoped lang='less'>
 <style scoped lang='less'>
 .page-full-content {
 .page-full-content {
-  margin: -24px -24px 0;
+  margin: -24px;
 }
 }
 </style>
 </style>

+ 1 - 0
src/layouts/BasicLayout.vue

@@ -8,6 +8,7 @@
     :handleCollapse="handleCollapse"
     :handleCollapse="handleCollapse"
     :i18nRender="i18nRender"
     :i18nRender="i18nRender"
     v-bind="settings"
     v-bind="settings"
+    :footerRender="!hideFooter"
   >
   >
     <!-- Ads begin
     <!-- Ads begin
       广告代码 真实项目中请移除
       广告代码 真实项目中请移除

+ 14 - 1
src/views/cardIot/index.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <page-full-content>
   <page-full-content>
-    车辆监测
+    <div :style="{ height }">车辆监测</div>
   </page-full-content>
   </page-full-content>
 </template>
 </template>
 
 
@@ -10,6 +10,19 @@ import { PageFullContent } from '@/components'
 export default {
 export default {
   components: {
   components: {
     PageFullContent
     PageFullContent
+  },
+  data () {
+    return {
+      height: 0
+    }
+  },
+  mounted () {
+    const computeHeight = () => {
+      const height = document.querySelector('.ant-pro-basicLayout-content').clientHeight + 48 - document.querySelector('.ant-pro-grid-content .ant-layout-content').clientHeight
+      this.height = `${height - 1}px`
+    }
+
+    computeHeight()
   }
   }
 }
 }
 </script>
 </script>