讲师管理bug

This commit is contained in:
zhangsir
2024-11-23 18:48:09 +08:00
parent 9053527150
commit ae63c22d3c
16 changed files with 358 additions and 162 deletions

View File

@@ -42,7 +42,7 @@
v-for="(item, index) in treeAddData"
:key="index"
>
<div class="tag_text" :title="`${item?.name} - (原:${item?.orgName || '-'})`">{{ item?.name }} - ({{ item?.orgName || '-' }})</div>
<div class="tag_text" :title="`${item?.orgName} - (原:${item?.affiliationName || '-'})`">{{ item?.orgName }} - ({{ item?.affiliationName || '-' }})</div>
<div @click="deleteTree(item)" class="tag_delete">+</div>
</div>
</div>
@@ -125,6 +125,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
}
if(treeData.value.length){
treeData.value.map(item=>{
item.name = item.name?.split('(')[0]
notLists.value.some(i=>{
if(i.orgId == item.id){
item.disabled = true
@@ -158,11 +159,12 @@ import * as lecturerApi from "@/api/Lecturer.js";
return item;
}
try {
const orgItem = orgLists.value?.find(i => i && i.id == item.id);
const orgItem = orgLists.value?.find(i => i && i.orgId == item.id);
if (orgItem) {
item.isSelect = orgItem.isSelect;
item.orgName = orgItem.orgName;
item.leaders = orgItem.leaders;
item.affiliationName = orgItem.affiliationName
}
return {
orgId: item.id,
@@ -252,14 +254,14 @@ import * as lecturerApi from "@/api/Lecturer.js";
.line{
height: 1px;
margin-top: 16px;
background-color: #666666;
background-color: #e8e8e8;
}
.content{
display: flex;
min-height: 500px;
.left{
width: 50%;
border-right: 1px solid #666666;
border-right: 1px solid #e8e8e8;
padding: 30px 15px;
max-height: 600px;
overflow-y: auto;
@@ -315,7 +317,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
height: 60px;
text-align: right;
padding: 13px 30px;
border-top: 1px solid #666666;
border-top: 1px solid #e8e8e8;
}
}
}