培训发生组织根节点

This commit is contained in:
zhangsir
2024-11-01 17:29:35 +08:00
parent 40d6c2d736
commit 2fd65ec31b
2 changed files with 16 additions and 0 deletions

View File

@@ -75,4 +75,6 @@ export const getListByAffiliation = (obj) => http.get(`/admin/teacherExpense/get
export const teacherExpenseConfirm = (obj) => http.post('/admin/teacherExpense/confirm',obj) export const teacherExpenseConfirm = (obj) => http.post('/admin/teacherExpense/confirm',obj)
//提交/撤回 //提交/撤回
export const isConfirm = (obj) => http.post('/admin/expenseBill/isConfirm',obj) export const isConfirm = (obj) => http.post('/admin/expenseBill/isConfirm',obj)
//培训发生组织根节点列表
export const parentList = () => http.get('/admin/affiliation/parentList')

View File

@@ -254,6 +254,19 @@ export default{
{ value: '2', label: "二级审批人" }, { value: '2', label: "二级审批人" },
{ value: '3', label: "三级审批人" }, { value: '3', label: "三级审批人" },
]) ])
const placeData = () => {
lecturer.parentList().then(res=>{
if(res.data.code == 200){
PlaceOfPayListTwo.value = res.data.data.map(item=>{
return {
value: item.code,
label: item.affiliationName
}
})
}
})
}
placeData()
const PlaceOfPayListTwo = ref([ const PlaceOfPayListTwo = ref([
{ value: '1', label: "一级审批人" }, { value: '1', label: "一级审批人" },
]) ])
@@ -586,6 +599,7 @@ const getTableDate = (obj) => {
selectRadio, selectRadio,
PlaceOfPayList, PlaceOfPayList,
PlaceOfPayListTwo, PlaceOfPayListTwo,
placeData,
searchReset, searchReset,
deleteModal, deleteModal,
cancelTeacherDialog, cancelTeacherDialog,