Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
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
吴学德
gdtel-gztel-school-center-ui
Commits
a933fce5
Commit
a933fce5
authored
Jan 14, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询验证码
parent
c6e21a27
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
118 additions
and
0 deletions
+118
-0
src/api/school-center/authCodeAPI.js
+9
-0
src/api/school-center/orderAPI.js
+2
-0
src/views/school-center/authcode/hhrAuthCode.vue
+107
-0
No files found.
src/api/school-center/authCodeAPI.js
0 → 100644
View file @
a933fce5
import
{
postAction
}
from
'@/api/manage'
const
prefix
=
'/manager/ciop'
;
//查询验证码
let
queryAuthCode
=
(
params
)
=>
postAction
(
prefix
+
"/authCode/queryAuthCode"
,
params
);
export
{
queryAuthCode
}
src/api/school-center/orderAPI.js
View file @
a933fce5
...
@@ -22,6 +22,8 @@ let editOrder = (params) => postAction(prefix + "order/editOrder" , params);
...
@@ -22,6 +22,8 @@ let editOrder = (params) => postAction(prefix + "order/editOrder" , params);
let
reportList
=
(
params
)
=>
postAction
(
prefix
+
"order/getHhrOrderInfo"
,
params
);
let
reportList
=
(
params
)
=>
postAction
(
prefix
+
"order/getHhrOrderInfo"
,
params
);
let
reportDownload
=
(
params
)
=>
downFilePost
(
prefix
+
"order/outputHhrOrder"
,
params
);
let
reportDownload
=
(
params
)
=>
downFilePost
(
prefix
+
"order/outputHhrOrder"
,
params
);
export
{
export
{
orderList
,
orderList
,
broadBandList
,
broadBandList
,
...
...
src/views/school-center/authcode/hhrAuthCode.vue
0 → 100644
View file @
a933fce5
<
template
>
<div
class=
"flex-container"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<!-- 搜索区域 -->
<a-form
layout=
"inline"
>
<a-row
:gutter=
"24"
>
<span
class=
"table-page-search-submitButtons"
style=
"float: right; overflow: hidden;height: 35px;"
>
<a-col
:md=
"4"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
</a-col>
</span>
<a-col
:md=
"6"
:sm=
"12"
style=
"float: right; height: 35px;"
>
<a-form-item
label=
"手机号:"
>
<a-input
placeholder=
"手机号"
v-model=
"queryParam.id"
></a-input>
</a-form-item>
</a-col>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
:locale=
"emptyText"
></s-table>
</div>
</
template
>
<
script
>
import
STable
from
"@/components/table"
;
import
{
queryAuthCode
}
from
"../../../api/school-center/authCodeAPI"
;
import
{
cloneObject
}
from
"@/utils/util"
;
import
moment
from
"moment"
;
export
default
{
name
:
"hhrAuthCode"
,
components
:
{
STable
},
data
()
{
return
{
emptyText
:
{
emptyText
:
'暂无数据'
},
callback
:
false
,
Formtable
:
this
.
$form
.
createForm
(
this
),
queryParam
:
{
id
:
""
,
},
columns
:
[
{
dataIndex
:
"id"
,
width
:
80
,
title
:
"手机号"
},
{
dataIndex
:
"userAuthCode"
,
width
:
80
,
title
:
"验证码"
},
],
rowdata
:
parameter
=>
{
let
params
=
{
pageNo
:
parameter
.
pageNo
,
pageSize
:
parameter
.
pageSize
};
let
obj
=
cloneObject
(
this
.
queryParam
);
//表示
return
queryAuthCode
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
console
.
log
(
res
);
let
data
=
{};
if
(
res
.
state
!==
"success"
)
{
this
.
$message
.
error
(
"查询失败!"
,
5
);
this
.
emptyText
.
emptyText
=
'查询失败!'
data
=
{
data
:
[]
};
}
else
{
data
=
{
data
:
res
.
data
};
}
return
data
;
});
}
};
},
methods
:
{
moment
,
search
()
{
let
reg
=
(
/^1
[
0-9
]{10}
$/
);
if
(
this
.
queryParam
.
id
==
''
)
{
this
.
$message
.
error
(
"请输入联系号码!"
,
5
);
this
.
emptyText
.
emptyText
=
'请输入联系号码!'
return
}
if
(
reg
.
test
(
this
.
queryParam
.
id
)
==
false
)
{
this
.
$message
.
error
(
"请输入正确的联系号码!"
,
5
);
this
.
emptyText
.
emptyText
=
'请输入正确的联系号码!'
return
}
this
.
$refs
.
table
.
refresh
({
search
:
true
});
},
}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
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