From 2ef086d9d076fb2b59c5b71451e04b836fe37317 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Wed, 28 May 2025 11:29:22 +0800
Subject: [PATCH] feat:css调整

---
 src/views/system/topmenu.vue      |    2 
 src/views/tickets/ticket.vue      |   48 ++++++++++++++---------
 src/views/authority/datascope.vue |    7 +++
 src/views/authority/apiscope.vue  |    7 +++
 4 files changed, 42 insertions(+), 22 deletions(-)

diff --git a/src/views/authority/apiscope.vue b/src/views/authority/apiscope.vue
index 66fe087..3d54ba3 100644
--- a/src/views/authority/apiscope.vue
+++ b/src/views/authority/apiscope.vue
@@ -33,7 +33,7 @@
         </el-button>
       </template>
       <template #name="{ row }">
-        <i :class="row.source" style="margin-right: 5px" />
+        <i :class="row.source" class="namei"/>
         <span>{{ row.name }}</span>
       </template>
       <template #source="{ row }">
@@ -669,3 +669,8 @@
   },
 };
 </script>
+<style scoped>
+.namei {
+  margin-right: 5px;
+}
+</style>
diff --git a/src/views/authority/datascope.vue b/src/views/authority/datascope.vue
index 14d0b9a..0389f4e 100644
--- a/src/views/authority/datascope.vue
+++ b/src/views/authority/datascope.vue
@@ -34,7 +34,7 @@
         </el-button>
       </template>
       <template #name="{ row }">
-        <i :class="row.source" style="margin-right: 5px" />
+        <i :class="row.source" class="namei"  />
         <span>{{ row.name }}</span>
       </template>
       <template #source="{ row }">
@@ -762,3 +762,8 @@
   },
 };
 </script>
+<style scoped>
+.namei {
+  margin-right: 5px;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/system/topmenu.vue b/src/views/system/topmenu.vue
index e84a1b0..ef10895 100644
--- a/src/views/system/topmenu.vue
+++ b/src/views/system/topmenu.vue
@@ -357,7 +357,7 @@
 };
 </script>
 
-<style >
+<style>
 .none-border {
   border: 0;
   background-color: transparent !important;
diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 4391250..2324fe0 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -344,7 +344,7 @@
         <div
           v-if="totalTime"
           class="event-total-time"
-          style="text-align: center; color: #666; font-size: 15px; margin-bottom: 12px"
+
         >
           总耗时:{{ totalTime }}
         </div>
@@ -373,16 +373,8 @@
                 </span>
                 <div class="step-description" v-if="getStepTime(status)">
                   <span
-                    style="
-                      position: absolute;
-                      right: 80%;
-                      top: 50%;
-                      transform: translateY(-50%);
-                      width: 100px;
-                      margin-left: 4px;
-                      color: #666;
-                      font-size: 12px;
-                    "
+                    class="step-timer"
+
                   >
                     耗时:{{ getStepTime(status) }}
                   </span>
@@ -400,7 +392,8 @@
           :show-header="false"
           :data="formattedDetailFields"
           border
-          style="width: 100%; margin-bottom: 20px"
+          class="tableCss"
+
         >
           <el-table-column prop="label1" label="基本信息" width="150">
             <template #default="{ row }">
@@ -519,8 +512,8 @@
         <!-- 上传图片 -->
         <div
           v-if="[3].includes(currentDetail.status)"
-          class="form-section"
-          style="margin-bottom: 32px"
+          class="form-section uploadImg"
+
         >
           <div class="section-title" v-if="hasProcessedAndOverBtnPermission()">
             <!-- 已完成状态显示必填星号 -->
@@ -549,7 +542,7 @@
           </el-upload>
           <div
             class="el-upload__tip"
-            style="margin-top: 12px"
+
             v-if="hasProcessedAndOverBtnPermission()"
           >
             (上传照片即可完结工单,只能上传jpg、jpeg、png照片,且不超过5M)
@@ -1531,8 +1524,7 @@
             job_create_time: item.job_create_time || '',
             isReview: item.is_review, // 添加复核状态字段映射
           };
-        });
-        console.log('this.tableData',this.tableData);
+        })
 
         // 更新总数显示
         this.page.total = total || 0;
@@ -2837,7 +2829,25 @@
 </script>
 
 <style lang="scss" scoped>
-
+.uploadImg {
+  margin-bottom: 32px
+}
+.tableCss {
+  width: 100%; margin-bottom: 20px
+}
+.step-timer {
+  position: absolute;
+  right: 80%;
+  top: 50%;
+  transform: translateY(-50%);
+  width: 100px;
+  margin-left: 4px;
+  color: #666;
+  font-size: 12px;
+}
+.event-total-time {
+  text-align: center; color: #666; font-size: 15px; margin-bottom: 12px
+}
 .tab-content {
   padding: 10px;
 }
@@ -2914,7 +2924,7 @@
 .el-upload__tip {
   font-size: 12px;
   color: #909399;
-  margin-top: 7px;
+  margin-top: 12px;
 }
 
 .create-ticket-form {

--
Gitblit v1.9.3