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
6d2d5523
Commit
6d2d5523
authored
Apr 21, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccap项目管理-删除新增同步
parent
478815af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
list.js
src/api/CCAPProjectManagement/list.js
+7
-0
index.vue
src/views/controlPlan/baseConfig/ccapProjectManage/index.vue
+31
-2
No files found.
src/api/CCAPProjectManagement/list.js
View file @
6d2d5523
...
@@ -83,3 +83,10 @@ export function coypAddCcapManager(data) {
...
@@ -83,3 +83,10 @@ export function coypAddCcapManager(data) {
data
:
data
data
:
data
})
})
}
}
// 删除主表
export
function
deletetable
(
id
)
{
return
request
({
url
:
'/control/ccapProjectManagement/deletetable/'
+
id
,
method
:
'DELETE'
})
}
src/views/controlPlan/baseConfig/ccapProjectManage/index.vue
View file @
6d2d5523
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleMaintain(scope.row)"
>
维护项目
</el-button>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleMaintain(scope.row)"
>
维护项目
</el-button>
<el-button
type=
"text"
style=
"color: rgb(255,153,0)"
v-if=
"scope.row.id === adminId"
@
click=
"copeAdd(scope.row)"
>
复制新增
</el-button>
<el-button
type=
"text"
style=
"color: rgb(255,153,0)"
v-if=
"scope.row.id === adminId"
@
click=
"copeAdd(scope.row)"
>
复制新增
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.id === adminId"
@
click=
"addBusiness(scope.row)"
>
添加事业部
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.id === adminId"
@
click=
"addBusiness(scope.row)"
>
添加事业部
</el-button>
<el-button
type=
"text"
style=
"color: rgb(244,93,93)"
v-else=
"scope.row.id === adminId"
@
click=
"
handleView
(scope.row)"
>
删除
</el-button>
<el-button
type=
"text"
style=
"color: rgb(244,93,93)"
v-else=
"scope.row.id === adminId"
@
click=
"
tableDel
(scope.row)"
>
删除
</el-button>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -210,7 +210,8 @@ import {
...
@@ -210,7 +210,8 @@ import {
getBusinessExclude
,
getBusinessExclude
,
addBusinessUnit
,
addBusinessUnit
,
getBusinessExclude2
,
getBusinessExclude2
,
coypAddCcapManager
coypAddCcapManager
,
deletetable
}
from
"@/api/CCAPProjectManagement/list"
;
}
from
"@/api/CCAPProjectManagement/list"
;
const
tableDialogForm
=
ref
({
const
tableDialogForm
=
ref
({
...
@@ -298,6 +299,34 @@ function getDataProjectListById() {
...
@@ -298,6 +299,34 @@ function getDataProjectListById() {
drawer2TableList
.
value
=
res
.
data
;
drawer2TableList
.
value
=
res
.
data
;
});
});
}
}
function
tableDel
(
row
){
console
.
log
(
row
)
ElMessageBox
.
confirm
(
'是否删除该数据?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
.
then
(()
=>
{
deletetable
(
row
.
id
).
then
(
res
=>
{
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"删除成功"
)
getList
()
dialogVisible
.
value
=
false
;
}
})
})
.
catch
(()
=>
{
})
}
function
piliangDel
(){
function
piliangDel
(){
if
(
ids
.
value
.
length
===
0
)
return
ElMessage
.
warning
(
"请先选择要删除的数据项"
)
if
(
ids
.
value
.
length
===
0
)
return
ElMessage
.
warning
(
"请先选择要删除的数据项"
)
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
...
...
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