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
f5a1d71f
Commit
f5a1d71f
authored
Jul 06, 2020
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userPractitionerDetailQuery增加source,判断是来自DYD还是wordpress
parent
295f0bea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
brokerQry/package.json
+3
-1
brokerQry/src/app/broker-detail/broker-detail.component.ts
+9
-5
No files found.
brokerQry/package.json
View file @
f5a1d71f
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
"scripts"
:
{
"scripts"
:
{
"ng"
:
"ng"
,
"ng"
:
"ng"
,
"start"
:
"ng serve --host 192.168.1.25"
,
"start"
:
"ng serve --host 192.168.1.25"
,
"build"
:
"ng build"
,
"buildDev"
:
"ng build -c=dev --prod"
,
"buildStage"
:
"ng build -c=stage --prod"
,
"buildProd"
:
"ng build -c=prod --prod"
,
"test"
:
"ng test"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
"lint"
:
"ng lint"
,
"e2e"
:
"ng e2e"
"e2e"
:
"ng e2e"
...
...
brokerQry/src/app/broker-detail/broker-detail.component.ts
View file @
f5a1d71f
import
{
Component
,
ElementRef
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
Component
,
ElementRef
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
EventBusService
}
from
'../event-bus.service'
;
import
{
EventBusService
}
from
'../event-bus.service'
;
import
{
ActivatedRoute
}
from
'@angular/router'
;
import
{
ActivatedRoute
}
from
'@angular/router'
;
import
{
environment
}
from
'../../environments/environment'
import
{
environment
}
from
'../../environments/environment'
@
Component
({
@
Component
({
selector
:
'app-broker-detail'
,
selector
:
'app-broker-detail'
,
templateUrl
:
'./broker-detail.component.html'
,
templateUrl
:
'./broker-detail.component.html'
,
...
@@ -16,6 +16,7 @@ export class BrokerDetailComponent implements OnInit {
...
@@ -16,6 +16,7 @@ export class BrokerDetailComponent implements OnInit {
scaleImgPath
:
any
;
scaleImgPath
:
any
;
reloadurl
:
any
;
reloadurl
:
any
;
deviceType
:
number
;
deviceType
:
number
;
constructor
(
private
eventBusService
:
EventBusService
,
private
activatedRoute
:
ActivatedRoute
)
{
constructor
(
private
eventBusService
:
EventBusService
,
private
activatedRoute
:
ActivatedRoute
)
{
}
}
...
@@ -29,9 +30,12 @@ export class BrokerDetailComponent implements OnInit {
...
@@ -29,9 +30,12 @@ export class BrokerDetailComponent implements OnInit {
this
.
deviceType
=
this
.
checkDeviceType
();
this
.
deviceType
=
this
.
checkDeviceType
();
}
}
userPractitionerDetailQuery
()
{
userPractitionerDetailQuery
()
{
// source 0.DYD 1.WordPass
const
practitionerId
=
{
const
practitionerId
=
{
practitionerId
:
this
.
practitionerId
practitionerId
:
this
.
practitionerId
,
source
:
this
.
activatedRoute
.
snapshot
.
queryParams
[
'source'
]
?
this
.
activatedRoute
.
snapshot
.
queryParams
[
'source'
]
:
1
};
};
this
.
eventBusService
.
userPractitionerDetailQuery
(
practitionerId
).
then
(
res
=>
{
this
.
eventBusService
.
userPractitionerDetailQuery
(
practitionerId
).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
...
...
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