Procházet zdrojové kódy

fix: 交通安全追加修改

wyf před 7 měsíci
rodič
revize
8abe9075a7

+ 3 - 2
src/styles/basic-table-file.scss

@@ -11,8 +11,9 @@
   &__name {
     cursor: pointer;
     margin: 0 10px;
-    max-width: 120px;
-        white-space: nowrap; /* 防止文本换行 */
+    width: 180px;
+    text-align: start;
+    white-space: nowrap; /* 防止文本换行 */
     overflow: hidden; /* 隐藏溢出的文本 */
     text-overflow: ellipsis; /* 显示省略号 */
   }

+ 2 - 0
src/views/traffic/violation/act/components/ImageViewer.vue

@@ -35,8 +35,10 @@
     display: flex;
     justify-content: center;
     align-items: center;
+    margin: auto;
   }
   .image-viewer__image {
+    display: block;
     width: 120px;
     height: 90px;
     border-radius: 5px;

+ 10 - 16
src/views/traffic/violation/notice/Notice.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="safety-platform-container">
     <header class="safety-platform-container__header">
-      <div class="breadcrumb-title"> 违规行为记录 </div>
+      <div class="breadcrumb-title"> 违规通知记录 </div>
     </header>
     <main class="safety-platform-container__main">
       <div class="search-table-container">
@@ -26,7 +26,7 @@
                   />
                 </el-select>
               </div>
-              <div class="select-box--item">
+              <!-- <div class="select-box--item">
                 <span>通知状态:</span>
                 <el-select
                   v-model="searchData.isNotice"
@@ -42,7 +42,7 @@
                     :disabled="item.disabled"
                   />
                 </el-select>
-              </div>
+              </div> -->
               <div>
                 <span>时间:</span>
                 <el-date-picker
@@ -57,7 +57,7 @@
             <section class="search-btn">
               <el-button type="primary" @click="handleSearch">查询</el-button>
               <el-button @click="handleReset">重置</el-button>
-              <el-button v-if="noticeManagementPermission" @click="handleDownload">导出</el-button>
+              <el-button @click="handleDownload">导出</el-button>
             </section>
           </div>
         </header>
@@ -90,7 +90,7 @@
           <template #createSource="scope">
             <span>{{ ACT_NOTICE_DATA_SOURCE_LABEL[scope.row.createSource] }}</span>
           </template>
-          <template #isNotice="scope">
+          <!-- <template #isNotice="scope">
             <div class="notice-state">
               <div
                 :style="{
@@ -103,7 +103,7 @@
               ></div>
               <span>{{ ACT_NOTICE_STATE_LABEL[scope.row.isNotice] }}</span>
             </div>
-          </template>
+          </template> -->
         </BasicTable>
       </div>
     </main>
@@ -123,18 +123,12 @@
   } from '../act/configs/tables';
   import {
     ACT_NOTICE_DATA_SOURCE_LABEL,
-    ACT_VIOLATION_TYPE,
     ACT_VIOLATION_TYPE_LABEL,
     ACT_TABLE_SEARCH_OPTIONS,
     ACT_VIOLATION_TYPE_OPTIONS,
-    ACT_NOTICE_STATE_OPTIONS,
-    ACT_NOTICE_STATE,
-    ACT_NOTICE_STATE_LABEL,
-    ACT_NOTICE_STATE_COLOR,
     NOTICE_MANAGEMENT_PROMISSION_CODE,
   } from '../act/constants';
   import { ref, reactive, onMounted } from 'vue';
-  import { useRouter } from 'vue-router';
   import type { QueryPageRequest } from '@/types/basic-query';
   import type { ActTableSearch, ActTableQuery, ActTableData } from '../act/types';
   import { getActTableList, exportActViolation } from '@/api/traffic-violation/traffic-act';
@@ -160,9 +154,9 @@
     if (selectableSearch) {
       tableQuery.queryParam[selectableSearch.key as string] = selectableSearch.value;
     }
-    if (searchData.isNotice != null) {
-      tableQuery.queryParam.isNotice = searchData.isNotice;
-    }
+    // if (searchData.isNotice != null) {
+    //   tableQuery.queryParam.isNotice = searchData.isNotice;
+    // }
     if (searchData.violateType != null) {
       tableQuery.queryParam.violateType = searchData.violateType;
     }
@@ -182,7 +176,7 @@
     searchData.carNumber = undefined;
     searchData.violateName = undefined;
     searchData.deptName = undefined;
-    searchData.isNotice = undefined;
+    // searchData.isNotice = undefined;
     searchData.violateType = undefined;
     searchData.searchTime = undefined;
     handleSearch();