Compare commits

..

4 Commits

Author SHA1 Message Date
duanxiaohai 60f0a4b2b1 gx 2024-10-10 14:13:59 +08:00
duanxiaohai 00517d3a55 Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc 2024-10-10 14:10:30 +08:00
duanxiaohai 80db7b7746 gx 2024-10-10 14:10:29 +08:00
duanxiaohai 87a75d0ce2 gx 2024-10-10 14:08:19 +08:00
1 changed files with 12 additions and 17 deletions

View File

@ -352,11 +352,11 @@
:class="
item.label == '学校' || item.label == '班级' ? 'widu' : ''
"
v-if="rightList?.length != 0 && item.show==true"
v-if="rightList?.length != 0 && item.show == true"
>
{{ item.label }}
</div>
<div class="my-info-content" v-if="rightList?.length != 0">
<div class="my-info-content" v-if="rightList?.length != 0 && item.show == true">
<p>{{ pd(item.label, rightList[item.property]) }}</p>
</div>
</div>
@ -647,6 +647,7 @@ const columnsList = reactive({
{
label: "工作单位",
property: "gzdw",
show: true,
},
{
label: "工作时间",
@ -867,7 +868,6 @@ const onClickTag2 = (name, label) => {
* 判断右侧显示的为表格还是列表0为列表1为表格
*/
const rightType = ref(0);
const rightTypeShow = ref(false);
//
const rightList = ref([]);
//
@ -902,26 +902,21 @@ const getTable = (url, csh) => {
} else {
//
rightList.value = tableType.data[0];
for(const key in tableType.data[0]){
if(tableType.data[0][key] == null){
for (const key in tableType.data[0]) {
if (tableType.data[0][key] == null) {
tableType.columns.forEach((item) => {
if(item.property == key){
item.show=false
if (item.property == key) {
item.show = false;
}
})
}else{
});
} else {
tableType.columns.forEach((item) => {
if(item.property == key){
item.show=true
if (item.property == key) {
item.show = true;
}
})
});
}
}
rightTypeShow.value = false;
// if (res.data[0].gzsj === null) {
// rightTypeShow.value = true;
// console.log(111, res.data[0].gzsj, rightTypeShow.value);
// }
}
rightType.value = 0;
}