This commit is contained in:
duanxiaohai 2024-10-11 09:49:53 +08:00
parent a12bfc4414
commit d96ad0e353
2 changed files with 42 additions and 25 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -331,13 +331,21 @@
<div class="my-label-title">{{ dataMyTag.title }}</div>
</div>
<div class="my-info">
<div class="my-info-item" v-if="dataMyTag.title == '学习'">
<div class="my-info-label" style="min-width: 40px">学历</div>
<div
class="my-info-item"
v-if="dataMyTag.title == '学习' && baseInfo.eduPhase"
>
<div
class="my-info-label"
style="min-width: 40px"
>
学历
</div>
<div class="my-info-content">
<p>{{ baseInfo.eduPhase || "" }}</p>
</div>
</div>
<div class="my-info-item" v-if="dataMyTag.title == '婚育'">
<div class="my-info-item" v-if="dataMyTag.title == '婚育' && baseInfo.maritalStatus">
<div class="my-info-label">婚姻状况</div>
<div class="my-info-content">
<p>{{ baseInfo.maritalStatus || "" }}</p>
@ -356,9 +364,7 @@
>
{{ item.label }}
</div>
<div
class="my-info-content"
>
<div class="my-info-content">
<p>{{ pd(item.label, rightList[item.property]) }}</p>
</div>
</div>
@ -903,26 +909,37 @@ const getTable = (url, csh) => {
//
rightList.value.length = 0;
} else {
//
rightList.value = tableType.data[0];
for (const key in tableType.data[0]) {
if (
tableType.data[0][key] == null ||
tableType.data[0][key] == ""
) {
tableType.columns.forEach((item) => {
if (item.property == key) {
item.show = false;
}
});
} else {
tableType.columns.forEach((item) => {
if (item.property == key) {
item.show = true;
}
});
}
// //
// rightList.value = tableType.data[0];
// for (const key in tableType.data[0]) {
// if (
// tableType.data[0][key] == null ||
// tableType.data[0][key] == ""
// ) {
// tableType.columns.forEach((item) => {
// if (item.property == key) {
// item.show = false;
// }
// });
// } else {
// tableType.columns.forEach((item) => {
// if (item.property == key) {
// item.show = true;
// }
// });
// }
// }
const rowData = tableType.data[0];
for (const key in rowData) {
const isEmpty = rowData[key] == null || rowData[key] === "";
tableType.columns.forEach((item) => {
if (item.property === key) {
item.show = !isEmpty;
}
});
}
rightList.value = rowData; //
}
rightType.value = 0;
}