From f64155f6ad27c50451bb7d4a15f553bc72ead7de Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期五, 12 九月 2025 14:35:26 +0800
Subject: [PATCH] 年龄计算相关

---
 src/views/project/donatefinish/index.vue |   33 ++++++++++++++++++++++++---------
 1 files changed, 24 insertions(+), 9 deletions(-)

diff --git a/src/views/project/donatefinish/index.vue b/src/views/project/donatefinish/index.vue
index fafa17a..8911505 100644
--- a/src/views/project/donatefinish/index.vue
+++ b/src/views/project/donatefinish/index.vue
@@ -126,7 +126,7 @@
           </el-form-item>
         </el-col>
 
-        
+
       </el-row> -->
     </el-form>
 
@@ -155,7 +155,21 @@
           />
         </template>
       </el-table-column>
-      <el-table-column label="骞撮緞" align="center" prop="age" width="100" />
+      <el-table-column label="骞撮緞" align="center" prop="age" width="100">
+        <template slot-scope="scope">
+          {{
+            `${
+              scope.row.age && scope.row.age !== 0
+                ? `${scope.row.age}${scope.row.ageunit}`
+                : ""
+            } ${
+              scope.row.age2 && scope.row.age2 !== 0
+                ? `${scope.row.age2}${scope.row.ageunit2}`
+                : ""
+            }`.trim()
+          }}
+        </template>
+      </el-table-column>
       <el-table-column
         label="鍖荤枟鏈烘瀯"
         align="center"
@@ -192,7 +206,7 @@
               :value="scope.row.workflow"
             />
           </div>
-          <div v-else>浠诲姟涓</div>
+          <div v-else>浠诲姟缁堟</div>
         </template>
       </el-table-column>
 
@@ -705,9 +719,10 @@
     };
   },
   created() {
-    // this.getDicts('country').then(res=>{
-    //   this.nationality =res.data
-    // })
+    if (sessionStorage.getItem("donatefinish")) {
+      this.queryParams = JSON.parse(sessionStorage.getItem("donatefinish"));
+      console.log(this.queryParams, "queryParams");
+    }
   },
   activated() {
     this.selecttime = "";
@@ -720,9 +735,7 @@
     if (this.$route.params.starttime != null && this.$route.params.endtime) {
       this.selecttime = [
         this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"),
-        this.$moment(this.$route.params.endtime)
-          .add(-1, "month")
-          .format("YYYY-MM-DD")
+        this.$moment(this.$route.params.endtime).format("YYYY-MM-DD")
       ];
     }
     if (this.$route.params.reporterno != "") {
@@ -958,6 +971,8 @@
     getList() {
       this.loading = true;
       this.queryParams.params = {};
+      sessionStorage.removeItem("donatefinish");
+      sessionStorage.setItem("donatefinish", JSON.stringify(this.queryParams));
       if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
         this.queryParams.params[
           "beginReporttime"

--
Gitblit v1.9.3