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
9c248663
authored
2021-01-21 10:31:03 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
幢单元表单样式修改
1 parent
b303a8ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
33 deletions
src/views/zrz/lpb/bjlp/zdy/index.vue
src/views/zrz/lpb/bjlp/zdy/index.vue
View file @
9c24866
...
...
@@ -5,34 +5,34 @@
<table
border=
"1"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
class=
"hTable"
>
<tbody>
<tr
height=
"30"
>
<td
colspan=
"12"
align=
"center"
><font
size=
"4"
>
幢单元基本信息
</font></td>
<td
colspan=
"12"
align=
"center"
><font
size=
"4"
>
幢单元基本信息
</font></td>
</tr>
<tr
height=
"30"
>
<td
colspan=
"2"
align=
"center"
>
幢单元号
</td>
<td
colspan=
"2"
align=
"center"
class=
"tdright"
>
幢单元号
</td>
<td
colspan=
"4"
>
<el-input
v-model=
"form.zdyh"
></el-input>
</td>
<td
colspan=
"2"
align=
"center"
>
幢单元名称
</td>
<td
colspan=
"2"
align=
"center"
class=
"tdright"
><i
class=
"requisite"
>
*
</i
>
幢单元名称
</td>
<td
colspan=
"4"
>
<el-input
v-model=
"form.zdymc"
></el-input>
<el-input
v-model=
"form.zdymc"
ref=
"zdymc"
></el-input>
</td>
</tr>
<tr
height=
"30"
>
<td
colspan=
"2"
align=
"center"
>
地上层数
</td>
<td
colspan=
"2"
align=
"center"
class=
"tdright"
>
地上层数
</td>
<td
colspan=
"4"
>
<el-input
v-model=
"form.dscs"
></el-input>
</td>
<td
colspan=
"2"
align=
"center"
>
地下层数
</td>
<td
colspan=
"2"
align=
"center"
class=
"tdright"
>
地下层数
</td>
<td
colspan=
"4"
>
<el-input
v-model=
"form.dxcs"
></el-input>
</td>
</tr>
<tr
height=
"30"
>
<td
colspan=
"2"
align=
"center"
>
总层数
</td>
<td
colspan=
"2"
align=
"center"
class=
"tdright"
>
总层数
</td>
<td
colspan=
"4"
>
<el-input
v-model=
"form.zcs"
></el-input>
</td>
<td
colspan=
"2"
align=
"center"
>
备注
</td>
<td
colspan=
"2"
align=
"center"
class=
"tdright"
>
备注
</td>
<td
colspan=
"4"
>
<el-input
v-model=
"form.bz"
></el-input>
</td>
...
...
@@ -93,32 +93,37 @@
submitForm
(
formName
,
zrzbsm
,
ljzbsm
)
{
this
.
form
.
zrzbsm
=
zrzbsm
;
this
.
form
.
ljzbsm
=
zrzbsm
==
ljzbsm
?
''
:
ljzbsm
;
//判断zdybsm是否为空,不为空的时候是编辑,为空的时候是新增
if
(
this
.
zdybsm
==
''
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
insertZdyInfo
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
$message
.
success
(
"保存成功!"
)
//更新树结构数据
this
.
$parent
.
$parent
.
getLpbMenuTree
(
zrzbsm
);
//关闭弹框
this
.
$parent
.
$parent
.
closeDaialog
()
}
return
true
;
})
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
}
});
if
(
this
.
form
.
zdymc
==
''
)
{
this
.
$message
.
warning
(
"请完善表单后再继续操作"
);
this
.
$refs
.
zdymc
.
$el
.
style
.
border
=
'1px solid red'
;
}
else
{
//编辑幢单元接口
updateQjZdy
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
$message
.
success
(
"保存成功"
)
}
})
//判断zdybsm是否为空,不为空的时候是编辑,为空的时候是新增
if
(
this
.
zdybsm
==
''
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
insertZdyInfo
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
$message
.
success
(
"保存成功!"
)
//更新树结构数据
this
.
$parent
.
$parent
.
getLpbMenuTree
(
zrzbsm
);
//关闭弹框
this
.
$parent
.
$parent
.
closeDaialog
()
}
return
true
;
})
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
}
});
}
else
{
//编辑幢单元接口
updateQjZdy
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
$message
.
success
(
"保存成功"
)
}
})
}
}
},
getZdyInfo
(
bsm
){
...
...
@@ -150,6 +155,14 @@
},
immediate
:
true
},
"form.zdymc"
:{
handler
:
function
(
item
)
{
if
(
item
!=
''
){
this
.
$refs
.
zdymc
.
$el
.
style
.
border
=
''
;
}
},
immediate
:
true
},
}
}
</
script
>
...
...
Please
register
or
sign in
to post a comment