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
822b416e
authored
2020-10-29 10:21:11 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/renchao/CadastralSystem
2 parents
c5dd9b95
5e282b4d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
73 additions
and
11 deletions
.env
src/api/common.js
src/api/zd.js
src/components/lineTree/lineItem.vue
src/components/lineTree/lineTree.vue
src/views/Home.vue
src/views/panel/create/index.vue
src/views/panel/search/index.vue
vue.config.js
.env
View file @
822b416
VUE_APP_api = 'http://192.168.2.
108:8000
'
VUE_APP_api1 = 'http://1
92.168.2.76:8000
'
VUE_APP_api2 = 'http://192.168.2.
108
:8006'
VUE_APP_api = 'http://192.168.2.
48:8006
'
VUE_APP_api1 = 'http://1
27.0.0.1:8006
'
VUE_APP_api2 = 'http://192.168.2.
9
:8006'
VUE_APP_name = '开发环境'
NODE_ENV="development"
VUE_APP_VERSION = 'psh'
\ No newline at end of file
...
...
src/api/common.js
View file @
822b416
...
...
@@ -71,3 +71,16 @@ export function getTree(zdbsm) {
}
})
}
/**
* 根据自然幢BSM获取左侧目录树
*/
export
function
getTreeByZrzbsm
(
zrzbsm
)
{
return
request
({
url
:
'system/xzq/getMenuTreeByZrzbsm'
,
method
:
'get'
,
params
:
{
zrzbsm
}
})
}
\ No newline at end of file
...
...
src/api/zd.js
View file @
822b416
...
...
@@ -141,4 +141,15 @@ export function jzxsbatchModify(data) {
})
}
/**x
*根据宗地Bsm删除宗地信息
*/
export
function
deleteZdInfoByBsm
(
data
){
return
request
({
url
:
'/zd/qjZdjbxx/deleteZdjbxxByBsm'
,
method
:
'delete'
,
data
:
data
})
}
...
...
src/components/lineTree/lineItem.vue
View file @
822b416
...
...
@@ -98,6 +98,7 @@ export default {
this
.
$emit
(
"changeTop"
,
y
);
this
.
$emit
(
"changeLeft"
,
x
);
this
.
$emit
(
"changeVisible"
,
true
);
this
.
$emit
(
"changeZdData"
,
item
);
}
else
if
(
item
.
zrzbsm
)
{
var
x
=
e
.
pageX
;
var
y
=
e
.
pageY
;
...
...
src/components/lineTree/lineTree.vue
View file @
822b416
...
...
@@ -35,6 +35,7 @@
v-if=
"item.expand && item.children.length > 0"
v-on=
"$listeners"
@
changeTop=
"changeTop"
@
changeZdData=
"changeZdData"
@
changeLeft=
"changeLeft"
@
changeVisible=
"changeVisible"
@
changeIsZD=
"changeIsZD"
...
...
@@ -56,11 +57,13 @@
<li
v-show=
"!isZD"
>
导入楼盘
</li>
<li>
重叠分析
</li>
<li
v-show=
"isZD"
>
添加定着物
</li>
<li
@
click=
"deleteByBsm()"
>
删除
</li>
</ul>
</div>
</
template
>
<
script
>
import
lineItem
from
"./lineItem.vue"
;
import
{
deleteZdInfoByBsm
}
from
"../../api/zd"
;
export
default
{
inheritAttrs
:
false
,
props
:
{
...
...
@@ -80,6 +83,7 @@ export default {
top
:
0
,
left
:
0
,
isZD
:
true
,
zdData
:{}
};
},
watch
:
{
...
...
@@ -99,6 +103,9 @@ export default {
changeVisible
(
data
)
{
this
.
visible
=
data
;
},
changeZdData
(
data
)
{
this
.
zdData
=
data
},
changeTop
(
data
)
{
this
.
top
=
data
;
},
...
...
@@ -151,6 +158,26 @@ export default {
this
.
selectedDetail
=
data
;
this
.
$emit
(
"detailDoubleClick"
,
data
);
},
deleteByBsm
(){
var
zdBsm
=
this
.
zdData
.
zdbsm
;
console
.
log
(
zdBsm
);
deleteZdInfoByBsm
(
zdBsm
)
.
then
((
res
)
=>
{
if
(
res
.
code
=
200
){
this
.
$message
({
message
:
res
.
message
,
type
:
"success"
,
});
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
"warning"
,
});
}
})
.
catch
((
error
)
=>
{});
},
},
};
</
script
>
...
...
src/views/Home.vue
View file @
822b416
...
...
@@ -52,7 +52,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
}
from
"../api/common"
;
import
{
getTree
,
getDdicByMC
,
getTreeList
,
getTreeByZrzbsm
}
from
"../api/common"
;
export
default
{
components
:
{
...
...
@@ -194,14 +194,14 @@ export default {
if
(
newPath
==
"/zd"
)
{
this
.
getRightTree
(
this
.
$store
.
state
.
zdbsm
);
}
else
if
(
newPath
==
"/zrz"
)
{
this
.
getRightTree
(
this
.
$store
.
state
.
zd
bsm
);
this
.
getRightTree
ByZrzbsm
(
this
.
$store
.
state
.
zrz
bsm
);
}
else
{
this
.
getTreeList
();
}
},
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getRightTree
(
bsm
);
},
//
"$store.state.zdbsm": function(bsm) {
//
this.getRightTree(bsm);
//
},
},
created
()
{
if
(
this
.
$route
.
meta
)
{
...
...
@@ -282,6 +282,14 @@ export default {
}
});
},
getRightTreeByZrzbsm
(
bsm
)
{
getTreeByZrzbsm
(
bsm
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
pd
=
res
.
result
;
}
});
},
sortNavigation
(
data
,
selectId
)
{
let
headTop
=
this
.
headTop
;
data
.
forEach
((
item
,
index
)
=>
{
...
...
src/views/panel/create/index.vue
View file @
822b416
...
...
@@ -247,7 +247,7 @@ export default {
//todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm
this
.
$refs
[
'ruleForm1'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
insert
D
zjbxx
(
this
.
ruleForm1
)
insert
Zr
zjbxx
(
this
.
ruleForm1
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
"200"
)
{
this
.
$message
({
...
...
src/views/panel/search/index.vue
View file @
822b416
...
...
@@ -109,6 +109,7 @@
let
path
=
""
;
switch
(
row
.
dylx
)
{
case
"zrz"
:
this
.
$store
.
state
.
zrzbsm
=
row
.
glbsm
;
path
=
"/zrz"
;
break
;
case
"zd"
:
...
...
vue.config.js
View file @
822b416
...
...
@@ -44,12 +44,13 @@ module.exports = {
},
devServer
:
{
host
:
"127.0.0.1"
,
port
:
800
6
,
port
:
800
8
,
https
:
false
,
hotOnly
:
false
,
proxy
:
{
"/api"
:
{
target
:
process
.
env
.
VUE_APP_api2
,
//target: process.env.VUE_APP_api, //巍巍
target
:
process
.
env
.
VUE_APP_api1
,
//本地
changeOrigin
:
true
,
pathRewrite
:
{
"^/api"
:
"/"
,
...
...
Please
register
or
sign in
to post a comment