瀏覽代碼

'定制报表加订阅'

魏志佳 4 年之前
父節點
當前提交
9f080a2607

+ 1 - 1
src/views/modules/Statistics/KSAccountReport.vue

@@ -1276,7 +1276,7 @@ export default {
                 columns.map((item, index) => {
                 if (index > columnsFixd.length - 1) {
                     item.sorter = function(a, b) {
-                    return a[item.dataIndex] - b[item.dataIndex]
+                      return a[item.dataIndex] - b[item.dataIndex]
                     }
                 }
                 })

+ 13 - 13
src/views/modules/Statistics/dataDisplayStatistics.vue

@@ -431,7 +431,7 @@ const columns = [
 ]
 
 
-const columnsFixd = [
+const columnsWu = [
   {
     title: '时间',
     dataIndex: 'date',
@@ -579,8 +579,8 @@ export default {
       title: '账户数据展示',
       show: true,
       data: [],
-      columns:JSON.parse(JSON.stringify(columnsFixd)),
-      columnsFixd,
+      columns:JSON.parse(JSON.stringify(columnsWu)),
+      columnsWu,
       options: [],
       list: [],
       appId: [],
@@ -605,7 +605,7 @@ export default {
         discountCostProportion: 0
       },
       timeList: [
-        // { label: '今天', value: 1, show: true },
+        //{ label: '今天', value: 1, show: true },
         { label: '昨天', value: 2, show: true },
         { label: '近一周', value: 3, show: true },
         { label: '近十五天', value: 4, show: true },
@@ -675,14 +675,14 @@ export default {
       this.visible=false;
     },
     //自定义之后修改父元素表头
-    changeColumn(val){
-        this.columns=[...val];
-        if(this.columns.length> this.columnsFixd.length){
-              this.scrollX=2000+200*(this.columns.length-this.columnsFixd.length)
-        }else{
-          this.scrollX=0
-        }
-    },
+    // changeColumn(val){
+    //     this.columns=[...val];
+    //     if(this.columns.length> this.columnsFixd.length){
+    //           this.scrollX=2000+200*(this.columns.length-this.columnsFixd.length)
+    //     }else{
+    //       this.scrollX=0
+    //     }
+    // },
     tableHandle() {
         // this.listNum = [...this.columns]
         //   console.log(this.listNum.length, this.columns)
@@ -727,7 +727,7 @@ export default {
           }
         }
       } else {
-        this.options = this.list
+        this.options = this.lista
       }
     },
     search(value) {

+ 15 - 0
src/views/ureport/UReportFileList.vue

@@ -45,6 +45,8 @@
           <a @click="deleteParams(record)">解绑</a>
           <a-divider type="vertical" />
           <a @click="editData(record)">修改</a>
+          <a-divider type="vertical" />
+          <a @click="subscribe(record)">订阅</a>
         </span>
       </a-table>
     </div>
@@ -93,6 +95,8 @@
 import UReportFileModal from './modules/UReportFileModal'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 import { httpAction, getAction, deleteAction } from '@/api/manage'
+import { postAction } from '../../api/manage'
+import qs from 'qs'
 export default {
   name: 'UReportFileList',
   mixins: [JeecgListMixin],
@@ -140,6 +144,17 @@ export default {
     }
   },
   methods: {
+    subscribe(record){
+      console.log(record);
+      postAction('/ctop/uReportFileBindUser/subscribe',qs.stringify({
+        fileId:record.id
+      })).then(res=>{
+        console.log(res);
+        if(res.success){  
+          this.$message.success('订阅成功')
+        }
+      })
+    },
     filterOption(input, option) {
       return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
     },

+ 3 - 2
vue.config.js

@@ -58,7 +58,7 @@ 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.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
@@ -66,10 +66,11 @@ module.exports = {
         // target: 'http://192.168.0.230:8088', //请求本地 需要jeecg-boot后台项目  孙震
         // target: 'http://192.168.1.51:8080', //请求本地 需要jeecg-boot后台项目  毕洁泉
 
-        // target: 'http://192.168.1.51:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        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后台项目