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
dad0d6d1
authored
2021-01-28 14:36:11 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工作流权限控制修改
1 parent
085bfe00
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
71 additions
and
45 deletions
src/api/user.js
src/store/index.js
src/views/Home.vue
src/views/dbx/dbxinfo/index.vue
src/views/dz/dzxx/index.vue
src/views/panel/search/index.vue
src/views/zd/index.vue
src/views/zd/zddcb/index.vue
src/views/zrz/zrzxx/index.vue
src/api/user.js
View file @
dad0d6d
...
...
@@ -102,3 +102,16 @@ export function termProcess(data) {
})
}
/**
* 根据bsm判断是否存在工作流
*/
export
function
booleanWorkflow
(
data
)
{
return
request
({
url
:
'/qj/workarea/booleanWorkflow'
,
method
:
'get'
,
params
:
{
bsm
:
data
,
}
})
}
...
...
src/store/index.js
View file @
dad0d6d
...
...
@@ -53,6 +53,7 @@ const store = new Vuex.Store({
treeData
:[],
// 树数据
oldZdbsm
:
''
,
newZdbsm
:
''
,
isWorkFlow
:
false
,
// 判断是否工作流数据
},
modules
:
{
user
,
...
...
src/views/Home.vue
View file @
dad0d6d
...
...
@@ -82,6 +82,7 @@ import Create from "./panel/create/index";
import
LineTree
from
"../components/lineTree/lineTree"
;
import
{
setTimeout
}
from
"timers"
;
import
{
getTree
,
getDdicByMC
,
getTreeList
,
getTreeByBsm
,
getListMenu
}
from
"../api/common"
;
import
{
booleanWorkflow
}
from
"@api/user"
export
default
{
components
:
{
...
...
@@ -177,8 +178,10 @@ export default {
}
}
else
if
(
newPath
==
'/viewMap'
){
this
.
isMap
=
true
;
}
else
{
}
else
if
(
newPath
==
'/zrz'
||
newPath
==
'/zd'
||
newPath
==
'/dz'
){
booleanWorkflow
(
this
.
$route
.
query
.
ywbsm
).
then
(
res
=>
{
this
.
$store
.
state
.
isWorkFlow
=
res
.
result
;
})
}
},
"$store.state.treeData"
:
function
(
val
)
{
...
...
src/views/dbx/dbxinfo/index.vue
View file @
dad0d6d
...
...
@@ -158,6 +158,7 @@
path
:
path
,
query
:
{
bsm
:
row
.
glbsm
,
ywbsm
:
row
.
businessId
,
source
:
2
,
auth
:
'0,1,2'
,
workitemInstanceId
:
row
.
id
...
...
src/views/dz/dzxx/index.vue
View file @
dad0d6d
...
...
@@ -193,11 +193,11 @@
</tbody>
</table>
</el-form>
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}">
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}"
v-if="$store.state.isWorkFlow"
>
<el-button
type=
"primary"
class=
"saveBtn"
@
click=
"onSave"
:disabled=
"disabled"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"registerCall"
>
登记调用
</el-button>
</div>
<div
class=
"sh-btn"
>
<div
class=
"sh-btn"
v-if=
"$store.state.isWorkFlow"
>
<el-button
type=
"primary"
@
click=
"lczz"
v-show=
"workFlowphase == 'modify'"
>
终止
</el-button>
<el-button
type=
"primary"
@
click=
"thzd"
v-show=
"rollbackDetails.length>0"
>
退回
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
:disabled=
"disabled"
v-if=
"!workFlowState"
>
提交
</el-button>
...
...
@@ -321,19 +321,21 @@
getActivityDetail
(){
let
params
=
{
"params"
:
{},
"workflowPeriod"
:
"current"
,
"workitemInstanceId"
:
this
.
$route
.
query
.
workitemInstanceId
if
(
this
.
$route
.
query
.
workitemInstanceId
)
{
let
params
=
{
"params"
:
{},
"workflowPeriod"
:
"current"
,
"workitemInstanceId"
:
this
.
$route
.
query
.
workitemInstanceId
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
workFlowData
=
res
;
this
.
workFlowphase
=
res
.
properties
.
phase
;
this
.
rollbackDetails
=
res
.
rollbackDetails
;
this
.
workFlowState
=
res
.
workitemInstance
.
apps
.
some
(
function
(
item
)
{
return
item
==
'shenpibiao'
;
});
})
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
workFlowData
=
res
;
this
.
workFlowphase
=
res
.
properties
.
phase
;
this
.
rollbackDetails
=
res
.
rollbackDetails
;
this
.
workFlowState
=
res
.
workitemInstance
.
apps
.
some
(
function
(
item
)
{
return
item
==
'shenpibiao'
;
});
})
},
shdz
(){
...
...
src/views/panel/search/index.vue
View file @
dad0d6d
...
...
@@ -164,6 +164,7 @@
path
:
path
,
query
:
{
bsm
:
row
.
glbsm
,
ywbsm
:
row
.
bsm
,
source
:
2
,
auth
:
'0,1,2'
}
...
...
src/views/zd/index.vue
View file @
dad0d6d
...
...
@@ -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"
lazy
>
<el-tab-pane
label=
"流程跟踪"
name=
"lcgz"
v-if=
"$store.state.isWorkFlow"
lazy
>
<lcgz
ref=
"lcgz"
></lcgz>
</el-tab-pane>
</el-tabs>
...
...
src/views/zd/zddcb/index.vue
View file @
dad0d6d
...
...
@@ -363,12 +363,12 @@
</td>
</tr>
</table>
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}">
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}"
v-if="$store.state.isWorkFlow"
>
<el-button
type=
"primary"
class=
"saveBtn"
@
click=
"updateZDxx"
:disabled=
"disabled"
icon=
"iconfont iconbaocun"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"registerCall"
>
登记调用
</el-button>
</div>
</div>
<div
class=
"sh-btn"
>
<div
class=
"sh-btn"
v-if=
"$store.state.isWorkFlow"
>
<el-button
type=
"primary"
@
click=
"lczz"
v-show=
"workFlowphase == 'modify'"
>
终止
</el-button>
<el-button
type=
"primary"
@
click=
"thzd"
v-show=
"rollbackDetails.length>0"
>
退回
</el-button>
<el-button
type=
"primary"
@
click=
"submitZDxx"
:disabled=
"disabled"
v-if=
"!workFlowState"
>
提交
</el-button>
...
...
@@ -502,19 +502,22 @@
},
methods
:
{
getActivityDetail
(){
let
params
=
{
"params"
:
{},
"workflowPeriod"
:
"current"
,
"workitemInstanceId"
:
this
.
$route
.
query
.
workitemInstanceId
if
(
this
.
$route
.
query
.
workitemInstanceId
)
{
let
params
=
{
"params"
:
{},
"workflowPeriod"
:
"current"
,
"workitemInstanceId"
:
this
.
$route
.
query
.
workitemInstanceId
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
workFlowData
=
res
;
this
.
workFlowphase
=
res
.
properties
.
phase
;
this
.
rollbackDetails
=
res
.
rollbackDetails
;
this
.
workFlowState
=
res
.
workitemInstance
.
apps
.
some
(
function
(
item
)
{
return
item
==
'shenpibiao'
;
});
})
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
workFlowData
=
res
;
this
.
workFlowphase
=
res
.
properties
.
phase
;
this
.
rollbackDetails
=
res
.
rollbackDetails
;
this
.
workFlowState
=
res
.
workitemInstance
.
apps
.
some
(
function
(
item
)
{
return
item
==
'shenpibiao'
;
});
})
},
registerCall
()
{
let
data
=
{
...
...
src/views/zrz/zrzxx/index.vue
View file @
dad0d6d
...
...
@@ -272,13 +272,13 @@
</tr>
</table>
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}">
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}"
v-if="$store.state.isWorkFlow"
>
<el-button
type=
"primary"
class=
"saveBtn"
@
click=
"onSave"
:disabled=
"disabled"
icon=
"iconfont iconbaocun"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"registerCall"
>
登记调用
</el-button>
<!--
<el-button
type=
"primary"
class=
"saveBtn"
@
click=
"save"
>
保存
</el-button>
-->
</div>
</div>
<div
class=
"sh-btn"
>
<div
class=
"sh-btn"
v-if=
"$store.state.isWorkFlow"
>
<el-button
type=
"primary"
@
click=
"lczz"
v-show=
"workFlowphase == 'modify'"
>
终止
</el-button>
<el-button
type=
"primary"
@
click=
"thzd"
v-show=
"rollbackDetails.length>0"
>
退回
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
:disabled=
"disabled"
v-if=
"!workFlowState"
>
提交
</el-button>
...
...
@@ -426,19 +426,21 @@
methods
:
{
getActivityDetail
(){
let
params
=
{
"params"
:
{},
"workflowPeriod"
:
"current"
,
"workitemInstanceId"
:
this
.
$route
.
query
.
workitemInstanceId
if
(
this
.
$route
.
query
.
workitemInstanceId
)
{
let
params
=
{
"params"
:
{},
"workflowPeriod"
:
"current"
,
"workitemInstanceId"
:
this
.
$route
.
query
.
workitemInstanceId
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
workFlowData
=
res
;
this
.
workFlowphase
=
res
.
properties
.
phase
;
this
.
rollbackDetails
=
res
.
rollbackDetails
;
this
.
workFlowState
=
res
.
workitemInstance
.
apps
.
some
(
function
(
item
)
{
return
item
==
'shenpibiao'
;
});
})
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
workFlowData
=
res
;
this
.
workFlowphase
=
res
.
properties
.
phase
;
this
.
rollbackDetails
=
res
.
rollbackDetails
;
this
.
workFlowState
=
res
.
workitemInstance
.
apps
.
some
(
function
(
item
)
{
return
item
==
'shenpibiao'
;
});
})
},
updateSjfyyt
(
data
){
...
...
Please
register
or
sign in
to post a comment