Browse Source

fix export

scorpio 2 years ago
parent
commit
3e1d5b27d6
3 changed files with 20 additions and 5 deletions
  1. 4 4
      src/page/login.vue
  2. 1 1
      src/views/home/component/form_dialog.vue
  3. 15 0
      src/views/home/excel.vue

+ 4 - 4
src/page/login.vue

@@ -20,7 +20,7 @@
               </div>
             </div>
 
-            <div v-if='qrCodeLogin' class='flex flex-center flex-col ' style="height: 500px">
+            <div v-if='qrCodeLogin' class='flex flex-center flex-col' style="height: 500px">
               <span class='font-24 black bold '>欢迎来到梧桐树云平台👏</span>
               <div class='flex flex-col flex-center' style='height: 360px;width: 360px;margin-top: -20px'>
                 <vue-qr :currentLevel='3' :logoCornerRadius='4' :logoScale='0.25' :logoSrc='logoSrc' :text='qrCodeText'
@@ -29,7 +29,7 @@
               <span class='mt-10 bold main-color font-16'
                     style="margin-top: -20px">打开微信扫描二维码登陆梧桐树云平台</span>
             </div>
-            <div v-else class=' flex flex-col flex-center'>
+            <div v-else class=' flex flex-col flex-center' style='height: 700px'>
               <span class='font-24 black bold'>欢迎来到梧桐树云平台👏</span>
               <div class="flex flex-col flex-center mt-5" style="width: 450px;height: 400px">
                 <el-form ref='loginForm' :model="form" :rules="rules">
@@ -84,7 +84,7 @@
                 <el-button size='large' style="width: 78%" type='primary' @click='submint'>登录</el-button>
                 <div class='flex flex-col mt-10'>
                   <span class='grey-6'>由梧桐研究院提供技术支持</span>
-                  <div>
+                  <div v-if='dev'>
                     <el-button class='mt-10' plain size='small' type='primary' @click='loginAdmin'>业主</el-button>
                     <el-button class='mt-10' plain size='small' type='primary' @click='loginOther'>服务商</el-button>
                   </div>
@@ -156,7 +156,7 @@ export default {
       },
       code: '',
       header: '',
-      qrCodeLogin: true,
+      qrCodeLogin: false,
       time: null,
       qrCodeText: '',
       sessionId: '',

+ 1 - 1
src/views/home/component/form_dialog.vue

@@ -168,7 +168,7 @@
       <div class="flex flex-center mt-20 mb-5">
         <base-button title="重置" @click='resetParams' type="0" icon="Refresh"/>
         <base-button title="保存配置" @click='saveConfigParams' class='ml-15' icon="Upload"/>
-        <base-button class="ml-15" title="导出表格" icon="el-icon-download" @click='exportExcel'/>
+        <base-button class="ml-15" title="导出预览" icon="el-icon-download" @click='exportExcel'/>
       </div>
     </el-dialog>
   </div>

+ 15 - 0
src/views/home/excel.vue

@@ -0,0 +1,15 @@
+<template>
+  <div>
+    <el-button>导出</el-button>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'excel'
+}
+</script>
+
+<style scoped>
+
+</style>