Browse Source

no message

ly 1 year ago
parent
commit
12f018d6d6

+ 1 - 1
.dev.drone.yml

@@ -22,7 +22,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
       - cp run.sh /home/nginx/html/yzbh/run.sh
       - cp nginx.conf /home/nginx/html/yzbh/nginx.conf
   - name: build-start
-    image: appleboy/drone-ssh #SSH工具镜像
+    image: appleboy/drone-ssh:1.7.7 #SSH工具镜像
     settings:
       host: 82.156.209.15 # 远程连接地址
       username:

+ 1 - 1
.drone.yml

@@ -22,7 +22,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
       - cp run.sh /home/nginx/html/yzbh/run.sh
       - cp nginx.conf /home/nginx/html/yzbh/nginx.conf
   - name: build-start
-    image: appleboy/drone-ssh #SSH工具镜像
+    image: appleboy/drone-ssh:1.7.7 #SSH工具镜像
     settings:
       host: 124.70.62.143 # 远程连接地址
       username:

+ 14 - 14
src/views/business/entrust/workOrder/historyMonth/index.vue

@@ -147,20 +147,20 @@
     const editStatus = {
         startMonth: false,
     };
-    // function disabledDate(time) {
-    //     const currentMonth = new Date().getMonth();
-    //     const selectedMonth = time.getMonth();
-    //     const currentYear = new Date().getFullYear();
-    //     const selectedYear = time.getFullYear();
-
-    //     // 禁用当前年份之后的所有月份
-    //     if (selectedYear > currentYear) {
-    //         return true;
-    //     }
-
-    //     // 如果选择的是当前年份,只能选择当前月份之前的月份
-    //     return selectedYear === currentYear && selectedMonth >= currentMonth;
-    // }
+    function disabledDate(time) {
+        const currentMonth = new Date().getMonth();
+        const selectedMonth = time.getMonth();
+        const currentYear = new Date().getFullYear();
+        const selectedYear = time.getFullYear();
+
+        // 禁用当前年份之后的所有月份
+        if (selectedYear > currentYear) {
+            return true;
+        }
+
+        // 如果选择的是当前年份,只能选择当前月份之前的月份
+        return selectedYear === currentYear && selectedMonth >= currentMonth;
+    }
 
     function checkCurrentMonthHandle() {
         checkCurrent().then((res) => {

+ 14 - 14
src/views/business/entrust/workOrderForFactory/history/index.vue

@@ -143,20 +143,20 @@
   const editStatus = {
       startMonth: false,
   };
-//   function disabledDate(time) {
-//       const currentMonth = new Date().getMonth();
-//       const selectedMonth = time.getMonth();
-//       const currentYear = new Date().getFullYear();
-//       const selectedYear = time.getFullYear();
-
-//       // 禁用当前年份之后的所有月份
-//       if (selectedYear > currentYear) {
-//           return true;
-//       }
-
-//       // 如果选择的是当前年份,只能选择当前月份之前的月份
-//       return selectedYear === currentYear && selectedMonth >= currentMonth;
-//   }
+  function disabledDate(time) {
+      const currentMonth = new Date().getMonth();
+      const selectedMonth = time.getMonth();
+      const currentYear = new Date().getFullYear();
+      const selectedYear = time.getFullYear();
+
+      // 禁用当前年份之后的所有月份
+      if (selectedYear > currentYear) {
+          return true;
+      }
+
+      // 如果选择的是当前年份,只能选择当前月份之前的月份
+      return selectedYear === currentYear && selectedMonth >= currentMonth;
+  }
 
   function checkCurrentMonthHandle() {
       checkCurrent().then((res) => {