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
7f5fbad9
authored
2020-10-21 10:55:00 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(Home):左侧行政区
1 parent
c579ca83
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
72 additions
and
46 deletions
src/api/common.js
src/components/lineTree/lineItem.vue
src/components/lineTree/lineTree.vue
src/views/Home.vue
src/views/panel/create/index.vue
src/views/systemZD/jzd/index.vue
src/views/systemZD/jzx/index.vue
src/views/systemZD/mjftb/index.vue
src/views/systemZD/zddcb/index.vue
src/api/common.js
View file @
7f5fbad
...
...
@@ -52,7 +52,7 @@ export function getDdicByMC(mc) {
/**
* 根据宗地BSM获取左侧目录树
*/
export
function
getTree
(
bsm
)
{
export
function
getTree
(
zd
bsm
)
{
return
request
({
url
:
'system/xzq/getMenuTreeByZdbsm'
,
method
:
'get'
,
...
...
src/components/lineTree/lineItem.vue
View file @
7f5fbad
...
...
@@ -39,7 +39,7 @@
active_color: item.expand,
}"
>
{{
item
.
label
}}
{{
item
.
mc
}}
</div>
</div>
<line-item
...
...
src/components/lineTree/lineTree.vue
View file @
7f5fbad
...
...
@@ -28,7 +28,7 @@
reTree_expand_icon: !item.expand
&&
item.children.length > 0,
}"
>
</div>
<div
class=
"layer_text nowrap"
>
{{
item
.
label
}}
</div>
<div
class=
"layer_text nowrap"
>
{{
item
.
mc
}}
</div>
</div>
<lineItem
...
...
src/views/Home.vue
View file @
7f5fbad
...
...
@@ -44,19 +44,21 @@
</el-dialog>
</el-header>
<el-main>
<router-view
/>
<router-view
/>
</el-main>
</el-container>
</el-container>
</div>
</
template
>
<
script
>
import
util
from
"@/libs/util.js"
;
import
Navigation
from
"../components/IvyElement/navigation"
;
import
Create
from
"./panel/create/index"
;
import
LineTree
from
"../components/lineTree/lineTree"
;
import
{
setTimeout
}
from
"timers"
;
export
default
{
import
util
from
"@/libs/util.js"
;
import
Navigation
from
"../components/IvyElement/navigation"
;
import
Create
from
"./panel/create/index"
;
import
LineTree
from
"../components/lineTree/lineTree"
;
import
{
setTimeout
}
from
"timers"
;
import
{
getTree
}
from
"../api/common"
export
default
{
components
:
{
Navigation
,
LineTree
,
...
...
@@ -125,28 +127,28 @@ export default {
},
pd
:
[
{
label
:
"行政区(1)"
,
mc
:
"行政区(1)"
,
children
:
[],
},
{
label
:
"行政区(2)"
,
mc
:
"行政区(2)"
,
children
:
[
{
label
:
"地籍区1"
,
mc
:
"地籍区1"
,
children
:
[],
},
{
label
:
"地籍区2"
,
mc
:
"地籍区2"
,
children
:
[
{
label
:
"国有"
,
mc
:
"国有"
,
children
:
[
{
label
:
"宗地代码1933"
,
mc
:
"宗地代码1933"
,
isZD
:
true
,
},
{
label
:
"自然幢2100"
,
mc
:
"自然幢2100"
,
isZD
:
false
,
},
],
...
...
@@ -164,15 +166,15 @@ export default {
],
},
{
label
:
"行政区(3)"
,
mc
:
"行政区(3)"
,
children
:
[],
},
{
label
:
"行政区(4)"
,
mc
:
"行政区(4)"
,
children
:
[],
},
{
label
:
"行政区(5)"
,
mc
:
"行政区(5)"
,
children
:
[],
},
],
...
...
@@ -185,7 +187,7 @@ export default {
},
},
watch
:
{
"$route.path"
:
function
(
newPath
)
{
"$route.path"
:
function
(
newPath
)
{
//监测路由变化,高亮顶部导航
this
.
headTop
.
forEach
((
item
,
index
)
=>
{
item
.
select
=
false
;
...
...
@@ -194,6 +196,9 @@ export default {
}
});
},
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getRightTree
(
bsm
)
}
},
created
()
{
if
(
this
.
$route
.
meta
)
{
...
...
@@ -215,7 +220,7 @@ export default {
icon
:
"fa fa-address-card-o"
,
path
:
"/add"
,
},
{
name
:
"更正"
,
icon
:
"fa fa-address-card-o"
,
path
:
"/modify"
},
{
name
:
"更正"
,
icon
:
"fa fa-address-card-o"
,
path
:
"/modify"
},
{
name
:
"变更"
,
icon
:
"fa fa-address-card-o"
,
...
...
@@ -237,6 +242,15 @@ export default {
// }
},
methods
:
{
getRightTree
(
bsm
)
{
getTree
(
bsm
).
then
(
res
=>
{
console
.
log
(
"========================================="
)
console
.
log
(
res
)
if
(
res
.
success
)
{
this
.
pd
=
res
.
result
}
})
},
sortNavigation
(
data
,
selectId
)
{
let
headTop
=
this
.
headTop
;
data
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -292,14 +306,14 @@ export default {
console
.
log
(
data
);
},
//关闭新建子组件弹框
closeDialog
()
{
closeDialog
()
{
this
.
dialogVisible
=
false
;
}
},
};
};
</
script
>
<
style
lang=
"less"
scoped
>
.home-box
{
.home-box
{
width
:
100%
;
height
:
100vh
;
.el-container
{
...
...
@@ -404,5 +418,5 @@ export default {
//
line-height
:
160px
;
padding
:
0
;
}
}
}
</
style
>
...
...
src/views/panel/create/index.vue
View file @
7f5fbad
...
...
@@ -234,7 +234,6 @@ export default {
console
.
log
(
data
);
insertZrzjbxx
(
data
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
if
(
res
.
code
==
"200"
)
{
this
.
$message
({
message
:
"创建成功!"
,
...
...
@@ -244,6 +243,9 @@ export default {
this
.
close
();
this
.
$store
.
zdbsm
=
res
.
result
.
zdbsm
;
this
.
$store
.
zrzbsm
=
res
.
result
.
bsm
;
debugger
console
.
log
(
"================================================="
)
console
.
log
(
this
.
$store
.
zdbsm
)
this
.
$store
.
xmmc
=
res
.
result
.
xmmc
;
this
.
$router
.
push
({
path
:
'/zrz'
,
query
:{
data
:
res
.
result
}
...
...
src/views/systemZD/jzd/index.vue
View file @
7f5fbad
...
...
@@ -162,10 +162,6 @@
},
mounted
()
{
// 该标识码继承过来
let
bsm
=
'401044005bad0557d5e3787239d8e18e'
;
this
.
bsm
=
bsm
;
this
.
getData
(
this
.
bsm
)
},
methods
:
{
getData
(
bsm
)
{
...
...
@@ -260,7 +256,11 @@
}
},
computed
:
{},
watch
:
{},
watch
:
{
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getData
(
bsm
)
}
},
}
</
script
>
<
style
scoped
lang=
"less"
>
...
...
src/views/systemZD/jzx/index.vue
View file @
7f5fbad
...
...
@@ -228,10 +228,7 @@
},
mounted
()
{
// 该标识码继承过来
let
bsm
=
'044dc12648a1f41374679281da63e93b'
;
this
.
bsm
=
bsm
;
this
.
getData
(
this
.
bsm
)
},
methods
:
{
getData
(
bsm
)
{
...
...
@@ -325,7 +322,11 @@
}
},
computed
:
{},
watch
:
{},
watch
:
{
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getData
(
bsm
)
}
},
}
</
script
>
<
style
scoped
lang=
"less"
>
...
...
src/views/systemZD/mjftb/index.vue
View file @
7f5fbad
...
...
@@ -52,6 +52,7 @@
<
script
>
import
{
savemjft
}
from
'../../../api/zd'
import
{
Message
}
from
'element-ui'
export
default
{
name
:
"index"
,
data
()
{
...
...
@@ -81,7 +82,7 @@
methods
:
{
save
()
{
console
.
log
(
this
.
mjftData
);
for
(
let
val
of
this
.
mjftData
.
addQjZdftdzwRequestList
){
for
(
let
val
of
this
.
mjftData
.
addQjZdftdzwRequestList
)
{
if
(
val
.
dzwdm
==
''
)
{
Message
.
error
(
"定着物代码不能为空"
)
return
...
...
@@ -90,9 +91,9 @@
savemjft
(
this
.
mjftData
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
success
){
if
(
res
.
success
)
{
Message
.
success
(
"保存成功"
)
}
else
{
}
else
{
Message
.
error
(
res
.
message
)
}
}).
catch
(
error
=>
{
...
...
@@ -169,13 +170,21 @@
console
.
log
(
"create init..."
)
},
mounted
()
{
// 暂时随机生成 后续从调查表继承过来
this
.
mjftData
.
zdbsm
=
'ZDDM'
+
parseInt
(
Math
.
random
()
*
100
)
this
.
mjftData
.
zdmj
=
(
Math
.
random
()
*
1000
).
toFixed
(
3
)
let
zl
=
[
'西安'
,
'咸阳'
,
'雁塔区'
,
'高新区'
,
'未央区'
,
'莲湖区'
,
'临潼区'
]
let
i
=
parseInt
(
Math
.
random
()
*
7
,
10
);
this
.
mjftData
.
tdzl
=
zl
[
i
]
console
.
log
(
"mounted init..."
)
},
watch
:
{
"$store.state.zdbsm"
:
function
(
bsm
)
{
alert
(
"面积分摊表 宗地标识码"
+
bsm
)
this
.
mjftData
.
zdbsm
=
bsm
},
"$store.state.zdmj"
:
function
(
zdmj
)
{
alert
(
"面积分摊表 宗地面积"
+
zdmj
)
this
.
mjftData
.
zdmj
=
zdmj
},
"$store.state.zdzl"
:
function
(
tdzl
)
{
alert
(
"面积分摊表 土地坐落"
+
tdzl
)
this
.
mjftData
.
tdzl
=
tdzl
},
}
}
</
script
>
...
...
src/views/systemZD/zddcb/index.vue
View file @
7f5fbad
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment