Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
16864148
authored
2023-04-26 17:25:27 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
批量删除功能
1 parent
ccd1fde9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
17 deletions
src/components/Popup/index.vue
src/views/workflow/components/batchDel.vue
src/views/workflow/components/processViewer.vue
src/views/workflow/mixin/index.js
src/components/Popup/index.vue
View file @
1686414
...
...
@@ -178,4 +178,3 @@ export default {
background
:
none
;
}
</
style
>
\ No newline at end of file
...
...
src/views/workflow/components/batchDel.vue
View file @
1686414
...
...
@@ -3,11 +3,15 @@
<lb-table
:column=
"columns"
:data=
"formData.dataList"
:maxHeight=
"460"
:heightNumSetting=
"true"
:pagination=
"false"
@
selection-change=
"handleSelectionChange"
>
</lb-table>
<div
class=
"text-center"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"childFn"
plain
>
确定
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
deleteFlow
}
from
"@/api/ywbl.js"
export
default
{
import
{
deleteFlow
}
from
"@/api/ywbl.js"
export
default
{
components
:
{},
props
:
{
formData
:
{
...
...
@@ -44,9 +48,12 @@ export default {
childFn
()
{
var
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSldyList"
,
this
.
selectBdcdy
);
formdata
.
append
(
"bsmSlsq"
,
this
.
formData
.
bsmSlsq
);
formdata
.
append
(
"bsmSlsq"
,
this
.
formData
.
bsmSlsq
);
deleteFlow
(
formdata
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$popupCacel
();
location
.
reload
()
console
.
log
(
"走i了"
);
this
.
$message
.
success
(
"删除成功"
);
}
else
{
this
.
$message
.
error
(
res
.
message
)
...
...
@@ -60,8 +67,7 @@ export default {
})
}
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
</
style
>
...
...
src/views/workflow/components/processViewer.vue
View file @
1686414
...
...
@@ -167,7 +167,6 @@
},
// 下拉列表切换
handleSelect
(
val
)
{
this
.
taskCommentList
=
(
this
.
formData
.
allCommentList
||
[]).
filter
(
item
=>
{
return
item
.
taskDefKey
===
val
})
...
...
@@ -235,7 +234,6 @@
}
if
(
Array
.
isArray
(
finishedTaskSet
))
{
finishedTaskSet
.
forEach
(
item
=>
canvas
.
addMarker
(
item
,
'success'
))
console
.
log
(
finishedTaskSet
,
'finishedTaskSet'
);
}
if
(
Array
.
isArray
(
unfinishedTaskSet
))
{
unfinishedTaskSet
.
forEach
(
item
=>
canvas
.
addMarker
(
item
,
'primary'
))
...
...
src/views/workflow/mixin/index.js
View file @
1686414
...
...
@@ -361,18 +361,12 @@ export default {
},
//批量操作
handleBatchDel
()
{
let
that
=
this
;
this
.
$popup
(
"批量删除"
,
"workflow/components/batchDel"
,
{
this
.
$popupDialog
(
"批量删除"
,
"workflow/components/batchDel"
,
{
width
:
"50%"
,
btnShow
:
true
,
height
:
"600px"
,
formData
:
{
btnShow
:
false
,
bsmSlsq
:
this
.
bsmSlsq
,
dataList
:
this
.
unitData
,
},
confirm
:
function
()
{
that
.
loadBdcdylist
();
}
})
},
handleChange
(
file
)
{
...
...
Please
register
or
sign in
to post a comment