Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayPc
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
fengzhaoyu
mingPayPc
Commits
b4035a2c
Commit
b4035a2c
authored
Sep 04, 2019
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复更新
parent
b0bad550
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
axios.js
src/api/axios.js
+2
-2
AllowancePayment.vue
src/components/pages/PaymentManagement/AllowancePayment.vue
+9
-3
PaymentManagementHome.vue
...ponents/pages/PaymentManagement/PaymentManagementHome.vue
+12
-8
No files found.
src/api/axios.js
View file @
b4035a2c
import
axios
from
'axios'
import
qs
from
'qs'
// axios.defaults.baseURL = 'http://192.168.1.106:8300/v1/isv' // 本地荣
//
axios.defaults.baseURL = 'http://192.168.1.102:8300/v1/isv' // 本地钱
axios
.
defaults
.
baseURL
=
'http://139.196.213.18:8300/v1/isv'
// beta环境
axios
.
defaults
.
baseURL
=
'http://192.168.1.102:8300/v1/isv'
// 本地钱
//
axios.defaults.baseURL = 'http://139.196.213.18:8300/v1/isv' // beta环境
let
loadingInstance
// 创建Loading 的实例
axios
.
defaults
.
headers
[
'Authorization'
]
=
`Bearer
${
localStorage
.
getItem
(
'token'
)}
`
// 设置请求头为 Authorization
// 配置发送请求前的拦截器可以设置token信息
...
...
src/components/pages/PaymentManagement/AllowancePayment.vue
View file @
b4035a2c
...
...
@@ -278,12 +278,17 @@ export default {
return
str
.
substring
(
0
,
str
.
length
-
1
)
},
createSubsidy
()
{
this
.
visible
=
false
this
.
spinning
=
true
this
.
form
.
validateFields
((
err
,
fieldsValue
)
=>
{
if
(
err
)
{
this
.
$message
.
error
(
'请完整填写津贴相关信息'
)
return
}
if
(
this
.
userIdListObj
.
length
===
0
&&
this
.
departmentIdListObj
.
length
===
0
)
{
this
.
$message
.
error
(
'请完整填写津贴相关信息'
)
return
}
this
.
visible
=
false
this
.
spinning
=
true
// Should format date value before submit.
const
values
=
{
...
fieldsValue
,
...
...
@@ -311,10 +316,11 @@ export default {
this
.
form
.
resetFields
()
this
.
userIdListObj
=
[]
this
.
departmentIdListObj
=
[]
this
.
$message
.
success
(
res
.
data
.
data
)
this
.
spinning
=
false
this
.
$message
.
success
(
res
.
data
.
data
)
this
.
queryRecordList
()
}
else
{
this
.
spinning
=
false
this
.
$message
.
error
(
res
.
data
.
message
)
}
})
...
...
src/components/pages/PaymentManagement/PaymentManagementHome.vue
View file @
b4035a2c
...
...
@@ -9,13 +9,13 @@
style=
"height: 100%"
@
click=
"routerPush"
>
<a-menu-item
key=
"accountManagement"
><div
:class=
"[chooseMenuList === 'accountManagement' ? 'menuIcon menuIcon1_1' : 'menuIcon menuIcon1_2
']"
></div>
账户中心
</a-menu-item>
<a-menu-item
key=
"rechargeRecord"
><div
:class=
"[chooseMenuList === 'rechargeRecord' ? 'menuIcon menuIcon2_1' : 'menuIcon menuIcon2_2
']"
></div>
充值记录
</a-menu-item>
<a-menu-item
key=
"allowancePayment"
><div
:class=
"[chooseMenuList === 'allowancePayment' ? 'menuIcon menuIcon3_1' : 'menuIcon menuIcon3_2
']"
></div>
津贴发放
</a-menu-item>
<a-menu-item
key=
"recordsOfConsumption"
><div
:class=
"[chooseMenuList === 'recordsOfConsumption' ? 'menuIcon menuIcon4_1' : 'menuIcon menuIcon4_2
']"
></div>
消费记录
</a-menu-item>
<a-menu-item
key=
"cashierManagement"
><div
:class=
"[chooseMenuList === 'cashierManagement' ? 'menuIcon menuIcon5_1' : 'menuIcon menuIcon5_2
']"
></div>
设置管理员
</a-menu-item>
<a-menu-item
key=
"systemReconciliation"
><div
:class=
"[chooseMenuList === 'systemReconciliation' ? 'menuIcon menuIcon6_1' : 'menuIcon menuIcon6_2
']"
></div>
系统对账
</a-menu-item>
<a-menu-item
key=
"paymentManagementSetting"
><div
:class=
"[chooseMenuList === 'paymentManagementSetting' ? 'menuIcon menuIcon7_1' : 'menuIcon menuIcon7_2
']"
></div>
设置中心
</a-menu-item>
<a-menu-item
class=
"itemFlex"
key=
"accountManagement"
><div
:class=
"[chooseMenuList === 'accountManagement' ? 'menuIcon menuIcon1_2' : 'menuIcon menuIcon1_1
']"
></div>
账户中心
</a-menu-item>
<a-menu-item
class=
"itemFlex"
key=
"rechargeRecord"
><div
:class=
"[chooseMenuList === 'rechargeRecord' ? 'menuIcon menuIcon2_2' : 'menuIcon menuIcon2_1
']"
></div>
充值记录
</a-menu-item>
<a-menu-item
class=
"itemFlex"
key=
"allowancePayment"
><div
:class=
"[chooseMenuList === 'allowancePayment' ? 'menuIcon menuIcon3_2' : 'menuIcon menuIcon3_1
']"
></div>
津贴发放
</a-menu-item>
<a-menu-item
class=
"itemFlex"
key=
"recordsOfConsumption"
><div
:class=
"[chooseMenuList === 'recordsOfConsumption' ? 'menuIcon menuIcon4_2' : 'menuIcon menuIcon4_1
']"
></div>
消费记录
</a-menu-item>
<a-menu-item
class=
"itemFlex"
key=
"cashierManagement"
><div
:class=
"[chooseMenuList === 'cashierManagement' ? 'menuIcon menuIcon5_2' : 'menuIcon menuIcon5_1
']"
></div>
设置管理员
</a-menu-item>
<a-menu-item
class=
"itemFlex"
key=
"systemReconciliation"
><div
:class=
"[chooseMenuList === 'systemReconciliation' ? 'menuIcon menuIcon6_2' : 'menuIcon menuIcon6_1
']"
></div>
系统对账
</a-menu-item>
<a-menu-item
class=
"itemFlex"
key=
"paymentManagementSetting"
><div
:class=
"[chooseMenuList === 'paymentManagementSetting' ? 'menuIcon menuIcon7_2' : 'menuIcon menuIcon7_1
']"
></div>
设置中心
</a-menu-item>
<!--
<a-menu-item
key=
"operationLog"
>
操作日志
</a-menu-item>
-->
</a-menu>
</a-layout-sider>
...
...
@@ -53,11 +53,15 @@ export default {
</
script
>
<
style
lang=
"less"
scoped
>
.itemFlex
{
display
:
flex
;
align-items
:
center
;
}
.menuIcon
{
width
:
13px
;
height
:
13px
;
margin-right
:
5px
;
margin-top
:
3
px
;
margin-top
:
1
px
;
background-size
:
cover
;
display
:
inline-block
;
}
...
...
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