zlwu 1 год назад
Родитель
Сommit
25892480cc

+ 13 - 4
web/src/views/xg/xgss/dormHygieneCheck/dormHygieneCheck/DormHygieneCheckSingleDialog.vue

@@ -149,10 +149,12 @@
           <div v-for="student in roomStudents" :key="student.studentId" class="student-card">
             <div class="student-header">
               <div class="student-basic-info">
-                <h4>{{ student.studentName }}</h4>
+                <div class="student-name-with-gender">
+                  <h4>{{ student.studentName }}</h4>
+                  <el-tag v-if="student.gender === '0'" type="primary" size="small">男</el-tag>
+                  <el-tag v-else class="female-tag" size="small">女</el-tag>
+                </div>
                 <p>{{ student.studentNo }}</p>
-                <el-tag v-if="student.gender === '0'" type="primary" size="small">男</el-tag>
-                <el-tag v-else class="female-tag" size="small">女</el-tag>
               </div>
               <div class="bed-info">
                 <el-tag type="info" size="small">{{ student.bedName }}</el-tag>
@@ -945,8 +947,15 @@ watch(
   margin-bottom: 12px;
 }
 
+.student-name-with-gender {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  margin-bottom: 4px;
+}
+
 .student-basic-info h4 {
-  margin: 0 0 4px 0;
+  margin: 0;
   color: #303133;
   font-size: 16px;
 }

+ 5 - 1
web/src/views/xg/xgss/dormHygieneCheck/dormHygieneCheck/index.vue

@@ -107,7 +107,11 @@
         <el-table-column label="房间名称" align="center" prop="roomName" />
         <el-table-column label="宿舍楼名称" align="center" prop="buildingName" />
         <el-table-column label="校区名称" align="center" prop="campusName" />
-        <el-table-column label="宿舍扣分" align="center" prop="totalScore" />
+        <el-table-column label="宿舍扣分" align="center" prop="totalScore">
+          <template #default="scope">
+            <span>-{{ scope.row.totalScore }}</span>
+          </template>
+        </el-table-column>
         <el-table-column label="卫生等级" align="center" prop="hygieneGrade">
           <template #default="scope">
             <dict-tag :options="xg_dorm_hygiene_grade" :value="scope.row.hygieneGrade" />

+ 1 - 1
web/src/views/xskh/classTeacherDiscipline/ClassDisciplineRecord.vue

@@ -49,7 +49,7 @@
         <el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
         <el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
           <template #default="scope">
-            <span>{{ scope.row.scoreDeduction ? parseFloat(scope.row.scoreDeduction).toFixed(2) : '0.00' }}</span>
+            <span>-{{ scope.row.scoreDeduction ? parseFloat(scope.row.scoreDeduction).toFixed(2) : '0.00' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="状态" align="center" prop="status" min-width="80">

+ 2 - 2
web/src/views/xskh/classTeacherRewardRecord/index.vue

@@ -56,7 +56,7 @@
         <el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
         <el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
           <template #default="scope">
-            <span>{{ scope.row.scoreAddition ? parseFloat(scope.row.scoreAddition).toFixed(2) : '0.00' }}</span>
+            <span>+{{ scope.row.scoreAddition ? parseFloat(scope.row.scoreAddition).toFixed(2) : '0.00' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="状态" align="center" prop="status" min-width="80">
@@ -123,7 +123,7 @@
             </el-form-item>
             <el-form-item label="加分分值">
               <div class="student-display">
-                <span class="student-info-text">{{ form.scoreAddition ? parseFloat(form.scoreAddition).toFixed(2) : '0.00' }}</span>
+                <span class="student-info-text">+{{ form.scoreAddition ? parseFloat(form.scoreAddition).toFixed(2) : '0.00' }}</span>
               </div>
             </el-form-item>
             <el-form-item label="状态">

+ 1 - 1
web/src/views/xskh/disciplineRecord/index.vue

@@ -96,7 +96,7 @@
         <el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
         <el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
           <template #default="scope">
-            <span>{{ scope.row.scoreDeduction ? parseFloat(scope.row.scoreDeduction).toFixed(2) : '0.00' }}</span>
+            <span>-{{ scope.row.scoreDeduction ? parseFloat(scope.row.scoreDeduction).toFixed(2) : '0.00' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="状态" align="center" prop="status" min-width="80">

+ 1 - 1
web/src/views/xskh/rewardRecord/index.vue

@@ -78,7 +78,7 @@
         <el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
         <el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
           <template #default="scope">
-            <span>{{ scope.row.scoreAddition ? parseFloat(scope.row.scoreAddition).toFixed(2) : '0.00' }}</span>
+            <span>+{{ scope.row.scoreAddition ? parseFloat(scope.row.scoreAddition).toFixed(2) : '0.00' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="状态" align="center" prop="status" min-width="80">

+ 2 - 2
web/src/views/xskh/studentRewardRecord/index.vue

@@ -54,7 +54,7 @@
         <el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
         <el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
           <template #default="scope">
-            <span>{{ scope.row.scoreAddition ? parseFloat(scope.row.scoreAddition).toFixed(2) : '0.00' }}</span>
+            <span>+{{ scope.row.scoreAddition ? parseFloat(scope.row.scoreAddition).toFixed(2) : '0.00' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="状态" align="center" prop="status" min-width="80">
@@ -121,7 +121,7 @@
             </el-form-item>
             <el-form-item label="加分分值">
               <div class="student-display">
-                <span class="student-info-text">{{ form.scoreAddition ? parseFloat(form.scoreAddition).toFixed(2) : '0.00' }}</span>
+                <span class="student-info-text">+{{ form.scoreAddition ? parseFloat(form.scoreAddition).toFixed(2) : '0.00' }}</span>
               </div>
             </el-form-item>
             <el-form-item label="状态">

+ 1 - 1
web/src/views/xskh/xsDisciplineRecord/index.vue

@@ -54,7 +54,7 @@
         <el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
         <el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
           <template #default="scope">
-            <span>{{ scope.row.scoreDeduction ? parseFloat(scope.row.scoreDeduction).toFixed(2) : '0.00' }}</span>
+            <span>-{{ scope.row.scoreDeduction ? parseFloat(scope.row.scoreDeduction).toFixed(2) : '0.00' }}</span>
           </template>
         </el-table-column>
         <el-table-column label="状态" align="center" prop="status" min-width="80">