浏览代码

Merge branch 'master' of http://124.70.43.205:3000/yangxiao/sis_zhfx

chenminghua 2 年之前
父节点
当前提交
c193eee104
共有 5 个文件被更改,包括 102 次插入10 次删除
  1. 1 1
      public/static/config/modeConfig.js
  2. 二进制
      public/static/img/appdownload.png
  3. 3 1
      src/tools/basicTool.js
  4. 29 8
      src/views/Others/index.vue
  5. 69 0
      src/views/layout/Header.vue

+ 1 - 1
public/static/config/modeConfig.js

@@ -16,7 +16,7 @@ const tilesMaxLevel = 18;
 const adapterUrl = "http://10.155.32.4:8011/";
 const adapterUrl = "http://10.155.32.4:8011/";
 
 
 // 切换模块时是否提示当前模块名称(用于对内介绍项目时便捷显示模块名称)
 // 切换模块时是否提示当前模块名称(用于对内介绍项目时便捷显示模块名称)
-const showModuleName = 0;
+const showModuleName = 1;
 
 
 if (localTest) {
 if (localTest) {
     // baseURL = "http://192.168.10.13:8082/" // 联机调试 - 石林
     // baseURL = "http://192.168.10.13:8082/" // 联机调试 - 石林

二进制
public/static/img/appdownload.png


+ 3 - 1
src/tools/basicTool.js

@@ -12,13 +12,15 @@ export default {
    * @param {Boolean} center 消息提示内容是否居中,默认 true
    * @param {Boolean} center 消息提示内容是否居中,默认 true
    * @param {String} msg 消息提示的内容
    * @param {String} msg 消息提示的内容
    * @param {String} type 消息提示的类型,可选值为 ['success(成功)','warning(警告)','error(错误)',或者直接传入空字符串],默认 error
    * @param {String} type 消息提示的类型,可选值为 ['success(成功)','warning(警告)','error(错误)',或者直接传入空字符串],默认 error
+   * @param {Number} duration 消息提示存在的时间,默认为 3 秒
    */
    */
   showMsg(options) {
   showMsg(options) {
     ElMessage({
     ElMessage({
       showClose: (options.showClose == true || options.showClose == false) ? options.showClose : false,
       showClose: (options.showClose == true || options.showClose == false) ? options.showClose : false,
       center: (options.center == true || options.center == false) ? options.center : true,
       center: (options.center == true || options.center == false) ? options.center : true,
       message: options.msg,
       message: options.msg,
-      type: (options.type || options.type === '') ? options.type : 'error'
+      type: (options.type || options.type === '') ? options.type : 'error',
+      duration: options.duration > 0 ? options.duration : 3000
     });
     });
   },
   },
 
 

+ 29 - 8
src/views/Others/index.vue

@@ -12,7 +12,13 @@
       @change="changeSwiper"
       @change="changeSwiper"
     >
     >
       <!-- card-1 -->
       <!-- card-1 -->
-      <el-carousel-item :style="$store.state.themeName === 'dark' ? 'padding: 20px; background: rgb(4, 12, 11)' : 'padding: 20px; background: #fff'">
+      <el-carousel-item
+        :style="
+          $store.state.themeName === 'dark'
+            ? 'padding: 20px; background: rgb(4, 12, 11)'
+            : 'padding: 20px; background: #fff'
+        "
+      >
         <div class="itemBox">
         <div class="itemBox">
           <p class="itemTitle">记录查询</p>
           <p class="itemTitle">记录查询</p>
           <div class="df-table">
           <div class="df-table">
@@ -33,7 +39,13 @@
 
 
       <!-- card-2 -->
       <!-- card-2 -->
 
 
-      <el-carousel-item :style="$store.state.themeName === 'dark' ? 'padding: 20px; background: rgb(4, 12, 11)' : 'padding: 20px; background: #fff'">
+      <el-carousel-item
+        :style="
+          $store.state.themeName === 'dark'
+            ? 'padding: 20px; background: rgb(4, 12, 11)'
+            : 'padding: 20px; background: #fff'
+        "
+      >
         <div class="itemBox">
         <div class="itemBox">
           <p class="itemTitle">
           <p class="itemTitle">
             报表管理
             报表管理
@@ -92,7 +104,13 @@
         </div>
         </div>
       </el-carousel-item>
       </el-carousel-item>
       <!-- card-3 -->
       <!-- card-3 -->
-      <el-carousel-item :style="$store.state.themeName === 'dark' ? 'padding: 20px; background: rgb(4, 12, 11)' : 'padding: 20px; background: #fff'">
+      <el-carousel-item
+        :style="
+          $store.state.themeName === 'dark'
+            ? 'padding: 20px; background: rgb(4, 12, 11)'
+            : 'padding: 20px; background: #fff'
+        "
+      >
         <div class="itemBox">
         <div class="itemBox">
           <p class="itemTitle">数据查询</p>
           <p class="itemTitle">数据查询</p>
           <div class="df-table" @click="jumpUrl('/others/realSearch')">
           <div class="df-table" @click="jumpUrl('/others/realSearch')">
@@ -133,7 +151,13 @@
           </div>
           </div>
         </div>
         </div>
       </el-carousel-item> -->
       </el-carousel-item> -->
-      <el-carousel-item :style="$store.state.themeName === 'dark' ? 'padding: 20px; background: rgb(4, 12, 11)' : 'padding: 20px; background: #fff'">
+      <el-carousel-item
+        :style="
+          $store.state.themeName === 'dark'
+            ? 'padding: 20px; background: rgb(4, 12, 11)'
+            : 'padding: 20px; background: #fff'
+        "
+      >
         <div class="itemBox">
         <div class="itemBox">
           <p class="itemTitle">
           <p class="itemTitle">
             专家知识
             专家知识
@@ -212,14 +236,11 @@
 
 
 <script>
 <script>
 import $ from "jquery";
 import $ from "jquery";
-import ComTable from "./table.vue";
 export default {
 export default {
   // 名称
   // 名称
   name: "cutAnalyse",
   name: "cutAnalyse",
   // 使用组件
   // 使用组件
-  components: {
-    ComTable,
-  },
+  components: {},
   // 数据
   // 数据
   data() {
   data() {
     const that = this;
     const that = this;

+ 69 - 0
src/views/layout/Header.vue

@@ -11,6 +11,28 @@
         {{ menu.text }}
         {{ menu.text }}
       </li>
       </li>
     </ul>
     </ul>
+    <div class="downloadAppBtnBox">
+      <el-popover
+        placement="bottom"
+        title=""
+        :width="180"
+        trigger="hover"
+        content=""
+        popper-class="popoverCurrentClass"
+      >
+        <template #reference>
+          <button class="btn green">
+            <i class="el-icon-mobile-phone" />
+          </button>
+        </template>
+        <el-image
+          style="width: 152px; height: 150px"
+          src="./static/img/appdownload.png"
+          fit="fill"
+        />
+        <span class="codeTip">宁夏新能源智能综合分析系统APP下载</span>
+      </el-popover>
+    </div>
     <!-- <ul class="header-menu-dropdown" :class="{ dropdown: dropdown }">
     <!-- <ul class="header-menu-dropdown" :class="{ dropdown: dropdown }">
       <li class="header-menu-dropdown-title" @click="clickMenu()"><i class="fa fa-gear"></i>菜单<i class="fa fa-sort-down down"></i></li>
       <li class="header-menu-dropdown-title" @click="clickMenu()"><i class="fa fa-gear"></i>菜单<i class="fa fa-sort-down down"></i></li>
       <ul class="header-menu-dropdown-list">
       <ul class="header-menu-dropdown-list">
@@ -340,4 +362,51 @@ export default {
     }
     }
   }
   }
 }
 }
+
+.header-menu {
+  .downloadAppBtnBox {
+    width: 40px;
+    height: 40px;
+    display: flex;
+    justify-content: center;
+    align-content: center;
+    margin-left: 5px;
+
+    button.btn {
+      width: 100%;
+      height: 100%;
+      color: #7a8385;
+      border-color: transparent;
+      display: flex;
+      justify-content: center;
+      align-items: center;
+      font-weight: 700;
+      background: transparent;
+      border-radius: 50%;
+      transition: 0.2s;
+
+      &:hover {
+        color: #05bb4c;
+        transition: 0.2s;
+      }
+
+      i {
+        font-size: 16px;
+      }
+    }
+  }
+}
+
+.popoverCurrentClass {
+  .el-popper__arrow::before {
+    background: transparent !important;
+    border-color: transparent !important;
+  }
+
+  .codeTip {
+    display: inline-block;
+    margin-top: 4px;
+    text-align: center;
+  }
+}
 </style>
 </style>