From 7c20fd15b7fbc2bd5756b39d5ab655cc849ffcc3 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 16 七月 2025 22:39:23 +0800
Subject: [PATCH] 添加时间筛选

---
 src/views/operate/writManager/writ/index.vue |  142 ++++++++++++++++++++++++++--------------------
 1 files changed, 80 insertions(+), 62 deletions(-)

diff --git a/src/views/operate/writManager/writ/index.vue b/src/views/operate/writManager/writ/index.vue
index aef23da..eb4c656 100644
--- a/src/views/operate/writManager/writ/index.vue
+++ b/src/views/operate/writManager/writ/index.vue
@@ -3,37 +3,23 @@
     <header>
       <div class="header-content">
         <div class="search">
-          <span style="padding-right: 20px">绛涢�夋潯浠�:</span>
-          <el-select
-            v-model="context"
-            placeholder="绛涢�夋潯浠�"
-            @change="handleStateChange"
-          >
-            <el-option
-              v-for="item in options"
-              :key="item.value"
-              :label="item.label"
-              :value="item.value"
-            >
-            </el-option>
-          </el-select>
+          <span>绛涢�夋潯浠�:</span>
+          <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="context"></el-input>
+          <div class="findBtn">
+            <el-button type="primary" @click="setTableData">鏌ヨ</el-button>
+          </div>
         </div>
       </div>
     </header>
     <main>
       <div class="main-content">
-        <div class="main-title">
-          <el-button class="el-icon-plus" type="primary" @click="handleAdd"
-            >娣诲姞</el-button
-          >
-        </div>
         <!-- 鏁版嵁灞曠ず -->
         <el-table
+            border
+            stripe
           ref="multipleTable"
           :header-cell-style="{
-            background: '#06122c',
-            'font-size': '12px',
-            color: '#4b9bb7',
+           'background':'#F5F5F5',
             'font-weight': '650',
             'line-height': '45px',
           }"
@@ -42,34 +28,34 @@
           style="width: 100%"
         >
           <el-table-column type="selection" min-width="5"> </el-table-column>
-          <el-table-column prop="writCode" label="鏂囦功缂栧彿" min-width="10">
+          <el-table-column prop="writCode" label="鏂囦功缂栧彿" min-width="100">
           </el-table-column>
-          <el-table-column prop="writTypeName" label="鏂囦功绉嶇被" min-width="10">
+          <el-table-column prop="writTypeName" label="鏂囦功绉嶇被" min-width="180">
           </el-table-column>
-          <el-table-column prop="categoryName" label="杩濇硶绫诲瀷" min-width="20">
+          <el-table-column prop="categoryName" label="杩濇硶绫诲瀷" min-width="80">
           </el-table-column>
-          <el-table-column prop="eventCode" label="浜嬩欢缂栧彿" min-width="10">
+          <el-table-column prop="eventCode" label="浜嬩欢缂栧彿"  min-width="100">
           </el-table-column>
-          <el-table-column prop="sendTime" label="鏂囦功鍙戞斁鏃堕棿" min-width="10">
+          <el-table-column prop="sendTime" label="鏂囦功鍙戞斁鏃堕棿" min-width="120">
           </el-table-column>
-          <el-table-column prop="limitTime" label="鏂囦功闄愬畾鏃堕棿" min-width="10">
+          <el-table-column prop="limitTime" label="鏂囦功闄愬畾鏃堕棿" min-width="120">
           </el-table-column>
           <el-table-column
             prop="sendContent"
             label="鏂囦功鍙戞斁鍐呭"
-            min-width="10"
+            min-width="110"
           >
           </el-table-column>
           <el-table-column
             prop="rectifyTime"
             label="瀹為檯鏁存敼鏃堕棿"
-            min-width="10"
+            min-width="120"
           >
           </el-table-column>
           <el-table-column
             prop="rectifySituation"
             label="鏁存敼鎯呭喌"
-            min-width="10"
+            min-width="110"
           >
           </el-table-column>
 
@@ -77,11 +63,11 @@
             prop="state"
             :formatter="formatSate"
             label="鐘舵��"
-            min-width="5"
+             min-width="60"
           >
           </el-table-column>
 
-          <el-table-column prop="operation" label="鎿嶄綔" min-width="20">
+          <el-table-column prop="operation" label="鎿嶄綔" min-width="150">
             <template slot-scope="scope">
               <div class="operation">
                 <span v-if="!scope.row.value" @click="handleEdit(scope.row)"
@@ -122,7 +108,7 @@
         title="涓嬪彂鏂囦功"
         :visible.sync="dialogCreate"
         v-if="dialogCreate"
-        width="60%"
+        width="80%"
         :before-close="handleClose"
       >
         <component
