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
364901a1
Commit
364901a1
authored
Apr 18, 2025
by
yanzhengyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
d976c142
23649205
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
10 deletions
+34
-10
list.js
src/api/CCAPProjectManagement/list.js
+9
-0
index.vue
src/views/controlPlan/baseConfig/ccapProjectManage/index.vue
+25
-10
No files found.
src/api/CCAPProjectManagement/list.js
View file @
364901a1
...
@@ -74,3 +74,12 @@ export function addBusinessUnit(data) {
...
@@ -74,3 +74,12 @@ export function addBusinessUnit(data) {
data
:
data
data
:
data
})
})
}
}
// 复制新增
export
function
coypAddCcapManager
(
data
)
{
return
request
({
url
:
'/control/ccapProjectManagement/coypAddCcapManager'
,
method
:
'post'
,
data
:
data
})
}
src/views/controlPlan/baseConfig/ccapProjectManage/index.vue
View file @
364901a1
...
@@ -209,7 +209,8 @@ import {
...
@@ -209,7 +209,8 @@ import {
updateCcap
,
updateCcap
,
getBusinessExclude
,
getBusinessExclude
,
addBusinessUnit
,
addBusinessUnit
,
getBusinessExclude2
getBusinessExclude2
,
coypAddCcapManager
}
from
"@/api/CCAPProjectManagement/list"
;
}
from
"@/api/CCAPProjectManagement/list"
;
const
tableDialogForm
=
ref
({
const
tableDialogForm
=
ref
({
...
@@ -272,8 +273,12 @@ const groupList = ref([
...
@@ -272,8 +273,12 @@ const groupList = ref([
function
getList
()
{
function
getList
()
{
getDataList
(
queryParams
.
value
).
then
(
res
=>
{
getDataList
(
queryParams
.
value
).
then
(
res
=>
{
tableList
.
value
=
res
.
rows
.
sort
((
a
,
b
)
=>
{
tableList
.
value
=
res
.
rows
.
sort
((
a
,
b
)
=>
{
if
(
a
.
id
===
adminId
)
return
1
if
(
a
.
id
===
adminId
&&
b
.
id
!==
adminId
)
{
else
if
(
b
.
id
===
adminId
)
return
1
return
-
1
;
}
else
if
(
a
.
id
!==
adminId
&&
b
.
id
===
adminId
)
{
return
1
;
}
return
0
;
});
});
total
.
value
=
res
.
total
;
total
.
value
=
res
.
total
;
});
});
...
@@ -460,13 +465,23 @@ function dialog2Sure(){
...
@@ -460,13 +465,23 @@ function dialog2Sure(){
dialogForm2
.
value
.
validate
((
v
)
=>
{
dialogForm2
.
value
.
validate
((
v
)
=>
{
if
(
v
){
if
(
v
){
console
.
log
(
tableDialogForm
.
value
)
console
.
log
(
tableDialogForm
.
value
)
if
(
tableDialogTitle
.
value
===
"添加事业部"
){
addBusinessUnit
(
tableDialogForm
.
value
).
then
(
res
=>
{
addBusinessUnit
(
tableDialogForm
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"添加成功"
)
ElMessage
.
success
(
"添加成功"
)
dialog2Cancel
()
dialog2Cancel
()
}
}
})
})
}
else
{
//复制新增
coypAddCcapManager
(
tableDialogForm
.
value
).
then
(
res
=>
{
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"复制成功"
)
dialog2Cancel
()
}
})
}
}
}
})
})
}
}
...
...
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