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
ea83385f
Commit
ea83385f
authored
Apr 29, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单内容维护):列表页
parent
553ad48d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
420 additions
and
16 deletions
+420
-16
index.vue
...ntrolPlan/controlPlanNotice/notificationContent/index.vue
+420
-1
index.vue
...olPlan/controlPlanNotice/notificationManagement/index.vue
+0
-15
No files found.
src/views/controlPlan/controlPlanNotice/notificationContent/index.vue
View file @
ea83385f
This diff is collapsed.
Click to expand it.
src/views/controlPlan/controlPlanNotice/notificationManagement/index.vue
View file @
ea83385f
...
@@ -563,10 +563,8 @@ function confirmClick(formRef) {
...
@@ -563,10 +563,8 @@ function confirmClick(formRef) {
if
(
valid
)
{
if
(
valid
)
{
drawerQueryParams
.
value
.
certificationResponsiblePerson
=
drawerQueryParams
.
value
.
certificationResponsiblePerson
.
join
(
","
)
drawerQueryParams
.
value
.
certificationResponsiblePerson
=
drawerQueryParams
.
value
.
certificationResponsiblePerson
.
join
(
","
)
console
.
log
(
drawerQueryParams
.
value
)
insert
(
drawerQueryParams
.
value
).
then
(
res
=>
{
insert
(
drawerQueryParams
.
value
).
then
(
res
=>
{
console
.
log
(
"新增结果"
,
res
)
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"新增成功"
)
ElMessage
.
success
(
"新增成功"
)
cancelClick
()
cancelClick
()
...
@@ -611,9 +609,7 @@ const beforeClose = (done) => {
...
@@ -611,9 +609,7 @@ const beforeClose = (done) => {
//提示框确认删除操作
//提示框确认删除操作
function
handleDelete
(){
function
handleDelete
(){
//删除操作
//删除操作
console
.
log
(
"删除"
,
delId
.
value
)
deleteNotificationManagementById
(
delId
.
value
).
then
(
res
=>
{
deleteNotificationManagementById
(
delId
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"删除成功"
)
ElMessage
.
success
(
"删除成功"
)
undoDialogVisible
.
value
=
false
undoDialogVisible
.
value
=
false
...
@@ -626,13 +622,11 @@ function hideDeleteDialog(){
...
@@ -626,13 +622,11 @@ function hideDeleteDialog(){
}
}
function
addPerson
(
row
){
function
addPerson
(
row
){
console
.
log
(
row
)
tObj
.
value
.
id
=
row
.
id
tObj
.
value
.
id
=
row
.
id
dialogTitle
.
value
=
'维护需求人('
+
row
.
notificationNumber
+
' -'
+
row
.
businessUnitName
+
'-'
+
row
.
vehicleModelCode
+
')'
;
dialogTitle
.
value
=
'维护需求人('
+
row
.
notificationNumber
+
' -'
+
row
.
businessUnitName
+
'-'
+
row
.
vehicleModelCode
+
')'
;
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
getPersonnelInfoByIdsInfoByIds
(
row
.
certificationResponsiblePerson
).
then
(
res
=>
{
getPersonnelInfoByIdsInfoByIds
(
row
.
certificationResponsiblePerson
).
then
(
res
=>
{
console
.
log
(
res
)
personTableList
.
value
=
res
.
data
personTableList
.
value
=
res
.
data
})
})
}
}
...
@@ -657,11 +651,9 @@ function remove(row){
...
@@ -657,11 +651,9 @@ function remove(row){
return
item
.
userId
return
item
.
userId
}).
join
(
","
)
}).
join
(
","
)
updateCertificationManager
(
tObj
.
value
).
then
(
res
=>
{
updateCertificationManager
(
tObj
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"移除成功"
)
ElMessage
.
success
(
"移除成功"
)
getPersonnelInfoByIdsInfoByIds
(
tObj
.
value
.
endArrStr
).
then
(
res
=>
{
getPersonnelInfoByIdsInfoByIds
(
tObj
.
value
.
endArrStr
).
then
(
res
=>
{
console
.
log
(
res
)
personTableList
.
value
=
res
.
data
personTableList
.
value
=
res
.
data
})
})
}
}
...
@@ -704,9 +696,7 @@ function drawerColse(){
...
@@ -704,9 +696,7 @@ function drawerColse(){
//获取列表
//获取列表
function
getList
(){
function
getList
(){
console
.
log
(
"查询参数"
,
queryParams
.
value
)
list
(
queryParams
.
value
).
then
(
res
=>
{
list
(
queryParams
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
tableList
.
value
=
res
.
rows
tableList
.
value
=
res
.
rows
total
.
value
=
res
.
total
total
.
value
=
res
.
total
})
})
...
@@ -730,7 +720,6 @@ function cancelClick(){
...
@@ -730,7 +720,6 @@ function cancelClick(){
//提交方法
//提交方法
const
handleSelectionSubmit
=
(
selectedItems
)
=>
{
const
handleSelectionSubmit
=
(
selectedItems
)
=>
{
const
t
=
toRaw
(
selectedItems
)
const
t
=
toRaw
(
selectedItems
)
console
.
log
(
'已选中的项:'
,
t
);
// 处理已选择的用户
if
(
dialogVisible
.
value
){
if
(
dialogVisible
.
value
){
//添加人员-编辑人员对话框的时候-多选
//添加人员-编辑人员对话框的时候-多选
...
@@ -742,11 +731,9 @@ const handleSelectionSubmit = (selectedItems) => {
...
@@ -742,11 +731,9 @@ const handleSelectionSubmit = (selectedItems) => {
tObj
.
value
.
endArrStr
=
combinedArray
.
join
(
","
);
tObj
.
value
.
endArrStr
=
combinedArray
.
join
(
","
);
updateCertificationManager
(
tObj
.
value
).
then
(
res
=>
{
updateCertificationManager
(
tObj
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"添加成功"
)
ElMessage
.
success
(
"添加成功"
)
getPersonnelInfoByIdsInfoByIds
(
tObj
.
value
.
endArrStr
).
then
(
res
=>
{
getPersonnelInfoByIdsInfoByIds
(
tObj
.
value
.
endArrStr
).
then
(
res
=>
{
console
.
log
(
res
)
personTableList
.
value
=
res
.
data
personTableList
.
value
=
res
.
data
})
})
}
}
...
@@ -770,7 +757,6 @@ const handleSelectionSubmit = (selectedItems) => {
...
@@ -770,7 +757,6 @@ const handleSelectionSubmit = (selectedItems) => {
function
getALLUserDeptList
(){
function
getALLUserDeptList
(){
getALLUserList
().
then
(
res
=>
{
getALLUserList
().
then
(
res
=>
{
userList
.
value
=
res
.
data
userList
.
value
=
res
.
data
console
.
log
(
res
.
data
)
let
list
=
res
.
data
let
list
=
res
.
data
// 提取所有用户的昵称和id
// 提取所有用户的昵称和id
for
(
let
i
in
list
){
for
(
let
i
in
list
){
...
@@ -779,7 +765,6 @@ function getALLUserDeptList(){
...
@@ -779,7 +765,6 @@ function getALLUserDeptList(){
allUserList
.
value
.
push
(
list2
[
i2
])
allUserList
.
value
.
push
(
list2
[
i2
])
}
}
}
}
console
.
log
(
"123"
,
allUserList
.
value
)
})
})
...
...
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