diff --git a/src/api/enterpriseinspections/index.ts b/src/api/enterpriseinspections/index.ts index 6f3adc3..4806c06 100644 --- a/src/api/enterpriseinspections/index.ts +++ b/src/api/enterpriseinspections/index.ts @@ -46,7 +46,7 @@ export const EnterpriseInspectionsApi = { }, //根据 用户id和任务名称查询可以转发的任务 - inspectionsLogListByUserAndTaskName: async (params:any) => { + getListByUserIdAndTaskName: async (params:any) => { return await request.get({ url: `/system/enterprise-inspections/getListByUserIdAndTaskName`, params }) }, diff --git a/src/views/enterpriseinspections/ChangeUser.vue b/src/views/enterpriseinspections/ChangeUser.vue new file mode 100644 index 0000000..d1c0ffb --- /dev/null +++ b/src/views/enterpriseinspections/ChangeUser.vue @@ -0,0 +1,147 @@ + + + diff --git a/src/views/enterpriseinspections/changeInspections.vue b/src/views/enterpriseinspections/changeInspections.vue index 205b1bd..65b6a02 100644 --- a/src/views/enterpriseinspections/changeInspections.vue +++ b/src/views/enterpriseinspections/changeInspections.vue @@ -24,13 +24,15 @@ - - 查询 + + + + @@ -99,6 +101,7 @@ const form = reactive({ userId: '', resUserId: '', inspectionsId: [], + taskName: '' }) // const formRules = reactive({ @@ -113,6 +116,20 @@ const getUserList = async () => { userList.value = data } +const selectTask = async() => { + + + + const params = { + 'userId': form.resUserId, + 'taskName': taskName + } + + const data = await EnterpriseInspectionsApi.getListByUserIdAndTaskName(params) + console.log('data==============>', data) + +} + /** 打开弹窗 */ const open = async (data) => { diff --git a/src/views/enterpriseinspections/detail.vue b/src/views/enterpriseinspections/detail.vue index 7f214cd..20a4834 100644 --- a/src/views/enterpriseinspections/detail.vue +++ b/src/views/enterpriseinspections/detail.vue @@ -8,7 +8,7 @@ {{detailData.department}} {{detailData.inspectName}} - 变更 + 变更 @@ -55,7 +55,9 @@ @pagination="getList" /> + +