Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
048c6b91
authored
Apr 21, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
hosting complete
parent
500b0360
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
src/api/Bill/index.js
src/views/Bill/index.vue
src/views/Trusteeship/index.vue
src/api/Bill/index.js
View file @
048c6b91
...
@@ -7,7 +7,6 @@ export default {
...
@@ -7,7 +7,6 @@ export default {
// get数据
// get数据
getPeriod
()
{
getPeriod
()
{
console
.
log
(
'usermenberId='
,
usermemberId
);
let
url
=
urls
.
getPeriod
(
usermemberId
);
let
url
=
urls
.
getPeriod
(
usermemberId
);
return
AjaxRequest
.
get
(
url
);
return
AjaxRequest
.
get
(
url
);
},
},
...
...
src/views/Bill/index.vue
View file @
048c6b91
...
@@ -269,6 +269,7 @@ export default {
...
@@ -269,6 +269,7 @@ export default {
this
.
loadBillHostingData
(
this
.
currentPerId
);
this
.
loadBillHostingData
(
this
.
currentPerId
);
},
},
async
loadPeriodData
()
{
async
loadPeriodData
()
{
let
flag
=
false
;
await
this
.
loadBillPeriod
(
this
.
usermemberId
).
then
(
await
this
.
loadBillPeriod
(
this
.
usermemberId
).
then
(
data
=>
{
data
=>
{
this
.
period
=
data
;
this
.
period
=
data
;
...
@@ -281,15 +282,20 @@ export default {
...
@@ -281,15 +282,20 @@ export default {
break
;
break
;
}
}
}
}
flag
=
true
;
},
},
err
=>
{
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
}
}
);
);
if
(
flag
)
{
await
this
.
loadBillSummaryData
(
this
.
currentPerId
);
await
this
.
loadBillHostingData
(
this
.
currentPerId
);
}
},
},
async
loadBillSummaryData
(
accountId
)
{
async
loadBillSummaryData
(
accountId
)
{
let
param
=
{
let
param
=
{
accountId
,
accountId
};
};
await
this
.
loadBillSummary
(
param
).
then
(
await
this
.
loadBillSummary
(
param
).
then
(
data
=>
{
data
=>
{
...
@@ -303,7 +309,7 @@ export default {
...
@@ -303,7 +309,7 @@ export default {
},
},
async
loadBillHostingData
(
accountId
)
{
async
loadBillHostingData
(
accountId
)
{
let
param
=
{
let
param
=
{
accountId
,
accountId
};
};
await
this
.
loadBillHosting
(
param
).
then
(
await
this
.
loadBillHosting
(
param
).
then
(
data
=>
{
data
=>
{
...
@@ -317,8 +323,6 @@ export default {
...
@@ -317,8 +323,6 @@ export default {
},
},
async
mounted
()
{
async
mounted
()
{
await
this
.
loadPeriodData
();
await
this
.
loadPeriodData
();
await
this
.
loadBillSummaryData
(
this
.
currentPerId
);
await
this
.
loadBillHostingData
(
this
.
currentPerId
);
}
}
};
};
</
script
>
</
script
>
...
...
src/views/Trusteeship/index.vue
View file @
048c6b91
...
@@ -172,7 +172,6 @@ export default {
...
@@ -172,7 +172,6 @@ export default {
this
.
period
=
this
.
getPeriod
;
this
.
period
=
this
.
getPeriod
;
if
(
this
.
getHosting
)
{
if
(
this
.
getHosting
)
{
this
.
hosting
=
this
.
getHosting
;
this
.
hosting
=
this
.
getHosting
;
// console.log("this.hosting=", this.hosting);
}
}
}
}
},
},
...
@@ -201,7 +200,7 @@ export default {
...
@@ -201,7 +200,7 @@ export default {
};
};
await
this
.
loadBillHosting
(
param
).
then
(
await
this
.
loadBillHosting
(
param
).
then
(
data
=>
{
data
=>
{
this
.
data
.
hosting
=
data
;
this
.
hosting
=
data
;
},
},
err
=>
{
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
...
...
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