Forráskód Böngészése

Merge branch 'master' of http://git.tjyourong.com.cn/ctop/adsp-vue

zhuxinbo 4 éve
szülő
commit
48212a7f37

+ 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]
                     }
                 }
                 })

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

@@ -647,7 +647,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 },
@@ -768,7 +768,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
     },

+ 5 - 4
vue.config.js

@@ -58,18 +58,19 @@ 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后台项目  孙震
         // 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: '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后台项目