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
693d79d7
authored
2020-12-14 10:04:57 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
表单校验完善
1 parent
8d5f45b5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
src/components/formMenu/qlxz.vue
src/views/zd/zddcb/index.vue
src/views/zrz/zrzxx/index.vue
src/components/formMenu/qlxz.vue
View file @
693d79d
...
...
@@ -620,8 +620,10 @@ export default {
if
(
item
.
rule
.
test
(
item
.
data
)
||
item
.
data
==
null
){
if
(
item
.
dom
.
$el
){
item
.
dom
.
$el
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
$el
.
style
.
boxSizing
=
'border-box'
;
}
else
{
item
.
dom
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
style
.
boxSizing
=
'border-box'
;
}
// this.$message({
// // message: item.name+'不能为空',
...
...
@@ -643,12 +645,14 @@ export default {
e
.
$el
.
style
.
border
=
""
}
else
{
e
.
$el
.
style
.
border
=
"1px solid red"
e
.
$el
.
style
.
boxSizing
=
'border-box'
;
}
}
else
{
if
(
e
.
target
.
value
!=
''
){
e
.
target
.
style
.
border
=
""
}
else
{
e
.
target
.
style
.
border
=
"1px solid red"
e
.
target
.
style
.
boxSizing
=
'border-box'
;
}
}
},
...
...
src/views/zd/zddcb/index.vue
View file @
693d79d
...
...
@@ -702,8 +702,10 @@ export default {
if
(
item
.
rule
.
test
(
item
.
data
)
||
item
.
data
==
null
){
if
(
item
.
dom
.
$el
){
item
.
dom
.
$el
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
$el
.
style
.
boxSizing
=
'border-box'
;
}
else
{
item
.
dom
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
style
.
boxSizing
=
'border-box'
;
}
// this.$message({
// // message: item.name+'不能为空',
...
...
@@ -775,7 +777,8 @@ export default {
if
(
e
.
target
.
value
!=
''
){
e
.
target
.
style
.
border
=
""
}
else
{
e
.
target
.
style
.
border
=
"1px solid red"
e
.
target
.
style
.
border
=
"1px solid red"
;
e
.
target
.
style
.
boxSizing
=
'border-box'
;
}
},
//提交宗地基本信息
...
...
src/views/zrz/zrzxx/index.vue
View file @
693d79d
...
...
@@ -14,18 +14,18 @@
</td>
<td
colspan=
"2"
>
自然幢号
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"4"
class=
"psr"
>
<input
class=
"formInput percent80"
ref=
"zrzh"
:disabled=
"form.qszt!='0'"
maxlength=
"24"
v-model=
"form.zrzh"
>
<input
class=
"formInput percent80"
ref=
"zrzh"
@
blur=
"inputBlur($event)"
:disabled=
"form.qszt!='0'"
maxlength=
"24"
v-model=
"form.zrzh"
>
<el-button
@
click
.
prevent=
"generatorCode"
type=
"warning"
class=
"createBtn"
size=
"mini"
>
生成
</el-button>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
项目名称
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"4"
>
<input
class=
"formInput "
ref=
"xmmc"
:disabled=
"form.qszt!='0'"
v-model=
"form.xmmc"
>
<input
class=
"formInput "
ref=
"xmmc"
@
blur=
"inputBlur($event)"
:disabled=
"form.qszt!='0'"
v-model=
"form.xmmc"
>
</td>
<td
colspan=
"2"
>
不动产单元号
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"4"
>
<input
class=
"formInput "
ref=
"bdcdyh"
:disabled=
"form.qszt!='0'"
maxlength=
"28"
v-model=
"form.bdcdyh"
>
<input
class=
"formInput "
ref=
"bdcdyh"
@
blur=
"inputBlur($event)"
:disabled=
"form.qszt!='0'"
maxlength=
"28"
v-model=
"form.bdcdyh"
>
</td>
</tr>
...
...
@@ -43,7 +43,7 @@
<tr>
<td
colspan=
"2"
>
房屋性质
<i
class=
"requisite"
>
*
</i></td>
<td
colspan=
"4"
>
<el-select
class=
"formSelect"
ref=
"fwxz"
:disabled=
"form.qszt!='0'"
v-model=
"form.fwxzbsm"
placeholder=
"请选择"
>
<el-select
class=
"formSelect"
ref=
"fwxz"
@
blur=
"inputBlur($event)"
:disabled=
"form.qszt!='0'"
v-model=
"form.fwxzbsm"
placeholder=
"请选择"
>
<el-option
v-for=
"item in $store.state.fwxzOptions"
:key=
"item.bsm"
...
...
@@ -156,6 +156,7 @@
<td
colspan=
"3"
>
<el-select-tree
style=
"width:100%"
ref=
"ghyt"
@
blur=
"inputBlur($event)"
v-if=
"show"
:default-expand-all=
"defaultExpandAll"
:multiple=
"multiple"
...
...
@@ -172,6 +173,7 @@
<td
colspan=
"4"
>
<el-select-tree
style=
"width:100%"
ref=
"yt"
@
blur=
"inputBlur($event)"
v-if=
"show"
:default-expand-all=
"defaultExpandAll"
:multiple=
"multiple"
...
...
@@ -196,7 +198,7 @@
<span>
删除
</span>
</td>
<td
colspan=
"9"
>
<el-select
class=
"persent78"
ref=
"fwjg"
:disabled=
"form.qszt!='0'"
v-model=
"item1.fwjgzdbsm"
placeholder=
"请选择"
>
<el-select
class=
"persent78"
ref=
"fwjg"
@
blur=
"inputBlur($event)"
:disabled=
"form.qszt!='0'"
v-model=
"item1.fwjgzdbsm"
placeholder=
"请选择"
>
<el-option
v-for=
"item in $store.state.jgOptions"
:key=
"item.bsm"
...
...
@@ -218,7 +220,7 @@
<span>
坐落
<i
class=
"requisite"
>
*
</i></span>
</td>
<td
colspan=
"10"
>
<input
class=
"formInput"
ref=
"zl"
:disabled=
"form.qszt!='0'"
v-model=
"form.zl"
>
<input
class=
"formInput"
ref=
"zl"
@
blur=
"inputBlur($event)"
:disabled=
"form.qszt!='0'"
v-model=
"form.zl"
>
</td>
</tr>
...
...
@@ -522,8 +524,10 @@
if
(
item
.
rule
.
test
(
item
.
data
)
||
item
.
data
==
null
){
if
(
item
.
dom
.
$el
){
item
.
dom
.
$el
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
$el
.
style
.
boxSizing
=
'border-box'
;
}
else
{
item
.
dom
.
style
.
border
=
'1px solid red'
;
item
.
dom
.
style
.
boxSizing
=
'border-box'
;
}
flag
=
false
;
return
false
...
...
@@ -688,6 +692,14 @@
}
})
},
inputBlur
(
e
){
if
(
e
.
target
.
value
!=
''
){
e
.
target
.
style
.
border
=
""
}
else
{
e
.
target
.
style
.
border
=
"1px solid red"
;
e
.
target
.
style
.
boxSizing
=
'border-box'
;
}
},
},
created
(){
//todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来;
...
...
Please
register
or
sign in
to post a comment