@@ -201,7 +187,8 @@
     },
     handleDelete(row) {
       this.$confirm("纭鍒犻櫎锛�").then((_) => {
-        this.deleteWrit(row.id).then((res) => {
+        console.log(row)
+        this.deleteWrit(row.baseCaseId).then((res) => {
           this.$message({
             type: "success",
             message: "鍒犻櫎鎴愬姛锛�",
@@ -222,12 +209,11 @@
 
     // 璁剧疆琛ㄦ牸鏂戦┈绾�
     tableRowClassName({ row, rowIndex }) {
-      if ((rowIndex + 1) % 2 == 0) {
+      if ((rowIndex + 1) % 2 === 0) {
         return "warning-row";
       } else {
         return "success-row";
       }
-      return "";
     },
     // 寮圭獥鍏抽棴
     handleClose(done) {
@@ -242,7 +228,7 @@
       this.getWritList({
         currentPage,
         pageSize,
-        state: context,
+        keyword: context,
       }).then((res) => {
         this.list = res.records;
         this.totalNum = res.total;
@@ -272,15 +258,14 @@
   <style lang="scss" scoped>
 .list {
   text-align: left;
-  margin: 10px 20px;
+  padding: 10px 20px;
   color: #4b9bb7;
-
+  border: 1px solid #ccc;
   header {
-    background-color: #09152f;
-    border: 1pox solid #fff;
+    background-color: white;
 
     .header-content {
-      padding: 0 40px;
+      padding: 0;
       display: flex;
       line-height: 100px;
       justify-content: space-between;
@@ -299,8 +284,8 @@
           color: #1d3f57;
 
           &::v-deep .el-input__inner {
-            background-color: #09152f;
-            border: 1px solid #17324c;
+            background-color: #fff;
+            //border: 1px solid #17324c;
           }
         }
       }
@@ -308,10 +293,9 @@
   }
 
   main {
-    background-color: #09152f;
+    background-color: #fff;
     margin-top: 20px;
     padding-bottom: 50px;
-    border: 1pox solid #fff;
 
     .main-title {
       line-height: 60px;
@@ -331,7 +315,7 @@
           line-height: 28px;
           display: flex;
           align-items: center;
-          border: 1px solid #17324c;
+          //border: 1px solid #17324c;
           border-radius: 4px;
           font-size: 12px;
           margin-left: 10px;
@@ -347,7 +331,7 @@
 
           &::v-deep .el-input__inner {
             border: none;
-            background-color: #09152f;
+            // background-color: #09152f;
           }
 
           &:hover {
@@ -370,7 +354,7 @@
           &::v-deep li,
           &::v-deep .btn-prev,
           &::v-deep .btn-next {
-            background-color: #071f39;
+            // background-color: #071f39;
             color: #4b9bb7;
           }
 
@@ -381,13 +365,13 @@
         }
       }
     }
-    &::v-deep .warning-row {
-      background-color: #06122c;
-    }
+    // &::v-deep .warning-row {
+    //   background-color: #06122c;
+    // }
 
-    &::v-deep .success-row {
-      background-color: #071f39;
-    }
+    // &::v-deep .success-row {
+    //   background-color: #071f39;
+    // }
 
     .operationBox {
       display: flex;
@@ -397,15 +381,15 @@
       background-color: #4b9bb7;
     }
     .el-table {
-      color: #4b9bb7;
-      font-size: 10px;
+      // color: #4b9bb7;
+      // font-size: 10px;
       .operation {
         display: flex;
 
         .line {
           padding: 0 5px;
         }
-
+        color: var(--operation-color);
         span:hover {
           cursor: pointer;
         }
@@ -415,12 +399,46 @@
   // 璁剧疆dialog鏍峰紡
   ::v-deep .el-dialog__body {
     background-color: #fff;
-    color: #000;
+    // color: #000;
   }
 
   ::v-deep .el-dialog__header {
-    background-color: #06122c !important;
+    // background-color: #06122c !important;
     color: #fff;
   }
 }
-</style>
\ No newline at end of file
+.headerContent {
+  padding: 0 40px;
+  display: flex;
+  line-height: 100px;
+  justify-content: space-between;
+  align-items: center;
+
+  .search {
+    display: flex;
+    justify-content: flex-start;
+
+    span {
+      flex: 1;
+    }
+
+    .el-input {
+      flex: 2;
+      color: #1d3f57;
+    }
+  }
+}
+
+.findBtn {
+  line-height: 100px;
+  margin-left: 15px;
+  display: flex;
+  align-items: center;
+  margin-top: -2px;
+
+  .el-button {
+    padding: 12px 25px;
+    //border-radius: 20px;
+  }
+}
+</style>

--
Gitblit v1.8.0