mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 14:26:45 +08:00
讲师管理bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user