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
383a07c7
authored
2023-07-17 16:25:12 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:申请查询
1 parent
904af2b4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
118 additions
and
126 deletions
src/views/djbworkflow/components/leftmenu/ordinaryMenu.vue
src/views/djbworkflow/mixin/index.js
src/views/djbworkflow/workFrameView.vue
src/views/workflow/components/leftmenu/ordinaryMenu.vue
src/views/workflow/components/leftmenu/segmentMenu.vue
src/views/djbworkflow/components/leftmenu/ordinaryMenu.vue
View file @
383a07c
<!--
* @Description: workFrame左侧菜单列表-普通
* @Autor: renchao
* @LastEditTime: 2023-0
5-25 10:42:50
* @LastEditTime: 2023-0
7-17 16:16:13
-->
<
template
>
<div
class=
"leftmenu"
:class=
"
{ 'animation-map-drawer': isShowdrawer }">
<div
v-if=
"this.isShowdrawer"
>
<el-menu
@
select=
"djbClick"
class=
"title-batch"
>
class=
"title-batch"
>
<el-menu-item
index=
"-1"
key=
"-1"
class=
"menus"
>
<div>
登记簿
</div>
</el-menu-item>
...
...
@@ -17,8 +16,7 @@
<div
class=
"blxx"
>
<el-menu
@
select=
"blxxClick"
class=
"title-batch"
>
class=
"title-batch"
>
<el-menu-item
index=
"-1"
key=
"-1"
class=
"menus"
>
<div>
补录信息
</div>
</el-menu-item>
...
...
@@ -27,11 +25,10 @@
<el-menu-item
v-for=
"(item, index) in supplementarylist"
:index=
"index.toString()"
:key=
"index"
>
:key=
"index"
>
<div>
<p
v-if=
"item.operate=='D'"
>
{{
item
.
qllxmc
}}
<span
class=
"tpcolor"
>
(删除)
</span></p>
<p
v-else
>
{{
item
.
qllxmc
}}
<span
class=
"tpcolor"
>
(
{{
item
.
operate
==
"U"
?
"编辑"
:
"新增"
}}
)
</span></p>
<p
v-else
>
{{
item
.
qllxmc
}}
<span
class=
"tpcolor"
>
(
{{
item
.
operate
==
"U"
?
"编辑"
:
"新增"
}}
)
</span></p>
</div>
<i
class=
"el-icon-delete"
@
click
.
stop=
"handleDel(item)"
v-if=
"delel"
></i>
</el-menu-item>
...
...
@@ -45,8 +42,7 @@
() =>
{
this.isShowdrawer = !this.isShowdrawer;
}
"
>
</div>
">
</div>
<div
class=
"map-drawer-expand map-drawer"
v-else
...
...
@@ -54,19 +50,18 @@
() =>
{
this.isShowdrawer = !this.isShowdrawer;
}
"
>
</div>
">
</div>
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
"vuex"
;
import
{
leftMenu
,
deleteSlbdcdy
}
from
"@/api/workFlow.js"
;
import
{
deleteRepairRecord
}
from
"@/api/djbRepair.js"
;
import
{
leftMenubl
}
from
"@/api/djbRepair.js"
;
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
import
{
loadTreeData
,
getNode
}
from
"./djbFrameData.js"
;
export
default
{
data
()
{
import
{
mapGetters
}
from
"vuex"
;
import
{
leftMenu
,
deleteSlbdcdy
}
from
"@/api/workFlow.js"
;
import
{
deleteRepairRecord
}
from
"@/api/djbRepair.js"
;
import
{
leftMenubl
}
from
"@/api/djbRepair.js"
;
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
import
{
loadTreeData
,
getNode
}
from
"./djbFrameData.js"
;
export
default
{
data
()
{
return
{
supplementarylist
:
[],
//受理申请标识码
...
...
@@ -100,12 +95,9 @@ export default {
showTab
:
"bdcqldjml"
,
// 选中状态,根据表格中权利类型判断
};
},
mounted
()
{
this
.
delel
=
this
.
$parent
.
isEdit
mounted
()
{
this
.
delel
=
this
.
$parent
.
isEdit
this
.
loadBdcdylist
();
// this.getleftMenubl();
},
computed
:
{
// ...mapGetters(["isRefresh"]),
...
...
@@ -120,9 +112,9 @@ export default {
},
methods
:
{
//读取申请单元信息
loadBdcdylist
()
{
loadBdcdylist
()
{
var
formdata
=
new
FormData
();
if
(
this
.
bsmSlsq
)
{
if
(
this
.
bsmSlsq
)
{
formdata
.
append
(
"bsmSlsq"
,
this
.
bsmSlsq
);
formdata
.
append
(
"bestepid"
,
this
.
bestepid
);
leftMenu
(
formdata
).
then
((
res
)
=>
{
...
...
@@ -136,44 +128,44 @@ export default {
},
// 获取右侧菜单
getleftMenubl
(
row
)
{
getleftMenubl
(
row
)
{
leftMenubl
(
this
.
bsmSlsq
).
then
((
res
)
=>
{
this
.
supplementarylist
=
res
.
result
;
if
(
row
==
1
)
{
this
.
delel
=
false
if
(
row
==
1
)
{
this
.
delel
=
false
}
if
(
row
&&
row
!=
1
)
{
this
.
supplementarylist
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
bsmRepair
==
row
.
bsmRepair
)
{
this
.
activeIndex
=
index
.
toString
()
if
(
row
&&
row
!=
1
)
{
this
.
supplementarylist
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
bsmRepair
==
row
.
bsmRepair
)
{
this
.
activeIndex
=
index
.
toString
()
// 补录成功后定位到该条记录
this
.
unitClick
(
index
)
}
})
}
if
(
this
.
supplementarylist
.
length
)
{
if
(
this
.
supplementarylist
.
length
)
{
this
.
unitClick
(
0
)
}
else
{
}
else
{
this
.
$emit
(
"getCurrentSelectProps"
,
this
.
currentSelectProps
);
}
});
},
handleNodeClick
(
data
,
node
,
elem
)
{
handleNodeClick
(
data
,
node
,
elem
)
{
this
.
$parent
.
loadComponent
(
this
.
currentSelectProps
,
data
);
this
.
$parent
.
tabset
();
},
//申请单元点击事件
unitClick
(
index
)
{
unitClick
(
index
)
{
this
.
currentSelectProps
=
this
.
supplementarylist
[
index
];
this
.
$emit
(
"getCurrentSelectProps"
,
this
.
currentSelectProps
);
},
//登记簿点击事件
djbClick
()
{
djbClick
()
{
this
.
loadBdcdylist
();
},
// 删除补录记录
handleDel
(
row
)
{
handleDel
(
row
)
{
this
.
$confirm
(
"此操作将永久删除该条补录记录, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
...
...
@@ -188,7 +180,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
getleftMenubl
();
this
.
blxxClick
()
if
(
!
this
.
supplementarylist
.
length
)
{
if
(
!
this
.
supplementarylist
.
length
)
{
getdjblist
()
}
...
...
@@ -203,26 +195,26 @@ export default {
});
},
//补录信息点击事件默认展示第一条补录记录
blxxClick
()
{
if
(
this
.
supplementarylist
.
length
)
{
blxxClick
()
{
if
(
this
.
supplementarylist
.
length
)
{
this
.
unitClick
(
0
);
}
},
},
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"../../workFrame.scss"
;
.leftmenu
ul
{
@import
"~@/styles/mixin.scss"
;
@import
"../../workFrame.scss"
;
.leftmenu
ul
{
height
:
calc
(
100vh
-
120px
);
}
/
deep
/
.rollTable
{
}
/
deep
/
.rollTable
{
height
:
calc
(
100vh
-
240px
)
!important
;
}
}
.content
{
.content
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
...
...
@@ -243,57 +235,55 @@ export default {
background-color
:
#f5f5f5
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
}
}
}
/
deep
/
.expanded.el-tree-node__expand-icon
,
/
deep
/
.el-tree-node__expand-icon
{
/
deep
/
.expanded.el-tree-node__expand-icon
,
/
deep
/
.el-tree-node__expand-icon
{
visibility
:
hidden
;
}
}
/
deep
/
.el-tree-node__content
{
/
deep
/
.el-tree-node__content
{
border
:
1px
solid
rgb
(
228
,
228
,
228
);
height
:
45px
;
}
}
/
deep
/
.el-tree-node
:focus
>
.el-tree-node__content
{
/
deep
/
.el-tree-node
:focus
>
.el-tree-node__content
{
background-color
:
#f5f5f5
;
color
:
#0079fe
;
border-right
:
4px
solid
#0079fe
;
}
}
/
deep
/
.el-tree-node
{
/
deep
/
.el-tree-node
{
white-space
:
pre-wrap
;
}
}
/
deep
/
.is-current
>
.el-tree-node__content
{
/
deep
/
.is-current
>
.el-tree-node__content
{
background-color
:
#f5f5f5
;
color
:
#0079fe
;
border-right
:
4px
solid
#0079fe
;
}
.menus
{
}
.menus
{
background-color
:
#e7f4fe
;
div
{
div
{
font-size
:
16px
;
font-weight
:
600
;
}
}
.blxx
{
.el-menu-item{
}
.blxx
{
.el-menu-item
{
display
:
flex
;
justify-content
:
space-between
;
}
border
:
#b0d9f8
solid
1px
;
.tpcolor
{
.tpcolor
{
color
:
red
;
line-height
:
22px
;
}
.el-icon-delete
{
.el-icon-delete
{
margin-right
:
3px
;
//
background-color
:
saddlebrown
;
height
:
27px
;
float
:
left
;
}
}
}
</
style
>
...
...
src/views/djbworkflow/mixin/index.js
View file @
383a07c
/*
* @Description:workFramezu.vue组件的方法 头部按钮弹框方法
* @Autor: miaofang
* @LastEditTime: 2023-07-17 1
4:20:28
* @LastEditTime: 2023-07-17 1
6:14:23
*/
import
{
getPrintTemplateByCode
}
from
"@/api/print"
;
import
{
getQllxByBdcdyid
}
from
"@/api/djbDetail.js"
;
...
...
@@ -18,7 +18,6 @@ import {
unClaimTask
}
from
"@/api/workFlow.js"
;
import
{
mapGetters
}
from
'vuex'
import
{
log
}
from
"bpmn-js-token-simulation"
;
export
default
{
data
()
{
return
{
...
...
src/views/djbworkflow/workFrameView.vue
View file @
383a07c
...
...
@@ -12,8 +12,7 @@
<li
@
click=
"operation(item)"
v-for=
"(item, index) in leftButtonList"
:key=
"index"
>
:key=
"index"
>
<svg-icon
class=
"icon"
:icon-class=
"item.icon"
/>
<span
class=
"iconName"
>
{{
item
.
name
}}
</span>
</li>
...
...
@@ -22,8 +21,7 @@
<li
@
click=
"operation(item)"
v-for=
"(item, index) in rightButtonList"
:key=
"index"
>
:key=
"index"
>
<svg-icon
class=
"icon"
:icon-class=
"item.icon"
/>
<span
class=
"iconName"
>
{{
item
.
name
}}
</span>
</li>
...
...
@@ -50,15 +48,13 @@
:label=
"item.name"
:name=
"item.value"
v-for=
"item in tabList"
:key=
"item.value"
>
:key=
"item.value"
>
</el-tab-pane>
</el-tabs>
<component
:key=
"fresh"
:is=
"componentTag"
v-bind=
"currentSelectProps"
/>
v-bind=
"currentSelectProps"
/>
</div>
</div>
</div>
...
...
@@ -67,26 +63,26 @@
</div>
</
template
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"./workFrame.scss"
;
@import
"~@/styles/mixin.scss"
;
@import
"./workFrame.scss"
;
</
style
>
<
script
>
import
WorkFlow
from
"./mixin/index"
;
import
{
getForm
}
from
"./flowform"
;
import
{
getBlYbxStepFormInfo
}
from
"@/api/workFlow.js"
;
import
NoticeBar
from
"@/components/NoticeBar/index"
;
import
ProcessViewer
from
"./components/processViewer.vue"
;
// 引入左侧菜单
import
{
leftMenubl
}
from
"@/api/djbRepair.js"
;
import
ordinaryMenu
from
"./components/leftmenu/ordinaryMenu.vue"
;
import
qllxDailog
from
"./djbBook/components/qllxDailog"
;
import
selectBdc
from
"@/views/ywbl/ywsq/selectBdc.vue"
;
import
{
loadTreeData
,
getNode
}
from
"./components/leftmenu/djbFrameData.js"
;
// 登记簿数据信息
import
{
addRepairRecord
}
from
"@/api/djbRepair.js"
;
import
WorkFlow
from
"./mixin/index"
;
import
{
getForm
}
from
"./flowform"
;
import
{
getBlYbxStepFormInfo
}
from
"@/api/workFlow.js"
;
import
NoticeBar
from
"@/components/NoticeBar/index"
;
import
ProcessViewer
from
"./components/processViewer.vue"
;
// 引入左侧菜单
import
{
leftMenubl
}
from
"@/api/djbRepair.js"
;
import
ordinaryMenu
from
"./components/leftmenu/ordinaryMenu.vue"
;
import
qllxDailog
from
"./djbBook/components/qllxDailog"
;
import
selectBdc
from
"@/views/ywbl/ywsq/selectBdc.vue"
;
import
{
loadTreeData
,
getNode
}
from
"./components/leftmenu/djbFrameData.js"
;
// 登记簿数据信息
import
{
addRepairRecord
}
from
"@/api/djbRepair.js"
;
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
export
default
{
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
export
default
{
components
:
{
selectBdc
,
NoticeBar
,
...
...
@@ -95,15 +91,16 @@ export default {
qllxDailog
,
},
mixins
:
[
WorkFlow
],
data
()
{
data
()
{
return
{
bsmSlsq
:
this
.
$route
.
query
.
bsmSlsq
,
bestepid
:
this
.
$route
.
query
.
bestepid
,
bsmBusiness
:
this
.
$route
.
query
.
bsmBusiness
,
//设置那个表单选中
tabName
:
""
,
// 弹框显示
dialogVisible
:
true
,
isEdit
:
false
,
isEdit
:
false
,
//表单集合
tabList
:
[],
type
:
"READ_ONLY"
,
...
...
@@ -118,18 +115,18 @@ export default {
//页面监听时间
_beforeUnload_time
:
""
,
treedata
:
{},
bsmRepair
:
""
,
bsmRepair
:
""
,
tabdata
:
[],
defaultNode
:
{},
ableOperation
:
false
ableOperation
:
false
};
},
mounted
()
{
mounted
()
{
// this.getleftMenubl()
},
methods
:
{
stepForm
(
qllx
)
{
stepForm
(
qllx
)
{
this
.
oneSelectProps
.
qllx
=
qllx
;
if
(
this
.
$refs
.
Menu
.
supplementarylist
.
length
)
{
this
.
oneSelectProps
.
type
=
this
.
type
...
...
@@ -137,16 +134,16 @@ export default {
this
.
$nextTick
(
function
()
{
this
.
tabList
=
res
.
result
;
this
.
tabName
=
this
.
tabList
[
0
].
value
;
console
.
log
(
"是否只读"
,
this
.
tabList
[
0
].
ableOperation
);
this
.
ableOperation
=
this
.
tabList
[
0
].
ableOperation
console
.
log
(
"是否只读"
,
this
.
tabList
[
0
].
ableOperation
);
this
.
ableOperation
=
this
.
tabList
[
0
].
ableOperation
this
.
getFromRouter
(
this
.
tabName
);
});
});
}
},
// 获取右侧选项卡
getCurrentSelectProps
(
val
)
{
this
.
bsmRepair
=
val
.
bsmRepair
getCurrentSelectProps
(
val
)
{
this
.
bsmRepair
=
val
.
bsmRepair
if
(
val
.
bdcdyid
)
{
this
.
oneSelectProps
=
val
;
}
...
...
@@ -162,7 +159,7 @@ export default {
}
},
// 获取渲染登记簿列表
getdjblist
()
{
getdjblist
()
{
getBdcqljqtsx
({
bdcdyid
:
this
.
currentSelectProps
.
bdcdyid
,
bdcdyh
:
this
.
currentSelectProps
.
bdcdyh
,
...
...
@@ -191,21 +188,21 @@ export default {
});
},
//右侧表单选项卡事件
beforeLeave
(
activeName
)
{
beforeLeave
(
activeName
)
{
if
(
activeName
&&
activeName
!=
0
)
this
.
getFromRouter
(
activeName
);
},
//切换选项卡内容组件
getFromRouter
(
tabname
)
{
getFromRouter
(
tabname
)
{
this
.
componentTag
=
getForm
(
tabname
);
},
closefp
()
{
closefp
()
{
this
.
splitScreen
=
this
.
splitScreen
?
false
:
true
;
this
.
$store
.
dispatch
(
"app/set1tScreen"
,
this
.
splitScreen
);
this
.
getFromRouter
(
this
.
tabList
[
0
].
value
);
this
.
clxxForm
=
getForm
(
this
.
tabList
[
1
].
value
);
},
// 增加补录记录
addRepairRecord
(
row
,
del
)
{
addRepairRecord
(
row
,
del
)
{
let
from
=
{
bsmQlxx
:
""
,
bsmSlsq
:
this
.
bsmSlsq
,
...
...
@@ -245,6 +242,6 @@ export default {
});
},
},
};
};
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
...
...
src/views/workflow/components/leftmenu/ordinaryMenu.vue
View file @
383a07c
<!--
* @Description: workFrame左侧菜单列表-普通
* @Autor: renchao
* @LastEditTime: 2023-0
5-25 10:42:50
* @LastEditTime: 2023-0
7-17 16:20:37
-->
<
template
>
<div
class=
"leftmenu"
:class=
"
{ 'animation-map-drawer': isShowdrawer }">
...
...
@@ -39,9 +39,9 @@
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
leftMenu
,
deleteSlbdcdy
}
from
"@/api/workFlow.js"
export
default
{
import
{
mapGetters
}
from
'vuex'
import
{
leftMenu
,
deleteSlbdcdy
}
from
"@/api/workFlow.js"
export
default
{
data
()
{
return
{
//受理申请标识码
...
...
@@ -82,6 +82,9 @@ export default {
var
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSlsq"
,
this
.
bsmSlsq
);
formdata
.
append
(
"bestepid"
,
this
.
bestepid
);
if
(
this
.
$route
.
query
.
bsmBusiness
)
{
formdata
.
append
(
"bsmBusiness"
,
this
.
$route
.
query
.
bsmBusiness
);
}
leftMenu
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
this
.
unitData
=
res
.
result
;
...
...
@@ -184,12 +187,12 @@ export default {
this
.
$store
.
dispatch
(
'user/refreshPage'
,
false
);
}
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
@import
"~@/styles/mixin.scss"
;
@import
"../../workFrame.scss"
;
.leftmenu
ul
{
@import
"~@/styles/mixin.scss"
;
@import
"../../workFrame.scss"
;
.leftmenu
ul
{
height
:
calc
(
100vh
-
120px
);
}
}
</
style
>
...
...
src/views/workflow/components/leftmenu/segmentMenu.vue
View file @
383a07c
<!--
* @Description: workFrame左侧菜单列表-分割
* @Autor: renchao
* @LastEditTime: 2023-0
5-25 10:18:02
* @LastEditTime: 2023-0
7-17 16:21:24
-->
<
template
>
<div
class=
"leftmenu"
:class=
"
{ 'animation-map-drawer': isShowdrawer }">
...
...
@@ -99,6 +99,9 @@
var
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSlsq"
,
this
.
bsmSlsq
);
formdata
.
append
(
"bestepid"
,
this
.
bestepid
);
if
(
this
.
$route
.
query
.
bsmBusiness
)
{
formdata
.
append
(
"bsmBusiness"
,
this
.
$route
.
query
.
bsmBusiness
);
}
leftMenu
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
this
.
aroundUnitData
=
res
.
result
.
filter
(
item
=>
item
.
bglx
==
'1'
)
...
...
Please
register
or
sign in
to post a comment