This commit is contained in:
姚宇浩 2024-10-10 14:08:11 +08:00
parent 302f5c84fc
commit 1335d40a90
1 changed files with 16 additions and 1 deletions

View File

@ -352,7 +352,7 @@
:class="
item.label == '学校' || item.label == '班级' ? 'widu' : ''
"
v-if="rightList?.length != 0"
v-if="rightList?.length != 0 && item.show==true"
>
{{ item.label }}
</div>
@ -902,6 +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){
tableType.columns.forEach((item) => {
if(item.property == key){
item.show=false
}
})
}else{
tableType.columns.forEach((item) => {
if(item.property == key){
item.show=true
}
})
}
}
rightTypeShow.value = false;
// if (res.data[0].gzsj === null) {
// rightTypeShow.value = true;