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
fcada8e6
Commit
fcada8e6
authored
Apr 18, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccap项目管理-复制新增
parent
26191ec6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
list.js
src/api/CCAPProjectManagement/list.js
+9
-0
index.vue
src/views/controlPlan/baseConfig/ccapProjectManage/index.vue
+16
-8
No files found.
src/api/CCAPProjectManagement/list.js
View file @
fcada8e6
...
@@ -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 @
fcada8e6
...
@@ -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
({
...
@@ -460,13 +461,20 @@ function dialog2Sure(){
...
@@ -460,13 +461,20 @@ 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
=>
{
console
.
log
(
res
)
})
}
}
}
})
})
}
}
...
...
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