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
818ef1d0
authored
2023-10-17 09:50:25 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:申请单元列表操作功能的完善
1 parent
00cf89f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
src/views/workflow/components/leftmenu/ordinaryMenu.vue
src/views/workflow/components/leftmenu/segmentMenu.vue
src/views/zhcx/jdcx/jdcx.vue
src/views/workflow/components/leftmenu/ordinaryMenu.vue
View file @
818ef1d
<!--
* @Description: workFrame左侧菜单列表-普通
* @Autor: renchao
* @LastEditTime: 2023-10-1
3 10:52:12
* @LastEditTime: 2023-10-1
7 09:49:08
-->
<
template
>
<div
class=
"leftmenu"
:class=
"
{ 'animation-map-drawer': isShowdrawer }">
...
...
@@ -15,7 +15,7 @@
申请单元列表(
{{
unitData
.
length
}}
)
<el-button
type=
"text"
class=
"batchDel"
@
click=
"handleBatchDel"
v-if=
"unitData.length > 1"
>
批量删除
</el-button>
</div>
<el-menu
v-model=
"activeIndex"
:default-active=
"activeIndex"
@
select=
"unitClick"
>
<el-menu
v-model=
"activeIndex"
:default-active=
"activeIndex"
:key=
"key"
@
select=
"unitClick"
>
<el-menu-item
v-for=
"(item, index) in unitData"
:index=
"index.toString()"
:key=
"index"
>
<p
class=
"dot"
v-if=
"item.issave == '0'"
></p>
<div
class=
"menu-con"
>
...
...
@@ -47,10 +47,12 @@
export
default
{
data
()
{
return
{
key
:
0
,
//受理申请标识码
bsmSlsq
:
this
.
$route
.
query
.
bsmSlsq
,
bestepid
:
this
.
$route
.
query
.
bestepid
,
bsmBusiness
:
this
.
$route
.
query
.
bsmBusiness
,
type
:
this
.
$route
.
query
.
type
,
// 默认选中
activeIndex
:
'0'
,
// 折叠
...
...
@@ -172,6 +174,7 @@
* @author: renchao
*/
handleDel
(
item
)
{
let
that
=
this
this
.
$confirm
(
"确定要删除吗, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
...
...
@@ -182,12 +185,17 @@
formdata
.
append
(
"bsmSldyList"
,
item
.
bsmSldy
.
split
(
","
));
deleteSlbdcdy
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"删除成功"
);
this
.
loadBdcdylist
()
that
.
$message
.
success
(
"删除成功"
);
that
.
loadBdcdylist
()
debugger
if
(
that
.
activeIndex
!=
'-1'
)
{
that
.
activeIndex
=
'0'
sessionStorage
.
setItem
(
'keyPath'
,
'0'
);
}
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
})
;
})
})
.
catch
(()
=>
{
this
.
$message
({
...
...
@@ -229,6 +237,7 @@
this
.
currentSelectProps
.
batchOperation
=
false
;
this
.
activeIndex
=
index
.
toString
();
sessionStorage
.
setItem
(
'keyPath'
,
this
.
activeIndex
);
this
.
key
++
//选中表单传递数据
this
.
$emit
(
'getCurrentSelectProps'
,
this
.
currentSelectProps
);
this
.
$parent
.
stepForm
(
index
);
...
...
src/views/workflow/components/leftmenu/segmentMenu.vue
View file @
818ef1d
<!--
* @Description: workFrame左侧菜单列表-分割
* @Autor: renchao
* @LastEditTime: 2023-10-1
3 11:24:29
* @LastEditTime: 2023-10-1
7 09:30:20
-->
<
template
>
<div
class=
"leftmenu"
:class=
"
{ 'animation-map-drawer': isShowdrawer }">
...
...
@@ -64,6 +64,7 @@
bsmSlsq
:
this
.
$route
.
query
.
bsmSlsq
,
bsmBusiness
:
this
.
$route
.
query
.
bsmBusiness
,
bestepid
:
this
.
$route
.
query
.
bestepid
,
type
:
this
.
$route
.
query
.
type
,
// 变更前单元默认选中
activeIndex
:
'0'
,
// 变更后单元默认选中
...
...
src/views/zhcx/jdcx/jdcx.vue
View file @
818ef1d
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-
09-21 10:35:34
* @LastEditTime: 2023-
10-17 09:29:06
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -161,7 +161,7 @@
"/workFrameView?bsmSlsq="
+
item
.
bsmSlsq
+
"&bsmBusiness="
+
item
.
bsmBusiness
item
.
bsmBusiness
+
'&type=jdcx'
);
window
.
open
(
href
,
`workFrameView
${
item
.
bsmSlsq
}
`
)
}
...
...
Please
register
or
sign in
to post a comment