Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
b26e3dd0
Commit
b26e3dd0
authored
Jun 18, 2021
by
薛文刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
案件编号查询
parent
12b0f350
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
46 deletions
+60
-46
src/views/ryxxhc/ryxxkcDetail.vue
+0
-0
src/views/ryxxhc/ryxxkcSearch.vue
+60
-46
No files found.
src/views/ryxxhc/ryxxkcDetail.vue
View file @
b26e3dd0
This diff is collapsed.
Click to expand it.
src/views/ryxxhc/ryxxkcSearch.vue
View file @
b26e3dd0
<
template
>
<div
id=
"ryxxkcSearch"
class=
"ryxxkcSearch"
>
<div
id=
"ryxxkcSearch"
class=
"ryxxkcSearch"
>
<div
class=
"top-title"
>
人员信息核查
</div>
<div
style=
"margin-top: 15px;"
>
<el-input
:placeholder=
"seletListValue[selectType]==undefined?'':'请输入'+seletListValue[selectType]"
v-model=
"searchValue"
class=
"input-with-select"
>
<el-select
v-model=
"selectType"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
:label=
"item.name"
:value=
"item.value"
v-for=
"(item,index) in seletList"
:key=
"index"
></el-option>
<el-input
:placeholder=
"seletListValue[selectType]==undefined?'':'请输入'+seletListValue[selectType]"
v-model=
"searchValue"
class=
"input-with-select"
>
<el-select
v-model=
"selectType"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
:label=
"item.name"
:value=
"item.value"
v-for=
"(item,index) in seletList"
:key=
"index"
></el-option>
</el-select>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"search"
>
搜索
</el-button>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"search"
>
搜索
</el-button>
</el-input>
</div>
<div
class=
"history"
>
<ul>
<li
v-for=
"(item,index) in historyList"
:key=
"index"
class=
"historyItem"
@
click=
"setValue(item)"
>
{{
item
.
value
}}
</li>
<li
v-for=
"(item,index) in historyList"
:key=
"index"
class=
"historyItem"
@
click=
"setValue(item)"
>
{{
item
.
value
}}
</li>
</ul>
</div>
</div>
</
template
>
<
script
>
import
{
ryxxhcSelectList
,
ryxxhcSelectListValue
}
from
"@/utils/params"
;
export
default
{
import
{
ryxxhcSelectList
,
ryxxhcSelectListValue
}
from
"@/utils/params"
;
export
default
{
name
:
"ryxxkcSearch"
,
data
()
{
data
()
{
return
{
searchValue
:
''
,
selectType
:
'zjhm'
,
seletList
:
ryxxhcSelectList
,
seletListValue
:
ryxxhcSelectListValue
,
historyList
:
[]
searchValue
:
''
,
selectType
:
'zjhm'
,
seletList
:
ryxxhcSelectList
,
seletListValue
:
ryxxhcSelectListValue
,
historyList
:
[]
}
},
methods
:{
setValue
(
item
){
this
.
selectType
=
item
.
type
;
this
.
searchValue
=
item
.
value
;
methods
:
{
setValue
(
item
)
{
debugger
this
.
selectType
=
item
.
type
;
this
.
searchValue
=
item
.
value
;
},
search
()
{
let
self
=
this
;
if
(
self
.
searchValue
!=
""
)
{
let
history
=
[];
let
json
=
{};
json
.
type
=
self
.
selectType
;
json
.
value
=
self
.
searchValue
;
if
(
sessionStorage
.
getItem
(
"searchHistory"
))
{
let
i
=
0
;
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
)).
forEach
(
item
=>
{
search
()
{
let
self
=
this
;
if
(
self
.
searchValue
!=
""
)
{
let
history
=
[];
let
json
=
{};
json
.
type
=
self
.
selectType
;
json
.
value
=
self
.
searchValue
;
if
(
sessionStorage
.
getItem
(
"searchHistory"
))
{
let
i
=
0
;
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
)).
forEach
(
item
=>
{
debugger
i
++
;
if
(
item
.
value
==
self
.
searchValue
&&
item
.
type
==
self
.
selectType
)
{
history
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
));
if
(
item
.
value
==
self
.
searchValue
&&
item
.
type
==
self
.
selectType
)
{
history
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
));
return
;
}
if
(
i
==
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
)).
length
)
{
history
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
));
if
(
i
==
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
)).
length
)
{
history
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
));
history
.
push
(
json
);
}
})
}
else
{
}
else
{
history
.
push
(
json
);
}
sessionStorage
.
setItem
(
"searchHistory"
,
JSON
.
stringify
(
history
));
self
.
historyList
=
history
;
sessionStorage
.
setItem
(
"searchHistory"
,
JSON
.
stringify
(
history
));
self
.
historyList
=
history
;
let
routeData
=
self
.
$router
.
resolve
({
path
:
"/ryxxhcDetailIndex"
,
query
:
{
type
:
self
.
selectType
,
value
:
self
.
searchValue
}
query
:
{
type
:
self
.
selectType
,
value
:
self
.
searchValue
}
});
window
.
open
(
routeData
.
href
,
"_blank"
);
}
else
{
}
else
{
self
.
$message
({
type
:
"error"
,
message
:
"请输入"
+
self
.
seletListValue
[
self
.
selectType
]
message
:
"请输入"
+
self
.
seletListValue
[
self
.
selectType
]
});
}
}
},
mounted
()
{
let
self
=
this
;
if
(
sessionStorage
.
getItem
(
"searchHistory"
)){
self
.
historyList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
));
}
mounted
()
{
let
self
=
this
;
if
(
sessionStorage
.
getItem
(
"searchHistory"
))
{
self
.
historyList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"searchHistory"
));
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
'../../assets/styles/ryxxhc.scss'
;
@import
"../../assets/styles/ryxxhc.scss"
;
</
style
>
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