Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
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
11e2d0c5
authored
2021-01-29 17:02:15 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
已办箱功能
1 parent
f6a1dfe4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
81 additions
and
10 deletions
src/api/user.js
src/store/index.js
src/views/Home.vue
src/views/panel/index.vue
src/views/ybx/ybinfo/index.vue
src/views/zd/index.vue
src/views/zd/lcgz/index.vue
src/api/user.js
View file @
11e2d0c
...
...
@@ -115,3 +115,18 @@ export function booleanWorkflow(data) {
})
}
/**
* 获取工作流大纲
*/
export
function
getProcessOutlineByYbx
(
data
)
{
return
request
({
url
:
'/workflow/getProcessOutline'
,
method
:
'get'
,
params
:
{
processInstanceId
:
data
,
isCurrent
:
false
}
})
}
...
...
src/store/index.js
View file @
11e2d0c
...
...
@@ -54,6 +54,7 @@ const store = new Vuex.Store({
oldZdbsm
:
''
,
newZdbsm
:
''
,
isWorkFlow
:
false
,
// 判断是否工作流数据
lcgzShow
:
false
,
//是否待办箱的数据,显示流程追踪
},
modules
:
{
user
,
...
...
src/views/Home.vue
View file @
11e2d0c
...
...
@@ -181,7 +181,10 @@ export default {
}
else
if
(
newPath
==
'/zrz'
||
newPath
==
'/zd'
||
newPath
==
'/dz'
){
booleanWorkflow
(
this
.
$route
.
query
.
ywbsm
).
then
(
res
=>
{
this
.
$store
.
state
.
isWorkFlow
=
res
.
result
;
})
});
if
(
typeof
this
.
$route
.
query
.
processInstanceId
!==
'undefined'
){
this
.
$store
.
state
.
lcgzShow
=
true
;
}
}
},
"$store.state.treeData"
:
function
(
val
)
{
...
...
src/views/panel/index.vue
View file @
11e2d0c
...
...
@@ -115,14 +115,14 @@
<
script
>
import
{
Chart
,
registerShape
}
from
'@antv/g2'
;
import
{
getDbxList
}
from
"@api/dbx"
;
import
{
getDbxList
,
getYbxList
}
from
"@api/dbx"
;
export
default
{
components
:{},
data
()
{
return
{
workList
:
[
{
name
:
"待办箱"
,
img
:
require
(
"@assets/images/dbx.png"
),
count
:
0
,
path
:
'/dbx'
},
{
name
:
"
退件
箱"
,
img
:
require
(
"@assets/images/tjx.png"
),
count
:
0
,
path
:
'ybx'
},
{
name
:
"
已办
箱"
,
img
:
require
(
"@assets/images/tjx.png"
),
count
:
0
,
path
:
'ybx'
},
],
list
:
[
{
name
:
"宗地分割"
,
img
:
require
(
"@assets/images/zdfg.png"
),
path
:
'change'
,
oLevel
:
'fg'
,
tLevel
:
'zd'
},
...
...
@@ -182,6 +182,7 @@ export default {
this
.
imgHeight
=
this
.
$refs
.
enterBox
.
offsetHeight
-
10
});
this
.
getDbxCount
();
this
.
getYbxCount
();
this
.
initG2qllx
();
this
.
initG2tdfwtj
();
this
.
initG2xntjid
();
...
...
@@ -248,6 +249,23 @@ export default {
}
})
},
getYbxCount
(){
let
data
=
{
page
:
0
,
size
:
20
,
current
:
false
,
currentUser
:
true
,
createDateStart
:
""
,
createDateEnd
:
""
}
getYbxList
(
data
).
then
((
res
)
=>
{
this
.
workList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
name
===
'已办箱'
){
item
.
count
=
res
.
totalElements
;
}
})
})
},
initG2qllx
(){
const
data
=
[
{
item
:
'国有建设用地使用权'
,
count
:
40
,
percent
:
0.4
},
...
...
src/views/ybx/ybinfo/index.vue
View file @
11e2d0c
...
...
@@ -170,10 +170,10 @@
path
:
path
,
query
:
{
bsm
:
data
.
glbsm
,
ywbsm
:
data
.
businessId
,
ywbsm
:
data
.
glbsm
,
source
:
2
,
auth
:
'0,1,2'
,
workitemInstanceId
:
data
.
id
processInstanceId
:
row
.
id
}
});
...
...
src/views/zd/index.vue
View file @
11e2d0c
...
...
@@ -15,7 +15,7 @@
<el-tab-pane
label=
"附件材料"
name=
"fjcl"
>
<fjcl
v-if=
"fjclVisible"
ref=
"fjcl"
:is-disabled=
"isDisabled"
></fjcl>
</el-tab-pane>
<el-tab-pane
label=
"流程跟踪"
name=
"lcgz"
v-if=
"$store.state.isWorkFlow"
lazy
>
<el-tab-pane
label=
"流程跟踪"
name=
"lcgz"
v-if=
"$store.state.isWorkFlow
|| $store.state.lcgzShow
"
lazy
>
<lcgz
ref=
"lcgz"
></lcgz>
</el-tab-pane>
</el-tabs>
...
...
src/views/zd/lcgz/index.vue
View file @
11e2d0c
...
...
@@ -26,7 +26,7 @@
<span>
创建人
</span>
<span>
{{
lcInfo
.
processInstance
.
creatorName
}}
</span>
</li>
<li>
<li
v-if=
"lcInfo.workitemInstance"
>
<span>
流程阶段
</span>
<span>
{{
lcInfo
.
workitemInstance
.
nodeName
}}
</span>
</li>
...
...
@@ -34,7 +34,7 @@
<span>
流程状态
</span>
<span>
{{
lcInfo
.
processInstance
.
state
}}
</span>
</li>
<li>
<li
v-if=
"lcInfo.workitemInstance"
>
<span>
当前责任人
</span>
<span>
{{
lcInfo
.
workitemInstance
.
actorName
}}
</span>
</li>
...
...
@@ -64,7 +64,7 @@
</
template
>
<
script
>
import
{
getActivityDetail
,
templateLoad
,
getProcessOutline
}
from
"@api/user"
;
import
{
getActivityDetail
,
templateLoad
,
getProcessOutline
,
getProcessOutlineByYbx
}
from
"@api/user"
;
import
flowNode
from
"./flownode"
export
default
{
name
:
""
,
...
...
@@ -81,7 +81,12 @@ export default {
},
created
()
{},
mounted
()
{
this
.
getTemplate
();
if
(
typeof
this
.
$route
.
query
.
workitemInstanceId
!==
'undefined'
){
this
.
getTemplate
();
}
else
if
(
typeof
this
.
$route
.
query
.
processInstanceId
!==
'undefined'
){
this
.
getTemplateByProcessInstanceId
();
}
},
methods
:
{
getTemplate
(){
...
...
@@ -122,6 +127,35 @@ export default {
vm
.
loadingHide
();
});
},
getTemplateByProcessInstanceId
(){
vm
.
loadingShow
(
'数据获取中'
);
getProcessOutlineByYbx
(
this
.
$route
.
query
.
processInstanceId
).
then
((
res
)
=>
{
console
.
log
(
res
.
processInstance
.
templetId
);
this
.
lcInfo
=
res
;
templateLoad
(
res
.
processInstance
.
templetId
).
then
((
res1
)
=>
{
vm
.
loadingHide
();
console
.
log
(
this
.
$x2js
.
xml2js
(
res1
).
Process
,
'Process'
);
this
.
flowData
=
this
.
$x2js
.
xml2js
(
res1
).
Process
;
console
.
log
(
res1
.
activityOutlines
,
'res.activityOutlines'
);
this
.
flowState
=
res
.
activityOutlines
;
this
.
$nextTick
(()
=>
{
this
.
flowData
.
Nodes
.
ManualNode
.
push
(
this
.
flowData
.
Nodes
.
EndNode
);
this
.
flowData
.
Nodes
.
ManualNode
.
unshift
(
this
.
flowData
.
Nodes
.
StartNode
);
this
.
flowData
.
Nodes
.
ManualNode
.
forEach
(
item
=>
{
item
.
activityState
=
this
.
flowState
.
filter
(
i
=>
i
.
activityTemplateId
==
item
.
id
)[
0
].
activityState
;
});
this
.
flowShow
=
true
;
})
})
.
catch
((
error
)
=>
{
vm
.
loadingHide
();
});
})
.
catch
((
error
)
=>
{
vm
.
loadingHide
();
});
},
//获取当前点击节点名称
getCurNode
(
name
){
console
.
log
(
name
);
...
...
Please
register
or
sign in
to post a comment