Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
data_management_system
Commits
9c07310e
Commit
9c07310e
authored
Nov 30, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区域级联之间的必填校验
parent
0eba13ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
13 deletions
+74
-13
index.vue
ruoyi-ui/src/views/system/hscj/index.vue
+30
-7
index.vue
ruoyi-ui/src/views/system/ycsb/index.vue
+22
-3
index.vue
ruoyi-ui/src/views/system/yxry/index.vue
+22
-3
No files found.
ruoyi-ui/src/views/system/hscj/index.vue
View file @
9c07310e
...
...
@@ -28,7 +28,10 @@
/>
</el-select>
</el-form-item>
<el-form-item
label=
"街道/镇"
prop=
"street"
>
<el-form-item
label=
"街道/镇"
prop=
"street"
>
<el-select
v-model=
"queryParams.street"
placeholder=
"请选择街道/镇"
clearable
>
<el-option
v-for=
"dict in dict.type.street_town"
...
...
@@ -406,7 +409,13 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"街道/镇"
prop=
"street"
>
<el-form-item
label=
"街道/镇"
prop=
"street"
:rules=
"[
{ required: form.area === '1', message: '请选择街道/镇', trigger: ['blur','change'] }
]"
>
<el-select
style=
"width: 100%"
v-model=
"form.street"
placeholder=
"请选择街道/镇"
:disabled=
"form.area !== '1'"
@
change=
"zhenSelect"
>
<el-option
v-for=
"dict in zhen"
...
...
@@ -420,7 +429,13 @@
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"居委会"
prop=
"committee"
>
<el-form-item
label=
"居委会"
prop=
"committee"
:rules=
"[
{ required: form.area === '1', message: '请选择居委会', trigger: ['blur','change'] }
]"
>
<el-select
style=
"width: 100%"
v-model=
"form.committee"
placeholder=
"请选择居委会"
:disabled=
"form.area !== '1'"
@
change=
"juSelect"
>
<el-option
v-for=
"dict in ju"
...
...
@@ -432,7 +447,13 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"小区/村名称"
prop=
"community"
>
<el-form-item
label=
"小区/村名称"
prop=
"community"
:rules=
"[
{ required: form.area === '1', message: '请选择小区/村名称', trigger: ['blur','change'] }
]"
>
<el-select
style=
"width: 100%"
v-model=
"form.community"
placeholder=
"请选择小区/村名称"
:disabled=
"form.area !== '1'"
>
<el-option
v-for=
"dict in cun"
...
...
@@ -534,8 +555,8 @@
<el-col
:span=
"12"
>
<el-form-item
label=
"检测结果"
prop=
"cjResult"
>
<el-radio-group
v-model=
"form.cjResult"
>
<el-radio
:label=
"
0
"
>
阳性
</el-radio>
<el-radio
:label=
"
1
"
>
阴性
</el-radio>
<el-radio
:label=
"
'0'
"
>
阳性
</el-radio>
<el-radio
:label=
"
'1'
"
>
阴性
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
...
...
@@ -917,6 +938,7 @@ export default {
},
// 表单参数
form
:
{
cjTime
:
new
Date
(),
province
:
'河北省'
,
city
:
'石家庄市'
,
},
...
...
@@ -1143,6 +1165,7 @@ export default {
xh
:
null
,
city
:
'石家庄市'
,
area
:
null
,
committee
:
null
,
street
:
null
,
community
:
null
,
cjPlace
:
null
,
...
...
@@ -1154,7 +1177,7 @@ export default {
address
:
null
,
age
:
null
,
category
:
null
,
cjTime
:
n
ull
,
cjTime
:
n
ew
Date
()
,
cjName
:
null
,
cjPhone
:
null
,
bblx
:
'咽拭子'
,
...
...
ruoyi-ui/src/views/system/ycsb/index.vue
View file @
9c07310e
...
...
@@ -274,7 +274,13 @@
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"街道/镇"
prop
=
"street"
>
<
el
-
form
-
item
label
=
"街道/镇"
prop
=
"street"
:
rules
=
"[
{ required: form.area === '1', message: '请选择街道/镇', trigger: ['blur','change']
}
]"
>
<
el
-
select
style
=
"width: 100%"
v
-
model
=
"form.street"
placeholder
=
"请选择街道/镇"
:
disabled
=
"form.area !== '1'"
@
change
=
"zhenSelect"
>
<
el
-
option
v
-
for
=
"dict in zhen"
...
...
@@ -286,7 +292,13 @@
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"居委会"
prop
=
"committee"
>
<
el
-
form
-
item
label
=
"居委会"
prop
=
"committee"
:
rules
=
"[
{ required: form.area === '1', message: '请选择居委会', trigger: ['blur','change']
}
]"
>
<
el
-
select
style
=
"width: 100%"
v
-
model
=
"form.committee"
placeholder
=
"请选择居委会"
:
disabled
=
"form.area !== '1'"
@
change
=
"juSelect"
>
<
el
-
option
v
-
for
=
"dict in ju"
...
...
@@ -300,7 +312,13 @@
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"小区/村名称"
prop
=
"community"
>
<
el
-
form
-
item
label
=
"小区/村名称"
prop
=
"community"
:
rules
=
"[
{ required: form.area === '1', message: '请选择小区/村名称', trigger: ['blur','change']
}
]"
>
<
el
-
select
style
=
"width: 100%"
v
-
model
=
"form.community"
placeholder
=
"请选择小区/村名称"
:
disabled
=
"form.area !== '1'"
>
<
el
-
option
v
-
for
=
"dict in cun"
...
...
@@ -886,6 +904,7 @@ export default {
phone
:
null
,
address
:
null
,
area
:
null
,
committee
:
null
,
street
:
null
,
house
:
null
,
building
:
null
,
...
...
ruoyi-ui/src/views/system/yxry/index.vue
View file @
9c07310e
...
...
@@ -363,7 +363,13 @@
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"街道/镇"
prop
=
"street"
>
<
el
-
form
-
item
label
=
"街道/镇"
prop
=
"street"
:
rules
=
"[
{ required: form.area === '1', message: '请选择街道/镇', trigger: ['blur','change']
}
]"
>
<
el
-
select
style
=
"width: 100%"
v
-
model
=
"form.street"
placeholder
=
"请选择街道/镇"
:
disabled
=
"form.area !== '1'"
@
change
=
"zhenSelect"
>
<
el
-
option
v
-
for
=
"dict in zhen"
...
...
@@ -375,7 +381,13 @@
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"居委会"
prop
=
"committee"
>
<
el
-
form
-
item
label
=
"居委会"
prop
=
"committee"
:
rules
=
"[
{ required: form.area === '1', message: '请选择居委会', trigger: ['blur','change']
}
]"
>
<
el
-
select
style
=
"width: 100%"
v
-
model
=
"form.committee"
placeholder
=
"请选择居委会"
:
disabled
=
"form.area !== '1'"
@
change
=
"juSelect"
>
<
el
-
option
v
-
for
=
"dict in ju"
...
...
@@ -389,7 +401,13 @@
<
/el-row
>
<
el
-
row
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"小区/村名称"
prop
=
"community"
>
<
el
-
form
-
item
label
=
"小区/村名称"
prop
=
"community"
:
rules
=
"[
{ required: form.area === '1', message: '请选择小区/村名称', trigger: ['blur','change']
}
]"
>
<
el
-
select
style
=
"width: 100%"
v
-
model
=
"form.community"
placeholder
=
"请选择小区/村名称"
:
disabled
=
"form.area !== '1'"
>
<
el
-
option
v
-
for
=
"dict in cun"
...
...
@@ -1091,6 +1109,7 @@ export default {
cardNo
:
null
,
phone
:
null
,
area
:
null
,
committee
:
null
,
street
:
null
,
isolationStatus
:
null
,
fcName
:
null
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment