فهرست منبع

任务面板日期选项切换bug修改-提交

lxh 1 هفته پیش
والد
کامیت
08d29c7999
2فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 2 2
      common/service/config.service.js
  2. 4 3
      pages/gasreport/components/taskBoard.vue

+ 2 - 2
common/service/config.service.js

@@ -3,7 +3,7 @@ let BASE_URL = "";
 if (process.env.NODE_ENV == "development") {
   BASE_URL = "http://182.92.126.35:9999"; // 开发环境
 } else {
-  // BASE_URL = "http://182.92.126.35:9999"; // 开发环境
+  BASE_URL = "http://182.92.126.35:9999"; // 开发环境
   // BASE_URL = "http://10.246.95.4:9999"; // 布尔台
   // BASE_URL = "http://10.248.135.10:9999"; // 大柳塔进
   // BASE_URL = "http://10.248.135.121:9999"; // 活鸡兔井
@@ -14,7 +14,7 @@ if (process.env.NODE_ENV == "development") {
   // BASE_URL = "http://172.16.53.16:9999"; //
   // BASE_URL = "http://10.246.167.205:9999"; //上湾
   // BASE_URL = "http://172.30.157.9:9999"; //元子沟
-  BASE_URL = "http://10.246.167.205:9999"; //上湾
+  // BASE_URL = "http://10.246.167.205:9999"; //上湾
 }
 let staticDomainURL = BASE_URL + "/sys/common/static";
 

+ 4 - 3
pages/gasreport/components/taskBoard.vue

@@ -26,7 +26,7 @@
                 <text class="dialog-label">任务日期:</text>
                 <u--input v-model="searchTime" placeholder="请选择任务日期" inputAlign="center"
                     suffixIcon="arrow-right"></u--input>
-                <u-calendar :show="showCalendar" v-model="timeRan" mode="single" closeOnClickOverlay
+                <u-calendar :show="showCalendar" :minDate="minDate" v-model="searchTime" mode="single" closeOnClickOverlay
                     @confirm="changeTime" @cancel="showCalendar = false"
                    ></u-calendar>
             </view>
@@ -52,7 +52,8 @@ export default {
             titleTime: '',
             searchTime: '',//检测时间
             showCalendar: false,//控制日期选型下拉开启
-            timeRan: Number(new Date()),
+            // timeRan: Number(new Date()),
+            minDate:moment().subtract(7, 'days').format('YYYY-MM-DD'),
             isShow: true,
             loadComponent: '',
             taskId: '',
@@ -77,7 +78,7 @@ export default {
         },
         changeTime(e) {
             let that = this
-            that.searchTime = moment(e.value).format('YYYY-MM-DD')
+            that.searchTime =e[0]
             uni.setStorageSync("searchTime", that.searchTime);
             that.showCalendar=false
         },