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
6fc08c05
authored
2020-12-04 15:23:24 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(fg,hb):分割合并后跳转页面
1 parent
90ccb6e9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
1 deletions
src/api/common.js
src/store/index.js
src/views/Home.vue
src/views/panel/change/fg/index.vue
src/views/panel/change/hb/index.vue
src/api/common.js
View file @
6fc08c0
...
...
@@ -174,5 +174,15 @@ export function loadFile(url) {
url
}
})
}
/**
* 多个宗地代码获取树的数据信息
*/
export
function
getListMenu
(
data
)
{
return
request
({
url
:
'/system/xzq/getZdListMenu'
,
method
:
'post'
,
data
:
data
})
}
...
...
src/store/index.js
View file @
6fc08c0
...
...
@@ -10,6 +10,7 @@ const store = new Vuex.Store({
state
:
sessionStorage
.
getItem
(
'state'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'state'
))
:
{
zddm
:
''
,
// 宗地代码
zdbsm
:
''
,
// 宗地标识码
zdbsms
:[],
// 宗地标识码集合
xmmc
:
''
,
// 项目名称
zdmj
:
''
,
// 宗地面积
zdzl
:
''
,
// 宗地坐落
...
...
src/views/Home.vue
View file @
6fc08c0
...
...
@@ -58,7 +58,7 @@ import Navigation from "../components/IvyElement/navigation";
import
Create
from
"./panel/create/index"
;
import
LineTree
from
"../components/lineTree/lineTree"
;
import
{
setTimeout
}
from
"timers"
;
import
{
getTree
,
getDdicByMC
,
getTreeList
,
getTreeByBsm
}
from
"../api/common"
;
import
{
getTree
,
getDdicByMC
,
getTreeList
,
getTreeByBsm
,
getListMenu
}
from
"../api/common"
;
export
default
{
components
:
{
...
...
@@ -172,6 +172,9 @@ export default {
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getRightTree
(
bsm
);
},
"$store.state.zdbsms"
:
function
(
zdbsms
)
{
this
.
getTreeByS
(
zdbsms
)
}
},
mounted
(){
...
...
@@ -245,6 +248,14 @@ export default {
});
},
methods
:
{
getTreeByS
(
zdbsms
){
getListMenu
(
zdbsms
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
pd
=
res
.
result
}
})
},
//请求字典数据
async
getDic
()
{
let
s
=
this
.
$store
.
state
;
...
...
src/views/panel/change/fg/index.vue
View file @
6fc08c0
...
...
@@ -843,6 +843,7 @@
zdfg
(
this
.
zdFghData
).
then
(
res
=>
{
if
(
res
.
success
)
{
Message
.
success
(
'保存成功'
)
this
.
$store
.
state
.
zdbsms
=
res
.
result
;
this
.
$router
.
push
({
path
:
'/zd'
,
query
:
{
...
...
src/views/panel/change/hb/index.vue
View file @
6fc08c0
...
...
@@ -444,6 +444,13 @@
ZdHb
(
data
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$message
.
success
(
"合并成功"
)
this
.
$router
.
push
({
path
:
'/zd'
,
query
:
{
bsm
:
res
.
result
,
source
:
2
}
});
}
else
{
this
.
$message
.
error
(
"合并失败"
)
}
...
...
Please
register
or
sign in
to post a comment