Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
allCampaign
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
allCampaign
Commits
3e29d018
Commit
3e29d018
authored
Apr 03, 2019
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件更新
parent
1ac68250
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
40 deletions
+84
-40
occupationQry/.idea/workspace.xml
+0
-0
occupationQry/index.html
+62
-36
occupationQry/js/base.js
+22
-4
No files found.
occupationQry/.idea/workspace.xml
View file @
3e29d018
This diff is collapsed.
Click to expand it.
occupationQry/index.html
View file @
3e29d018
name String 姓名
idTypeId Long 证件类型《通用代码7.0》
idNo String 证件号码
birthdate String 出生年月
gender Integer 性别
mobileNo String 手机号码
wechatId String 微信号
<!DOCTYPE html>
<html
lang=
"zh-CN"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
>
<meta
http-equiv=
"Expires"
content=
"0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"
>
<title>
职业类别查询
</title>
<link
rel=
"stylesheet"
href=
"./css/bootstrap.min.css"
>
<!-- <link rel="stylesheet" href="./css/style.css"> -->
<link
rel=
"shortcut icon"
href=
"https://www.ydinsurance.cn/wp-content/uploads/2018/04/favicon.gif"
/>
</head>
<body>
<div
class=
"container"
>
<div
class=
"wrapper"
>
<h1
class=
"row title"
>
<div
class=
"col-md-4"
>
<img
src=
"images/ydinsurance_logo.jpg"
/></div>
<div
class=
"col-md-8"
>
<span>
职业类别查询
</span>
</div>
</h1>
<div
class=
"condition row"
>
<div
class=
'title2'
>
查询条件
</div>
<div
class=
"content"
>
<div
class=
"category"
>
<select
class=
"form-control"
id=
"chose"
value=
"null"
>
</select>
<select
class=
"form-control"
id=
"choseTwo"
class=
"disabled"
disabled
>
</select>
</div>
<div
class=
"search"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入职业名称"
/>
<div
class=
"reset"
>
重置
</div>
</div>
<div
class=
"searchBtn"
></div>
</div>
<div
class=
"total"
>
查询结果:共
<span>
0
</span>
条
</div>
</div>
<div
class=
"table-responsive"
>
<table
id=
'table'
border=
"1"
cellspacing=
"0"
style=
"display: none;"
class=
"table text-nowrap"
>
<thead>
<tr>
<th>
行业
</th>
<th>
职业类别
</th>
<th>
职业名称
</th>
<th>
职业代码
</th>
<th>
职业分类
</th>
</tr>
</thead>
<tbody>
<span
[
ngSwitch
]="
upDate
.
customerIdTypeId
"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchCase=
"1"
readonly
value=
"身份证"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchCase=
"2"
readonly
value=
"护照"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchCase=
"3"
readonly
value=
"港澳通行证"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchCase=
"4"
readonly
value=
"台胞证"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchCase=
"5"
readonly
value=
"香港身份证"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchCase=
"9"
readonly
value=
"其他"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchCase=
"20"
readonly
value=
"统一社会信用代码"
>
<input
type=
"text"
class=
"form-control"
*
ngSwitchDefault
readonly
value=
""
>
</span>
</tbody>
</table>
</div>
</div>
<div
class=
"noResult"
style=
"display: none;text-align: center"
>
无搜索结果
</div>
</div>
<span
[
ngSwitch
]="
cus
.
customer
['
idTypeId
']"
>
<span
*
ngSwitchCase=
"1"
>
身份证
</span>
<span
*
ngSwitchCase=
"2"
>
护照
</span>
<span
*
ngSwitchCase=
"3"
>
港澳通行证
</span>
<span
*
ngSwitchCase=
"4"
>
台胞证
</span>
<span
*
ngSwitchCase=
"5"
>
香港身份证
</span>
<span
*
ngSwitchCase=
"9"
>
其他
</span>
<span
*
ngSwitchCase=
"20"
>
统一社会信用代码
</span>
<span
*
ngSwitchDefault
>
/
</span>
</span>
requestor
customer
payTo
report_unpaid ---record-payment
\ No newline at end of file
<script
src=
"./js/jquery.min.js"
></script>
<script
src=
"./js/bootstrap.min.js"
></script>
<script
src=
"./js/base.js"
></script>
</body>
</html>
\ No newline at end of file
occupationQry/js/base.js
View file @
3e29d018
$
(
function
(){
var
api
=
'https://m
dev
.zuihuibi.cn/api'
;
//初始化参
?
var
api
=
'https://m.zuihuibi.cn/api'
;
//初始化参
数
var
param
=
{
"insurerId"
:
2
,
"accurateOccupationFlag"
:
1
,
"industryId"
:
null
,
"occupationTypeId"
:
null
,
"occupationName"
:
null
}
var
optionListOrigin
=
"<option value='null' disabled selected hidden>请选择行业</option>"
var
optionListOriginTwo
=
"<option value='null' disabled selected hidden>请选择职业类别</option>"
var
industryList
=
''
;
var
occupationTypesList
=
''
function
getToken
(){
$
.
ajax
({
type
:
"POST"
,
url
:
api
+
'/authorize/obtainToken'
,
contentType
:
"application/json"
,
data
:
JSON
.
stringify
({
ticket
:
'job'
}),
async
:
false
,
success
:
function
(
res
){
token
=
res
.
data
.
token
}
})
return
token
;
}
var
token
=
getToken
()
//初始化职业类别为请选择
$
(
"#choseTwo"
).
html
(
optionListOriginTwo
)
getData
();
...
...
@@ -15,6 +30,7 @@ $(function(){
url
:
api
+
'/metadata/occupationQry'
,
contentType
:
"application/json"
,
data
:
JSON
.
stringify
(
param
),
headers
:{
"X-Authorization"
:
token
},
success
:
function
(
res
){
if
(
res
.
success
){
var
industryData
=
res
.
data
.
industry
;
...
...
@@ -30,7 +46,7 @@ $(function(){
$
(
"#chose"
).
change
(
function
(){
$
(
"#chose"
).
attr
(
"value"
,
this
.
value
)
//给行业赋?
//给行业赋值
param
.
industryId
=
this
.
value
;
param
.
occupationTypeId
=
null
;
param
.
occupationName
=
null
;
...
...
@@ -44,6 +60,7 @@ $(function(){
url
:
api
+
'/metadata/occupationQry'
,
contentType
:
"application/json"
,
data
:
JSON
.
stringify
(
param
),
headers
:{
"X-Authorization"
:
token
},
success
:
function
(
res
){
if
(
res
.
success
){
if
(
res
.
data
.
industry
.
length
>
0
){
...
...
@@ -68,7 +85,7 @@ $(function(){
}
})
//给职业类别赋
?
//给职业类别赋
值
$
(
"#choseTwo"
).
change
(
function
(){
$
(
"#choseTwo"
).
attr
(
"value"
,
this
.
value
)
param
.
occupationTypeId
=
this
.
value
;
...
...
@@ -86,6 +103,7 @@ $(function(){
url
:
api
+
'/metadata/occupationQry'
,
contentType
:
"application/json"
,
data
:
JSON
.
stringify
(
param
),
headers
:{
"X-Authorization"
:
token
},
success
:
function
(
res
){
if
(
res
.
success
){
$
(
"#table"
).
show
();
...
...
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