提交代码
This commit is contained in:
1 parent
787db625c0
commit
25892480cc
8 files changed
+24
-11
No files matched your search
+11
-2
@@ -149,11 +149,13 @@
|
|||||||
<div v-for="student in roomStudents" :key="student.studentId" class="student-card">
|
<div v-for="student in roomStudents" :key="student.studentId" class="student-card">
|
||||||
<div class="student-header">
|
<div class="student-header">
|
||||||
<div class="student-basic-info">
|
<div class="student-basic-info">
|
||||||
|
<div class="student-name-with-gender">
|
||||||
<h4>{{ student.studentName }}</h4>
|
<h4>{{ student.studentName }}</h4>
|
||||||
<p>{{ student.studentNo }}</p>
|
|
||||||
<el-tag v-if="student.gender === '0'" type="primary" size="small">男</el-tag>
|
<el-tag v-if="student.gender === '0'" type="primary" size="small">男</el-tag>
|
||||||
<el-tag v-else class="female-tag" size="small">女</el-tag>
|
<el-tag v-else class="female-tag" size="small">女</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
<p>{{ student.studentNo }}</p>
|
||||||
|
</div>
|
||||||
<div class="bed-info">
|
<div class="bed-info">
|
||||||
<el-tag type="info" size="small">{{ student.bedName }}</el-tag>
|
<el-tag type="info" size="small">{{ student.bedName }}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
@@ -945,8 +947,15 @@ watch(
|
|||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.student-name-with-gender {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.student-basic-info h4 {
|
.student-basic-info h4 {
|
||||||
margin: 0 0 4px 0;
|
margin: 0;
|
||||||
color: #303133;
|
color: #303133;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,7 +107,11 @@
|
|||||||
<el-table-column label="房间名称" align="center" prop="roomName" />
|
<el-table-column label="房间名称" align="center" prop="roomName" />
|
||||||
<el-table-column label="宿舍楼名称" align="center" prop="buildingName" />
|
<el-table-column label="宿舍楼名称" align="center" prop="buildingName" />
|
||||||
<el-table-column label="校区名称" align="center" prop="campusName" />
|
<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">
|
<el-table-column label="卫生等级" align="center" prop="hygieneGrade">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<dict-tag :options="xg_dorm_hygiene_grade" :value="scope.row.hygieneGrade" />
|
<dict-tag :options="xg_dorm_hygiene_grade" :value="scope.row.hygieneGrade" />
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
<el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
|
<el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
|
||||||
<el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
|
<el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
|
||||||
<template #default="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
|
<el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
|
||||||
<el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
|
<el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
|
||||||
<template #default="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="加分分值">
|
<el-form-item label="加分分值">
|
||||||
<div class="student-display">
|
<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>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态">
|
<el-form-item label="状态">
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
<el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
|
<el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
|
||||||
<el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
|
<el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
|
||||||
<template #default="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
|
<el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
|
||||||
<el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
|
<el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
|
||||||
<template #default="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
|
<el-table-column label="奖励日期" align="center" prop="rewardDate" min-width="130" />
|
||||||
<el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
|
<el-table-column label="加分分值" align="center" prop="scoreAddition" min-width="100">
|
||||||
<template #default="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="加分分值">
|
<el-form-item label="加分分值">
|
||||||
<div class="student-display">
|
<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>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态">
|
<el-form-item label="状态">
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
|
<el-table-column label="违纪处分日期" align="center" prop="disciplineDate" min-width="130" />
|
||||||
<el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
|
<el-table-column label="扣分分值" align="center" prop="scoreDeduction" min-width="100">
|
||||||
<template #default="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
<el-table-column label="状态" align="center" prop="status" min-width="80">
|
||||||
|
|||||||
Reference in new issue
Block a user