Parcourir la source

master 快手视频报表 修改时间 控件

jiayufei il y a 3 ans
Parent
commit
24dfc70635

+ 12 - 3
src/components/DatePicker.vue

@@ -110,7 +110,7 @@ let pickOptions = [
 ]
 
 export default {
-  props: ['openOptions', 'left','parentDate'],
+  props: ['openOptions', 'left','parentDate', 'typemain'],
   data() {
     return {
       moment,
@@ -159,8 +159,14 @@ export default {
     },
     disabledDate(current) {
       // console.log(current)
-
-      return current && current > moment().subtract(1, 'day')
+      // moment().subtract(1, 'quarters')
+      if (this.typemain && this.typemain === 'ksVideo') {
+        return (current && current < moment().subtract(1, 'quarters')) || (current && current > moment().subtract(1, 'day'))
+      }
+      else {
+        return current && current > moment().subtract(1, 'day')
+      }
+      
     },
     openChange(open) {
       // console.log(open)
@@ -174,6 +180,9 @@ export default {
     if(this.parentDate){
       this.dateValue=this.parentDate
     }
+    if (this.typemain && this.typemain === 'ksVideo') {
+      this.pickOptions = this.pickOptions.slice(0, 4);
+    }
     // console.log(this.$refs.pickOptions.style.left)
   }
 }

+ 1 - 1
src/views/modules/Statistics/videoStatics/KSvideoStatics.vue

@@ -9,7 +9,7 @@
         <div style="dispaly:inline-block;margin-bottom:15px;"> 
           <span>时间范围:</span>
           <span style="display: inline-block;"  @click="opendate">
-            <DatePicker :openOptions='openOptions'  :parentDate='dateValue' left='-100px'></DatePicker>
+            <DatePicker :openOptions='openOptions' :parentDate='dateValue' left='-100px' typemain="ksVideo"></DatePicker>
           </span>
         </div>
         <div style="dispaly:inline-block;margin-bottom:15px;">

+ 2 - 2
vue.config.js

@@ -108,13 +108,13 @@ module.exports = {
         // target: 'http://192.168.1.219:8081', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
         // target: 'http://192.168.1.193:31012', //请求本地 需要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后台项目
         // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目
         // target:'http://118.24.244.213:8804',
-        target: 'http://192.168.1.43:9999', // 子安
+        // target: 'http://192.168.1.43:9999', // 子安
         // target: 'http://192.168.1.8:8806', // 学超
         // target:'http://gateway.tjyourong.com.cn', //测试
         // target:'http://apipre.tjyourong.com.cn', //预生产