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
008c1eac
authored
2021-01-27 15:57:46 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更正宗地,自然幢,多幢添加工作流机制
1 parent
42ae4331
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
1 deletions
src/views/panel/modify/index.vue
src/views/panel/modify/index.vue
View file @
008c1ea
...
...
@@ -67,6 +67,7 @@
import
SearchHead
from
"@components/searchHead/searchHead"
;
import
{
getSearchList
}
from
"@api/search"
;
import
{
updateQsztByBsm
}
from
"@api/common"
;
import
{
createProcessInstance
}
from
"@api/user"
;
export
default
{
name
:
""
,
...
...
@@ -137,16 +138,19 @@
handleClick
(
row
)
{
let
type
;
name
;
let
path
=
""
;
let
workflowName
=
""
;
switch
(
row
.
dylx
)
{
case
"zd"
:
type
=
"zd"
;
name
=
'宗地'
;
path
=
"/zd"
;
workflowName
=
"更正宗地"
;
break
;
case
"zrz"
:
type
=
"zrz"
;
name
=
'自然幢'
;
path
=
"/zrz"
;
workflowName
=
"更正自然幢"
;
break
;
case
"h"
:
case
"h0"
:
...
...
@@ -154,28 +158,36 @@
type
=
"h"
;
name
=
"户"
path
=
"/h"
;
workflowName
=
"更正户"
;
break
;
case
"dz"
:
type
=
"dz"
;
name
=
"多幢"
;
path
=
"/dz"
;
workflowName
=
"更正多幢"
;
break
;
case
"gzw"
:
type
=
"gzw"
;
name
=
"构筑物"
;
path
=
"/gzw"
;
workflowName
=
"更正构筑物"
;
break
;
default
:
break
;
}
let
data
=
{
"id"
:
row
.
bsm
,
"type"
:
type
};
let
data
=
{
"id"
:
row
.
bsm
,
"type"
:
type
,
"ywlx"
:
"modify"
};
let
wfdata
=
{
params
:
data
,
workflowName
:
workflowName
};
this
.
$nextTick
(()
=>
{
this
.
$confirm
(
'确定更正该'
+
name
+
'吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
if
(
row
.
dylx
===
'h'
||
row
.
dylx
===
'h0'
||
row
.
dylx
===
'h1'
||
row
.
dylx
===
'gzw'
){
updateQsztByBsm
(
data
)
.
then
((
res
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -231,6 +243,59 @@
type
:
"error"
,
});
});
}
else
{
createProcessInstance
(
wfdata
)
.
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
needShow
)
{
this
.
$store
.
state
.
oldZdbsm
=
''
;
switch
(
row
.
dylx
)
{
case
"zd"
:
this
.
$store
.
state
.
zdbsm
=
res
.
processInstance
.
title
;
this
.
getRightTree
(
res
.
result
,
'0,1,2'
);
break
;
case
"zrz"
:
this
.
$store
.
state
.
zrzbsm
=
res
.
processInstance
.
title
;
this
.
getTreeByBsm
(
res
.
result
,
row
.
dylx
,
'0,1,2'
);
break
;
case
"h"
:
case
"h0"
:
case
"h1"
:
this
.
$store
.
state
.
hbsm
=
res
.
processInstance
.
title
;
this
.
getTreeByBsm
(
res
.
result
,
'h'
,
'0,1,2'
);
break
;
case
"dz"
:
this
.
$store
.
state
.
dzbsm
=
res
.
processInstance
.
title
;
this
.
getTreeByBsm
(
res
.
result
,
row
.
dylx
,
'0,1,2'
);
break
;
case
"gzw"
:
this
.
$store
.
state
.
dzbsm
=
res
.
processInstance
.
title
;
this
.
getTreeByBsm
(
res
.
result
,
row
.
dylx
,
'0,1,2'
);
break
;
default
:
break
;
}
this
.
$message
({
type
:
'success'
,
message
:
'更正成功!'
});
this
.
$router
.
push
({
path
:
path
,
query
:
{
bsm
:
res
.
processInstance
.
title
,
source
:
2
,
workitemInstanceId
:
res
.
workitemInstance
.
id
,
auth
:
'1'
}
});
}
else
{
this
.
$message
.
error
(
"创建失败"
);
}
})
.
catch
((
error
)
=>
{});
}
}).
catch
(()
=>
{
...
...
Please
register
or
sign in
to post a comment