朱鑫波 4 vuotta sitten
vanhempi
commit
e0fdbd7327

+ 24 - 14
src/views/modules/Statistics/newPlanStatic/newPlanStatic.vue

@@ -223,7 +223,7 @@
             </a-select> 
             <a-button type='primary' style="position:absolute;right:20px" @click="search">查询</a-button>
           </div>
-          <!-- <div style="margin-bottom:20px">
+          <div style="margin-bottom:20px">
               <span>数据维度:</span>
                 <a-radio-group v-model="value" @change="dataTypeChange">
                     <a-radio :value="1">
@@ -234,7 +234,7 @@
                     </a-radio>
                     
                 </a-radio-group>
-          </div> -->
+          </div>
           <div class="time"  @click="opendate" >
             <datePick  :dateValue.sync='dateValue'   :type.sync='type'   />
             
@@ -926,7 +926,8 @@ export default {
     // 快手头条的切换
     tabChange(key){
       console.log(key);
-      
+      this.treeValue=[];
+      this.operate=''
       if(key==1){
         // toutiao
         this.treeData=this.TTaccountList;
@@ -948,6 +949,7 @@ export default {
         }
         
       }
+      
       this.getNewPlan()
     },
     operateChange(value){
@@ -1191,7 +1193,7 @@ export default {
       //   this.accountId=''
       // }
       this.loading=true;
-      
+      this.echartSpinning=true;
       this.sectionOption=JSON.parse(JSON.stringify(sectionOption));
       if(this.tabKey==1){
         this.sectionOption.legend.data=['新上计划数','有效计划数']
@@ -1222,18 +1224,26 @@ export default {
         this.loading=false;
         this.echartSpinning=false;
         if(res.success){
-          this.effectPlan=res.result.sumData.valid;
-          this.newPlan=res.result.sumData.new;
-          this.dataTable=res.result.listData;
-
-          // 处理echar数据
-          res.result.chartData.map(item=>{
-            this.sectionOption.xAxis.data.push(item.statDate)
-            this.sectionOption.series[0].data.push(item.new)
-            this.sectionOption.series[1].data.push(item.valid)
-          })
+          if(res.result){
+              this.effectPlan=res.result.sumData.valid;
+              this.newPlan=res.result.sumData.new;
+              this.dataTable=res.result.listData;
+              // 处理echar数据
+              res.result.chartData.map(item=>{
+                this.sectionOption.xAxis.data.push(item.statDate)
+                this.sectionOption.series[0].data.push(item.new)
+                this.sectionOption.series[1].data.push(item.valid)
+              })
          
 
+          }else{
+              this.effectPlan=0;
+              this.newPlan=0;
+              this.dataTable=[];
+          }
+          
+
+          
 
           this.getEchartData('sectionChart', this.sectionOption);
 

+ 928 - 0
src/views/modules/Statistics/popularVideo.vue

@@ -0,0 +1,928 @@
+<style lang="scss" scoped>
+.search-bar {
+  display: flex;
+  align-items: center;
+}
+.search-box p {
+  display: inline-block;
+  border: 1px solid #f2f2f2;
+  border-radius: 5px;
+  margin-right: 10px;
+  padding: 5px 10px;
+  cursor: pointer;
+}
+</style>
+<style>
+.showNumBox{
+  margin: 10px 0;
+}
+.showNumBox .ant-card-body {
+  display: flex;
+  justify-content: center;
+}
+.showNumBox p,
+.showNumBox span {
+  text-align: center;
+  line-height: 40px;
+  font-size: 30px;
+  font-weight: 600;
+  color: red;
+  margin: 0;
+}
+.search-box .ant-card-body {
+  padding: 5px 15px;
+}
+.showNumBox .ant-card-body .styleElse {
+  line-height: 60px;
+  height: 40px;
+  font-size: 16px;
+  font-weight: 400;
+  margin-left: 10px;
+}
+.ant-modal-wrap .yincang .ant-modal-content .ant-modal-footer {
+  display: none !important;
+}
+.yincang .ant-col-6 p {
+  text-align: left;
+  color: red;
+  font-size: 16px;
+  font-weight: 500;
+}
+.ant-table-thead div {
+  font-weight: 700;
+}
+.tool-tip {
+  position: absolute;
+  top: 65px;
+  right: 10px;
+}
+</style>
+<style lang='less'>
+.ant-card-head .ant-tabs-bar{
+  padding: 0;
+}
+.search-box .ant-card-body {
+  padding: 5px 15px;
+
+}
+.search-box{
+  padding: 15px 10px;
+}
+.search-box p {
+  display: inline-block;
+  border: 1px solid #f2f2f2;
+  border-radius: 5px;
+  margin-right: 10px;
+  padding: 5px 10px;
+  cursor: pointer;
+}
+.statistics .ant-col-6 .ant-card-body .styleElse {
+  line-height: 60px;
+  height: 40px;
+  font-size: 16px;
+  font-weight: 400;
+  margin-left: 10px;
+}
+.ant-modal-wrap .yincang .ant-modal-content .ant-modal-footer {
+  display: none !important;
+}
+.yincang .ant-col-6 p {
+  text-align: left;
+  color: red;
+  font-size: 16px;
+  font-weight: 500;
+}
+.ant-table-thead div {
+  font-weight: 700;
+}
+.tool-tip {
+  position: absolute;
+  top: 65px;
+  right: 10px;
+}
+.statistics{
+  .ant-card-bordered {
+     border: none; 
+  }
+  .ant-card-head .ant-tabs {
+    clear: both;
+    margin-bottom: -13px;
+    color: rgba(0, 0, 0, 0.65);
+    font-weight: normal;
+    font-size: 14px;
+}
+.duibi{
+  position: absolute;
+  right: 24px;
+  top: 15px;
+}
+  p{
+    margin-bottom: 0;
+  }
+}
+
+</style>
+
+<style lang="less">
+.newPlanStatic{
+  .divider{
+      height: 62px;
+  }
+  .showNumBox{
+    background: white;
+    overflow: hidden;
+    margin: 15px 0;
+    padding: 30px 0;
+    text-align: center;
+    .ant-card-body{
+      padding-top: 0;
+    }
+    .title{     
+
+      font-size: 14px;
+      font-family: PingFangSC-Regular, PingFang SC;
+      font-weight: 400;
+      color: #999999;
+      line-height: 22px;
+      display: inline-block;
+    }
+  }
+  .tabbody{
+    background: white;
+    padding: 0 24px;
+    margin-bottom: 15px;
+    .ant-tabs-bar {
+      margin: 0;
+    }
+  }
+  .chartBox{
+    background: white;
+    padding: 20px 0;
+  }
+  .tableBody{
+    background: white;
+    padding: 20px ;
+  }
+}
+</style>
+
+<template>
+  <div class="newPlanStatic">
+    <div class="tabbody">
+      <a-tabs v-model="tabKey" @change="tabChange">
+        <a-tab-pane :key="1" tab="头条">        
+        </a-tab-pane>
+        <a-tab-pane :key="2" tab="快手">       
+        </a-tab-pane>
+      </a-tabs>
+    </div>
+    
+    <a-row>
+      <a-col :span="24">
+        
+        <a-card :bordered="false" class="search-box">
+          <!-- <div style="margin-bottom:20px"> -->
+            
+
+            <!-- <span style="margin-left:20px">编导:</span>
+            <a-select
+              v-model="planId"
+              show-search
+              placeholder="请输入名字"
+              option-filter-prop="children"
+              style="width: 200px"
+              :filter-option="filterOption"
+              @change="operateChange"
+              :disabled='operateDisabled'
+              allowClear
+            >
+              <a-select-option v-for="item in designList" :key="item.user_id" :value="item.user_id">
+                {{item.user_name}}
+              </a-select-option>
+            </a-select> 
+            <span style="margin-left:20px">剪辑:</span>
+            <a-select
+              v-model="clipId"
+              show-search
+              placeholder="请输入名字"
+              option-filter-prop="children"
+              style="width: 200px"
+              :filter-option="filterOption"
+              @change="operateChange"
+              :disabled='operateDisabled'
+              allowClear
+            >
+              <a-select-option v-for="item in designList" :key="item.user_id" :value="item.user_id">
+                {{item.user_name}}
+              </a-select-option>
+            </a-select> 
+            <span style="margin-left:20px">拍摄:</span>
+            <a-select
+              v-model="shotId"
+              show-search
+              placeholder="请输入名字"
+              option-filter-prop="children"
+              style="width: 200px"
+              :filter-option="filterOption"
+              @change="operateChange"
+              :disabled='operateDisabled'
+              allowClear
+            >
+              <a-select-option v-for="item in designList" :key="item.user_id" :value="item.user_id">
+                {{item.user_name}}
+              </a-select-option>
+            </a-select>  -->
+            <a-button type='primary' style="position:absolute;right:20px" @click="search">查询</a-button>
+            
+          <!-- </div> -->
+           <div style="margin-bottom:20px">
+                <span>日期选择:</span>
+                <a-range-picker
+                    @change="dateChange"
+                    v-model="dateRange"
+                    :disabled-date="disabledDate" 
+                    style="width:200px"                    
+                />
+                <span style="margin-left:20px">数据维度:</span>
+                <a-radio-group v-model="value" @change="dataTypeChange">
+                    <a-radio value="valid">
+                        有效视频
+                    </a-radio>
+                    <a-radio value="hot">
+                        爆款视频
+                    </a-radio>
+                    <a-radio value="onlie">
+                        上线时间
+                    </a-radio>
+                    
+                </a-radio-group>
+          </div>
+          <div class="time"   >
+              
+            
+          </div>
+
+        </a-card>
+      </a-col>
+    </a-row>
+    
+    
+    <a-row style="margin-bottom:15px;margin-top:12px">
+      <a-col :span="24">
+        <div class="tableBody">
+          <a-button  type='primary' class="export" style="margin-bottom:20px" @click="exportExcel" :loading="exportloading">导出报表</a-button>
+          <a-table :columns="columns" :dataSource="dataTable" :pagination="ipagination" :loading="loading" bordered @change="tableChange">  
+                <span slot="createImg" slot-scope="text,record">  
+                    <a-popover placement="right">
+                        <template slot="content">
+                            <video :src="record.url" style="width:250px" controls  ></video>
+                        </template>
+                        <template slot="title">
+                        </template>                       
+                        <img :src="record.coverUrl || noImg" alt="" style="width:80px">
+                    </a-popover>
+                </span> 
+                <span slot='companyName' slot-scope="text">{{text || '未知'}}</span>          
+                <span slot='planName' slot-scope="text">{{text || '-'}}</span>          
+                <span slot='clipName' slot-scope="text">{{text || '-'}}</span>          
+                <span slot='shotName' slot-scope="text">{{text || '-'}}</span>          
+                <span slot='totalCost' slot-scope="text">{{text |decimalsHandle}}</span>          
+                <span slot='activeNum' slot-scope="text">{{text |formatCurrency}}</span>          
+                <span slot='clickNum' slot-scope="text">{{text |formatCurrency}}</span>          
+                <span slot='convertNum' slot-scope="text">{{text |formatCurrency}}</span>          
+                <span slot='showNum' slot-scope="text">{{text |formatCurrency}}</span>          
+                <span slot='aclick' slot-scope="text">{{text |formatCurrency}}</span>          
+                <span slot='bclick' slot-scope="text">{{text |formatCurrency}}</span>          
+                <span slot='photoClick' slot-scope="text">{{text |formatCurrency}}</span>          
+                <span slot='photoShow' slot-scope="text">{{text |formatCurrency}}</span>          
+          </a-table> 
+        </div>
+               
+      </a-col>
+    </a-row>
+  </div>
+</template>
+
+<script>
+
+
+import { TreeSelect } from 'ant-design-vue';
+const SHOW_PARENT = TreeSelect.SHOW_PARENT;
+import ARow from 'ant-design-vue/es/grid/Row'
+import ACol from 'ant-design-vue/es/grid/Col'
+import moment from 'moment'
+
+import {  getKsAccountReport, getKsDetail, getReportList } from '@api/video.js'
+import {
+    getAction,
+    postAction,
+    downFile,
+    downFilePost
+  } from '@/api/manage';
+
+
+import qs from 'qs'
+
+
+
+let TTcolumns=[
+    {
+    title: '视频',
+    dataIndex: 'createImg',
+    scopedSlots: { customRender: 'createImg' },
+    align: 'center',
+    key:'userNcreateImgame'
+    
+  },
+  {
+    title: '视频ID',
+    dataIndex: 'videoCode',
+    scopedSlots: { customRender: 'videoCode' },
+    align: 'center',
+    key:'videoCode'
+    
+  },
+  {
+    title: '视频上线时间',
+    dataIndex: 'stateDate',
+    scopedSlots: { customRender: 'stateDate' },
+    align: 'center',
+    key:'stateDate'
+    
+  },
+  
+  {
+    title: '所属公司',
+    dataIndex: 'companyName',
+    scopedSlots: { customRender: 'companyName' },
+    align: 'center',
+    key:'companyName'
+    
+  },
+  {
+    title: '策划名称',
+    dataIndex: 'planName',
+    scopedSlots: { customRender: 'planName' },
+    align: 'center',
+    key:'planName'
+    
+  },
+  {
+    title: '剪辑名称',
+    dataIndex: 'clipName',
+    scopedSlots: { customRender: 'clipName' },
+    align: 'center',
+    key:'clipName'
+    
+  },
+  {
+    title: '拍摄名称',
+    dataIndex: 'shotName',
+    scopedSlots: { customRender: 'shotName' },
+    align: 'center',
+    key:'shotName'
+    
+  },
+  {
+    title: '总消耗',
+    dataIndex: 'totalCost',
+    scopedSlots: { customRender: 'totalCost' },
+    align: 'center',
+    key:'totalCost'
+    
+  },
+  {
+    title: '点击数',
+    dataIndex: 'clickNum',
+    scopedSlots: { customRender: 'clickNum' },
+    align: 'center',
+    key:'clickNum'
+    
+  },
+  {
+    title: '曝光数',
+    dataIndex: 'showNum',
+    scopedSlots: { customRender: 'showNum' },
+    align: 'center',
+    key:'showNum'
+    
+  },
+  {
+    title: '激活数',
+    dataIndex: 'activeNum',
+    scopedSlots: { customRender: 'activeNum' },
+    align: 'center',
+    key:'activeNum'
+    
+  },
+  {
+    title: '转化数',
+    dataIndex: 'convertNum',
+    scopedSlots: { customRender: 'convertNum' },
+    align: 'center',
+    key:'convertNum'
+    
+  },
+//   {
+//     title: '总消耗',
+//     dataIndex: 'totalCost',
+//     scopedSlots: { customRender: 'totalCost' },
+//     align: 'center',
+//     key:'totalCost'
+    
+//   },
+]
+
+
+
+let KScolumns=[
+  {
+    title: '视频',
+    dataIndex: 'createImg',
+    scopedSlots: { customRender: 'createImg' },
+    align: 'center',
+    key:'userNcreateImgame'
+    
+  },
+  {
+    title: '视频ID',
+    dataIndex: 'videoCode',
+    scopedSlots: { customRender: 'videoCode' },
+    align: 'center',
+    key:'videoCode'
+    
+  },
+  {
+    title: '视频上线时间',
+    dataIndex: 'stateDate',
+    scopedSlots: { customRender: 'stateDate' },
+    align: 'center',
+    key:'stateDate'
+    
+  },
+  
+  {
+    title: '所属公司',
+    dataIndex: 'companyName',
+    scopedSlots: { customRender: 'companyName' },
+    align: 'center',
+    key:'companyName'
+    
+  },
+  {
+    title: '策划名称',
+    dataIndex: 'planName',
+    scopedSlots: { customRender: 'planName' },
+    align: 'center',
+    key:'planName'
+    
+  },
+  {
+    title: '剪辑名称',
+    dataIndex: 'clipName',
+    scopedSlots: { customRender: 'clipName' },
+    align: 'center',
+    key:'clipName'
+    
+  },
+  {
+    title: '拍摄名称',
+    dataIndex: 'shotName',
+    scopedSlots: { customRender: 'shotName' },
+    align: 'center',
+    key:'shotName'
+    
+  },
+  {
+    title: '总消耗',
+    dataIndex: 'totalCost',
+    scopedSlots: { customRender: 'totalCost' },
+    align: 'center',
+    key:'totalCost'
+    
+  },
+  {
+    title: '封面曝光',
+    dataIndex: 'photoShow',
+    scopedSlots: { customRender: 'photoShow' },
+    align: 'center',
+    key:'photoShow'
+    
+  },
+  {
+    title: '封面点击',
+    dataIndex: 'photoClick',
+    scopedSlots: { customRender: 'photoClick' },
+    align: 'center',
+    key:'photoClick'
+    
+  },
+  {
+    title: '素材曝光',
+    dataIndex: 'aclick',
+    scopedSlots: { customRender: 'aclick' },
+    align: 'center',
+    key:'aclick'
+    
+  },
+  {
+    title: '行为数',
+    dataIndex: 'bclick',
+    scopedSlots: { customRender: 'bclick' },
+    align: 'center',
+    key:'bclick'
+    
+  },
+]
+
+
+
+
+
+export default {
+  
+    components: {
+        ACol,
+        ARow,
+        
+    },
+
+    data() {
+        return {
+            exportloading:false,
+            planId:'',
+            shotId:'',
+            clipId:'',
+            dateRange:[moment().subtract(1,'weeks'),moment()],
+            noImg:require('@/assets/noImg.png'),
+            ipagination: {
+                current: 1,
+                pageSize: 10,
+                //   pageSizeOptions: ['10', '20', '30'],
+                showTotal: (total, range) => {
+                    return range[0] + "-" + range[1] + " 共" + total + "条"
+                },
+                showQuickJumper: true,
+                showSizeChanger:true,
+                pageSizeOptions: ['10', '30', '50'],
+                total: 0,
+                onChange: (current, pageSize) => {
+                    // 切换分页时的回调,
+                    // 当在页面定义change事件时,切记要把此处的事件清除,因为这两个事件重叠了,可能到时候会导致一些莫名的bug
+                    this.ipagination.current = current;
+                    this.ipagination.pageSize= pageSize;
+                }
+            },
+            value:'valid',
+            KSaccountList:[],
+            TTaccountList:[],
+
+            KSdesignList:[],
+            TTdesignList:[],
+
+            
+            operateDisabled:false,
+            userId:JSON.parse(localStorage.getItem('pro__Login_Userinfo')).value.id,
+            duration: 1000,
+            //treeselect的参数
+            treeValue: [],
+            treeData: [],
+            SHOW_PARENT,
+
+            type:3,
+            dateValue:[moment().subtract(7,'days'), moment()],
+
+            operate:'',
+            designList:[],
+
+            tabKey:1,
+
+            loading: false,
+            TTcolumns,
+            KScolumns,
+            columns:[...TTcolumns],    
+            dataTable: [],
+            
+            tableTab:1,
+
+            newPlan:0,
+            effectPlan:0,
+            
+            
+
+            openOptions:false,
+
+            target:'',
+            order:'desc',
+        }
+    },
+    methods: {
+         moment,
+        disabledDate(current) {           
+            return current && current > moment()
+        }, 
+        dateChange(date, dateString) {
+            // console.log(date,dateString)               
+        },
+        //导出报表
+        exportExcel() {
+            this.exportloading=true;
+            let url='';
+            if(this.tabKey==1){
+                url='/ctop/bytedanceVideoEtlInfo/exportXls';
+            }else {
+                url='/ctop/kuaishouVideoEtlInfo/exportXls'
+            }
+            let nameType=''
+            if(this.value=='valid'){
+                nameType='有效视频'
+            }else if(this.value=='hot'){
+                nameType='爆款视频'
+            }else if(this.value=='online'){
+                nameType='视频上线时间'
+            }
+
+            downFilePost(url,qs.stringify({
+                type:this.value,
+                clipId:this.clipId,
+                shotId:this.shotId,
+                planId:this.planId,
+                startData:this.dateRange[0].format('YYYY-MM-DD'),
+                endData:this.dateRange[1].format('YYYY-MM-DD'),  
+            })).then(res => {
+                this.exportloading=false;
+                let blob = new Blob([res], {
+                    type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
+                })
+                let downloadElement = document.createElement('a')
+                let href = window.URL.createObjectURL(blob) //创建下载的链接
+                downloadElement.href = href
+                downloadElement.download = moment().format('YYYY-MM-DD') + nameType+'.xlsx' //下载后文件名
+                document.body.appendChild(downloadElement)
+                downloadElement.click() //点击下载
+                document.body.removeChild(downloadElement) //下载完成移除元素
+                window.URL.revokeObjectURL(href) //释放掉blob对象
+            })
+        },
+        dataTypeChange(e){
+            console.log(e.target.value)
+            
+            this.getNewPlan()
+        },
+    
+        
+        filterOption(input, option){
+            console.log(input, option)
+            return (
+                option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
+                );
+            },
+     
+    
+        // 快手头条的切换
+        tabChange(key){
+            console.log(key);
+            this.treeValue=[];
+            this.ipagination.current=1
+            if(key==1){
+                // toutiao
+                this.designList=this.TTdesignList
+                this.columns=[...TTcolumns]
+            }else{
+                // kuaishou
+            this.columns=[...KScolumns]
+                this.designList=this.KSdesignList
+               
+                
+            }
+        
+            this.getNewPlan()
+        },
+        operateChange(value){
+        console.log(value);
+        if(value){
+            this.accountDisabled=true;
+            this.accountId=''
+        }else{
+            this.accountDisabled=false
+        }
+        },
+
+        tableChange(pagination, filters, sorter, { currentDataSource }){
+            console.log(pagination)
+            this.ipagination.current=pagination.current;
+            this.ipagination.pageSize=pagination.pageSize;
+            this.getNewPlan()
+        },
+       
+        // table区域的tab切换
+        tableTabChange(key){
+            if(key==1){
+            
+                this.columns=this.tabKey==1?[...TTcolumns]:[...KScolumns]
+                this.target='new'
+            }else{
+                
+                this.columns=this.tabKey==1?[...TTcolumnsVaild]:[...KScolumnsVaild]
+                this.target='valid'
+            }
+            this.getNewPlan()
+        },
+    
+        // 运营数据获取
+        operateHttp(){
+            postAction('',{}).then(res=>{
+                console.log(res)
+            })
+        },
+
+        // 获取所有运营
+        getAllOperator(key){
+            let url=''
+            this.designList=[]
+            if(key==1){
+                // 头条
+                url='/ctop/bytedance/newPlan/report/AllOperator'
+            }else{
+                // 快手
+                url='/ctop/kuaishou/newGroup/report/AllOperator'
+            }
+            postAction(url,{}).then(res=>{
+                console.log(res);
+                if(res.success){
+                if(key==1){
+                    this.TTdesignList=res.result;
+                }else{
+                    this.KSdesignList=res.result;
+                }
+
+                if(this.tabKey==1){
+                    this.designList=this.TTdesignList
+                }else{
+                    this.designList=this.KSdesignList
+                }
+                
+                }
+            })
+        },
+
+
+        // 获取展示数据
+        getNewPlan(){
+            let url=''
+            if(this.tabKey==1){
+                // 头条
+                url='/ctop/bytedanceVideoEtlInfo/list'
+            }else{
+                // 快手
+                
+                url='/ctop/kuaishouVideoEtlInfo/list'
+                
+            }
+            
+            this.loading=true;
+
+            getAction(url,{
+                type:this.value,
+                clipId:this.clipId,
+                shotId:this.shotId,
+                planId:this.planId,
+                startData:this.dateRange[0].format('YYYY-MM-DD'),
+                endData:this.dateRange[1].format('YYYY-MM-DD'),
+                pageSize:this.ipagination.pageSize,
+                pageNo:this.ipagination.current
+            }).then(res=>{
+                console.log(res);
+                this.loading=false;
+            
+                if(res.success){
+                    
+                    if(res.result){
+                        this.dataTable=res.result.records
+                        this.ipagination.total=res.result.total
+                    }
+
+                }
+            })
+        
+        },
+
+        // 查询按钮
+        search(){
+            // if(this.accountId || this.operate){
+            //     this.echartSpinning=true;
+            //     this.getNewPlan()
+            // }else{
+            //     this.$message.error('请选择具体账户或者运营')
+            // }
+            this.getNewPlan()
+        },
+    
+    },
+    watch: {
+        dateValue(newName,oldName){
+        
+            this.search()
+        },
+    },
+    computed: {
+        newDate() {
+        var myDate = new Date()
+        myDate.getYear() //获取当前年份(2位)
+        var n = myDate.getFullYear() //获取完整的年份(4位,1970-????)
+        var m = myDate.getMonth() //获取当前月份(0-11,0代表1月)
+        var d = myDate.getDate() //获取当前日(1-31)
+        var day = myDate.getHours()
+        return day
+        }
+    },
+    mounted() {
+        this.getNewPlan()
+    },
+    activated: function() {
+        
+        
+    },
+  
+    filters: {
+        toPercentage(val) {
+        if(typeof val != 'string'){
+            return (val * 100).toFixed(2) + '%'
+        }else{
+            return val
+        }
+        
+        },
+        //保留两位小数并且变成货币格式
+        decimalsHandle(val){
+            
+            if(val && typeof val !='string'){
+                if(val>=0){
+                    val=parseFloat(val).toFixed(2);
+                    let numberStr = val.toString()
+                    let str = numberStr.split('.')
+                    
+                    let str0=str[0].split('').reverse();
+                    for (let i = 0; i < str0.length; i++) {
+                        if ((i + 1) % 4 === 0) {
+                            str0.splice(i, 0, ',')
+                        }
+                    }
+                    str0.reverse()
+                    let handleResult = ''
+                    for (let j = 0; j < str0.length; j++) {
+                        handleResult += str0[j]
+                    }
+                    
+                    return handleResult+'.'+str[1]
+                }else{
+                    val=parseFloat(val).toFixed(2);
+                    let numberStr = val.toString()
+                    let str = numberStr.split('.')
+                    
+                    let str0=str[0].substr(1).split('').reverse();
+                    for (let i = 0; i < str0.length; i++) {
+                        if ((i + 1) % 4 === 0) {
+                            str0.splice(i, 0, ',')
+                        }
+                    }
+                    str0.reverse()
+                    let handleResult = ''
+                    for (let j = 0; j < str0.length; j++) {
+                        handleResult += str0[j]
+                    }
+                    
+                    return '-'+handleResult+'.'+str[1]
+                }
+                
+            }else if(typeof val =='string'){
+                return val
+            }
+            else{
+                return 0
+            }           
+        },
+        //变成货币格式
+        formatCurrency(val){
+        if(val){
+            let numberStr = val.toString()
+            let str = numberStr.split('').reverse()
+            for (let i = 0; i < str.length; i++) {
+                if ((i + 1) % 4 === 0) {
+                str.splice(i, 0, ',')
+                }
+            }
+            str.reverse()
+            let handleResult = ''
+            for (let j = 0; j < str.length; j++) {
+                handleResult += str[j]
+            }
+            return handleResult
+        }else{
+            return val
+        }
+            
+        }
+    }
+}
+</script>

+ 407 - 116
src/views/modules/autoLaunch/autoLaunchReport.vue

@@ -98,9 +98,9 @@
                     <a-radio :value="4">
                         素材曝光数
                     </a-radio>
-                    <a-radio :value="5">
-                        转化数
-                    </a-radio>
+                    <!-- <a-radio :value="5">
+                        转化数@
+                    </a-radio> -->
                 </a-radio-group>
             </div>
             <a-spin :spinning="spinning">
@@ -136,13 +136,13 @@
                     size="middle"
                     :columns="columns"
                     :dataSource="tableData"
-                    :pagination='ipagination'
+                    :pagination='true'
                     bordered
                     id="outTable"       
                     :loading="loading"
                     style="word-break: break-all;font-size:16px;font-weight:600"
                     :scroll="{'x':scrollX}"
-                     @change="sort"
+                     
                     >
                         <span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
                         <span slot="cost" slot-scope="cost">{{ cost | decimalsHandle }}</span>
@@ -835,6 +835,10 @@ const publicColumns = [
                 materialtableData:[],
                 materialloading:false,
                 materialscrollX:4000,
+
+                age:[],
+                gender:[],
+                region:[],
             }
         },
         methods: {
@@ -962,6 +966,7 @@ const publicColumns = [
                             }      
                             });
                             // console.log(this.treeData)
+                            this.directionalId=[this.treeData[0].children[0].value]
                             
                         }
                     }
@@ -999,7 +1004,7 @@ const publicColumns = [
                             }      
                             });
                             // console.log(this.treeData)
