Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5c5e67a3
authored
Nov 07, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
dbec1d5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
vue3-lw-pc/src/views/communityOperating/oldCustomer/list.vue
vue3-lw-pc/src/views/communityOperating/oldCustomer/list.vue
View file @
5c5e67a
...
@@ -7,6 +7,7 @@ export default {
...
@@ -7,6 +7,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
getList
,
getList
,
remove
,
dateRange
:
[],
// 创建日期[开始时间, 结束时间]
dateRange
:
[],
// 创建日期[开始时间, 结束时间]
ids
:
[],
// 多选数据
ids
:
[],
// 多选数据
}
}
...
@@ -22,21 +23,6 @@ export default {
...
@@ -22,21 +23,6 @@ export default {
goRoute
(
path
=
'aev'
,
id
)
{
goRoute
(
path
=
'aev'
,
id
)
{
this
.
$router
.
push
({
path
,
query
:
{
id
}
})
this
.
$router
.
push
({
path
,
query
:
{
id
}
})
},
},
// 批量删除
remove
(
id
)
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
.
then
(()
=>
{
remove
(
id
||
this
.
ids
).
then
((
res
)
=>
{
this
.
$refs
.
table
.
getList
()
this
.
msgSuccess
(
'删除成功'
)
})
})
.
catch
(()
=>
{})
},
// 处理多选
// 处理多选
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
...
@@ -56,7 +42,9 @@ export default {
...
@@ -56,7 +42,9 @@ export default {
<
template
#
operation
>
<
template
#
operation
>
<div
class=
"fxbw"
>
<div
class=
"fxbw"
>
<el-button
type=
"primary"
@
click=
"goRoute()"
>
新建任务
</el-button>
<el-button
type=
"primary"
@
click=
"goRoute()"
>
新建任务
</el-button>
<el-button
:disabled=
"!ids.length"
@
click=
"remove()"
type=
"danger"
>
批量删除
</el-button>
<el-button
:disabled=
"!ids.length"
@
click=
"$refs.table.remove(remove.bind(ids))"
type=
"danger"
>
批量删除
</el-button>
</div>
</div>
</
template
>
</
template
>
...
@@ -95,7 +83,7 @@ export default {
...
@@ -95,7 +83,7 @@ export default {
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
>
<
template
#
default=
"{ row }"
>
<
template
#
default=
"{ row }"
>
<el-button
text
@
click=
"goRoute('detail', row.id)"
>
详情
</el-button>
<el-button
text
@
click=
"goRoute('detail', row.id)"
>
详情
</el-button>
<el-button
text
@
click=
"
remove(row.id
)"
>
删除
</el-button>
<el-button
text
@
click=
"
$refs.table.remove(remove.bind(row.id)
)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment