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
02de9b89
authored
2020-10-26 11:21:55 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
容密高部分逻辑修改
1 parent
05841f69
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
21 deletions
src/views/systemZD/zddcb/index.vue
src/views/systemZD/zddcb/index.vue
View file @
02de9b8
...
...
@@ -192,17 +192,15 @@
<td
colspan=
"2"
>
<input
type=
"text"
v-model=
"formData.rjl"
:class=
"
formData.jyrjl == '-' ? 'formInput percent47' : 'formInput'
"
v-model=
"rjl"
v-show=
"isInterval(formData.jyrjl)"
class=
"formInput percent47"
/>
<span
class=
"percent4"
v-show=
"
formData.jyrjl == '-'
"
>
-
</span>
<span
class=
"percent4"
v-show=
"
isInterval(formData.jyrjl)
"
>
-
</span>
<input
type=
"text"
v-show=
"formData.jyrjl == '-'"
v-model=
"formData.rjl"
class=
"formInput percent47
"
:class=
"isInterval(formData.jyrjl) ? 'formInput percent47' : 'formInput'
"
/>
</td>
<td
colspan=
"2"
>
容积说明
</td>
...
...
@@ -226,17 +224,15 @@
<td
colspan=
"2"
>
<input
type=
"text"
v-model=
"formData.jzmd"
:class=
"
formData.jyjzmd == '-' ? 'formInput percent47' : 'formInput'
"
v-model=
"jzmd"
v-show=
"isInterval(formData.jyjzmd)"
class=
"formInput percent47"
/>
<span
class=
"percent4"
v-show=
"
formData.jyjzmd == '-'
"
>
-
</span>
<span
class=
"percent4"
v-show=
"
isInterval(formData.jyjzmd)
"
>
-
</span>
<input
type=
"text"
v-show=
"formData.jyjzmd == '-'"
v-model=
"formData.jzmd"
class=
"formInput percent47
"
:class=
"isInterval(formData.jyjzmd) ? 'formInput percent47' : 'formInput'
"
/>
</td>
<td
colspan=
"2"
>
建筑密度说明
</td>
...
...
@@ -260,17 +256,15 @@
<td
colspan=
"2"
>
<input
type=
"text"
v-model=
"formData.jzxg"
:class=
"
formData.jyjzxg == '-' ? 'formInput percent47' : 'formInput'
"
v-model=
"jzxg"
v-show=
"isInterval(formData.jyjzxg)"
class=
"formInput percent47"
/>
<span
class=
"percent4"
v-show=
"
formData.jyjzxg == '-'
"
>
-
</span>
<span
class=
"percent4"
v-show=
"
isInterval(formData.jyjzxg)
"
>
-
</span>
<input
type=
"text"
v-show=
"formData.jyjzxg == '-'"
v-model=
"formData.jzxg"
class=
"formInput percent47
"
:class=
"isInterval(formData.jyjzxg) ? 'formInput percent47' : 'formInput'
"
/>
</td>
<td
colspan=
"2"
>
建筑限高说明
</td>
...
...
@@ -372,6 +366,9 @@ export default {
props
:
{},
data
()
{
return
{
rjl
:
''
,
jzmd
:
''
,
jzxg
:
''
,
compareList
:
[
{
label
:
"<"
,
value
:
"<"
},
{
label
:
">"
,
value
:
">"
},
...
...
@@ -445,6 +442,13 @@ export default {
.
then
((
res
)
=>
{
if
(
res
.
result
)
{
this
.
formData
=
res
.
result
;
//判断容密高是否为区间值,如果是区间值,则将校验值置为'-'并给rjl,jzmd,jzxg赋值
this
.
rjl
=
this
.
isInterval
(
this
.
formData
.
jyrjl
)
?
this
.
formData
.
jyrjl
:
''
;
this
.
formData
.
jyrjl
=
this
.
isInterval
(
this
.
formData
.
jyrjl
)
?
'-'
:
this
.
formData
.
jyrjl
;
this
.
jzmd
=
this
.
isInterval
(
this
.
formData
.
jyjzmd
)
?
this
.
formData
.
jyjzmd
:
''
;
this
.
formData
.
jyjzmd
=
this
.
isInterval
(
this
.
formData
.
jyjzmd
)
?
'-'
:
this
.
formData
.
jyjzmd
;
this
.
jzxg
=
this
.
isInterval
(
this
.
formData
.
jyjzxg
)
?
this
.
formData
.
jyjzxg
:
''
;
this
.
formData
.
jyjzxg
=
this
.
isInterval
(
this
.
formData
.
jyjzxg
)
?
'-'
:
this
.
formData
.
jyjzxg
;
if
(
res
.
result
.
qjQlxzListVOS
[
0
].
qjTdytListVOS
.
length
>
0
){
//权利性质数据传给子组件
this
.
$refs
.
qlxzModule
.
countList
=
res
.
result
.
qjQlxzListVOS
...
...
@@ -468,6 +472,10 @@ export default {
updateZDxx
()
{
//获取权利性质数据
this
.
formData
.
list
=
this
.
$refs
.
qlxzModule
.
getQlxzDataList
();
//判断容密高是否为区间值,如果是区间值,则将输入框的值赋予
this
.
formData
.
jyrjl
=
this
.
isInterval
(
this
.
formData
.
jyrjl
)
?
this
.
rjl
:
this
.
formData
.
jyrjl
;
this
.
formData
.
jyjzmd
=
this
.
isInterval
(
this
.
formData
.
jyjzmd
)
?
this
.
jzmd
:
this
.
formData
.
jyjzmd
;
this
.
formData
.
jyjzxg
=
this
.
isInterval
(
this
.
formData
.
jyjzxg
)
?
this
.
jzxg
:
this
.
formData
.
jyjzxg
;
updateQjZdjbxx
(
this
.
formData
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -512,6 +520,15 @@ export default {
})
.
catch
((
error
)
=>
{});
},
//判断容密高是否为区间
isInterval
(
val
){
if
(
val
==
'>'
||
val
==
'<'
||
val
==
'='
||
val
==
'>='
||
val
==
'<='
){
return
false
}
else
{
return
true
;
}
},
},
computed
:
{
zl
()
{
...
...
Please
register
or
sign in
to post a comment