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
d379e4b0
authored
2020-12-04 15:50:17 +0800
by
焦泽平
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/renchao/CadastralSystem
2 parents
d20c5226
ae1b1163
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
4 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 @
d379e4b
...
...
@@ -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 @
d379e4b
...
...
@@ -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 @
d379e4b
...
...
@@ -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
:
{
...
...
@@ -153,7 +153,12 @@ export default {
}
});
if
(
newPath
==
"/zd"
)
{
this
.
getRightTree
(
this
.
$store
.
state
.
zdbsm
);
//source为3时代表时分割后的宗地信息
if
(
this
.
$route
.
query
.
source
==
'3'
){
this
.
getTreeByS
(
this
.
$store
.
state
.
zdbsms
);
}
else
{
this
.
getRightTree
(
this
.
$store
.
state
.
zdbsm
);
}
}
else
if
(
newPath
==
"/zrz"
)
{
this
.
getRightTreeByZrzbsm
(
this
.
$store
.
state
.
zrzbsm
);
}
else
if
(
newPath
==
"/dz"
){
...
...
@@ -172,6 +177,9 @@ export default {
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getRightTree
(
bsm
);
},
// "$store.state.zdbsms":function (zdbsms) {
// this.getTreeByS(zdbsms)
// }
},
mounted
(){
...
...
@@ -245,6 +253,14 @@ export default {
});
},
methods
:
{
getTreeByS
(
zdbsms
){
getListMenu
(
zdbsms
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
pd
=
res
.
result
}
})
},
//请求字典数据
async
getDic
()
{
let
s
=
this
.
$store
.
state
;
...
...
@@ -522,7 +538,7 @@ export default {
//
line-height
:
160px
;
padding
:
0
;
}
.treeModule-show
{
width
:
290px
;
height
:
calc
(
100%
-
120px
);
...
...
src/views/panel/change/fg/index.vue
View file @
d379e4b
...
...
@@ -843,11 +843,12 @@
zdfg
(
this
.
zdFghData
).
then
(
res
=>
{
if
(
res
.
success
)
{
Message
.
success
(
'保存成功'
)
this
.
$store
.
state
.
zdbsms
=
res
.
result
;
this
.
$router
.
push
({
path
:
'/zd'
,
query
:
{
bsm
:
res
.
result
[
0
],
source
:
2
source
:
3
,
//分割标识
}
});
}
else
{
...
...
src/views/panel/change/hb/index.vue
View file @
d379e4b
...
...
@@ -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