فهرست منبع

首页修改、标题修改

zhongxiaoyu 2 سال پیش
والد
کامیت
3527f0ed4b

+ 8 - 2
src/components/Hamburger/index.vue

@@ -3,7 +3,7 @@
     <div class="flex head-box-content">
       <div class="head-box-title">
         <span class="avt"></span>
-        <span class="title">佛山交科4A统一身份安全管理平台</span>
+        <span class="title">{{ defaultSettings.title }}</span>
       </div>
       <div class="head-box-menu flex-wrap">
         <div class="user">
@@ -25,10 +25,16 @@
 </template>
 
 <script>
-import { loginUp } from '@/api/login'
+import defaultSettings from '@/settings'
+// import { loginUp } from '@/api/login'
 import { mapGetters } from 'vuex'
 export default {
   name: 'Hamburger',
+  data() {
+    return {
+      defaultSettings
+    }
+  },
   computed: {
     ...mapGetters(['firstLogin']),
     name () {

+ 1 - 1
src/settings.js

@@ -1,6 +1,6 @@
 module.exports = {
 
-  title: '佛山交科4A统一身份安全管理平台',
+  title: '4A统一身份安全管理平台',
   tagsView: true,
   /**
    * @type {boolean} true | false

+ 43 - 10
src/views/dashboard/index.vue

@@ -50,10 +50,10 @@
     <!--切换和搜索-->
     <div class="dashboard-tab flex">
       <div class="tab">
-        <el-radio-group v-model="radio">
+        <!-- <el-radio-group v-model="radio">
           <el-radio label="1">数据分析</el-radio>
           <el-radio label="2">日志查询</el-radio>
-        </el-radio-group>
+        </el-radio-group> -->
       </div>
       <div class="search flex-wrap">
         <div class="search-input flex-wrap r24">
@@ -71,28 +71,38 @@
       </div>
     </div>
     <!--数据分析-->
-    <Analysis @sendLog="sendLog" v-show="radio == 1" />
+    <!-- <Analysis @sendLog="sendLog" v-show="radio == 1" /> -->
     <!--个人日志-->
-    <Journal @clearQuery="clearQuery" :logObj="logObj" v-show="radio == 2" />
+    <!-- <Journal @clearQuery="clearQuery" :logObj="logObj" v-show="radio == 2" /> -->
+    <div class="temp-banner">
+      <h1 class="temp-banner-title">
+        欢迎使用<br>
+        <span class="temp-banner-title-sub">
+          {{ defaultSettings.title }}
+        </span>
+      </h1>
+    </div>
   </div>
 </template>
 
 <script>
+import defaultSettings from '@/settings'
 import { mapGetters } from 'vuex'
-import Analysis from './components/analysis.vue'
-import Journal from './components/journal.vue'
+// import Analysis from './components/analysis.vue'
+// import Journal from './components/journal.vue'
 import { GetOthSystem } from '@/api/apiHome'
 import axios from 'axios'
 import qs from 'qs'
-import { externalSSO } from '@/api/login'
+// import { externalSSO } from '@/api/login'
 import { sendLog } from '@/api/apiLog'
 import { parseTime } from '@/utils'
 import { getLogId, getUserId, getUserName } from '@/utils/auth'
 export default {
   name: 'Dashboard',
-  components: { Analysis, Journal },
+  // components: { Analysis, Journal },
   data () {
     return {
+      defaultSettings,
       roleFlag: true,
       inputFlag: false,
       // 搜索信息
@@ -167,14 +177,14 @@ export default {
     this.getOthSystem()
   },
   methods: {
-    //清除日志搜索
+    // 清除日志搜索
     clearQuery (val) {
       if (val) {
         this.$router.replace('/dashboard')
         this.radio = '2'
       }
     },
-    //获取日志信息
+    // 获取日志信息
     sendLog (item) {
       this.radio = '2'
       this.logObj = item
@@ -500,6 +510,27 @@ export default {
   height: 100%;
   padding: 0 64px;
   padding-top: 32px;
+  .temp-banner {
+    width: 100%;
+    height: calc(100vh - 112px - 32px - 112px - 32px);
+    position: absolute;
+    top: calc(32px + 112px);
+    left: 0;
+    z-index: 0;
+    user-select: none;
+    &-title {
+      width: 100%;
+      position: absolute;
+      top: 50%;
+      transform: translateY(-50%);
+      text-align: center;
+      color: #96a0b0;
+      font-size: 32px;
+      &-sub {
+        font-size: 18px;
+      }
+    }
+  }
   .tu-fl {
     .fl-list {
       min-width: 240px;
@@ -552,6 +583,8 @@ export default {
   .dashboard-tab {
     margin: 24px 0 32px 0;
     line-height: 48px;
+    position: relative;
+    z-index: 1;
     ::v-deep .tab {
       .el-radio__label {
         font-size: 16px;

+ 2 - 2
src/views/jobsManagement/minixs/treeData.js

@@ -33,7 +33,7 @@ export default {
             JobCount: 0,
             OfficerCount: 0,
             OrganId: -1,
-            OrganName: "佛山路桥",
+            OrganName: "组织",
             OrganUpid: -2,
             QueryTarget: "0",
             Type: 0,
@@ -46,7 +46,7 @@ export default {
             JobCount: 0,
             OfficerCount: 0,
             OrganId: -1,
-            OrganName: "佛山路桥",
+            OrganName: "组织",
             OrganUpid: -2,
             QueryTarget: "0",
             Type: 0,

+ 1 - 1
src/views/login/index.vue

@@ -4,7 +4,7 @@
       <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
 
         <div class="title-container">
-          <h3 class="title">佛山交科4A统一身份安全管理平台</h3>
+          <h3 class="title">4A统一身份安全管理平台</h3>
         </div>
 
         <el-form-item prop="username">

+ 1 - 1
src/views/lotAuthorization/components/home.vue

@@ -105,7 +105,7 @@ export default {
           JobCount: 0,
           OfficerCount: 0,
           OrganId: -1,
-          OrganName: "佛山路桥",
+          OrganName: "组织",
           OrganUpid: -2,
           QueryTarget: "0",
           Type: 0,

+ 2 - 2
src/views/lotAuthorization/mixins/orgTree.js

@@ -18,7 +18,7 @@ export default {
           JobCount: 0,
           OfficerCount: 0,
           OrganId: -1,
-          OrganName: '佛山路桥',
+          OrganName: '组织',
           OrganUpid: -2,
           QueryTarget: '0',
           Type: 0,
@@ -49,7 +49,7 @@ export default {
           //   JobCount: 0,
           //   OfficerCount: 0,
           //   OrganId: -1,
-          //   OrganName: '佛山路桥',
+          //   OrganName: '组织',
           //   OrganUpid: -2,
           //   QueryTarget: '0',
           //   Type: 0,

+ 3 - 3
src/views/staffManagement/minixs/treeData.js

@@ -18,7 +18,7 @@ export default {
         JobCount: 0,
         OfficerCount: 0,
         OrganId: -1,
-        OrganName: "佛山路桥",
+        OrganName: "组织",
         OrganUpid: -2,
         QueryTarget: "0",
         Type: 0,
@@ -45,7 +45,7 @@ export default {
             JobCount: 0,
             OfficerCount: 0,
             OrganId: -1,
-            OrganName: "佛山路桥",
+            OrganName: "组织",
             OrganUpid: -2,
             QueryTarget: "0",
             Type: 0,
@@ -60,7 +60,7 @@ export default {
             JobCount: 0,
             OfficerCount: 0,
             OrganId: -1,
-            OrganName: "佛山路桥",
+            OrganName: "组织",
             OrganUpid: -2,
             QueryTarget: "0",
             Type: 0,