Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
qr-consistency-vue3
Commits
c75470c6
Commit
c75470c6
authored
May 07, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(通知单管理):认证负责人逻辑修改
parent
02c290b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
32 deletions
+34
-32
index.vue
...olPlan/controlPlanNotice/notificationManagement/index.vue
+34
-32
No files found.
src/views/controlPlan/controlPlanNotice/notificationManagement/index.vue
View file @
c75470c6
...
...
@@ -872,41 +872,43 @@ function cancelClick(){
}
//提交方法
const
handleSelectionSubmit
=
(
selectedItems
)
=>
{
const
t
=
toRaw
(
selectedItems
)
if
(
dialogVisible
.
value
){
//添加人员-编辑人员对话框的时候-多选
// 简化箭头函数
const
list
=
t
.
map
(
item
=>
item
.
userId
);
const
yuanList
=
personTableList
.
value
.
map
(
item
=>
item
.
userId
);
// 去重处理
const
combinedArray
=
[...
new
Set
([...
yuanList
,
...
list
])];
tObj
.
value
.
userIdList
=
combinedArray
.
join
(
","
);
console
.
log
(
tObj
.
value
)
addCertificationManager
(
tObj
.
value
).
then
(
res
=>
{
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"添加成功"
)
getPersonnelInfoByIdsInfoByIds
(
tObj
.
value
.
id
).
then
(
res
=>
{
personTableList
.
value
=
res
.
data
const
handleSelectionSubmit
=
(
selectedItems
)
=>
{
const
t
=
toRaw
(
selectedItems
)
if
(
dialogVisible
.
value
){
//添加人员-编辑人员对话框的时候-多选
// 简化箭头函数
const
list
=
t
.
map
(
item
=>
item
.
userId
);
personTableList
.
value
.
map
(
item
=>
item
.
userId
);
// 去重处理
const
combinedArray
=
[...
new
Set
([...
list
])];
tObj
.
value
.
userIdList
=
combinedArray
.
join
(
","
);
console
.
log
(
tObj
.
value
)
addCertificationManager
(
tObj
.
value
).
then
(
res
=>
{
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"添加成功"
)
getPersonnelInfoByIdsInfoByIds
(
tObj
.
value
.
id
).
then
(
res
=>
{
personTableList
.
value
=
res
.
data
})
}
})
}
else
{
//新增的时候
if
(
selectType
.
value
===
'single'
){
//单选 approvalPerson
drawerQueryParams
.
value
.
approvalPerson
=
t
[
0
].
userId
}
else
{
//多选 certificationResponsiblePerson
drawerQueryParams
.
value
.
certificationResponsiblePerson
=
t
.
map
(
item
=>
{
return
item
.
userId
})
}
}
})
}
else
{
//新增的时候
if
(
selectType
.
value
===
'single'
){
//单选 approvalPerson
drawerQueryParams
.
value
.
approvalPerson
=
t
[
0
].
userId
}
else
{
//多选 certificationResponsiblePerson
drawerQueryParams
.
value
.
certificationResponsiblePerson
=
t
.
map
(
item
=>
{
return
item
.
userId
})
}
}
};
}
;
//获取所有人员
function
getALLUserDeptList
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment