Browse Source

'提交代码'

syh 4 năm trước cách đây
mục cha
commit
d126a71f7e
4 tập tin đã thay đổi với 24 bổ sung66 xóa
  1. 1 0
      public/index.html
  2. 3 3
      src/mixins/JeecgListMixin.js
  3. 13 56
      src/views/report/JhsBakendDataList.vue
  4. 7 7
      vue.config.js

+ 1 - 0
public/index.html

@@ -271,6 +271,7 @@
   <!-- 全局配置 -->
   <script>
     window._CONFIG = {};
+    // window._CONFIG['domianURL'] = 'http://192.168.1.72:8088/jeecg-boot';
     window._CONFIG['domianURL'] = 'http://39.97.120.42:8080/jeecg-boot';
     window._CONFIG['imgDomainURL'] = 'http://39.97.120.42:8080/jeecg-boot/sys/common/view';
     window._CONFIG['pdfDomainURL'] = 'http://39.97.120.42:8080/jeecg-boot/sys/common/pdf/pdfPreviewIframe';

+ 3 - 3
src/mixins/JeecgListMixin.js

@@ -109,9 +109,9 @@ export const JeecgListMixin = {
         params.endDate = moment(params.createTime[1]).format('YYYY-MM-DD')
         params.createTime = null
       }
-      // if(params.startDate){
-      //   params.startDate = moment(params.startDate).format('YYYY-MM-DD')
-      // }
+      if(params.stateDate){
+        params.stateDate = moment(params.stateDate).format('YYYY-MM-DD')
+      }
       // if(params.endDate){
       //   params.endDate = moment(params.endDate).format('YYYY-MM-DD')
       // }

+ 13 - 56
src/views/report/JhsBakendDataList.vue

@@ -7,40 +7,15 @@
         <a-row :gutter="24">
 
           <a-col :md="6" :sm="8">
-            <a-form-item label="stateDate">
-              <a-input placeholder="请输入stateDate" v-model="queryParam.stateDate"></a-input>
+            <a-form-item label="选择日期">
+<!--              <a-input placeholder="请输入stateDate" v-model="queryParam.stateDate"></a-input>-->
+              <a-date-picker v-model="queryParam.stateDate" format="YYYY-MM-DD" style="width:100%" />
             </a-form-item>
           </a-col>
-          <a-col :md="6" :sm="8">
-            <a-form-item label="productLine">
-              <a-input placeholder="请输入productLine" v-model="queryParam.productLine"></a-input>
-            </a-form-item>
-          </a-col>
-        <template v-if="toggleSearchStatus">
-        <a-col :md="6" :sm="8">
-            <a-form-item label="taskName">
-              <a-input placeholder="请输入taskName" v-model="queryParam.taskName"></a-input>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="8">
-            <a-form-item label="clientName">
-              <a-input placeholder="请输入clientName" v-model="queryParam.clientName"></a-input>
-            </a-form-item>
-          </a-col>
-          <a-col :md="6" :sm="8">
-            <a-form-item label="channelId">
-              <a-input placeholder="请输入channelId" v-model="queryParam.channelId"></a-input>
-            </a-form-item>
-          </a-col>
-          </template>
           <a-col :md="6" :sm="8" >
             <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
               <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
               <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
-              <a @click="handleToggleSearch" style="margin-left: 8px">
-                {{ toggleSearchStatus ? '收起' : '展开' }}
-                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
-              </a>
             </span>
           </a-col>
 
@@ -50,8 +25,6 @@
 
     <!-- 操作按钮区域 -->
     <div class="table-operator">
-      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
-      <a-button type="primary" icon="download" @click="handleExportXls('聚划算后端数据')">导出</a-button>
       <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
         <a-button type="primary" icon="import">导入</a-button>
       </a-upload>
@@ -65,11 +38,6 @@
 
     <!-- table区域-begin -->
     <div>
-      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
-        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
-        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
-      </div>
-
       <a-table
         ref="table"
         size="middle"
@@ -79,7 +47,6 @@
         :dataSource="dataSource"
         :pagination="ipagination"
         :loading="loading"
-        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
         @change="handleTableChange">
 
         <span slot="action" slot-scope="text, record">
@@ -122,58 +89,48 @@
         description: '聚划算后端数据管理页面',
         // 表头
         columns: [
-          {
-            title: '#',
-            dataIndex: '',
-            key:'rowIndex',
-            width:60,
-            align:"center",
-            customRender:function (t,r,index) {
-              return parseInt(index)+1;
-            }
-           },
 		   {
-            title: 'stateDate',
+            title: '日期',
             align:"center",
             dataIndex: 'stateDate'
            },
 		   {
-            title: 'productLine',
+            title: '产品线',
             align:"center",
             dataIndex: 'productLine'
            },
 		   {
-            title: 'taskName',
+            title: '任务名称',
             align:"center",
             dataIndex: 'taskName'
            },
 		   {
-            title: 'clientName',
+            title: '客户端',
             align:"center",
             dataIndex: 'clientName'
            },
 		   {
-            title: 'channelId',
+            title: '渠道id',
             align:"center",
             dataIndex: 'channelId'
            },
 		   {
-            title: 'channelName',
+            title: '渠道名称',
             align:"center",
             dataIndex: 'channelName'
            },
 		   {
-            title: 'adId',
+            title: '计划id',
             align:"center",
             dataIndex: 'adId'
            },
 		   {
-            title: 'pageView',
+            title: '页面访问UV',
             align:"center",
             dataIndex: 'pageView'
            },
 		   {
-            title: 'dealNumber',
+            title: '成交笔数',
             align:"center",
             dataIndex: 'dealNumber'
            },
@@ -199,7 +156,7 @@
     }
   },
     methods: {
-     
+
     }
   }
 </script>

+ 7 - 7
vue.config.js

@@ -58,9 +58,9 @@ module.exports = {
     open : true,
     proxy: {
       '/jeecg-boot': {
-         target: 'http://192.168.1.90:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+         // target: 'http://192.168.1.90:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
-        // target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
+        target: 'http://192.168.1.72:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.94:8088', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.0.230:8088', //请求本地 需要jeecg-boot后台项目  孙震
@@ -69,11 +69,11 @@ module.exports = {
         // target: 'http://192.168.1.51:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.0.170:8088', //请求本地 需要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后台项目 
-        // target: 'http://192.168.1.251/', //请求本地 需要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后台项目
+        // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目
         // target:'http://118.24.244.213:8804',