Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
inspect_report
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhengjinlei
inspect_report
Commits
6492e264
Commit
6492e264
authored
Apr 24, 2020
by
lvshibao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rule页面修改
parent
92ec95ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
rule.html
src/inspect_report/templates/inspect/rule.html
+1
-1
rule.js
static/inspect/js/rule.js
+11
-0
No files found.
src/inspect_report/templates/inspect/rule.html
View file @
6492e264
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
:value=
"item.id"
>
:value=
"item.id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-select
v-model=
"countryvalue"
filterable
placeholder=
"请选择县"
@
change=
"changeCountry"
>
<el-select
v-model=
"countryvalue"
v-if=
"country_show == true"
filterable
placeholder=
"请选择县"
@
change=
"changeCountry"
>
<el-option
<el-option
v-for=
"item in countryList"
v-for=
"item in countryList"
:key=
"item.id"
:key=
"item.id"
...
...
static/inspect/js/rule.js
View file @
6492e264
...
@@ -8,6 +8,7 @@ new Vue({
...
@@ -8,6 +8,7 @@ new Vue({
countryList
:[],
countryList
:[],
cityvalue
:
null
,
cityvalue
:
null
,
countryvalue
:
null
,
countryvalue
:
null
,
country_chow
:
false
,
start_date
:
''
,
start_date
:
''
,
isscrollTop
:
false
,
isscrollTop
:
false
,
currentPage
:
1
,
currentPage
:
1
,
...
@@ -74,6 +75,11 @@ new Vue({
...
@@ -74,6 +75,11 @@ new Vue({
that
.
$message
(
'
服务器错误
'
)
that
.
$message
(
'
服务器错误
'
)
}
else
{
}
else
{
that
.
countryList
=
data
.
data
.
country_list
;
that
.
countryList
=
data
.
data
.
country_list
;
if
(
that
.
countryList
.
length
>
0
)
{
that
.
country_chow
=
true
;
}
else
{
that
.
country_chow
=
false
;
};
}
}
})
})
},
},
...
@@ -93,6 +99,11 @@ new Vue({
...
@@ -93,6 +99,11 @@ new Vue({
}
else
{
}
else
{
that
.
cityList
=
data
.
data
.
city_list
;
that
.
cityList
=
data
.
data
.
city_list
;
that
.
countryList
=
data
.
data
.
country_list
;
that
.
countryList
=
data
.
data
.
country_list
;
if
(
that
.
countryList
.
length
>
0
)
{
that
.
country_chow
=
true
;
}
else
{
that
.
country_chow
=
false
;
};
that
.
cityvalue
=
data
.
data
.
city_id
;
that
.
cityvalue
=
data
.
data
.
city_id
;
console
.
log
(
that
.
cityvalue
);
console
.
log
(
that
.
cityvalue
);
that
.
init_simple
=
true
;
that
.
init_simple
=
true
;
...
...
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