zhuxinbo 5 年之前
父节点
当前提交
049460df84
共有 3 个文件被更改,包括 45 次插入60 次删除
  1. 1 10
      src/utils/request.js
  2. 41 48
      src/views/modules/Statistics/performanceRelated/performanceRelated.vue
  3. 3 2
      vue.config.js

+ 1 - 10
src/utils/request.js

@@ -7,17 +7,8 @@ import {ACCESS_TOKEN} from "@/store/mutation-types"
 
 
 // 创建 axios 实例
 // 创建 axios 实例
 
 
-if (process.env.NODE_ENV == 'development') { 
-    axios.defaults.baseURL = '/jeecg-boot'
-} 
-else if (process.env.NODE_ENV == 'debug') { 
-} 
-else if (process.env.NODE_ENV == 'production') { 
-// axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot';
-axios.defaults.baseURL = '/jeecg-boot'
-}
 const service = axios.create({
 const service = axios.create({
-//   baseURL: '/jeecg-boot', // api base_url
+  baseURL: '/jeecg-boot', // api base_url
   timeout: 6000000 // 请求超时时间
   timeout: 6000000 // 请求超时时间
 })
 })
 
 

+ 41 - 48
src/views/modules/Statistics/performanceRelated/performanceRelated.vue

@@ -117,7 +117,7 @@
         </div>
         </div>
          <!-- 明细表 -->
          <!-- 明细表 -->
         <div class="detailBoxPerform">
         <div class="detailBoxPerform">
-            <a-modal v-model="visibleDetail" title="详细信息" width="55%" :footer="null" id="detailBoxPerform">
+            <a-modal v-model="visibleDetail" title="详细信息" width="70%" :footer="null" id="detailBoxPerform">
                 <!-- <a-button type="default" @click="exportExcel" id="mybtn">导出报表</a-button> -->
                 <!-- <a-button type="default" @click="exportExcel" id="mybtn">导出报表</a-button> -->
                 <div class="myTable">
                 <div class="myTable">
                     <a-table
                     <a-table
@@ -218,18 +218,18 @@ const columnsFixd = [
     scopedSlots: { customRender: 'quarters' }
     scopedSlots: { customRender: 'quarters' }
   },
   },
   {
   {
-    title: '消耗',
+    title: '消耗(元)',
     dataIndex: 'cost',
     dataIndex: 'cost',
     align: 'center',
     align: 'center',
     scopedSlots: { customRender: 'cost' },
     scopedSlots: { customRender: 'cost' },
-    sorter:()=>{}
+    
   },
   },
   {
   {
     title: '提成比例',
     title: '提成比例',
     dataIndex: 'point',
     dataIndex: 'point',
     align: 'center',
     align: 'center',
     scopedSlots: { customRender: 'point' },
     scopedSlots: { customRender: 'point' },
-    sorter:()=>{}
+    
   },
   },
             // {
             // {
             //     title: '应得绩效',
             //     title: '应得绩效',
@@ -289,11 +289,11 @@ const elseColumns = [
     scopedSlots: { customRender: 'quarters' }
     scopedSlots: { customRender: 'quarters' }
   },
   },
   {
   {
-    title: '消耗',
+    title: '消耗(元)',
     dataIndex: 'cost',
     dataIndex: 'cost',
     align: 'center',
     align: 'center',
     scopedSlots: { customRender: 'cost' },
     scopedSlots: { customRender: 'cost' },
-    sorter:()=>{}
+    
   },
   },
  
  
   {
   {
@@ -312,7 +312,7 @@ const operateDetailColumns=[
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'quarters' },
         scopedSlots: { customRender: 'quarters' },
        
        
-        width:120
+        width:200
     },
     },
     {
     {
         title: '项目',
         title: '项目',
@@ -320,7 +320,7 @@ const operateDetailColumns=[
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'projectName' },
         scopedSlots: { customRender: 'projectName' },
       
       
-        width:150
+        width:200
     },
     },
     {
     {
         title: '账户名称',
         title: '账户名称',
@@ -328,14 +328,14 @@ const operateDetailColumns=[
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'authName' },
         scopedSlots: { customRender: 'authName' },
         
         
-        width:300,
+        
     },
     },
     {
     {
-        title: '消耗',
+        title: '消耗(元)',
         dataIndex: 'cost',
         dataIndex: 'cost',
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'cost' },
         scopedSlots: { customRender: 'cost' },
-        
+        width:150,
   },
   },
 ]
 ]
 
 
