From 0023ee786c458eefe8950cdb127b594960126125 Mon Sep 17 00:00:00 2001
From: dx <1242347652@qq.com>
Date: Mon, 10 Feb 2025 15:46:27 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E6=B3=95=E8=AE=B0=E5=BD=95=E7=9B=B8?=
=?UTF-8?q?=E5=85=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/enterpriseinspections/index.ts | 2 +-
.../enterpriseinspections/ChangeUser.vue | 147 ++++++++++++++++++
.../changeInspections.vue | 31 +++-
src/views/enterpriseinspections/detail.vue | 11 +-
src/views/enterpriseinspections/index.vue | 2 +-
5 files changed, 183 insertions(+), 10 deletions(-)
create mode 100644 src/views/enterpriseinspections/ChangeUser.vue
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"
/>
+
+