学生照片
@@ -2735,6 +2735,19 @@ const handleClose = () => {
gap: 8px;
}
+/* 学生照片表单项样式 - 覆盖默认的标签样式 */
+.photo-form-item :deep(.el-form-item__label) {
+ white-space: nowrap !important;
+ overflow: visible !important;
+ text-overflow: unset !important;
+ display: flex !important;
+ align-items: center !important;
+ gap: 4px !important;
+ min-width: auto !important;
+ max-width: none !important;
+ height: 130px !important; /* 与照片容器高度一致 */
+}
+
/* 照片帮助图标样式 */
.photo-help-icon {
color: #8c939d;
@@ -2777,7 +2790,7 @@ const handleClose = () => {
align-items: center;
gap: 4px;
min-width: 0;
- max-width: 140px; /* 限制最大宽度 */
+ max-width: 140px;
}
/* 确保标签内容不换行 */
diff --git a/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDetailDialog.vue b/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDetailDialog.vue
index 64b9b854..c7a70321 100644
--- a/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDetailDialog.vue
+++ b/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDetailDialog.vue
@@ -199,8 +199,9 @@
-
-
+
+
@@ -251,10 +252,11 @@
-
+
+
@@ -280,24 +282,27 @@
-
-
+
+
-
-
+
+
-
-
+
+
@@ -306,8 +311,9 @@
-
-
+
+
@@ -322,8 +328,9 @@
-
-
+
+
@@ -332,8 +339,9 @@
-
-
+
+
@@ -449,10 +457,11 @@
-
+
+
@@ -482,11 +491,12 @@
-
+
+
@@ -500,18 +510,20 @@
-
-
+
+
-
+
+
@@ -574,11 +586,12 @@
-
+
+
@@ -609,19 +622,21 @@
-
+
+
-
+
+
@@ -630,19 +645,21 @@
-
+
+
-
-
+
+
@@ -726,19 +743,47 @@ import request from '@/utils/request';
const { proxy } = getCurrentInstance() as any;
// 字典数据
-const { wenhuachengdu, xg_political_status, sys_user_sex, xg_nation, sys_question_category, sys_item_enable, sys_item_required, sys_item_delete } =
- toRefs
(
- proxy?.useDict(
- 'wenhuachengdu',
- 'xg_political_status',
- 'sys_user_sex',
- 'xg_nation',
- 'sys_question_category',
- 'sys_item_enable',
- 'sys_item_required',
- 'sys_item_delete'
- )
- );
+const {
+ house_hold_register_type,
+ marital_status,
+ sys_yesno,
+ xg_family_economic,
+ xg_blood_type,
+ disability_type,
+ zsjy_education_level,
+ xg_training_mode,
+ admission_category,
+ student_status,
+ wenhuachengdu,
+ xg_political_status,
+ sys_user_sex,
+ xg_nation,
+ sys_question_category,
+ sys_item_enable,
+ sys_item_required,
+ sys_item_delete
+} = toRefs(
+ proxy?.useDict(
+ 'house_hold_register_type',
+ 'marital_status',
+ 'sys_yesno',
+ 'xg_family_economic',
+ 'xg_blood_type',
+ 'disability_type',
+ 'zsjy_education_level',
+ 'xg_training_mode',
+ 'admission_category',
+ 'student_status',
+ 'wenhuachengdu',
+ 'xg_political_status',
+ 'sys_user_sex',
+ 'xg_nation',
+ 'sys_question_category',
+ 'sys_item_enable',
+ 'sys_item_required',
+ 'sys_item_delete'
+ )
+);
// Props 定义
interface Props {
visible: boolean;
@@ -901,9 +946,30 @@ const getUserHistoryData = async (batchId: number) => {
if (res && res.code === 200 && res.data) {
console.log('获取到历史数据:', res.data);
+ // // 将历史数据填充到表单中
+ // const historyData = res.data;
// 将历史数据填充到表单中
const historyData = res.data;
+ // 将是否字段的数值转换为字符串
+ const booleanFields = [
+ 'isPoorStudent',
+ 'isMinority',
+ 'isOrphan',
+ 'isLeftBehindChild',
+ 'isSingleChild',
+ 'isLowIncome',
+ 'hasLoan',
+ 'isDisabled',
+ 'isBoarder'
+ ];
+
+ booleanFields.forEach((field) => {
+ if (historyData[field] !== undefined && historyData[field] !== null) {
+ historyData[field] = String(historyData[field]);
+ }
+ });
+
// 遍历历史数据,将非空字段赋值给表单
Object.keys(historyData).forEach((key) => {
if (historyData[key] !== null && historyData[key] !== undefined && historyData[key] !== '') {
diff --git a/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDialog.vue b/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDialog.vue
index 0c4699cb..6b2da8ae 100644
--- a/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDialog.vue
+++ b/web/src/views/xg/xsjcxx/stuMsgSupply/stuMsgDialog.vue
@@ -204,8 +204,9 @@
-
-
+
+
@@ -255,10 +256,11 @@
-
+
+
@@ -284,24 +286,27 @@
-
-
+
+
-
-
+
+
-
-
+
+
@@ -310,24 +315,27 @@
-
-
+
+
-
-
+
+
-
-
+
+
@@ -336,8 +344,9 @@
-
-
+
+
@@ -453,10 +462,11 @@
-
+
+
@@ -486,11 +496,12 @@
-
+
+
@@ -504,18 +515,20 @@
-
-
+
+
-
+
+
@@ -578,11 +591,12 @@
-
+
+
@@ -613,19 +627,21 @@
-
+
+
-
+
+
@@ -634,19 +650,21 @@
-
+
+
-
-
+
+
@@ -730,19 +748,47 @@ import request from '@/utils/request';
const { proxy } = getCurrentInstance() as any;
// 字典数据
-const { wenhuachengdu, xg_political_status, sys_user_sex, xg_nation, sys_question_category, sys_item_enable, sys_item_required, sys_item_delete } =
- toRefs(
- proxy?.useDict(
- 'wenhuachengdu',
- 'xg_political_status',
- 'sys_user_sex',
- 'xg_nation',
- 'sys_question_category',
- 'sys_item_enable',
- 'sys_item_required',
- 'sys_item_delete'
- )
- );
+const {
+ house_hold_register_type,
+ marital_status,
+ sys_yesno,
+ xg_family_economic,
+ xg_blood_type,
+ disability_type,
+ zsjy_education_level,
+ xg_training_mode,
+ admission_category,
+ student_status,
+ wenhuachengdu,
+ xg_political_status,
+ sys_user_sex,
+ xg_nation,
+ sys_question_category,
+ sys_item_enable,
+ sys_item_required,
+ sys_item_delete
+} = toRefs(
+ proxy?.useDict(
+ 'house_hold_register_type',
+ 'marital_status',
+ 'sys_yesno',
+ 'xg_family_economic',
+ 'xg_blood_type',
+ 'disability_type',
+ 'zsjy_education_level',
+ 'xg_training_mode',
+ 'admission_category',
+ 'student_status',
+ 'wenhuachengdu',
+ 'xg_political_status',
+ 'sys_user_sex',
+ 'xg_nation',
+ 'sys_question_category',
+ 'sys_item_enable',
+ 'sys_item_required',
+ 'sys_item_delete'
+ )
+);
// Props 定义
interface Props {
visible: boolean;
@@ -905,9 +951,30 @@ const getUserHistoryData = async (batchId: number) => {
if (res && res.code === 200 && res.data) {
console.log('获取到历史数据:', res.data);
+ // 将历史数据填充到表单中
+ // const historyData = res.data;
// 将历史数据填充到表单中
const historyData = res.data;
+ // 将是否字段的数值转换为字符串
+ const booleanFields = [
+ 'isPoorStudent',
+ 'isMinority',
+ 'isOrphan',
+ 'isLeftBehindChild',
+ 'isSingleChild',
+ 'isLowIncome',
+ 'hasLoan',
+ 'isDisabled',
+ 'isBoarder'
+ ];
+
+ booleanFields.forEach((field) => {
+ if (historyData[field] !== undefined && historyData[field] !== null) {
+ historyData[field] = String(historyData[field]);
+ }
+ });
+
// 遍历历史数据,将非空字段赋值给表单
Object.keys(historyData).forEach((key) => {
if (historyData[key] !== null && historyData[key] !== undefined && historyData[key] !== '') {