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
387ae91a
authored
2023-07-20 15:47:00 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:批量删除问题的排查
1 parent
337c689d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
16 deletions
src/views/djbworkflow/mixin/index.js
src/views/workflow/components/batchDel.vue
src/views/workflow/components/leftmenu/ordinaryMenu.vue
src/views/workflow/mixin/index.js
src/views/djbworkflow/mixin/index.js
View file @
387ae91
/*
* @Description:workFramezu.vue组件的方法 头部按钮弹框方法
* @Autor: miaofang
* @LastEditTime: 2023-07-
17 16:14
:23
* @LastEditTime: 2023-07-
20 15:37
:23
*/
import
{
getPrintTemplateByCode
}
from
"@/api/print"
;
import
{
getQllxByBdcdyid
}
from
"@/api/djbDetail.js"
;
...
...
@@ -98,21 +98,21 @@ export default {
})
break
;
case
"B2"
:
//材料分屏按钮
this
.
splitScreen
=
this
.
splitScreen
?
false
:
true
;
this
.
$store
.
dispatch
(
"app/settScreen"
,
this
.
splitScreen
);
if
(
this
.
splitScreen
)
{
this
.
splitScreen
=
this
.
splitScreen
?
false
:
true
;
this
.
$store
.
dispatch
(
"app/settScreen"
,
this
.
splitScreen
);
if
(
this
.
splitScreen
)
{
//如果当前选项卡为材料信息内容,递减到上一个选项卡内容
if
(
this
.
tabName
==
this
.
clxxTab
.
value
)
{
this
.
tabName
=
this
.
tabList
[
this
.
clxxIndex
-
1
].
value
;
this
.
getFromRouter
(
this
.
tabList
[
this
.
clxxIndex
-
1
].
value
);
//如果当前选项卡为材料信息内容,递减到上一个选项卡内容
if
(
this
.
tabName
==
this
.
clxxTab
.
value
)
{
this
.
tabName
=
this
.
tabList
[
this
.
clxxIndex
-
1
].
value
;
this
.
getFromRouter
(
this
.
tabList
[
this
.
clxxIndex
-
1
].
value
);
}
//删除材料信息选项卡数据
this
.
tabList
.
splice
(
this
.
clxxIndex
,
1
);
}
else
{
//新增材料信息选项卡数据
this
.
tabList
.
splice
(
this
.
clxxIndex
,
0
,
this
.
clxxTab
);
}
//删除材料信息选项卡数据
this
.
tabList
.
splice
(
this
.
clxxIndex
,
1
);
}
else
{
//新增材料信息选项卡数据
this
.
tabList
.
splice
(
this
.
clxxIndex
,
0
,
this
.
clxxTab
);
}
// this.closefp()
// if (this.splitScreen) {
...
...
src/views/workflow/components/batchDel.vue
0 → 100644
View file @
387ae91
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-20 15:41:29
-->
<!-- 批量删除弹框 -->
<
template
>
<div
class=
'batchDel'
>
<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=
"submitdelclick"
plain
>
确定
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
deleteFlow
}
from
"@/api/workFlow.js"
import
store
from
'@/store/index.js'
export
default
{
components
:
{},
props
:
{
formData
:
{
type
:
Object
,
default
:
{}
}
},
data
()
{
return
{
columns
:
[
{
type
:
'selection'
,
label
:
'全选'
},
{
label
:
'序号'
,
type
:
'index'
,
width
:
'50'
,
},
{
prop
:
"bdcdyh"
,
label
:
"不动产单元号"
,
},
{
prop
:
"zl"
,
label
:
"坐落"
,
},
],
dataList
:
[],
selectBdcdy
:
[],
}
},
methods
:
{
// 批量删除确定按钮
submitdelclick
()
{
var
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSldyList"
,
this
.
selectBdcdy
);
formdata
.
append
(
"bsmSlsq"
,
this
.
formData
.
bsmSlsq
);
deleteFlow
(
formdata
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$popupCacel
();
store
.
dispatch
(
'user/refreshPage'
,
true
);
this
.
$message
.
success
(
"删除成功"
);
}
else
{
this
.
$message
.
error
(
res
.
message
)
}
})
},
// 批量删除勾选事件
handleSelectionChange
(
e
)
{
this
.
selectBdcdy
=
[];
e
.
forEach
((
item
,
index
)
=>
{
this
.
selectBdcdy
.
push
(
item
.
bsmSldy
)
})
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
</
style
>
src/views/workflow/components/leftmenu/ordinaryMenu.vue
View file @
387ae91
<!--
* @Description: workFrame左侧菜单列表-普通
* @Autor: renchao
* @LastEditTime: 2023-07-
17 16:20:37
* @LastEditTime: 2023-07-
20 15:37:33
-->
<
template
>
<div
class=
"leftmenu"
:class=
"
{ 'animation-map-drawer': isShowdrawer }">
...
...
src/views/workflow/mixin/index.js
View file @
387ae91
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-
17 14:20:1
7
* @LastEditTime: 2023-07-
20 15:37:3
7
*/
import
{
getPrintTemplateByCode
}
from
"@/api/print"
;
import
{
uploadUndo
}
from
"@/api/clxx"
;
...
...
Please
register
or
sign in
to post a comment