From c80c6b24a0d76321780d71c2d4249f5144693096 Mon Sep 17 00:00:00 2001
From: yyt <306727702@qq.com>
Date: 星期二, 23 一月 2024 11:16:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 jcdm-ui/src/views/main/pr/tightenReport/index.vue |   58 +++++++++++++++++++---------------------------------------
 1 files changed, 19 insertions(+), 39 deletions(-)

diff --git a/jcdm-ui/src/views/main/pr/tightenReport/index.vue b/jcdm-ui/src/views/main/pr/tightenReport/index.vue
index 36f9cc4..edb177a 100644
--- a/jcdm-ui/src/views/main/pr/tightenReport/index.vue
+++ b/jcdm-ui/src/views/main/pr/tightenReport/index.vue
@@ -14,7 +14,6 @@
             placeholder="璇疯緭鍏ュ伐浣嶅彿"
             @keyup.enter.native="handleQuery"/>
         </el-form-item>
-
         <el-form-item label-width="120"  label="閲囬泦鏃堕棿" prop="startDate">
             <el-date-picker
               v-model="dateRange"
@@ -23,7 +22,6 @@
               start-placeholder="寮�濮嬫棩鏈�"
               end-placeholder="缁撴潫鏃ユ湡">
             </el-date-picker>
-            <button @click="fetchData">鏌ヨ</button>
         </el-form-item>
         <el-form-item style="float: right">
           <el-button type="primary" icon="el-icon-refresh" @click="handleQuery">鏌ヨ</el-button>
@@ -119,24 +117,24 @@
   created() {
     this.getList();
   },
-  methods:{
+  methods: {
 
-    async fetchData() {
-      // 鏋勫缓API璇锋眰鐨刄RL锛屼娇鐢ㄩ�夋嫨鐨勬棩鏈熻寖鍥翠綔涓烘煡璇㈠弬鏁�
-      const url = `@/api/main/da/paramCollection/paramCollection?startDate=${this.dateRange[0]}&endDate=${this.dateRange[1]}`;
+    //   async fetchData() {
+    //     // 鏋勫缓API璇锋眰鐨刄RL锛屼娇鐢ㄩ�夋嫨鐨勬棩鏈熻寖鍥翠綔涓烘煡璇㈠弬鏁�
+    //     const url = `@/api/main/da/paramCollection/paramCollection?startDate=${this.dateRange[0]}&endDate=${this.dateRange[1]}`;
+    //
+    //     try {
+    //       // 鍙戦�丄PI璇锋眰锛岃幏鍙栨煡璇㈢粨鏋�
+    //       const response = await fetch(url);
+    //       const data = await response.json();
+    //       console.log(data); // 澶勭悊鏌ヨ缁撴灉锛屾瘮濡傚湪鎺у埗鍙拌緭鍑烘垨鏄剧ず鍦ㄩ〉闈笂
+    //     } catch (error) {
+    //       console.error('Error fetching data:', error);
+    //     }
+    //   },
+    // },
 
-      try {
-        // 鍙戦�丄PI璇锋眰锛岃幏鍙栨煡璇㈢粨鏋�
-        const response = await fetch(url);
-        const data = await response.json();
-        console.log(data); // 澶勭悊鏌ヨ缁撴灉锛屾瘮濡傚湪鎺у埗鍙拌緭鍑烘垨鏄剧ず鍦ㄩ〉闈笂
-      } catch (error) {
-        console.error('Error fetching data:', error);
-      }
-    },
-  },
-
-  reset() {
+    reset() {
       this.form = {
         id: null,
         workOrderNo: null,
@@ -177,31 +175,12 @@
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
       this.ids = selection.map(item => item.id)
-      this.single = selection.length!==1
+      this.single = selection.length !== 1
       this.multiple = !selection.length
     },
 
     getList() {
       this.loading = true;
-      // const startDate = new Date(this.queryParams.startDate);
-      // const endDate = new Date(this.queryParams.endDate);
-      // const resultList = [];
-      // // 鏋勫缓鏌ヨ鏉′欢锛屼娇鐢≒aramCollection琛ㄧ殑createtime浣滀负鍒ゆ柇鏉′欢
-      // const query = {
-      //   createTime: date // 浣跨敤褰撳墠鏃ユ湡浣滀负鏌ヨ鏉′欢
-      // };
-      // for (let date = startDate; date <= endDate; date.setDate(date.getDate() + 1)) {
-      //   // 鏍规嵁褰撳墠鏃ユ湡鎵ц鏌ヨ鎿嶄綔锛屽苟灏嗙粨鏋滄坊鍔犲埌缁撴灉鏁扮粍涓�
-      //   listParamCollection(query).then(response => {
-      //     resultList.push(...response.rows);
-      //     // 鍒ゆ柇鏄惁鏄渶鍚庝竴涓棩鏈燂紝濡傛灉鏄紝鍒欐洿鏂伴〉闈㈡暟鎹�
-      //     if (date.getTime() === endDate.getTime()) {
-      //       this.tightenReportList = resultList;
-      //       this.total = resultList.length;
-      //       this.loading = false;
-      //     }
-      //   });
-      // }
       listParamCollection(this.queryParams).then(response => {
         this.tightenReportList = response.rows;
         this.total = response.total;
@@ -209,8 +188,9 @@
       });
     },
 
-
+  },
 }
+
 </script>
 
 <style scoped>

--
Gitblit v1.9.3