接口调整
This commit is contained in:
@@ -25,8 +25,10 @@
|
||||
executionListenerSelectorForCustomEvent,
|
||||
taskListenerSelector
|
||||
} from '@/api/workflow-boot/model'
|
||||
import { deptTreeSelector } from '@/api/user-boot/dept'
|
||||
import { deptList, deptTreeSelector, getDeptListByIds } from '@/api/user-boot/dept'
|
||||
import { flwTemplatePrintSelector, flwTemplateSnSelector } from '@/api/workflow-boot/template'
|
||||
import { allRoleList, getRoleListByIds } from '@/api/user-boot/role'
|
||||
import { getUserListByIds, listAllUserByDeptId } from '@/api/user-boot/user'
|
||||
|
||||
// 模型设计器的值
|
||||
const modelDesignData = ref({})
|
||||
@@ -113,46 +115,46 @@
|
||||
return Promise.resolve(orgTree)
|
||||
})
|
||||
},
|
||||
// orgPageApi: (param) => {
|
||||
// return modelApi.modelOrgListSelector(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// },
|
||||
// rolePageApi: (param) => {
|
||||
// return modelApi.modelRoleSelector(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// },
|
||||
orgPageApi: (param) => {
|
||||
return deptList(param).then((data) => {
|
||||
return Promise.resolve(data)
|
||||
})
|
||||
},
|
||||
rolePageApi: (param) => {
|
||||
return allRoleList(param).then((data) => {
|
||||
return Promise.resolve(data)
|
||||
})
|
||||
},
|
||||
// posPageApi: (param) => {
|
||||
// return modelApi.modelPositionSelector(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// },
|
||||
// userPageApi: (param) => {
|
||||
// return modelApi.modelUserSelector(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// },
|
||||
// checkedUserListApi: (param) => {
|
||||
// return userCenterApi.userCenterGetUserListByIdList(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// },
|
||||
userPageApi: (param) => {
|
||||
return listAllUserByDeptId('').then((data) => {
|
||||
return Promise.resolve(data)
|
||||
})
|
||||
},
|
||||
checkedUserListApi: (param) => {
|
||||
return getUserListByIds(param).then((data) => {
|
||||
return Promise.resolve(data)
|
||||
})
|
||||
},
|
||||
// checkedPosListApi: (param) => {
|
||||
// return userCenterApi.userCenterGetPositionListByIdList(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// },
|
||||
// checkedOrgListApi: (param) => {
|
||||
// return userCenterApi.userCenterGetOrgListByIdList(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// },
|
||||
// checkedRoleListApi: (param) => {
|
||||
// return userCenterApi.userCenterGetRoleListByIdList(param).then((data) => {
|
||||
// return Promise.resolve(data)
|
||||
// })
|
||||
// }
|
||||
checkedOrgListApi: (param) => {
|
||||
return getDeptListByIds(param).then((data) => {
|
||||
return Promise.resolve(data)
|
||||
})
|
||||
},
|
||||
checkedRoleListApi: (param) => {
|
||||
return getRoleListByIds(param).then((data) => {
|
||||
return Promise.resolve(data)
|
||||
})
|
||||
}
|
||||
}
|
||||
// 抛出钩子
|
||||
defineExpose({
|
||||
|
||||
Reference in New Issue
Block a user