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
69a59e53
authored
2020-11-23 10:28:15 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
8a253254
03f86373
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
28 deletions
src/api/dz.js
src/components/lineTree/lineItem.vue
src/components/lineTree/lineTree.vue
src/views/panel/search/index.vue
src/views/systemDZ/dzxx/index.vue
src/api/dz.js
View file @
69a59e5
...
...
@@ -29,7 +29,7 @@ export function getBdcdyh (dpdm,dptype) {
*/
export
function
saveDzInfo
(
data
)
{
return
request
({
url
:
'/fw/qj
Zrz/updateQjZr
z'
,
url
:
'/fw/qj
Dz/updateQjD
z'
,
method
:
'put'
,
data
:
data
})
...
...
@@ -38,9 +38,9 @@ export function saveDzInfo (data) {
/**
* 保存自然幢信息
*/
export
function
get
Zr
zDetailByBsm
(
data
)
{
export
function
get
D
zDetailByBsm
(
data
)
{
return
request
({
url
:
'/fw/qj
Zrz/getQjZrzDetailById
'
,
url
:
'/fw/qj
Dz/getDzDetailByBsm
'
,
method
:
'get'
,
params
:{
id
:
data
...
...
src/components/lineTree/lineItem.vue
View file @
69a59e5
...
...
@@ -100,11 +100,12 @@ export default {
this
.
$emit
(
"changeTop"
,
e
.
pageY
);
this
.
$emit
(
"changeLeft"
,
e
.
pageX
);
this
.
$emit
(
"changeZdData"
,
item
);
//判断所有权类型
console
.
log
(
item
.
dm
,
'item.dm '
);
if
(
item
.
dm
==
'G'
||
item
.
dm
==
'J'
||
item
.
dm
==
'Z'
){
this
.
$emit
(
"changeCreateVisible"
,
true
);
}
this
.
$emit
(
"changeVisible"
,
false
);
// //判断所有权类型
// console.log(item.dm,'item.dm ');
// if(item.dm == 'G' || item.dm == 'J' ||item.dm == 'Z'){
// this.$emit("changeCreateVisible", true);
// }
//判断楼盘类型
switch
(
item
.
type
)
{
case
'zd'
:
...
...
src/components/lineTree/lineTree.vue
View file @
69a59e5
...
...
@@ -135,17 +135,17 @@ export default {
}
},
createVisible
(
value
)
{
if
(
value
)
{
document
.
body
.
addEventListener
(
"click"
,
this
.
closeMenu
);
}
else
{
document
.
body
.
removeEventListener
(
"click"
,
this
.
closeMenu
);
}
}
//
createVisible(value) {
//
if (value) {
//
document.body.addEventListener("click", this.closeMenu);
//
} else {
//
document.body.removeEventListener("click", this.closeMenu);
//
}
//
}
},
created
()
{
console
.
log
(
"lineTree create"
);
//
this.preDealData(this.pd);
this
.
preDealData
(
this
.
pd
);
// this.expandTreeItemById(["6b5af49d803f97baf06afb897de257f5"]);
},
...
...
@@ -184,8 +184,14 @@ export default {
this
.
dialogVisible
=
false
;
},
preDealData
(
list
)
{
//楼盘表目录树没有expand属性
list
[
0
].
expand
=
list
[
0
].
expand
==
undefined
?
true
:
list
[
0
].
expand
;
// //楼盘表目录树没有expand属性
// list[0].expand = list[0].expand == undefined ? true:list[0].expand;
list
.
forEach
((
x
)
=>
{
if
(
x
.
expand
==
undefined
)
this
.
$set
(
x
,
"expand"
,
true
);
if
(
x
.
children
&&
x
.
children
.
length
>
0
)
{
this
.
preDealData
(
x
.
children
);
}
});
return
list
;
},
// 根据id展开树的具体项
...
...
@@ -206,17 +212,10 @@ export default {
console
.
log
(
this
.
formatData
,
"this.formatData"
);
},
itemClick
(
item
)
{
item
.
expand
=
item
.
expand
==
undefined
?
true
:
!
item
.
expand
;
// item.expand = item.expand == undefined? true:!item.expand;
item
.
expand
=
!
item
.
expand
;
this
.
$emit
(
"itemClick"
,
item
);
},
// 详情点击
detailClick
(
data
)
{
clearTimeout
(
this
.
timer
);
this
.
timer
=
setTimeout
(()
=>
{
this
.
selectedDetail
=
data
;
this
.
$emit
(
"detailClick"
,
data
);
},
300
);
},
//自然幢右键点击事件
openMenu
(
e
,
item
){
console
.
log
(
item
,
'右键item'
);
...
...
@@ -228,7 +227,7 @@ export default {
//关闭右键菜单
closeMenu
(){
this
.
lpbvisible
=
false
;
this
.
createVisible
=
false
;
//
this.createVisible = false;
},
//楼盘表右键菜单项打开父组件弹框
openLpbDialog
(
type
){
...
...
src/views/panel/search/index.vue
View file @
69a59e5
...
...
@@ -116,6 +116,10 @@
this
.
$store
.
state
.
zdbsm
=
row
.
glbsm
;
path
=
"/zd"
;
break
;
case
"dz"
:
this
.
$store
.
state
.
dzbsm
=
row
.
glbsm
;
path
=
"/dz"
;
break
;
default
:
break
;
}
...
...
src/views/systemDZ/dzxx/index.vue
View file @
69a59e5
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment