Procházet zdrojové kódy

首页代码完成-合并代买

朱鑫波 před 3 roky
rodič
revize
07ac4ed23b

+ 1 - 1
.env.development

@@ -14,7 +14,7 @@ VUE_APP_BASE_SCRIPT_URL = http://192.168.0.195:31013
 
 
 #素材大盘相关接口
-VUE_APP_BASE_MATERIAL_URL = http://192.168.1.59:9999/material
+VUE_APP_BASE_MATERIAL_URL = http://192.168.0.195:9999/material
 # 字安接口 http://192.168.1.43:9999
 # 测试环境 http://192.168.0.195:9999
 # 西安环境 http://192.168.1.59:7006

+ 1 - 1
.env.production

@@ -14,7 +14,7 @@ VUE_APP_BASE_SCRIPT_URL = http://114.117.193.186:31013
 
 
 #素材大盘相关接口
-VUE_APP_BASE_MATERIAL_URL = http://api.tjyourong.com.cn/material
+VUE_APP_BASE_MATERIAL_URL = http://192.168.0.195:9999/material
 # 泽宇 http://192.168.1.134:9999
 # 测试 http://192.168.0.195:9999
 

+ 23 - 23
src/permission.js

@@ -57,17 +57,17 @@ router.beforeEach((to, from, next) => {
             } else {
               // 跳转到目的路由
               if( to.path === '/dashboard/analysis' && from.path == '/'){
-                // if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae'|| store.getters.userInfo.id == 'db2d59e9b4a3b18629c838fd7f5b58d8') {
-                //   const a = document.createElement('a');
-                //   document.body.appendChild(a);
-                //   a.style.display = 'none';
-                //   a.href = 'http://adsp.c-top.com.cn/boss-data-kanban';
-                //   a.target = '_blank'
-                //   a.click();
-                //   document.body.removeChild(a);
-                //   // let tempPage = window.open('', '_blank');
-                //   // tempPage.location="/boss-data-kanban";
-                // }
+                if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae'|| store.getters.userInfo.id == 'db2d59e9b4a3b18629c838fd7f5b58d8') {
+                  const a = document.createElement('a');
+                  document.body.appendChild(a);
+                  a.style.display = 'none';
+                  a.href = 'http://adsp.c-top.com.cn/boss-data-kanban';
+                  a.target = '_blank'
+                  a.click();
+                  document.body.removeChild(a);
+                  // let tempPage = window.open('', '_blank');
+                  // tempPage.location="/boss-data-kanban";
+                }
               }
               next({ path: redirect })
             }
@@ -88,18 +88,18 @@ router.beforeEach((to, from, next) => {
         next()
       }
       if( to.path === '/dashboard/analysis' && from.path == '/'){
-        // if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae' || store.getters.userInfo.id == 'db2d59e9b4a3b18629c838fd7f5b58d8') {
-        //   const a = document.createElement('a');
-        //   document.body.appendChild(a);
-        //   a.style.display = 'none';
-        //   a.href = 'http://adsp.c-top.com.cn/boss-data-kanban';
-        //   a.target = '_blank'
-        //   a.click();
-        //   document.body.removeChild(a);
-        //   // let tempPage = window.open('', '_blank');
-        //   // tempPage.location="/boss-data-kanban";
-        //   return
-        // }
+        if (store.getters.userInfo.id == '4aba62011120ac565c7f2b9f8f4aa96b' || store.getters.userInfo.id == 'e9ca23d68d884d4ebb19d07889727dae' || store.getters.userInfo.id == 'db2d59e9b4a3b18629c838fd7f5b58d8') {
+          const a = document.createElement('a');
+          document.body.appendChild(a);
+          a.style.display = 'none';
+          a.href = 'http://adsp.c-top.com.cn/boss-data-kanban';
+          a.target = '_blank'
+          a.click();
+          document.body.removeChild(a);
+          // let tempPage = window.open('', '_blank');
+          // tempPage.location="/boss-data-kanban";
+          return
+        }
       }
     }
   } else {

+ 2 - 2
src/utils/request.js

@@ -21,9 +21,9 @@ else if (process.env.NODE_ENV === 'debug') {
 else if (process.env.NODE_ENV === 'production') {
 	// axios.defaults.baseURL = 'http://apipre.tjyourong.com.cn/jeecg-boot'; // 预生产
 	// axios.defaults.baseURL = 'http://gateway.tjyourong.com.cn/jeecg-boot';//测试
-	axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot'; // 生产环境
+	// axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot'; // 生产环境
 	// axios.defaults.baseURL = 'http://gateway.tjyourong.com.cn/jeecg-boot'; // 测试环境
-	// axios.defaults.baseURL = 'http://192.168.0.195:9999/jeecg-boot'; // 测试环境
+	axios.defaults.baseURL = 'http://192.168.0.195:9999/jeecg-boot'; // 测试环境
 	// axios.defaults.baseURL = 'http://192.168.1.134:9999/jeecg-boot'; // 泽宇环境
 
 }

+ 5 - 6
src/views/dashboard/Analysis.vue

@@ -70,9 +70,8 @@
 </style>
 <template>
   <div class="page-header-index-wide analysis">
-    <!-- <a-button  type='primary' style="position:absolute;z-index: 99;right: 28px;top: 133px;" @click="dataKanBan"
-    v-if="userInfoId">数据看板</a-button> -->
-    <!-- <div v-if="roleCode == 'operator'">
+    <!--  -->
+    <div v-if="roleCode == 'operator'">
       <a-row :gutter="24">
         <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
           <chart-card :loading="loading" title="总销售额" total="¥126,560">
@@ -215,13 +214,13 @@
         </a-col>
       </a-row>
     </div>
-    
+    <managerStatistics v-else-if="userInfoId || roleCode == 'CompanyManager'"/>
     <newHome v-else-if=" roleCode == 'touTiaoOperationManager'" />
     <statistics v-else-if="roleCode == 'kuaishouOperationManager'" />
     <statistics v-else-if="roleCode == 'sale'||roleCode=='saleDirector'" />
 
     <Workbench v-else-if="roleCode == 'clip'" />
-    <Workbench v-else-if="roleCode == 'plane'" /> -->
+    <Workbench v-else-if="roleCode == 'plane'" />
 
     <!-- <a-tabs default-active-key="1" v-else-if="roleCode == 'admin'" class="only-there">
       <a-tab-pane key="1" tab="快手">
@@ -231,7 +230,7 @@
         <newHome />
       </a-tab-pane>
     </a-tabs> -->
-    <managerStatistics />
+
     <!-- 更新公告 -->
     <a-modal v-model="visible" title="" @ok="handleOk" :closable='false' :footer="null" id="updateInfo">
       <div class="updateBOX">

binární
src/views/dashboard/assets/shang.png


binární
src/views/dashboard/assets/xia.png


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 758 - 237
src/views/dashboard/managerStatistics.vue


+ 2 - 2
vue.config.js

@@ -105,7 +105,7 @@ module.exports = {
         // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8806', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        target: 'http://192.168.1.59:7701', //请求本地 需要jeecg-boot后台项目  赵西安
+        // target: 'http://192.168.1.59:7701', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
@@ -119,7 +119,7 @@ module.exports = {
         // target:'http://gateway.tjyourong.com.cn', //测试
         // target:'http://apipre.tjyourong.com.cn', //预生产
         // target: 'http://192.168.1.134:7001', //请求本地 需要jeecg-boot后台项目  周泽宇
-        // target:'http://192.168.0.195:9999/',
+        target:'http://192.168.0.195:9999/',
         // target:'http://gateway.tjyourong.com.cn/',//测试
 
         ws: false,