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
601e8980
authored
2020-10-30 08:58:14 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
2b72185f
fc31f4fa
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
13 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/panel/modify/index.vue
src/api/common.js
View file @
601e898
...
...
@@ -84,3 +84,15 @@ export function getTreeByZrzbsm(zrzbsm) {
}
})
}
/**x
*修改 宗地,自然幢,户的权属状态
*/
export
function
updateQsztByBsm
(
data
){
return
request
({
url
:
'/gz/updateByBsm'
,
method
:
'post'
,
data
:
data
})
}
\ No newline at end of file
...
...
src/components/lineTree/lineItem.vue
View file @
601e898
...
...
@@ -226,7 +226,8 @@ export default {
width
:
22px
;
left
:
9px
;
top
:
9px
;
background
:
#c3c5c8
;
background
:
url('../../assets/images/rowline.png')
;
background-position-y
:
center
;
}
.linkLine_default
::after
{
...
...
src/components/lineTree/lineTree.vue
View file @
601e898
...
...
@@ -56,14 +56,19 @@
<li
v-show=
"isZD"
>
导入属性
</li>
<li
v-show=
"!isZD"
>
导入楼盘
</li>
<li>
重叠分析
</li>
<li
v-show=
"isZD"
>
添加定着物
</li>
<li
v-show=
"isZD"
@
click=
"openCreateDialog"
>
添加定着物
</li>
<li
@
click=
"deleteByBsm()"
>
删除
</li>
</ul>
<!-- 添加定着物弹框 -->
<el-dialog
title=
"新建"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<Create
@
closeDialog=
"closeDialog"
:auth=
"true"
></Create>
</el-dialog>
</div>
</
template
>
<
script
>
import
lineItem
from
"./lineItem.vue"
;
import
{
deleteZdInfoByBsm
}
from
"../../api/zd"
;
import
Create
from
"../../views/panel/create/index"
;
export
default
{
inheritAttrs
:
false
,
props
:
{
...
...
@@ -73,7 +78,7 @@ export default {
default
:
14
,
},
},
components
:
{
lineItem
},
components
:
{
lineItem
,
Create
},
data
()
{
return
{
selectedDetail
:
{},
...
...
@@ -83,7 +88,8 @@ export default {
top
:
0
,
left
:
0
,
isZD
:
true
,
zdData
:{}
zdData
:{},
dialogVisible
:
false
};
},
watch
:
{
...
...
@@ -115,6 +121,14 @@ export default {
changeIsZD
(
data
)
{
this
.
isZD
=
data
;
},
//添加定着物
openCreateDialog
(){
this
.
dialogVisible
=
true
},
//关闭添加定着物弹框
closeDialog
()
{
this
.
dialogVisible
=
false
;
},
preDealData
(
list
)
{
list
.
forEach
((
x
)
=>
{
if
(
!
x
.
expand
)
this
.
$set
(
x
,
"expand"
,
true
);
...
...
@@ -160,8 +174,23 @@ export default {
},
deleteByBsm
(){
var
zdBsm
=
this
.
zdData
.
zdbsm
;
var
type
;
console
.
log
(
zdBsm
);
deleteZdInfoByBsm
(
zdBsm
)
switch
(
this
.
zdData
.
type
){
case
"zd"
:
type
=
"0"
;
break
;
case
"zrz"
:
type
=
"1"
;
break
;
case
"h"
:
type
=
"2"
;
break
;
default
:
break
;
}
var
params
=
{
"id"
:
zdBsm
,
"type"
:
type
}
deleteZdInfoByBsm
(
params
)
.
then
((
res
)
=>
{
if
(
res
.
code
=
200
){
this
.
$message
({
...
...
src/views/Home.vue
View file @
601e898
...
...
@@ -36,7 +36,7 @@
<Navigation
ref=
"navigation"
></Navigation>
</div>
-->
<el-dialog
title=
"新建"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<Create
@
closeDialog=
"closeDialog"
></Create>
<Create
@
closeDialog=
"closeDialog"
:auth=
"false"
></Create>
</el-dialog>
</el-header>
<el-main>
...
...
src/views/panel/create/index.vue
View file @
601e898
...
...
@@ -6,7 +6,7 @@
type=
"card"
class=
"eltabs"
@
tab-click=
"handleClick"
>
<el-tab-pane
class=
"eltabspane"
label=
"宗地"
name=
"zd"
>
<el-tab-pane
class=
"eltabspane"
v-if=
"!auth"
label=
"宗地"
name=
"zd"
>
<el-form
:inline=
"true"
:rules=
"rules"
:model=
"ruleForm"
ref=
"ruleForm"
class=
"demo-form-inline"
>
<el-form-item
label=
"行政区划"
required
prop=
"xzqbsm"
>
<el-select
v-model=
"ruleForm.xzqbsm"
style=
"width:100px;"
value-key=
"xzqbsm"
placeholder=
"行政区"
@
change=
"changeXzq(ruleForm.xzqbsm)"
>
...
...
@@ -82,7 +82,7 @@
</el-form-item>
</el-form>
</el-tab-pane>
<el-tab-pane
class=
"eltabspane"
label=
"宗海"
name=
"zh"
>
宗海
</el-tab-pane>
<el-tab-pane
class=
"eltabspane"
v-if=
"!auth"
label=
"宗海"
name=
"zh"
>
宗海
</el-tab-pane>
<el-tab-pane
class=
"eltabspane"
label=
"自然幢"
name=
"zrz"
>
<el-form
:inline=
"true"
:rules=
"rules1"
:model=
"ruleForm1"
ref=
"ruleForm1"
class=
"zrzProject"
>
<el-form-item
label=
"项目名称"
prop=
"xmmc"
>
...
...
@@ -133,12 +133,12 @@ import { insertDzjbxx } from "../../../api/dz";
export
default
{
name
:
""
,
components
:
{},
props
:
{}
,
props
:
[
'auth'
]
,
data
()
{
return
{
tabPosition
:
"left"
,
//默认第一个选项卡
activeName
:
"
zd
"
,
activeName
:
""
,
zrzProjectName
:
""
,
xzq
:
[],
djq
:
[],
...
...
@@ -211,7 +211,10 @@ export default {
created
()
{
this
.
getXzqList
();
},
mounted
()
{},
mounted
()
{
console
.
log
(
this
,
'this'
);
this
.
activeName
=
this
.
auth
?
'zrz'
:
'zd'
},
methods
:
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
);
...
...
src/views/panel/modify/index.vue
View file @
601e898
...
...
@@ -52,6 +52,7 @@
<
script
>
import
SearchHead
from
"../../../components/searchHead/searchHead"
;
import
{
getSearchList
}
from
"../../../api/search"
;
import
{
updateQsztByBsm
}
from
"../../../api/common"
;
export
default
{
name
:
""
,
...
...
@@ -113,17 +114,32 @@
},
//点击办理
handleClick
(
row
)
{
console
.
log
(
row
);
let
path
=
""
;
switch
(
row
.
lx
)
{
var
type
;
var
id
=
row
.
glbsm
;
switch
(
row
.
dylx
)
{
case
"自然幢"
:
path
=
"/zrz"
;
type
=
"1"
;
break
;
case
"
宗地
"
:
case
"
zd
"
:
path
=
"/zd"
;
type
=
"0"
;
break
;
case
"户"
:
path
=
"h"
;
type
=
"2"
;
default
:
break
;
}
var
data
=
{
"id"
:
id
,
"type"
:
type
};
updateQsztByBsm
(
data
)
.
then
((
res
=>
{
if
(
res
.
code
==
200
){
console
.
log
(
res
);
}
}))
this
.
$router
.
push
(
path
);
},
},
...
...
Please
register
or
sign in
to post a comment