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
3ed98247
authored
2021-02-03 16:48:04 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
林权的权利人修改,林权数据保存接口联调
1 parent
eacac4fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
31 deletions
src/api/lq.js
src/api/qlr.js
src/components/formMenu/qlr.vue
src/views/lq/lqdcb/index.vue
src/api/lq.js
View file @
3ed9824
...
...
@@ -10,4 +10,15 @@ export function getQjLqDetailById(data) {
id
:
data
}
})
}
\ No newline at end of file
}
/**
* 保存林权信息
*/
export
function
updateQjLq
(
data
)
{
return
request
({
url
:
'/system/qjLq/updateQjLq'
,
method
:
'put'
,
data
:
data
})
}
...
...
src/api/qlr.js
View file @
3ed9824
...
...
@@ -44,6 +44,19 @@ export function getQlrInfoByGlbsm(data) {
},
})
}
/**
* 根据glbsm和type查询qlr信息
*/
export
function
getQlrByGlbsmAndType
(
data
)
{
return
request
({
url
:
'/system/Qlr/getQlrByGlbsmAndType'
,
method
:
'get'
,
params
:
{
glbsm
:
data
.
bsm
,
type
:
data
.
type
},
})
}
/**
* 更新权利人共有公用情况
...
...
src/components/formMenu/qlr.vue
View file @
3ed9824
...
...
@@ -2,9 +2,14 @@
<div
class=
"temp"
>
<table
class=
"tempTable"
cellspacing=
"0"
cellpadding=
"0"
border=
"1"
>
<tr>
<td
colspan=
"2"
><span
class=
"table-title"
>
权利人信息
</span></td>
<td
colspan=
"2"
>
共有方式
</td>
<td
colspan=
"8"
>
<template
v-if=
"lq == ''"
>
<td
colspan=
"2"
><span
class=
"table-title"
>
权利人信息
</span></td>
<td
colspan=
"2"
>
共有方式
</td>
</
template
>
<
template
v-else
>
<td
colspan=
"2"
>
共有方式
</td>
</
template
>
<td
:colspan=
"lq == '' ? 8 : 10"
>
<el-row>
<el-col
:span=
"14"
class=
"fl"
style=
"line-height:32px"
>
<el-radio-group
v-model=
"gyfs"
@
change=
"updateGyfs"
>
...
...
@@ -311,7 +316,7 @@
<
script
>
import
{
getDdicByMC
}
from
"@api/common"
;
import
{
insertQlrDlrFr
,
getQlrInfoByGlbsm
,
updateQlrDlrFr
,
deleteQlrDlrFrByQlrbsm
,
updateGyGyQlrQk
}
from
"@api/qlr"
;
import
{
insertQlrDlrFr
,
getQlrInfoByGlbsm
,
updateQlrDlrFr
,
deleteQlrDlrFrByQlrbsm
,
updateGyGyQlrQk
,
getQlrByGlbsmAndType
}
from
"@api/qlr"
;
export
default
{
props
:
{
...
...
@@ -338,7 +343,13 @@
lq
:{
type
:
String
,
default
:
""
,
}
},
// lqData:{
// type: Array,
// default: () => {
// return [];
// },
// }
},
data
()
{
return
{
...
...
@@ -649,18 +660,37 @@
}
},
getQlrInfo
(
bsm
){
getQlrInfoByGlbsm
(
bsm
).
then
((
res
)
=>
{
if
(
res
.
code
){
if
(
res
.
result
!=
null
){
this
.
tableData
=
res
.
result
;
if
(
this
.
tableData
.
length
===
0
){
this
.
gyfs
=
this
.
$store
.
state
.
gyfsList
[
0
].
bsm
;
}
else
{
this
.
gyfs
=
res
.
result
[
0
].
gyfsbsm
;
}
if
(
this
.
lq
==
""
){
getQlrInfoByGlbsm
(
bsm
).
then
((
res
)
=>
{
if
(
res
.
code
){
if
(
res
.
result
!=
null
){
this
.
tableData
=
res
.
result
;
if
(
this
.
tableData
.
length
===
0
){
this
.
gyfs
=
this
.
$store
.
state
.
gyfsList
[
0
].
bsm
;
}
else
{
this
.
gyfs
=
res
.
result
[
0
].
gyfsbsm
;
}
}
}
})
}
else
{
let
params
=
{
bsm
:
bsm
,
type
:
this
.
lq
}
})
getQlrByGlbsmAndType
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
){
if
(
res
.
result
!=
null
){
this
.
tableData
=
res
.
result
;
if
(
this
.
tableData
.
length
===
0
){
this
.
gyfs
=
this
.
$store
.
state
.
gyfsList
[
0
].
bsm
;
}
else
{
this
.
gyfs
=
res
.
result
[
0
].
gyfsbsm
;
}
}
}
})
}
}
},
created
(){
...
...
src/views/lq/lqdcb/index.vue
View file @
3ed9824
...
...
@@ -22,6 +22,7 @@
:qszt=
"formData.qszt"
type=
"lq"
lq=
"1"
v-if=
"qlrShow"
></Qlr>
</td>
</tr>
...
...
@@ -34,6 +35,7 @@
:qszt=
"formData.qszt"
type=
"lx"
lq=
"2"
v-if=
"qlrShow"
></Qlr>
</td>
</tr>
...
...
@@ -85,7 +87,7 @@
type=
"text"
:disabled=
"disabled"
class=
"formInput"
v-model=
"formData.
djh
"
v-model=
"formData.
zlnd
"
/>
</td>
...
...
@@ -154,7 +156,7 @@
type=
"text"
:disabled=
"disabled"
class=
"formInput"
v-model=
"formData.
mj
"
v-model=
"formData.
syqmj
"
/>
</td>
<td
colspan=
"2"
class=
"tdright"
>
起源
</td>
...
...
@@ -191,11 +193,11 @@
<td
colspan=
"2"
class=
"tdright"
>
林种
</td>
<td
colspan=
"10"
>
<el-radio-group
class=
"fl"
v-model=
"formData.lz"
>
<el-radio
:
label=
"1"
>
防护林
</el-radio>
<el-radio
:
label=
"2"
>
用材林
</el-radio>
<el-radio
:
label=
"3"
>
经济林
</el-radio>
<el-radio
:
label=
"4"
>
薪炭林
</el-radio>
<el-radio
:
label=
"5"
>
特种用途体
</el-radio>
<el-radio
label=
"1"
>
防护林
</el-radio>
<el-radio
label=
"2"
>
用材林
</el-radio>
<el-radio
label=
"3"
>
经济林
</el-radio>
<el-radio
label=
"4"
>
薪炭林
</el-radio>
<el-radio
label=
"5"
>
特种用途体
</el-radio>
</el-radio-group>
</td>
</tr>
...
...
@@ -220,7 +222,7 @@
@
blur=
"inputBlur($event, false)"
maxlength=
"3"
onkeyup=
"value=value.replace(/[^\d]/g,'')"
v-model=
"formData.syqx"
v-model=
"formData.
ld
syqx"
class=
"formInput"
/>
</td>
...
...
@@ -274,14 +276,14 @@
</table>
<div
class=
"header-button"
:style=
"
{ width: mainBoxWidth + 'px' }">
<el-button
type=
"primary"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"updateQjLq"
>
保存
</el-button>
</div>
</div>
</
template
>
<
script
>
import
Qlr
from
"@components/formMenu/qlr"
;
import
{
getQjLqDetailById
}
from
"@api/lq"
import
{
getQjLqDetailById
,
updateQjLq
}
from
"@api/lq"
export
default
{
name
:
""
,
components
:
{
...
...
@@ -293,19 +295,21 @@ export default {
disabled
:
false
,
formData
:
{
mjdw
:
""
,
zddm
:
""
,
zddm
:
""
,
zlnd
:
""
,
dzwlx
:
"1"
,
bdcdyh
:
""
,
zl
:
""
,
xdm
:
""
,
lb
:
""
,
xb
:
""
,
mj
:
""
,
syqmj
:
""
,
qy
:
""
,
zs
:
""
,
zysz
:
""
,
lz
:
""
,
ldsyqssj
:
""
,
syqx
:
""
,
ld
syqx
:
""
,
ldsyjssj
:
""
,
gyqk
:
""
,
shyj
:
""
,
...
...
@@ -324,6 +328,7 @@ export default {
},
],
mainBoxWidth
:
0
,
qlrShow
:
false
,
};
},
created
()
{},
...
...
@@ -339,10 +344,26 @@ export default {
getLqData
(
bsm
)
{
getQjLqDetailById
(
bsm
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
console
.
log
(
res
,
"林权信息"
);
console
.
log
(
res
,
"林权信息"
);
this
.
formData
=
res
.
result
;
this
.
formData
.
dzwlx
=
"1"
;
this
.
qlrShow
=
true
;
}
});
},
},
//生成宗地代码
generatorCode
(){
},
//保存林权信息
updateQjLq
(){
updateQjLq
(
this
.
formData
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
console
.
log
(
res
,
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
)
}
});
}
},
computed
:
{},
watch
:
{},
...
...
Please
register
or
sign in
to post a comment