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
ca172282
Commit
ca172282
authored
Apr 17, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccap项目管理-抽屉列表修改删除
parent
fa7a05a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
4 deletions
+50
-4
index.vue
...ws/controlPlan/baseConfig/ccapProjectManagement/index.vue
+50
-4
No files found.
src/views/controlPlan/baseConfig/ccapProjectManagement/index.vue
View file @
ca172282
...
...
@@ -40,7 +40,7 @@
<div
style=
"display: flex;align-items: flex-start"
>
<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=
"handleView(scope.row)"
>
复制新增
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.id === adminId"
@
click=
"
handleView
(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>
</div>
</
template
>
...
...
@@ -118,7 +118,7 @@
</
template
>
</el-drawer>
<!-- 对话框-->
<!--
抽屉里面的
对话框-->
<el-dialog
top=
"30"
v-model=
"dialogVisible"
...
...
@@ -156,6 +156,42 @@
</div>
</
template
>
</el-dialog>
<!-- 添加事业部·复制新增的 对话框-->
<el-dialog
top=
"30"
v-model=
"tableDialogVisible"
:title=
"tableDialogTitle"
width=
"500"
>
<div
style=
"width: 70%;margin-left: 15%;padding: 20px 0"
>
<el-form
:model=
"tableDialogForm"
>
<el-form-item
label=
"事业部:"
prop=
"project"
>
<el-select
v-model=
"dialogForm.business"
placeholder=
"请选择"
clearable
>
<el-option
v-for=
"dict in groupList"
:label=
"dict"
:value=
"dict"
/>
</el-select>
</el-form-item>
</el-form>
</div>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
<el-button
@
click=
""
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"(dialogForm)"
>
确定
</el-button>
</div>
</
template
>
</el-dialog>
</div>
</template>
...
...
@@ -171,6 +207,10 @@ import {
updateCcap
}
from
"@/api/CCAPProjectManagement/list"
;
const
tableDialogForm
=
ref
({
business
:
null
,
id
:
null
})
const
{
proxy
}
=
getCurrentInstance
();
const
tableList
=
ref
([]);
const
drawer2
=
ref
(
false
)
...
...
@@ -184,7 +224,8 @@ const showSearch = ref(true);
const
dialogQueryRef
=
ref
(
null
);
const
drawerQueryRef
=
ref
(
null
);
const
addTitle
=
ref
(
'新增'
);
const
tableDialogVisible
=
ref
(
false
)
const
tableDialogTitle
=
ref
(
''
)
const
total
=
ref
(
0
);
const
dialogRules
=
{
project
:
[{
required
:
true
,
message
:
'项目名称不能为空'
,
trigger
:
'blur'
}],
...
...
@@ -255,7 +296,12 @@ function piliangDel(){
})
}
//添加事业部
function
addBusiness
(
row
){
console
.
log
(
row
)
tableDialogTitle
.
value
=
'添加事业部'
tableDialogVisible
.
value
=
true
}
//删除
function
handleDrawerDel
(
row
){
...
...
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