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
d299b3f4
Commit
d299b3f4
authored
Apr 18, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccap项目管理-添加事业部
parent
2921b820
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
list.js
src/api/CCAPProjectManagement/list.js
+8
-0
index.vue
src/views/controlPlan/baseConfig/ccapProjectManage/index.vue
+10
-1
No files found.
src/api/CCAPProjectManagement/list.js
View file @
d299b3f4
...
@@ -56,3 +56,11 @@ export function getBusinessExclude() {
...
@@ -56,3 +56,11 @@ export function getBusinessExclude() {
method
:
'get'
method
:
'get'
})
})
}
}
// 添加事业部
export
function
addBusinessUnit
(
data
)
{
return
request
({
url
:
'/control/ccapProjectManagement/addBusinessUnit'
,
method
:
'post'
,
data
:
data
})
}
src/views/controlPlan/baseConfig/ccapProjectManage/index.vue
View file @
d299b3f4
...
@@ -207,7 +207,8 @@ import {
...
@@ -207,7 +207,8 @@ import {
inserTableData
,
inserTableData
,
deleteBatch
,
deleteBatch
,
updateCcap
,
updateCcap
,
getBusinessExclude
getBusinessExclude
,
addBusinessUnit
}
from
"@/api/CCAPProjectManagement/list"
;
}
from
"@/api/CCAPProjectManagement/list"
;
const
tableDialogForm
=
ref
({
const
tableDialogForm
=
ref
({
...
@@ -356,6 +357,7 @@ function dialog2Cancel(){
...
@@ -356,6 +357,7 @@ function dialog2Cancel(){
tableDialogForm
.
value
=
{}
tableDialogForm
.
value
=
{}
tableDialogVisible
.
value
=
false
tableDialogVisible
.
value
=
false
tableDialogForm
.
value
.
id
=
null
tableDialogForm
.
value
.
id
=
null
getList
()
}
}
function
projectView
(
row
){
function
projectView
(
row
){
...
@@ -438,6 +440,13 @@ function dialog2Sure(){
...
@@ -438,6 +440,13 @@ function dialog2Sure(){
dialogForm2
.
value
.
validate
((
v
)
=>
{
dialogForm2
.
value
.
validate
((
v
)
=>
{
if
(
v
){
if
(
v
){
console
.
log
(
tableDialogForm
.
value
)
console
.
log
(
tableDialogForm
.
value
)
addBusinessUnit
(
tableDialogForm
.
value
).
then
(
res
=>
{
console
.
log
(
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