Ver código fonte

开发环境开发部分设置

cfort 2 anos atrás
pai
commit
8d478e0658

+ 9 - 9
src/layout/header-aside/layout.vue

@@ -82,11 +82,11 @@
                 <div class="ibps-header-right" flex-box="0">
                     <!-- 如果你只想在开发环境显示这个按钮请添加 v-if="$nodeEnv === 'development'" -->
                     <!-- 全局搜索放大镜、日志、环境切换、全屏 -->
-                    <!-- <ibps-header-search @click="handleSearchClick" />
+                    <!-- <ibps-header-search @click="handleSearchClick" /> -->
                     <ibps-header-error-log v-if="$nodeEnv === 'development'" />
                     <ibps-header-base-url v-if="$nodeEnv === 'development'" />
 
-                    <ibps-header-download />
+                    <!-- <ibps-header-download />
                     <ibps-header-locking />
                     <ibps-header-theme />
                     <ibps-header-language />
@@ -100,8 +100,8 @@
                     <!-- 消息中心 -->
                     <span style="margin: 0 10px;">|</span>
                     <ibps-header-user style="margin-right: 15px;"/>
-                    <!-- <span style="margin-left: 10px;">|</span>
-                    <ibps-header-setting /> -->
+                    <span style="margin-left: 10px;">|</span>
+                    <ibps-header-setting />
                 </div>
             </div>
             <!-- 下面 主体 -->
@@ -239,8 +239,8 @@
         //     }
         // },
         mounted() {
-            // window.performance.navigation.type == 1
-            if (this.$route.name == 'dashboard') {
+            // window.performance.navigation.type === 1
+            if (this.$route.name === 'dashboard') {
                 this.sysName = '首页'
             }
         },
@@ -259,21 +259,21 @@
                 themeActiveSetting: 'theme/activeSetting'
             }),
             getSystemName() {
-                return this.header().filter(name => { return name.id == this.activeHeader() })
+                return this.header().filter(name => { return name.id === this.activeHeader() })
             },
             /**
              * @description 用来实现带参路由的缓存
              */
             sysName: {
                 get() {
-                    if (this.$route.name == 'dashboard') {
+                    if (this.$route.name === 'dashboard') {
                         return '首页'
                     } else {
                         return ''
                     }
                 },
                 set() {
-                    if (this.$route.name == 'dashboard') {
+                    if (this.$route.name === 'dashboard') {
                         return '首页'
                     } else {
                         return ''

BIN
src/views/system/blank/img/jinyuan.png


BIN
src/views/system/blank/img/jinyuan1.png


+ 1 - 1
src/views/system/dashboard/components/new-home.vue

@@ -394,7 +394,7 @@ export default {
                 this.userList = userList
                 return
             }
-            const sql = 'select id_ as userId, name_ as userName, mobile_ as phone from ibps_party_employee'
+            const sql = `select id_ as userId, name_ as userName, mobile_ as phone from ibps_party_employee where status_ = 'actived'`
             curdPost('sql', sql).then(res => {
                 this.userList = res.variables && res.variables.data
             })

+ 1 - 1
src/views/system/dashboard/page.vue

@@ -524,7 +524,7 @@
                 if (usersList.length) {
                     return
                 } else {
-                    const sql = 'select id_ as userId, name_ as userName, mobile_ as phone from ibps_party_employee'
+                    const sql = `select id_ as userId, name_ as userName, mobile_ as phone from ibps_party_employee where status_ = 'actived'`
                     curdPost('sql', sql).then(res => {
                         const { data } = res.variables
                         this.$store.dispatch('ibps/param/setUsersList', data)