mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
讲师管理bug
This commit is contained in:
@@ -78,6 +78,10 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
|||||||
type:Array,
|
type:Array,
|
||||||
default: ()=>[],
|
default: ()=>[],
|
||||||
},
|
},
|
||||||
|
AddContentLists:{
|
||||||
|
type:Array,
|
||||||
|
default: ()=>[],
|
||||||
|
},
|
||||||
isParent:{
|
isParent:{
|
||||||
type:String,
|
type:String,
|
||||||
default: '',
|
default: '',
|
||||||
@@ -113,11 +117,12 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
|||||||
expandedKeys.value = []
|
expandedKeys.value = []
|
||||||
selectedKeys.value = []
|
selectedKeys.value = []
|
||||||
checkedKeys.value = []
|
checkedKeys.value = []
|
||||||
|
orgLists.value = []
|
||||||
}else{
|
}else{
|
||||||
console.log(props.AddContentList,'xixiixix')
|
|
||||||
getNot()
|
getNot()
|
||||||
|
console.log(props?.AddContentList,'props?.AddContentList')
|
||||||
treeAddData.value = props?.AddContentList
|
treeAddData.value = props?.AddContentList
|
||||||
orgLists.value = props?.AddContentList
|
orgLists.value = props?.AddContentLists
|
||||||
checkedKeys.value = props?.AddContentList?.map(item=>item.orgId)
|
checkedKeys.value = props?.AddContentList?.map(item=>item.orgId)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -134,7 +139,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
|||||||
if(i.orgId == item.id){
|
if(i.orgId == item.id){
|
||||||
item.disabled = true
|
item.disabled = true
|
||||||
item.name = item.name + '(' + i.affiliationName + ')'
|
item.name = item.name + '(' + i.affiliationName + ')'
|
||||||
return true
|
// return true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return item
|
return item
|
||||||
@@ -189,7 +194,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
|||||||
const isDuplicate = seen.has(item.orgId);
|
const isDuplicate = seen.has(item.orgId);
|
||||||
seen.add(item.orgId);
|
seen.add(item.orgId);
|
||||||
return !isDuplicate;
|
return !isDuplicate;
|
||||||
});
|
})
|
||||||
treeAddData.value = uniqueEndLists?.filter(item => checkedKeys.value?.checked?.includes(item.orgId));
|
treeAddData.value = uniqueEndLists?.filter(item => checkedKeys.value?.checked?.includes(item.orgId));
|
||||||
// treeAddData.value = checkedNodes;
|
// treeAddData.value = checkedNodes;
|
||||||
console.log(treeAddData.value,'checkedNodes',orgLists.value)
|
console.log(treeAddData.value,'checkedNodes',orgLists.value)
|
||||||
|
|||||||
@@ -293,7 +293,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<AddOrgContent :Addtitle="'选择组织'" :isParent="formParam.isParent" v-model:showContent="showContent" v-model:AddContentList="formParam.affiliationOrgList" />
|
<AddOrgContent :Addtitle="'选择组织'" :isParent="formParam.isParent" v-model:showContent="showContent" :AddContentLists="formParam.affiliationOrgLists" v-model:AddContentList="formParam.affiliationOrgList"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="jsx">
|
<script lang="jsx">
|
||||||
@@ -354,6 +354,7 @@ export default{
|
|||||||
code: null,
|
code: null,
|
||||||
isContains: '0',
|
isContains: '0',
|
||||||
affiliationOrgList: [],
|
affiliationOrgList: [],
|
||||||
|
affiliationOrgLists: [],
|
||||||
locking: 1,
|
locking: 1,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -736,8 +737,8 @@ const getTableDate = (obj) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
state.formParam.affiliationOrgLists = state.formParam.affiliationOrgList
|
||||||
state.formParam.isContains = String(state.formParam.isContains)
|
state.formParam.isContains = String(state.formParam.isContains)
|
||||||
console.log(state.formParam.affiliationOrgList,'state.formParam.affiliationOrgList')
|
|
||||||
state.teacherdialog = true;
|
state.teacherdialog = true;
|
||||||
state.teacherdialogtitle = '编辑培训发生组织'
|
state.teacherdialogtitle = '编辑培训发生组织'
|
||||||
state.vf = false
|
state.vf = false
|
||||||
|
|||||||
Reference in New Issue
Block a user