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
bd36467b
authored
2020-10-22 18:45:18 +0800
by
焦泽平
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/renchao/CadastralSystem
2 parents
c77667b4
543e13c6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
601 additions
and
546 deletions
src/App.vue
src/api/qlr.js
src/components/formMenu/qlr.vue
src/components/formMenu/qlxz.vue
src/store/index.js
src/views/Home.vue
src/views/panel/search/index.vue
src/views/systemZD/zddcb/index.vue
src/views/systemZRZ/zrzxx/index.vue
src/App.vue
View file @
bd36467
...
...
@@ -5,31 +5,14 @@
</
template
>
<
script
>
import
{
getDdicByMC
}
from
"../src/api/common"
;
export
default
{
mounted
()
{
this
.
getDic
();
window
.
addEventListener
(
"unload"
,
this
.
saveState
);
},
methods
:
{
saveState
()
{
sessionStorage
.
setItem
(
"state"
,
JSON
.
stringify
(
this
.
$store
.
state
));
},
//请求字典数据
getDic
()
{
let
s
=
this
.
$store
.
state
;
s
.
zjzlList
=
s
.
zjzlList
.
length
==
0
?
this
.
getDicData
(
"证件种类"
)
:
s
.
zjzlList
;
s
.
gjList
=
s
.
gjList
.
length
==
0
?
this
.
getDicData
(
"国家和地区"
)
:
s
.
gjList
;
s
.
ssList
=
s
.
ssList
.
length
==
0
?
this
.
getDicData
(
"省市"
)
:
s
.
ssList
;
s
.
qlrlxList
=
s
.
qlrlxList
.
length
==
0
?
this
.
getDicData
(
"权利人类型"
)
:
s
.
qlrlxList
;
s
.
xbList
=
s
.
xbList
.
length
==
0
?
this
.
getDicData
(
"性别"
)
:
s
.
xbList
;
s
.
sshyList
=
s
.
sshyList
.
length
==
0
?
this
.
getDicData
(
"国民经济行业分类代码"
)
:
s
.
sshyList
;
},
getDicData
(
name
)
{
getDdicByMC
(
name
).
then
((
res
)
=>
{
return
res
.
result
;
});
},
},
};
</
script
>
...
...
src/api/qlr.js
0 → 100644
View file @
bd36467
import
request
from
'@/plugin/axios'
/**
* 新增权利人法人代理人
*/
export
function
insertQlrDlrFr
(
data
)
{
return
request
({
url
:
'/system/Qlr/insertQlrDlrFr'
,
method
:
'post'
,
data
:
data
,
})
}
/**
* 根据glbsm查询qlr信息
*/
export
function
getQlrInfoByGlbsm
(
data
)
{
return
request
({
url
:
'/system/Qlr/getQlrByGlbsm'
,
method
:
'get'
,
params
:
{
glbsm
:
data
},
})
}
\ No newline at end of file
src/components/formMenu/qlr.vue
View file @
bd36467
...
...
@@ -61,7 +61,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.qlrlxbsm"
>
<el-option
v-for=
"item in qlrlxList"
v-for=
"item in
$store.state.
qlrlxList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -75,7 +75,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.zjzlbsm"
>
<el-option
v-for=
"item in
zl
zlList"
v-for=
"item in
$store.state.zj
zlList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -103,7 +103,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.gjbsm"
>
<el-option
v-for=
"item in gjList"
v-for=
"item in
$store.state.
gjList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -115,7 +115,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.hjszssbsm"
>
<el-option
v-for=
"item in ssList"
v-for=
"item in
$store.state.
ssList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -129,7 +129,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.xbbsm"
>
<el-option
v-for=
"item in xbList"
v-for=
"item in
$store.state.
xbList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -147,7 +147,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.sshy"
>
<el-option
v-for=
"item in sshyList"
v-for=
"item in
$store.state.
sshyList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -176,7 +176,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.fr.zjzlbsm"
>
<el-option
v-for=
"item in zjzlList"
v-for=
"item in
$store.state.
zjzlList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -199,7 +199,7 @@
<td
colspan=
"10"
>
代理人信息
</td>
</tr>
<template
v-for=
"(item, index) in formData.dlr"
>
<tr
:key=
"item.
zjh
"
>
<tr
:key=
"item.
index
"
>
<td
rowspan=
"2"
class=
"btnCol"
>
<el-button
type=
"primary"
...
...
@@ -222,7 +222,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"item.zjzlbsm"
>
<el-option
v-for=
"item in zjzlList"
v-for=
"item in
$store.state.
zjzlList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -231,7 +231,8 @@
</el-select>
</td>
</tr>
<tr
:key=
"item.dh"
>
<!--
<tr
:key=
"item.dh"
>
-->
<tr
:key=
"'dh'+item.index"
>
<td>
证件号码
</td>
<td
colspan=
"3"
>
<input
type=
"text"
class=
"formInput"
v-model=
"item.zjh"
/>
...
...
@@ -251,7 +252,7 @@
<td
colspan=
"3"
>
<el-select
class=
"formSelect"
v-model=
"formData.gyfsbsm"
>
<el-option
v-for=
"item in
qlrlx
List"
v-for=
"item in
$store.state.gyfs
List"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -283,7 +284,7 @@
</table>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"
dialogVisible = false
"
<el-button
type=
"primary"
@
click=
"
addNewQlrInfo
"
>
确 定
</el-button
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
...
...
@@ -293,20 +294,30 @@
</template>
<
script
>
export
default
{
import
{
getDdicByMC
}
from
"../../api/common"
;
import
{
insertQlrDlrFr
,
getQlrInfoByGlbsm
}
from
"../../api/qlr"
;
export
default
{
props
:
{
widtd
:
{
type
:
String
,
default
:
"70%"
,
},
title
:
{
type
:
String
,
default
:
""
,
},
topHeight
:
{
type
:
String
,
default
:
"15vh"
,
// widtd: {
// type: String,
// default: "70%",
// },
// title: {
// type: String,
// default: "",
// },
// topHeight: {
// type: String,
// default: "15vh",
// },
lx
:
{
type
:
String
,
},
bsm
:
{
type
:
String
,
required
:
true
}
},
data
()
{
return
{
...
...
@@ -316,6 +327,7 @@ export default {
multipleSelection
:
{},
dialogVisible
:
false
,
formData
:
{
addQjDlrFrRequest
:[],
dlr
:
[
{
dh
:
""
,
...
...
@@ -356,12 +368,13 @@ export default {
zjh
:
""
,
zjzlbsm
:
""
,
},
qlrlxList
:
this
.
$store
.
state
.
qlrlxList
,
zjzlList
:
this
.
$store
.
state
.
zjzlList
,
xbList
:
this
.
$store
.
state
.
xbList
,
gjList
:
this
.
$store
.
state
.
gjList
,
ssList
:
this
.
$store
.
state
.
ssList
,
sshyList
:
this
.
$store
.
state
.
sshyList
,
// qlrlxList: [],
// zjzlList: [],
// gjList: [],
// ssList: [],
// xbList: [],
// sshyList: [],
// gyfsList: [],
};
},
methods
:
{
...
...
@@ -376,6 +389,25 @@ export default {
this
.
dialogVisible
=
true
;
}
},
addNewQlrInfo
(){
//todo 权利人页面调整
this
.
formData
.
glbsm
=
this
.
bsm
;
//将代理人,法人数据合在一起,名称为addQjDlrFrRequest;
//法人的type字段类型为0
this
.
formData
.
fr
.
type
=
0
;
this
.
formData
.
addQjDlrFrRequest
.
push
(
this
.
formData
.
fr
);
for
(
let
k
=
0
;
k
<
this
.
formData
.
dlr
.
length
;
k
++
){
this
.
formData
.
dlr
[
k
].
type
=
1
;
this
.
formData
.
addQjDlrFrRequest
.
push
(
this
.
formData
.
dlr
[
k
]);
}
insertQlrDlrFr
(
this
.
formData
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
tableData
.
push
(
this
.
formData
);
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
())
this
.
dialogVisible
=
false
;
}
})
},
//修改行数据
changeRow
()
{
if
(
this
.
multipleSelection
.
length
==
1
)
{
...
...
@@ -442,8 +474,27 @@ export default {
});
}
},
getQlrInfo
(){
console
.
log
(
"==========================="
)
console
.
log
(
this
.
bsm
)
getQlrInfoByGlbsm
(
this
.
bsm
).
then
((
res
)
=>
{
if
(
res
.
code
){
if
(
res
.
result
!=
null
){
this
.
tableData
=
res
.
result
;
}
}
})
}
},
};
created
(){
console
.
log
(
"===========================cres"
)
console
.
log
(
this
.
bsm
)
this
.
getQlrInfo
();
},
mounted
()
{
}
};
</
script
>
<
style
lang=
"less"
>
.temp
{
...
...
src/components/formMenu/qlxz.vue
View file @
bd36467
...
...
@@ -211,14 +211,12 @@ export default {
getDicData
(){
getDdicByMC
(
"土地用途"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
this
.
pzytList
=
res
.
result
;
this
.
sjytList
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
getDdicByMC
(
"土地等级"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
this
.
djList
=
res
.
result
;
})
.
catch
((
error
)
=>
{});
...
...
src/store/index.js
View file @
bd36467
...
...
@@ -5,25 +5,29 @@ import user from './modules/user'
import
permission_routes
from
'./modules/permission_routes'
import
setTabs
from
'./modules/setTabs'
Vue
.
use
(
Vuex
)
Vue
.
use
(
Vuex
);
const
store
=
new
Vuex
.
Store
({
state
:
sessionStorage
.
getItem
(
'state'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'state'
))
:
{
zdbsm
:
''
,
xzqList
:
[],
djqList
:
[],
djzqList
:
[],
qllxList
:
[],
zdtzmList
:
[],
qlsdfsList
:
[],
zjzlList
:[],
gjList
:[],
ssList
:[],
qlrlxList
:[],
xbList
:[],
sshyList
:[],
xzqList
:
[],
djqList
:
[],
djzqList
:
[],
//创建自然幢时需要用到的临时存储信息
zrzbsm
:
''
,
xmmc
:
''
,
zdmj
:
''
,
zdzl
:
''
zdzl
:
''
,
zjlxList
:
[],
gyfsList
:
[],
},
modules
:
{
user
,
...
...
src/views/Home.vue
View file @
bd36467
<
template
>
<div
class=
"home-box"
>
<el-container>
<el-aside
:class=
"
{ 'aside-show': isActive }">
<div
class=
"logo-box"
:class=
"
{ 'logo-box-show': isActive }">
<img
class=
"logo-img"
src=
"@/assets/images/logo-realestate.png"
alt=
""
/>
<span
class=
"logo-text"
v-show=
"!textLogo"
>
不动产权籍调查系统
</span>
</div>
<div
class=
"treeModule"
>
<LineTree
:pd=
"pd"
@
itemClick=
"itemClick"
></LineTree>
</div>
</el-aside>
<el-container>
<el-header
height=
"100px"
>
<div
class=
"header-top"
>
<div
class=
"top-items"
@
click=
"toggleClick"
>
<i
class=
"fa fa-outdent hamburger"
v-show=
"!isActive"
></i>
<i
class=
"fa fa-indent hamburger"
v-show=
"isActive"
></i>
</div>
<div
class=
"top-items"
v-for=
"(item, index) in headTop"
:key=
"index + '1'"
:class=
"
{ 'is-active': item.select }"
@click="selectTopItems(index)"
>
<i
:class=
"item.icon"
></i>
<span>
{{
item
.
name
}}
</span>
</div>
</div>
<div
class=
"header-bottom"
>
<Navigation
ref=
"navigation"
></Navigation>
</div>
<el-dialog
title=
"新建"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<Create
@
closeDialog=
"closeDialog"
></Create>
</el-dialog>
</el-header>
<el-main>
<router-view/>
</el-main>
</el-container>
</el-container>
</div>
<div
class=
"home-box"
>
<el-container>
<el-aside
:class=
"
{ 'aside-show': isActive }">
<div
class=
"logo-box"
:class=
"
{ 'logo-box-show': isActive }">
<img
class=
"logo-img"
src=
"@/assets/images/logo-realestate.png"
alt=
""
/>
<span
class=
"logo-text"
v-show=
"!textLogo"
>
不动产权籍调查系统
</span>
</div>
<div
class=
"treeModule"
>
<LineTree
:pd=
"pd"
@
itemClick=
"itemClick"
></LineTree>
</div>
</el-aside>
<el-container>
<el-header>
<div
class=
"header-top"
>
<div
class=
"top-items"
@
click=
"toggleClick"
>
<i
class=
"fa fa-outdent hamburger"
v-show=
"!isActive"
></i>
<i
class=
"fa fa-indent hamburger"
v-show=
"isActive"
></i>
</div>
<div
class=
"top-items"
v-for=
"(item, index) in headTop"
:key=
"index + '1'"
:class=
"
{ 'is-active': item.select }"
@click="selectTopItems(index)"
>
<i
:class=
"item.icon"
></i>
<span>
{{
item
.
name
}}
</span>
</div>
</div>
<!--
<div
class=
"header-bottom"
>
<Navigation
ref=
"navigation"
></Navigation>
</div>
-->
<el-dialog
title=
"新建"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<Create
@
closeDialog=
"closeDialog"
></Create>
</el-dialog>
</el-header>
<el-main>
<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"
;
import
{
getTree
}
from
"../api/common"
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
,
getDdicByMC
}
from
"../api/common"
;
export
default
{
components
:
{
Navigation
,
LineTree
,
Create
,
},
data
()
{
return
{
navigationList
:
[],
isActive
:
false
,
textLogo
:
false
,
activePath
:
""
,
defaultActive
:
""
,
headTop
:
[
{
path
:
"/create"
,
select
:
false
,
},
{
path
:
"/add"
,
select
:
false
,
},
{
path
:
"/modify"
,
select
:
false
,
},
{
path
:
"/change"
,
select
:
false
,
},
{
path
:
"/search"
,
select
:
false
,
},
],
tempTab
:
[
{
path
:
"/zrz"
,
name
:
"自然幢"
,
},
{
path
:
"/dz"
,
name
:
"多幢"
,
},
{
path
:
"/h"
,
name
:
"户"
,
},
{
path
:
"/zd"
,
name
:
"宗地"
,
},
],
// 上导航选中id
indId
:
undefined
,
menuList
:
[],
pathAndCodeObj
:
{
"/article-draft"
:
"PSH004"
,
"/article-publish"
:
"PSH005"
,
"/article-recycle"
:
"PSH006"
,
"/notice-draft"
:
"PSH007"
,
"/notice-publish"
:
"PSH008"
,
"/notice-recycle"
:
"PSH009"
,
"/column_management"
:
"PSH018"
,
"/announcement_template"
:
"PSH019"
,
"/business_management"
:
"PSH020"
,
},
pd
:
[
{
mc
:
"行政区(1)"
,
children
:
[],
},
{
mc
:
"行政区(2)"
,
children
:
[
{
mc
:
"地籍区1"
,
children
:
[],
},
{
mc
:
"地籍区2"
,
children
:
[
{
mc
:
"国有"
,
children
:
[
{
mc
:
"宗地代码1933"
,
isZD
:
true
,
},
{
mc
:
"自然幢2100"
,
isZD
:
false
,
},
],
},
],
},
{
label
:
"地籍区3"
,
children
:
[],
},
{
label
:
"地籍区4"
,
children
:
[],
},
],
},
{
mc
:
"行政区(3)"
,
children
:
[],
},
{
mc
:
"行政区(4)"
,
children
:
[],
},
{
mc
:
"行政区(5)"
,
children
:
[],
},
],
dialogVisible
:
false
,
};
},
computed
:
{
permission_routes
()
{
return
this
.
$store
.
state
.
permission_routes
.
navigation
;
},
},
watch
:
{
"$route.path"
:
function
(
newPath
)
{
//监测路由变化,高亮顶部导航
this
.
headTop
.
forEach
((
item
,
index
)
=>
{
item
.
select
=
false
;
if
(
item
.
path
==
newPath
)
{
item
.
select
=
true
;
}
});
if
(
newPath
==
'/zd'
){
this
.
getRightTree
(
this
.
$store
.
state
.
zdbsm
)
}
},
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getRightTree
(
bsm
)
}
},
created
()
{
if
(
this
.
$route
.
meta
)
{
this
.
defaultActive
=
this
.
$route
.
meta
.
code
;
}
if
(
this
.
permission_routes
.
length
!==
0
)
{
this
.
navigationList
=
this
.
permission_routes
;
}
else
{
// let list = JSON.parse(util.cookies.get('navigation-1')).concat(JSON.parse(util.cookies.get('navigation')))
//mock数据
let
list
=
[
{
name
:
"新建"
,
icon
:
"fa fa-address-card-o"
,
path
:
"/create"
,
},
{
name
:
"添加"
,
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
:
"/change"
,
},
{
name
:
"综合查询"
,
icon
:
"fa fa-address-card-o"
,
path
:
"/search"
,
},
];
this
.
navigationList
=
list
;
}
this
.
sortNavigation
(
this
.
navigationList
,
0
);
// if (util.cookies.get("indId")) {
// let indId = util.cookies.get("indId") - 0;
// this.navSelect(indId);
// this.sortNavigation(this.navigationList, indId);
// }
},
methods
:
{
getRightTree
(
bsm
)
{
getTree
(
bsm
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
pd
=
res
.
result
}
})
},
sortNavigation
(
data
,
selectId
)
{
let
headTop
=
this
.
headTop
;
data
.
forEach
((
item
,
index
)
=>
{
headTop
[
index
].
name
=
item
.
name
;
headTop
[
index
].
icon
=
item
.
icon
;
});
},
// menuSelect(data, selectId) {
// this.menuList = data[selectId].children;
// },
handleOpen
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
},
handleClose
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
},
toggleClick
()
{
this
.
isActive
=
!
this
.
isActive
;
if
(
!
this
.
isActive
)
{
setTimeout
(()
=>
{
this
.
textLogo
=
this
.
isActive
;
},
200
);
}
else
{
this
.
textLogo
=
this
.
isActive
;
}
},
selectTopItems
(
ind
)
{
if
(
ind
==
0
)
{
//点击新建,弹框
this
.
dialogVisible
=
true
;
}
else
{
this
.
dialogVisible
=
false
;
this
.
indId
=
ind
;
// this.menuSelect(this.navigationList, ind);
// this.$store.dispatch("setTabs/init_tabs");
// this.$store.dispatch("setTabs/set_active_index", "/panel");
this
.
$router
.
push
(
this
.
headTop
[
ind
].
path
);
this
.
navSelect
(
ind
);
// util.cookies.set("indId", ind);
}
},
// 上导航选中id
navSelect
(
id
)
{
this
.
headTop
.
forEach
((
item
,
index
)
=>
{
item
.
select
=
false
;
if
(
index
==
id
)
{
item
.
select
=
true
;
}
});
},
//树控件点击事件
itemClick
(
data
)
{
console
.
log
(
data
);
},
//关闭新建子组件弹框
closeDialog
()
{
this
.
dialogVisible
=
false
;
}
},
};
export
default
{
components
:
{
// Navigation,
LineTree
,
Create
,
},
data
()
{
return
{
navigationList
:
[],
isActive
:
false
,
textLogo
:
false
,
activePath
:
""
,
defaultActive
:
""
,
headTop
:
[
{
path
:
"/create"
,
select
:
false
,
},
{
path
:
"/add"
,
select
:
false
,
},
{
path
:
"/modify"
,
select
:
false
,
},
{
path
:
"/change"
,
select
:
false
,
},
{
path
:
"/search"
,
select
:
false
,
},
],
tempTab
:
[
{
path
:
"/zrz"
,
name
:
"自然幢"
,
},
{
path
:
"/dz"
,
name
:
"多幢"
,
},
{
path
:
"/h"
,
name
:
"户"
,
},
{
path
:
"/zd"
,
name
:
"宗地"
,
},
],
// 上导航选中id
indId
:
undefined
,
menuList
:
[],
pathAndCodeObj
:
{
"/article-draft"
:
"PSH004"
,
"/article-publish"
:
"PSH005"
,
"/article-recycle"
:
"PSH006"
,
"/notice-draft"
:
"PSH007"
,
"/notice-publish"
:
"PSH008"
,
"/notice-recycle"
:
"PSH009"
,
"/column_management"
:
"PSH018"
,
"/announcement_template"
:
"PSH019"
,
"/business_management"
:
"PSH020"
,
},
pd
:
[
{
mc
:
"行政区(1)"
,
children
:
[],
},
{
mc
:
"行政区(2)"
,
children
:
[
{
mc
:
"地籍区1"
,
children
:
[],
},
{
mc
:
"地籍区2"
,
children
:
[
{
mc
:
"国有"
,
children
:
[
{
mc
:
"宗地代码1933"
,
isZD
:
true
,
},
{
mc
:
"自然幢2100"
,
isZD
:
false
,
},
],
},
],
},
{
label
:
"地籍区3"
,
children
:
[],
},
{
label
:
"地籍区4"
,
children
:
[],
},
],
},
{
mc
:
"行政区(3)"
,
children
:
[],
},
{
mc
:
"行政区(4)"
,
children
:
[],
},
{
mc
:
"行政区(5)"
,
children
:
[],
},
],
dialogVisible
:
false
,
};
},
computed
:
{
permission_routes
()
{
return
this
.
$store
.
state
.
permission_routes
.
navigation
;
},
},
watch
:
{
"$route.path"
:
function
(
newPath
)
{
//监测路由变化,高亮顶部导航
this
.
headTop
.
forEach
((
item
,
index
)
=>
{
item
.
select
=
false
;
if
(
item
.
path
==
newPath
)
{
item
.
select
=
true
;
}
});
if
(
newPath
==
"/zd"
)
{
this
.
getRightTree
(
this
.
$store
.
state
.
zdbsm
);
}
},
"$store.state.zdbsm"
:
function
(
bsm
)
{
this
.
getRightTree
(
bsm
);
},
},
created
()
{
if
(
this
.
$route
.
meta
)
{
this
.
defaultActive
=
this
.
$route
.
meta
.
code
;
}
if
(
this
.
permission_routes
.
length
!==
0
)
{
this
.
navigationList
=
this
.
permission_routes
;
}
else
{
// let list = JSON.parse(util.cookies.get('navigation-1')).concat(JSON.parse(util.cookies.get('navigation')))
//mock数据
let
list
=
[
{
name
:
"新建"
,
icon
:
"fa fa-address-card-o"
,
path
:
"/create"
,
},
{
name
:
"添加"
,
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
:
"/change"
,
},
{
name
:
"综合查询"
,
icon
:
"fa fa-address-card-o"
,
path
:
"/search"
,
},
];
this
.
navigationList
=
list
;
}
this
.
sortNavigation
(
this
.
navigationList
,
0
);
// if (util.cookies.get("indId")) {
// let indId = util.cookies.get("indId") - 0;
// this.navSelect(indId);
// this.sortNavigation(this.navigationList, indId);
// }
this
.
getDic
();
},
methods
:
{
//请求字典数据
async
getDic
()
{
let
s
=
this
.
$store
.
state
;
s
.
zjzlList
=
s
.
zjzlList
.
length
==
0
?
await
this
.
getDicData
(
"证件种类"
)
:
s
.
zjzlList
;
s
.
gjList
=
s
.
gjList
.
length
==
0
?
await
this
.
getDicData
(
"国家和地区"
)
:
s
.
gjList
;
s
.
ssList
=
s
.
ssList
.
length
==
0
?
await
this
.
getDicData
(
"省市"
)
:
s
.
ssList
;
s
.
qlrlxList
=
s
.
qlrlxList
.
length
==
0
?
await
this
.
getDicData
(
"权利人类型"
)
:
s
.
qlrlxList
;
s
.
xbList
=
s
.
xbList
.
length
==
0
?
await
this
.
getDicData
(
"性别"
)
:
s
.
xbList
;
s
.
sshyList
=
s
.
sshyList
.
length
==
0
?
await
this
.
getDicData
(
"所属行业"
)
:
s
.
sshyList
;
s
.
qllxList
=
s
.
qllxList
.
length
==
0
?
await
this
.
getDicData
(
"权利类型"
)
:
s
.
qllxList
;
s
.
zdtzmList
=
s
.
zdtzmList
.
length
==
0
?
await
this
.
getDicData
(
"宗地(宗海)特征码"
)
:
s
.
sshyList
;
s
.
qlsdfsList
=
s
.
qlsdfsList
.
length
==
0
?
await
this
.
getDicData
(
"权利设定方式"
)
:
s
.
qlsdfsList
;
s
.
gyfsList
=
s
.
gyfsList
.
length
==
0
?
await
this
.
getDicData
(
"共有方式"
)
:
s
.
gyfsList
;
},
async
getDicData
(
name
)
{
return
await
getDdicByMC
(
name
).
then
((
res
)
=>
{
return
res
.
result
});
},
getRightTree
(
bsm
)
{
getTree
(
bsm
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
pd
=
res
.
result
;
}
});
},
sortNavigation
(
data
,
selectId
)
{
let
headTop
=
this
.
headTop
;
data
.
forEach
((
item
,
index
)
=>
{
headTop
[
index
].
name
=
item
.
name
;
headTop
[
index
].
icon
=
item
.
icon
;
});
},
// menuSelect(data, selectId) {
// this.menuList = data[selectId].children;
// },
handleOpen
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
},
handleClose
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
},
toggleClick
()
{
this
.
isActive
=
!
this
.
isActive
;
if
(
!
this
.
isActive
)
{
setTimeout
(()
=>
{
this
.
textLogo
=
this
.
isActive
;
},
200
);
}
else
{
this
.
textLogo
=
this
.
isActive
;
}
},
selectTopItems
(
ind
)
{
if
(
ind
==
0
)
{
//点击新建,弹框
this
.
dialogVisible
=
true
;
}
else
{
this
.
dialogVisible
=
false
;
this
.
indId
=
ind
;
// this.menuSelect(this.navigationList, ind);
// this.$store.dispatch("setTabs/init_tabs");
// this.$store.dispatch("setTabs/set_active_index", "/panel");
this
.
$router
.
push
(
this
.
headTop
[
ind
].
path
);
this
.
navSelect
(
ind
);
// util.cookies.set("indId", ind);
}
},
// 上导航选中id
navSelect
(
id
)
{
this
.
headTop
.
forEach
((
item
,
index
)
=>
{
item
.
select
=
false
;
if
(
index
==
id
)
{
item
.
select
=
true
;
}
});
},
//树控件点击事件
itemClick
(
data
)
{
console
.
log
(
data
);
},
//关闭新建子组件弹框
closeDialog
()
{
this
.
dialogVisible
=
false
;
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.home-box
{
width
:
100%
;
height
:
100vh
;
.el-container
{
height
:
100%
;
}
.el-header
{
background-color
:
#fff
;
padding
:
0
!important
;
.header-top
{
height
:
60px
;
border-bottom
:
1px
solid
rgba
(
242
,
242
,
242
,
1
);
box-sizing
:
border-box
;
.top-items
{
cursor
:
pointer
;
height
:
60px
;
padding
:
0
30px
;
font-size
:
16px
;
line-height
:
60px
;
float
:
left
;
position
:
relative
;
color
:
#4a4a4a
;
i
{
margin-right
:
6px
;
}
.hamburger
{
font-size
:
16px
;
line-height
:
60px
;
color
:
#000
;
}
}
.top-items
:not
(
:last-child
)
::after
{
content
:
""
;
width
:
1px
;
height
:
14px
;
background
:
#eaeaea
;
position
:
absolute
;
right
:
-1px
;
top
:
24px
;
}
.top-items.is-active
{
color
:
#006cff
;
}
}
.header-bottom
{
height
:
50px
;
box-shadow
:
0px
2px
4px
0px
rgba
(
222
,
222
,
222
,
0.7
);
border-bottom
:
1px
solid
rgba
(
234
,
234
,
234
,
1
);
box-sizing
:
border-box
;
}
}
.el-aside
{
width
:
290px
!important
;
background-color
:
#1d50dd
;
color
:
#333
;
//
text-align
:
center
;
overflow
:
hidden
;
transition
:
width
0.3s
;
.logo-box
{
width
:
100%
;
height
:
120px
;
border-bottom
:
1px
solid
rgba
(
255
,
255
,
255
,
0.2
);
padding
:
30px
0
28px
0
;
box-sizing
:
border-box
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
align-items
:
center
;
transition
:
width
0.3s
;
.logo-img
{
width
:
38px
;
height
:
38px
;
}
.logo-text
{
font-size
:
14px
;
color
:
rgba
(
255
,
255
,
255
,
1
);
line-height
:
14px
;
}
}
.treeModule
{
box-sizing
:
border-box
;
padding
:
20px
20px
;
}
.logo-box-show
{
width
:
64px
;
}
.el-menu
{
border-right
:
0
;
}
.el-submenu
.el-menu-item
{
text-align
:
left
;
text-indent
:
15px
;
}
}
.aside-show
{
width
:
64px
!important
;
}
.home-box
{
width
:
100%
;
height
:
100vh
;
.el-container
{
height
:
100%
;
}
.el-header
{
background-color
:
#fff
;
padding
:
0
!important
;
.header-top
{
height
:
60px
;
border-bottom
:
1px
solid
rgba
(
242
,
242
,
242
,
1
);
box-sizing
:
border-box
;
.top-items
{
cursor
:
pointer
;
height
:
60px
;
padding
:
0
30px
;
font-size
:
16px
;
line-height
:
60px
;
float
:
left
;
position
:
relative
;
color
:
#4a4a4a
;
i
{
margin-right
:
6px
;
}
.hamburger
{
font-size
:
16px
;
line-height
:
60px
;
color
:
#000
;
}
}
.top-items
:not
(
:last-child
)
::after
{
content
:
""
;
width
:
1px
;
height
:
14px
;
background
:
#eaeaea
;
position
:
absolute
;
right
:
-1px
;
top
:
24px
;
}
.top-items.is-active
{
color
:
#006cff
;
}
}
.header-bottom
{
height
:
50px
;
box-shadow
:
0px
2px
4px
0px
rgba
(
222
,
222
,
222
,
0.7
);
border-bottom
:
1px
solid
rgba
(
234
,
234
,
234
,
1
);
box-sizing
:
border-box
;
}
}
.el-aside
{
width
:
290px
!important
;
background-color
:
#1d50dd
;
color
:
#333
;
//
text-align
:
center
;
overflow
:
hidden
;
transition
:
width
0.3s
;
.logo-box
{
width
:
100%
;
height
:
120px
;
border-bottom
:
1px
solid
rgba
(
255
,
255
,
255
,
0.2
);
padding
:
30px
0
28px
0
;
box-sizing
:
border-box
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
align-items
:
center
;
transition
:
width
0.3s
;
.logo-img
{
width
:
38px
;
height
:
38px
;
}
.logo-text
{
font-size
:
14px
;
color
:
rgba
(
255
,
255
,
255
,
1
);
line-height
:
14px
;
}
}
.treeModule
{
box-sizing
:
border-box
;
padding
:
20px
20px
;
}
.logo-box-show
{
width
:
64px
;
}
.el-menu
{
border-right
:
0
;
}
.el-submenu
.el-menu-item
{
text-align
:
left
;
text-indent
:
15px
;
}
}
.aside-show
{
width
:
64px
!important
;
}
.el-main
{
background-color
:
#f1f4fc
;
color
:
#333
;
//
text-align
:
center
;
//
line-height
:
160px
;
padding
:
0
;
}
}
.el-main
{
background-color
:
#f1f4fc
;
color
:
#333
;
//
text-align
:
center
;
//
line-height
:
160px
;
padding
:
0
;
}
}
</
style
>
...
...
src/views/panel/search/index.vue
View file @
bd36467
<
template
>
<div
class=
"main"
>
<SearchHead
@
getSearchCondition=
"getData"
></SearchHead>
<SearchHead
@
getSearchCondition=
"ge
Query
tData"
></SearchHead>
<div
class=
"dataGrid"
ref=
"dataGrid"
>
<el-table
:data=
"tableData"
...
...
@@ -36,8 +36,7 @@
</el-table>
<div
class=
"pagination"
>
<el-pagination
background
layout=
"prev, pager, next"
:total=
"total"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
>
:current-page=
"pageNo"
@
current-change=
"handleCurrentChange"
>
</el-pagination>
</div>
</div>
...
...
@@ -54,11 +53,12 @@
props
:
{},
data
()
{
return
{
total
:
0
,
total
:
0
,
pageNo
:
1
,
pageSize
:
10
,
tableData
:
[],
tableHeight
:
""
,
queryData
:
{}
};
},
created
()
{
...
...
@@ -80,19 +80,24 @@
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
);
this
.
pageNo
=
val
;
this
.
getData
({});
this
.
queryData
.
pageNo
=
val
;
this
.
getData
(
this
.
queryData
);
},
//获取子组件点击查询触发的事件
getData
(
obj
)
{
console
.
log
(
obj
);
//将obj作为参数调用接口查询表格数据
obj
[
'pageNo'
]
=
this
.
pageNo
obj
[
'pageSize'
]
=
this
.
pageSize
getSearchList
(
obj
).
then
(
res
=>
{
getData
(
data
)
{
getSearchList
(
data
).
then
(
res
=>
{
this
.
tableData
=
res
.
result
.
records
this
.
total
=
res
.
result
.
total
this
.
total
=
res
.
result
.
total
})
},
//获取子组件点击查询触发的事件
geQuerytData
(
obj
)
{
this
.
queryData
=
obj
//将obj作为参数调用接口查询表格数据
this
.
queryData
[
'pageSize'
]
=
this
.
pageSize
this
.
pageNo
=
1
this
.
queryData
[
'pageNo'
]
=
1
this
.
getData
(
this
.
queryData
)
},
//点击办理
handleClick
(
row
)
{
let
path
=
""
;
...
...
src/views/systemZD/zddcb/index.vue
View file @
bd36467
...
...
@@ -2,7 +2,6 @@
<div
class=
"main"
>
<div
class=
"formMenu"
>
<Qlr
ref=
"qlrxxModule"
></Qlr>
<!--
<el-button
type=
"primary"
class=
"changeBtn"
...
...
@@ -28,7 +27,7 @@
@
change=
"changeXzq(formData.xzqbsm)"
>
<el-option
v-for=
"item in xzqList"
v-for=
"item in
$store.state.
xzqList"
:key=
"item.xzqbsm"
:label=
"item.xzqmc"
:value=
"item.xzqbsm"
...
...
@@ -44,7 +43,7 @@
@
change=
"changeDjq(formData.djqbsm)"
>
<el-option
v-for=
"item in djqList"
v-for=
"item in
$store.state.
djqList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -56,7 +55,7 @@
<td
colspan=
"2"
>
<el-select
class=
"formSelect"
v-model=
"formData.djzqbsm"
>
<el-option
v-for=
"item in djzqList"
v-for=
"item in
$store.state.
djzqList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -70,7 +69,7 @@
<td
colspan=
"4"
>
<el-select
class=
"formSelect"
v-model=
"formData.qllxbsm"
>
<el-option
v-for=
"item in qllxList"
v-for=
"item in
$store.state.
qllxList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -82,7 +81,7 @@
<td
colspan=
"4"
>
<el-select
class=
"formSelect"
v-model=
"formData.zdtzmbsm"
>
<el-option
v-for=
"item in zdtzmList"
v-for=
"item in
$store.state.
zdtzmList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -96,7 +95,7 @@
<td
colspan=
"4"
>
<el-select
class=
"formSelect"
v-model=
"formData.qlsdfs"
>
<el-option
v-for=
"item in qlsdfsList"
v-for=
"item in
$store.state.
qlsdfsList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
...
...
@@ -152,7 +151,7 @@
<td
colspan=
"4"
>
<el-select
class=
"formSelect"
v-model=
"formData.gmjjhyfl"
>
<el-option
v-for=
"item in
gmjjhyfl
List"
v-for=
"item in
$store.state.sshy
List"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
...
...
@@ -180,8 +179,8 @@
</tr>
<tr>
<td
colspan=
"2"
>
容积率
</td>
<td
colspan=
"
4
"
>
<el-select
class=
"formSelect
percent30
"
v-model=
"formData.rjl"
>
<td
colspan=
"
2
"
>
<el-select
class=
"formSelect"
v-model=
"formData.rjl"
>
<el-option
v-for=
"item in compareList"
:key=
"item.value"
...
...
@@ -190,7 +189,9 @@
>
</el-option>
</el-select>
<input
type=
"text"
class=
"formInput percent68"
/>
</td>
<td
colspan=
"2"
>
<input
type=
"text"
class=
"formInput"
/>
</td>
<td
colspan=
"2"
>
容积说明
</td>
<td
colspan=
"4"
class=
"psr"
>
...
...
@@ -199,8 +200,8 @@
</tr>
<tr>
<td
colspan=
"2"
>
建筑密度
</td>
<td
colspan=
"
4
"
>
<el-select
class=
"formSelect
percent30
"
v-model=
"formData.jzmd"
>
<td
colspan=
"
2
"
>
<el-select
class=
"formSelect"
v-model=
"formData.jzmd"
>
<el-option
v-for=
"item in compareList"
:key=
"item.value"
...
...
@@ -209,7 +210,9 @@
>
</el-option>
</el-select>
<input
type=
"text"
class=
"formInput percent68"
/>
</td>
<td
colspan=
"2"
>
<input
type=
"text"
class=
"formInput"
/>
</td>
<td
colspan=
"2"
>
建筑密度说明
</td>
<td
colspan=
"4"
class=
"psr"
>
...
...
@@ -218,8 +221,8 @@
</tr>
<tr>
<td
colspan=
"2"
>
建筑限高
</td>
<td
colspan=
"
4
"
>
<el-select
class=
"formSelect
percent30
"
v-model=
"formData.jzxg"
>
<td
colspan=
"
2
"
>
<el-select
class=
"formSelect"
v-model=
"formData.jzxg"
>
<el-option
v-for=
"item in compareList"
:key=
"item.value"
...
...
@@ -228,6 +231,8 @@
>
</el-option>
</el-select>
</td>
<td
colspan=
"2"
>
<input
type=
"text"
class=
"formInput percent68"
/>
</td>
<td
colspan=
"2"
>
建筑限高说明
</td>
...
...
@@ -321,14 +326,9 @@
props
:
{},
data
()
{
return
{
qllxList
:
[],
zdtzmList
:
[],
qlsdfsList
:
[],
gmjjhyflList
:
[],
xzqList
:
this
.
$store
.
state
.
xzqList
,
djqList
:
this
.
$store
.
state
.
djqList
,
djzqList
:
this
.
$store
.
state
.
djzqList
,
compareList
:
[
{
label
:
"<"
,
value
:
"<"
},
{
label
:
">"
,
value
:
">"
},
{
label
:
"="
,
value
:
"="
},
{
label
:
"<="
,
value
:
"<="
},
{
label
:
">="
,
value
:
">="
},
...
...
@@ -369,7 +369,6 @@
};
},
created
()
{
this
.
getDicData
();
this
.
getZdjbxxData
();
},
mounted
()
{
...
...
@@ -407,37 +406,6 @@
getQlxzData
()
{
console
.
log
(
this
.
$refs
.
qlxzModule
.
getQlxzDataList
());
//权利性质数据
},
//获取字典数据信息
getDicData
()
{
getDdicByMC
(
"权利类型"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
this
.
qllxList
=
res
.
result
;
})
.
catch
((
error
)
=>
{
});
getDdicByMC
(
"宗地(宗海)特征码"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
this
.
zdtzmList
=
res
.
result
;
})
.
catch
((
error
)
=>
{
});
getDdicByMC
(
"权利设定方式"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
this
.
qlsdfsList
=
res
.
result
;
})
.
catch
((
error
)
=>
{
});
getDdicByMC
(
"国民经济行业分类代码"
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
this
.
gmjjhyflList
=
res
.
result
;
})
.
catch
((
error
)
=>
{
});
},
//行政区划选择
changeXzq
(
id
)
{
getListByXzqbsm
(
id
)
...
...
src/views/systemZRZ/zrzxx/index.vue
View file @
bd36467
<
template
>
<div
class=
"zrz content-form"
v-loading=
"loading"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"160px"
>
<Qlr
ref=
"qlrxxModule"
></Qlr>
<Qlr
ref=
"qlrxxModule"
:lx=
"lx"
:bsm=
"zrzbsm"
></Qlr>
<table
border=
"1"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
class=
"zrzTable"
>
<tbody>
<tr
height=
"30"
>
...
...
@@ -280,6 +280,8 @@
},
data
()
{
return
{
lx
:
"zrz"
,
zrzbsm
:
''
,
form
:{
zrzbsm
:
''
,
//自然幢标识码
zdbsm
:
''
,
//宗地标识码
...
...
@@ -395,7 +397,6 @@
}
},
onSave
(){
console
.
log
(
this
.
form
)
this
.
loading
=
true
;
// this.form.qlxzList=this.$refs.qlxzModule.getQlxzDataList();
this
.
form
.
qlxzList
=
...
...
@@ -532,16 +533,17 @@
getZrzDetailByBsm
(
data
){
getZrzDetailByBsm
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
console
.
log
(
res
.
result
)
this
.
form
=
res
.
result
;
}
})
},
consoleLog
(
data
){
console
.
log
(
"============================"
)
console
.
log
(
data
)
}
},
created
(){
},
mounted
()
{
created
()
{
this
.
getDDic
();
//todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来;
this
.
source
=
this
.
$route
.
query
.
source
;
...
...
@@ -551,10 +553,14 @@
this
.
getZddm
(
this
.
$store
.
zdbsm
);
this
.
form
.
xmmc
=
this
.
$store
.
xmmc
;
this
.
form
.
zrzbsm
=
this
.
$store
.
zrzbsm
;
}
else
{
this
.
zrzbsm
=
this
.
$route
.
query
.
bsm
;
this
.
getZrzDetailByBsm
(
this
.
$route
.
query
.
bsm
)
this
.
consoleLog
(
this
.
zrzbsm
)
}
},
mounted
()
{
}
}
</
script
>
...
...
Please
register
or
sign in
to post a comment