@@ -348,20 +348,20 @@ const saleDetailColumns = [
         width:110
         width:110
     },
     },
     {
     {
-        title: '老客消耗',
+        title: '老客消耗(元)',
         dataIndex: 'oldCost',
         dataIndex: 'oldCost',
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'oldCost' },
         scopedSlots: { customRender: 'oldCost' },
         
         
-        width:120
+        width:115
     },
     },
     {
     {
-        title: '新客消耗',
+        title: '新客消耗(元)',
         dataIndex: 'newCost',
         dataIndex: 'newCost',
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'newCost' },
         scopedSlots: { customRender: 'newCost' },
        
        
-        width:120,
+        width:115,
     },
     },
     {
     {
         title: '老客提成比例',
         title: '老客提成比例',
@@ -369,7 +369,7 @@ const saleDetailColumns = [
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'oldPercent' },
         scopedSlots: { customRender: 'oldPercent' },
        
        
-        width:100
+        width:120
     },
     },
     {
     {
         title: '新客提成比例',
         title: '新客提成比例',
@@ -377,7 +377,7 @@ const saleDetailColumns = [
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'newPercent' },
         scopedSlots: { customRender: 'newPercent' },
         
         
-        width:100,
+        width:120,
     },
     },
     {
     {
         title: '广告主名称',
         title: '广告主名称',
@@ -385,14 +385,14 @@ const saleDetailColumns = [
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'name' },
         scopedSlots: { customRender: 'name' },
         
         
-        width:200,
+       
   },
   },
     {
     {
-        title: '总消耗',
+        title: '总消耗(元)',
         dataIndex: 'totalCost',
         dataIndex: 'totalCost',
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'totalCost' },
         scopedSlots: { customRender: 'totalCost' },
-       
+        width:100,
   },
   },
 ]
 ]
 
 
@@ -420,29 +420,18 @@ const designDetailColumns = [
         width:140,        
         width:140,        
     },
     },
     {
     {
-        title: '素材消耗',
+        title: '素材消耗(元)',
         dataIndex: 'materialCost',
         dataIndex: 'materialCost',
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'materialCost' },
         scopedSlots: { customRender: 'materialCost' },
         
         
-        width:100,        
+        width:120,        
     },
     },
     {
     {
-        title: '个人消耗',
+        title: '个人消耗(素材消耗*绩效占比)',
         dataIndex: 'personCost',
         dataIndex: 'personCost',
         align: 'center',
         align: 'center',
-        scopedSlots: { customRender: 'personCost' },
-        
-        width:100, 
-        // filterDropdown: true, // 自定义的列筛选功能,我们占位为信息提示Icon的位置
-        // filterIcon: () => {
-        //     return (
-        //     <Tooltip placement="top" onVisibleChange={() => onVisibleChange(1)}>           
-        //         <Icon type="question-circle" theme="outlined" />
-        //     </Tooltip>
-        //     );
-        // },
-       
+        scopedSlots: { customRender: 'personCost' },      
     },
     },
     {
     {
         title: '设计负责人',
         title: '设计负责人',
@@ -456,7 +445,7 @@ const designDetailColumns = [
         dataIndex: 'roleName',
         dataIndex: 'roleName',
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'roleName' },
         scopedSlots: { customRender: 'roleName' },
-        width:80,
+        width:100,
     },
     },
     
     
     {
     {
@@ -464,6 +453,7 @@ const designDetailColumns = [
         dataIndex: 'percent',
         dataIndex: 'percent',
         align: 'center',
         align: 'center',
         scopedSlots: { customRender: 'percent' },
         scopedSlots: { customRender: 'percent' },
+        width:100,
   },
   },
 ]
 ]
     
     
@@ -473,7 +463,9 @@ export default {
     mixins:[JeecgListMixin],
     mixins:[JeecgListMixin],
     data() {
     data() {
         return {
         return {
-            selectOption:{},
+            selectOption:{
+                company:{}
+            },
             yearsArr:[],
             yearsArr:[],
             quarterArr:[],
             quarterArr:[],
             company:'',
             company:'',
@@ -786,17 +778,18 @@ export default {
                 })
                 })
         },
         },
 
 
-        // onVisibleChange (key) { //Tooltip 显示隐藏的回调,类似onmouseenter 进入离开事件,用来显示我们不同的信息提醒
-        //     let str = '';
-        //     switch (key) {
-        //         case 1:
-        //         str = '你的姓名';
-        //         default:
-        //         break;
-        //     }
-           
-        //     // this.filterTitleKey=str        
-        // }
+        onVisibleChange (key) { //Tooltip 显示隐藏的回调,类似onmouseenter 进入离开事件,用来显示我们不同的信息提醒
+        console.log(key)
+            let str = '';
+            switch (key) {
+                case 1:
+                str = '你的姓名';
+                default:
+                break;
+            }
+
+            // this.filterTitleKey=str        
+        }
 
 
     },
     },
     mounted() {
     mounted() {

+ 3 - 2
vue.config.js

@@ -73,17 +73,18 @@ module.exports = {
         // target: 'http://192.168.1.54:8080', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.54:8080', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.165:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://api.tjyourong.com.cn/jeecg-boot', //请求本地 需要jeecg-boot后台项目 
+        target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
 
 
         // target: 'http://192.168.0.53:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.53:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        target: 'http://192.168.1.251:8080', //请求本地 需要jeecg-boot后台项目 
+        // target: 'http://192.168.1.251:8080', //请求本地 需要jeecg-boot后台项目 
 
 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目 
 
 
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉        
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉        
         // target: 'http://192.168.1.251:80', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://192.168.1.251:80', //请求本地 需要jeecg-boot后台项目 
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉       
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉       
+        // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉       
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目 
 
 
         ws: false,
         ws: false,