-                            
+                            this.materialId=[this.materialTreeData[0].children[0].value]
                         }
                     }
                 })
@@ -1102,7 +1107,7 @@ const publicColumns = [
                 
             },
             disabledDate(current) {           
-                return current && current < moment().subtract(1, 'day')
+                return current && current > moment()
             }, 
             dateChange(date, dateString) {
                 // console.log(date,dateString)               
@@ -1115,13 +1120,17 @@ const publicColumns = [
                 console.log('radio checked', e.target.value);
                 if(e.target.value==2){
                     this.columns=[...sexColumns,...publicColumns];
-                    
+                    this.tableData=this.gender
                 }else if(e.target.value==1){
                     this.columns=[...regionColumns,...publicColumns]
+                    this.tableData=this.region
                 }else if(e.target.value==3){
                     this.columns=[...ageColumns,...publicColumns]
+                    this.tableData=this.age
                 }
-                this.getDetailTableData()
+                // this.getEchartData()
+
+                
             },
 
             // directionalTableHttp(){
@@ -1311,7 +1320,7 @@ const publicColumns = [
                        
                         type:"scroll",
                         orient: 'vertical',
-                        left:'10%',
+                        left:'2%',
                         align:'left',
                         top:'middle',
                         textStyle: {
@@ -1337,7 +1346,12 @@ const publicColumns = [
                 const colorList = ['#58D5FF', '#73ACFF', '#FDD56A', '#FDB36A', '#FD866A','#9E87FF']
                 var option = {
                     tooltip: {
-                        trigger: 'item'
+                        trigger: 'item',
+                        formatter: "{a} <br/>{b} : {c} ({d}%)"
+                    },
+                    toolbox: {
+                        show : true,
+                    
                     },
                     title: {
                         text: '年龄分布',
@@ -1345,6 +1359,25 @@ const publicColumns = [
                         left: 'left',
 
                     },
+                    // grid: {
+                    //     right: '5%',
+                    //     top: '20%',
+                    //     left:'15%',
+                    //     bottom: '10%',
+                    //     width: '20%'
+                    // },
+                    legend: {
+                       
+                        type:"scroll",
+                        orient: 'vertical',
+                        left:'2%',
+                        align:'left',
+                        top:'middle',
+                        textStyle: {
+                            color:'#8C8C8C'
+                        },
+                        height:200
+                    },
                     series: [{
                         type: 'pie',
                         // center: ['30%', '30%'],
@@ -1392,17 +1425,17 @@ const publicColumns = [
                 return option
             },
             //点击分页
-            sort(pagination, filters, sorter, { currentDataSource }){
-                console.log(pagination)
-                this.ipagination.current=pagination.current;
-                this.ipagination.pageSize=pagination.pageSize;
-                
-            },
+            // sort(pagination, filters, sorter, { currentDataSource }){
+            //     console.log(pagination)
+            //     this.ipagination.current=pagination.current;
+            //     this.ipagination.pageSize=pagination.pageSize;
+            //     this.getEchartData()
+            // },
             materialTableChange(pagination, filters, sorter, { currentDataSource }){
                 console.log(pagination)
                 this.materialipagination.current=pagination.current;
                 this.materialipagination.pageSize=pagination.pageSize;
-                
+                this.getRelativeData()
             },
 
             tabChange(key){
@@ -1415,104 +1448,314 @@ const publicColumns = [
                 }else{
                     this.materialColumns=[...directional,...publicColumns]
                 }
-                this.getRelativeData()
+                // this.getRelativeData()
             },  
 
             getEchartData(){
                 this.spinning=true;
+                this.loading=true
                 let params=this.handlerParams();
                 params.dataType=this.value
-                postAction('',params).then(res=>{
+                postAction('/ai/analyze/chart/targetOrMaterial',params).then(res=>{
                     console.log(res)
+                    this.spinning=false;
+                     this.loading=false
+                    if(res.success){
 
-                    var province = ['北京', '广东', '浙江', '湖南', '河南', '安徽', '重庆', '山东', '江西', '四川', '江苏', '湖北', '福建', '上海', '广西', '河北', '陕西', '云南', '海南', '黑龙江', '辽宁', '山西', '天津', '甘肃', '内蒙古', '新疆', '宁夏', '吉林', '贵州', '青海', '西藏', '澳门', '香港', '台湾'];
-                    var data = [3554, 241, 296, 221, 206, 152, 147, 121, 109, 108, 99, 91, 80, 80, 58, 48, 56, 51, 43, 37, 34, 27, 24, 24, 16, 13, 12, 9, 9, 6, 0, 7, 8, 8]
-                    this.initEchart('mapEchart',this.handlerMapEchartOption(province,data))
-
-                    var data1=[
-                        {value:20, name:'男'},
-                        {value:30, name:'女'},
-                        {value:25, name:'其他'},
+                        this.age=res.result.age
+                        this.gender=res.result.gender
+                        this.region=res.result.region
+                        var province = ['北京', '广东', '浙江', '湖南', '河南', '安徽', '重庆', '山东', '江西', '四川', '江苏', '湖北', '福建', '上海', '广西', '河北', '陕西', '云南', '海南', '黑龙江', '辽宁', '山西', '天津', '甘肃', '内蒙古', '新疆', '宁夏', '吉林', '贵州', '青海', '西藏', '澳门', '香港', '台湾'];
                         
-                    ]
+                        let params=this.handlerRegion(province,this.region)
+                        console.log(params)
+                        this.initEchart('mapEchart',this.handlerMapEchartOption(province,params))
+                        
+                        
+                        let genderData=this.handlerGender(this.gender)
+                        this.initEchart('sexEchart',this.handlerSexOption(ageData))
 
-                    this.initEchart('sexEchart',this.handlerSexOption(data1))
+                        
+                        let   ageData=this.handlerAge(this.age)
+                        this.initEchart('ageEchart',this.handlerAgeOption(ageData))
+                        this.spinning=false
 
-                    var data2= [
-                        {
-                            name: 'first',
-                            value: 1
-                        }, {
-                            name: 'second',
-                            value: 2
-                        }, {
-                            name: 'third',
-                            value: 3
-                        }, {
-                            name: 'fourth',
-                            value: 4
-                        }, {
-                            name: 'fifth',
-                            value: 5
-                        }, {
-                            name: 'sixth',
-                            value: 6
-                        }]
-                    this.initEchart('ageEchart',this.handlerAgeOption(data2))
-                    this.spinning=false
+                        if(this.tableValue==1){
+                            this.tableData=res.result.region
+                        }else if(this.tableValue==2){
+                            this.tableData=res.result.gender
+                        }else if(this.tableValue==3){
+                            this.tableData=res.result.age
+                        }
+                    }
                 })
                 
 
             },
 
+            handlerRegion(province,data){
+                
+                let value=[];
+                switch (this.value) {
+                    case 1:
+                        province.forEach((ele,index)=>{
+                            value=data.map(item=>{
+                                if(item.province==ele){
+                                    if(item.cost){
+                                        return item.cost
+                                    }else{
+                                        return 0
+                                    }
+                                }
+                                
+                            })
+                        })
+                        
+                        break;
+                    case 2:
+                        province.forEach((ele,index)=>{
+                            value=data.map(item=>{
+                                if(item.province==ele){
+                                    
+                                    if(item.photoShow){
+                                        return item.photoShow
+                                    }else{
+                                        return 0
+                                    }
+                                }
+                                 
+                            })
+                        })
+                        break;
+                    case 3:
+                        province.forEach((ele,index)=>{
+                            value=data.map(item=>{
+                                if(item.province==ele){
+                                    if(item.photoClick){
+                                        return item.photoClick
+                                    }else{
+                                        return 0
+                                    }
+                                    
+                                }
+                                
+                            })
+                        })
+                        break;
+                    case 4:
+                        province.forEach((ele,index)=>{
+                            value=data.map(item=>{
+                                if(item.province==ele){
+                                   if(item.aclick){
+                                        return item.aclick
+                                    }else{
+                                        return 0
+                                    }
+                                }
+                                
+                            })
+                        })
+                        break;
+                
+                    default:
+                        break;
+                }
+                return value
+            },
+            handlerGender(data){
+                let value=[];
+                switch (this.value) {
+                    case 1:
+                        
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.cost,
+                                    name:item.gender
+                                }
+                            }
+                            
+                        })
+                        
+                        
+                        break;
+                    case 2:
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.photoShow,
+                                    name:item.gender
+                                }
+                            }
+                            
+                        })
+                        
+                        break;
+                    case 3:
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.photoClick,
+                                    name:item.gender
+                                }
+                            }
+                            
+                        })
+                        break;
+                    case 4:
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.aclick,
+                                    name:item.gender
+                                }
+                            }
+                            
+                        })
+                        break;
+                
+                    default:
+                        break;
+                }
+                return value
+            },
+            handlerAge(data){
+                let value=[];
+                switch (this.value) {
+                    case 1:
+                        
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.cost,
+                                    name:item.ageSegment
+                                }
+                            }
+                            
+                        })
+                        
+                        
+                        break;
+                    case 2:
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.photoShow,
+                                    name:item.ageSegment
+                                }
+                            }
+                            
+                        })
+                        
+                        break;
+                    case 3:
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.photoClick,
+                                    name:item.ageSegment
+                                }
+                            }
+                            
+                        })
+                        break;
+                    case 4:
+                        value=data.map(item=>{
+                            
+                            if(item.cost){
+                                return {
+                                    value:item.aclick,
+                                    name:item.ageSegment
+                                }
+                            }
+                            
+                        })
+                        break;
+                
+                    default:
+                        break;
+                }
+                return value
+            },
+
+
+
+
             getDetailTableData(){
-                this.loading=true
+                
                 let params=this.handlerParams();
-                params.dataType=this.tableValue
-                postAction('',params).then(res=>{
-                    console.log(res)
-                    this.loading=false
-                    this.tableData=res.result
-                })
+                if(params.accountId&&(params.targetIds||params.codes)){
+                    params.dataType=this.tableValue
+                    this.loading=true
+                    postAction('',params).then(res=>{
+                        console.log(res)
+                        this.loading=false
+                        this.tableData=res.result.list
+                    })
+                }else{
+                   
+                }
             },
 
             getRelativeData(){
-                this.materialloading=true
+                
                 let params=this.handlerParams();
                 // params.dataType=this.tableValue
-                postAction('/ai/analyze/report/targetOrMaterial',params).then(res=>{
+                if(params.accountId&&(params.targetIds||params.codes)){
+                    this.materialloading=true
+                    postAction('/ai/analyze/report/targetOrMaterial',params).then(res=>{
                     console.log(res)
                     this.materialloading=false
-                    if(res.success){
-                        this.materialtableData=res.result
-                        this.ipagination.total=res.result.total;
-                    }else{
-                        this.$message.error('出错了')
-                    }
-                    
+                        if(res.success){
+                            this.materialtableData=res.result.list
+                            this.ipagination.total=res.result.total;
+                        }else{
+                            this.$message.error('出错了')
+                        }
+                        
 
-                })
+                    })
+                }else{
+                    this.$message.error('请选择账户、策略等信息')
+                }
+                
             },
 
             search(){
+                
                 this.getRelativeData()
+                // this.getDetailTableData()
+                this.getEchartData()
             },
 
             handlerParams(){
                 let params={};
                 params.accountId=this.accountIds
                 if(this.tabKey==1){
-                    params.type='target'
-                    params.strategyId=this.directionalId[0].split('_')[0]
-                    params.targetIds=this.directionalId.map(item=>{
-                        return item.split('_')[1]
-                    })
+                    if(this.directionalId&&this.directionalId.length){
+                        params.type='target'
+                        params.strategyId=this.directionalId[0].split('_')[0]
+                        params.targetIds=this.directionalId.map(item=>{
+                            return item.split('_')[1]
+                        })
+                    }
+                    
                 }else{
                     params.type='material'
-                    params.strategyId=this.materialId[0].split('_')[0]
-                    params.codes=this.materialId.map(item=>{
-                        return item.split('_')[1]
-                    })
+                    if(this.materialId&&this.materialId.length){
+                        params.strategyId=this.materialId[0].split('_')[0]
+                        params.codes=this.materialId.map(item=>{
+                            return item.split('_')[1]
+                        })
+                    }
+                    
                 }
                 if(this.dateRange&&this.dateRange.length>0){
                     params.startDate=this.dateRange[0].format('YYYY-MM-DD')
@@ -1526,56 +1769,104 @@ const publicColumns = [
 
         
         mounted() {
-            this.$nextTick(()=>{
-                var province = ['北京', '广东', '浙江', '湖南', '河南', '安徽', '重庆', '山东', '江西', '四川', '江苏', '湖北', '福建', '上海', '广西', '河北', '陕西', '云南', '海南', '黑龙江', '辽宁', '山西', '天津', '甘肃', '内蒙古', '新疆', '宁夏', '吉林', '贵州', '青海', '西藏', '澳门', '香港', '台湾'];
-                var data = [3554, 241, 296, 221, 206, 152, 147, 121, 109, 108, 99, 91, 80, 80, 58, 48, 56, 51, 43, 37, 34, 27, 24, 24, 16, 13, 12, 9, 9, 6, 0, 7, 8, 8]
-                this.initEchart('mapEchart',this.handlerMapEchartOption(province,data))
+            // this.$nextTick(()=>{
+            //     var province = ['北京', '广东', '浙江', '湖南', '河南', '安徽', '重庆', '山东', '江西', '四川', '江苏', '湖北', '福建', '上海', '广西', '河北', '陕西', '云南', '海南', '黑龙江', '辽宁', '山西', '天津', '甘肃', '内蒙古', '新疆', '宁夏', '吉林', '贵州', '青海', '西藏', '澳门', '香港', '台湾'];
+            //     var data = [3554, 241, 296, 221, 206, 152, 147, 121, 109, 108, 99, 91, 80, 80, 58, 48, 56, 51, 43, 37, 34, 27, 24, 24, 16, 13, 12, 9, 9, 6, 0, 7, 8, 8]
+            //     this.initEchart('mapEchart',this.handlerMapEchartOption(province,data))
 
-                var data1=[
-                    {value:20, name:'男'},
-                    {value:30, name:'女'},
-                    {value:25, name:'其他'},
+            //     var data1=[
+            //         {value:20, name:'男'},
+            //         {value:30, name:'女'},
+            //         {value:25, name:'其他'},
                     
-                ]
+            //     ]
 
-                this.initEchart('sexEchart',this.handlerSexOption(data1))
+            //     this.initEchart('sexEchart',this.handlerSexOption(data1))
 
-                var data2= [
-                    {
-                        name: 'first',
-                        value: 1
-                    }, {
-                        name: 'second',
-                        value: 2
-                    }, {
-                        name: 'third',
-                        value: 3
-                    }, {
-                        name: 'fourth',
-                        value: 4
-                    }, {
-                        name: 'fifth',
-                        value: 5
-                    }, {
-                        name: 'sixth',
-                        value: 6
-                    }]
-                this.initEchart('ageEchart',this.handlerAgeOption(data2))
+            //     var data2= [
+            //         {
+            //             name: 'first',
+            //             value: 1
+            //         }, {
+            //             name: 'second',
+            //             value: 2
+            //         }, {
+            //             name: 'third',
+            //             value: 3
+            //         }, {
+            //             name: 'fourth',
+            //             value: 4
+            //         }, {
+            //             name: 'fifth',
+            //             value: 5
+            //         }, {
+            //             name: 'sixth',
+            //             value: 6
+            //         }]
+            //     this.initEchart('ageEchart',this.handlerAgeOption(data2))
 
-            })
+            // })
             let userInfo=localStorage.getItem('pro__Login_Userinfo');
             let userId=''
             if(userInfo){
                 this.userId=JSON.parse(userInfo).value.id
             }
-            getAction('/ctop/userAllocation/getAccountIdsByUserId',{
-                userId:this.userId,
+            new Promise((resolve,reject)=>{
+                getAction('/ctop/userAllocation/getAccountIdsByUserId',{
+                    userId:this.userId,
+                }).then(res=>{
+                    console.log(res)
+                    if(res.success){
+                        this.accountList=res.result
+                        this.accountIds=res.result[0].account_id;
+                        
+                        this.treeData=[];
+                        this.directionalId=[];
+                        getAction('/ai/analyze/getStrategyAndTarget', {
+                            accountId:this.accountIds
+                        }).then(res => {
+                            if(res.success){
+                                // console.log(res);
+                                if(res.result){
+                                    res.result.forEach((element,index) => {
+                                    if(element){                  
+                                        this.treeData.push({});                    
+                                        this.treeData[index].title=element.strategy_name +'_('+ element.id +')';
+                                        this.treeData[index].value='strategy'+element.id;
+                                        this.treeData[index].key=element.id;
+                                    
+                                        this.treeData[index].children=[];
+                                                            
+                                        if(element.targets.length&&element.targets[0]){
+                                            element.targets.forEach((ele,i)=>{
+                                                this.treeData[index].children.push({});
+                                                this.treeData[index].children[i].title=ele.target_type+'_'+ele.target_content
+                                                this.treeData[index].children[i].value=element.id+'_'+ele.id;
+                                                this.treeData[index].children[i].key=element.id+'_'+ele.id;
+                                            })
+                                            
+                                        }                           
+                                    }      
+                                    });
+                                    // console.log(this.treeData)
+                                    this.directionalId=[this.treeData[0].children[0].value]
+                                    resolve()
+                                }
+                            }
+                        })
+                        
+                    }else{
+                        this.$message.error('账户信息获取错误!')
+                    }
+                   
+                })
             }).then(res=>{
-                console.log(res)
-                if(res.success){
-                    this.accountList=res.result
-                }
+                this.search()
+                
             })
+            
+
+
         },
         filters: {
             toPercentage(val) {

+ 11 - 3
src/views/oceanengine/HotMaterialList.vue

@@ -21,7 +21,7 @@
               </a-col>
             </a-row>-->
             <a-row :gutter="24">
-              <a-col :md="10" :sm="10">
+              <a-col :md="3" :sm="3">
                 <a-form-item label="排序">
                   <a-radio-group v-model="queryParam.orderByColumn">
                     <a-radio-button value="create_time">按抓取时间</a-radio-button>
@@ -30,6 +30,13 @@
                     <a-radio-button value="comment">按评论数</a-radio-button>-->
                   </a-radio-group>
                 </a-form-item>
+               
+              </a-col>
+              <a-col :md="8" :sm="8">
+                
+                <a-form-item label="标题">
+                  <a-input placeholder="标题名称" style="width: 300px" allowClear v-model="queryParam.title" />
+                </a-form-item>
               </a-col>
               <a-col :md="6" :sm="6">
                 <a-form-item>
@@ -39,7 +46,7 @@
                   </a-radio-group>
                 </a-form-item>
               </a-col>
-              <a-col :md="8" :sm="8">
+              <a-col :md="4" :sm="4">
                 <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
                 <a-button
                   type="primary"
@@ -146,7 +153,8 @@ export default {
         orderByColumn: 'create_time',
         orderByType: 'desc',
         start: '',
-        end: ''
+        end: '',
+        title:'',
       },
       time: [],
       companyData: [],

+ 3 - 3
vue.config.js

@@ -74,10 +74,10 @@ module.exports = {
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.43:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.43:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.43:8888', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        // target: 'http://192.168.1.43:8087', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
-        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+        // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
+         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目