Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
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
Sweet Zhang
ydLife
Commits
b0b131ba
Commit
b0b131ba
authored
May 25, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除团队销售活动量&增员备注修改
parent
87fa7de7
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
30 deletions
+67
-30
src/app/my/my-business-detail/my-business-detail.component.html
+1
-1
src/app/my/my-business-detail/my-business-detail.component.scss
+3
-4
src/app/my/my-target/my-target.component.html
+5
-4
src/app/my/my-target/my-target.component.scss
+2
-2
src/app/my/recruiting-detail/recruiting-detail.component.html
+11
-2
src/app/my/recruiting-detail/recruiting-detail.component.scss
+19
-2
src/app/my/recruiting-detail/recruiting-detail.component.ts
+17
-5
src/index.html
+9
-10
No files found.
src/app/my/my-business-detail/my-business-detail.component.html
View file @
b0b131ba
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
<div
class=
"salesNotice"
>
<div
class=
"salesNotice"
>
<span>
<span>
<input
type=
"text"
class=
"form-control"
[(
ngModel
)]="
opportunityRecordItem
.
salesNotice
"
<input
type=
"text"
class=
"form-control"
[(
ngModel
)]="
opportunityRecordItem
.
salesNotice
"
[
disabled
]="
remarkId
!=
opportunityRecordItem
.
id
"
/>
[
disabled
]="
remarkId
!=
opportunityRecordItem
.
id
"
(
blur
)="
inputBlur
()"
/>
</span>
</span>
<i
*
ngIf=
"remarkId!=opportunityRecordItem.id"
class=
"iconfont icon-bianji"
<i
*
ngIf=
"remarkId!=opportunityRecordItem.id"
class=
"iconfont icon-bianji"
(
click
)="
editRemark
(
opportunityRecordItem
.
id
)"
></i>
(
click
)="
editRemark
(
opportunityRecordItem
.
id
)"
></i>
...
...
src/app/my/my-business-detail/my-business-detail.component.scss
View file @
b0b131ba
...
@@ -38,13 +38,12 @@
...
@@ -38,13 +38,12 @@
line-height
:
55px
;
line-height
:
55px
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
fixed
;
position
:
fixed
;
right
:
10px
;
left
:
42%
;
font-size
:
24px
;
font-size
:
24px
;
color
:
#fff
;
color
:
#fff
;
background
:
#0767bf
;
background
:
#0767bf
;
text-align
:
center
;
text-align
:
center
;
bottom
:
50px
;
bottom
:
50px
;
left
:
42%
;
}
}
.contentDetail
{
.contentDetail
{
margin-top
:
15px
;
margin-top
:
15px
;
...
@@ -130,12 +129,12 @@
...
@@ -130,12 +129,12 @@
line-height
:
55px
;
line-height
:
55px
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
fixed
;
position
:
fixed
;
right
:
10px
;
right
:
42%
;
font-size
:
24px
;
font-size
:
24px
;
color
:
#fff
;
color
:
#fff
;
background
:
#0767bf
;
background
:
#0767bf
;
text-align
:
center
;
text-align
:
center
;
bottom
:
3
0px
;
bottom
:
5
0px
;
font-size
:
28px
;
font-size
:
28px
;
// color: #ff5933;
// color: #ff5933;
font-weight
:
bold
;
font-weight
:
bold
;
...
...
src/app/my/my-target/my-target.component.html
View file @
b0b131ba
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<li
(
click
)="
searchType=
2;salesTargetQuery(1)"
[
ngClass
]="{
selected:searchType=
==2}"
>
销售活动量
</li>
<li
(
click
)="
searchType=
2;salesTargetQuery(1)"
[
ngClass
]="{
selected:searchType=
==2}"
>
销售活动量
</li>
<li
(
click
)="
searchType=
5;this.salesTargetQuery(2)"
*
ngIf=
"isTeamleader==='1'"
<li
(
click
)="
searchType=
5;this.salesTargetQuery(2)"
*
ngIf=
"isTeamleader==='1'"
[
ngClass
]="{
selected:searchType=
==5}"
>
团队销售目标
</li>
[
ngClass
]="{
selected:searchType=
==5}"
>
团队销售目标
</li>
<li
(
click
)="
searchType=
6;this.salesTargetQuery(2)"
*
ngIf=
"isTeamleader==='1'"
<
!-- <
li (click)="searchType=6;this.salesTargetQuery(2)" *ngIf="isTeamleader==='1'"
[
ngClass
]="{
selected:searchType=
==6}"
>
团队销售活动量
</li>
[ngClass]="{selected:searchType===6}">团队销售活动量</li>
-->
<li
(
click
)="
searchType=
3;potentialGoalsQuery();"
*
ngIf=
"isTeamleader==='1'"
<li
(
click
)="
searchType=
3;potentialGoalsQuery();"
*
ngIf=
"isTeamleader==='1'"
[
ngClass
]="{
selected:searchType=
==3}"
>
[
ngClass
]="{
selected:searchType=
==3}"
>
增员目标
</li>
增员目标
</li>
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
</div>
</div>
</div>
</div>
<div
class=
"content_target"
*
ngIf=
"searchType===6"
>
<
!-- <
div class="content_target" *ngIf="searchType===6">
<div class="content_target_wrapper">
<div class="content_target_wrapper">
<div class="line">
<div class="line">
<i class="iconfont icon-bianji" *ngIf="personalSalesActivityFlag"
<i class="iconfont icon-bianji" *ngIf="personalSalesActivityFlag"
...
@@ -214,6 +214,6 @@
...
@@ -214,6 +214,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
-->
</div>
</div>
<ydlife-toast
*
ngIf=
"toastDialog"
[
toastInfo
]="
toastInfo
"
></ydlife-toast>
<ydlife-toast
*
ngIf=
"toastDialog"
[
toastInfo
]="
toastInfo
"
></ydlife-toast>
\ No newline at end of file
src/app/my/my-target/my-target.component.scss
View file @
b0b131ba
...
@@ -10,7 +10,7 @@ ul li,ol li{
...
@@ -10,7 +10,7 @@ ul li,ol li{
padding
:
10px
2px
;
padding
:
10px
2px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
float
:
left
;
float
:
left
;
width
:
1
8
0%
;
width
:
1
3
0%
;
overflow
:
hidden
;
overflow
:
hidden
;
overflow-x
:
auto
;
overflow-x
:
auto
;
li
{
li
{
...
@@ -22,7 +22,7 @@ ul li,ol li{
...
@@ -22,7 +22,7 @@ ul li,ol li{
border-radius
:
20px
;
border-radius
:
20px
;
margin
:
0px
2px
;
margin
:
0px
2px
;
float
:
left
;
float
:
left
;
width
:
1
6
%
;
width
:
1
9
%
;
h3
{
h3
{
font-weight
:
normal
;
font-weight
:
normal
;
font-size
:
16px
;
font-size
:
16px
;
...
...
src/app/my/recruiting-detail/recruiting-detail.component.html
View file @
b0b131ba
...
@@ -101,13 +101,22 @@
...
@@ -101,13 +101,22 @@
</div>
</div>
<div
class=
"content"
*
ngIf=
"selectedId===3;"
>
<div
class=
"content"
*
ngIf=
"selectedId===3;"
>
<ul
class=
"recordLists"
>
<ul
class=
"recordLists"
>
<li
*
ngFor=
"let recruitTrackInfoItem of recruitTrackInfoList"
>
<li
*
ngFor=
"let recruitTrackInfoItem of recruitTrackInfoList
;index as idx;
"
>
<div
style=
"display: flex;justify-content: space-between;"
>
<div
style=
"display: flex;justify-content: space-between;"
>
<div
class=
"updatedAt"
>
<div
class=
"updatedAt"
>
{{recruitTrackInfoItem.trackTime?recruitTrackInfoItem.trackTime:recruitTrackInfoItem.createAt}}
</div>
{{recruitTrackInfoItem.trackTime?recruitTrackInfoItem.trackTime:recruitTrackInfoItem.createAt}}
</div>
<div
class=
"opportunityRecordItem"
>
{{recruitTrackInfoItem.trackStatus}}
</div>
<div
class=
"opportunityRecordItem"
>
{{recruitTrackInfoItem.trackStatus}}
</div>
</div>
</div>
<div
class=
"salesNotice"
>
{{recruitTrackInfoItem.notice}}
</div>
<div
class=
"salesNotice"
>
<span>
<input
type=
"text"
class=
"form-control"
[
disabled
]="
remarkId
!=
recruitTrackInfoItem
.
trackId
"
[(
ngModel
)]="
recruitTrackInfoItem
.
notice
"
(
blur
)="
inputBlur
()"
>
</span>
<i
*
ngIf=
"remarkId!=recruitTrackInfoItem.trackId"
class=
"iconfont icon-bianji"
(
click
)="
editRemark
(
recruitTrackInfoItem
.
trackId
)"
></i>
<i
*
ngIf=
"remarkId==recruitTrackInfoItem.trackId"
class=
"iconfont icon-save"
(
click
)="
addRecruitTrack
(
recruitTrackInfoItem
)"
></i>
</div>
</li>
</li>
</ul>
</ul>
<div
class=
"add"
(
click
)="
this
.
isShow =
true;"
>
<div
class=
"add"
(
click
)="
this
.
isShow =
true;"
>
...
...
src/app/my/recruiting-detail/recruiting-detail.component.scss
View file @
b0b131ba
...
@@ -132,12 +132,12 @@
...
@@ -132,12 +132,12 @@
line-height
:
55px
;
line-height
:
55px
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
fixed
;
position
:
fixed
;
right
:
10px
;
left
:
42%
;
font-size
:
24px
;
font-size
:
24px
;
color
:
#fff
;
color
:
#fff
;
background
:
#0767bf
;
background
:
#0767bf
;
text-align
:
center
;
text-align
:
center
;
bottom
:
3
0px
;
bottom
:
5
0px
;
font-size
:
28px
;
font-size
:
28px
;
// color: #ff5933;
// color: #ff5933;
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -241,6 +241,23 @@
...
@@ -241,6 +241,23 @@
color
:
#8a8a8a
;
color
:
#8a8a8a
;
line-height
:
1
.1
;
line-height
:
1
.1
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
span
{
width
:
85%
;
.form-control
[
disabled
],
.form-control
[
readonly
],
fieldset
[
disabled
]
.form-control
{
background-color
:
#eee
;
opacity
:
.5
;
border
:
none
;
outline
:
none
;
box-shadow
:
none
;
padding-left
:
0
;
}
}
.iconfont
{
font-size
:
18px
;
}
}
}
}
}
...
...
src/app/my/recruiting-detail/recruiting-detail.component.ts
View file @
b0b131ba
...
@@ -38,6 +38,7 @@ export class RecruitingDetailComponent implements OnInit {
...
@@ -38,6 +38,7 @@ export class RecruitingDetailComponent implements OnInit {
resourceList
:
Array
<
any
>
;
resourceList
:
Array
<
any
>
;
trackTime
:
any
;
trackTime
:
any
;
status
:
any
;
status
:
any
;
remarkId
:
any
;
constructor
(
constructor
(
private
activateRoute
:
ActivatedRoute
,
private
activateRoute
:
ActivatedRoute
,
public
lifeCommonService
:
LifeCommonService
,
public
lifeCommonService
:
LifeCommonService
,
...
@@ -273,7 +274,9 @@ export class RecruitingDetailComponent implements OnInit {
...
@@ -273,7 +274,9 @@ export class RecruitingDetailComponent implements OnInit {
}
}
//新增增员跟进记录
//新增增员跟进记录
addRecruitTrack
()
{
addRecruitTrack
(
recruitTrackInfoItem
?:
any
)
{
let
param
;
if
(
!
recruitTrackInfoItem
)
{
const
oppDate
=
new
Date
(
this
.
trackTime
+
' 23:59:59'
).
getTime
();
const
oppDate
=
new
Date
(
this
.
trackTime
+
' 23:59:59'
).
getTime
();
const
createDate
=
new
Date
(
this
.
editRecruiting
.
createdAt
).
getTime
();
const
createDate
=
new
Date
(
this
.
editRecruiting
.
createdAt
).
getTime
();
// if (nowDate < oppDate) {
// if (nowDate < oppDate) {
...
@@ -296,7 +299,6 @@ export class RecruitingDetailComponent implements OnInit {
...
@@ -296,7 +299,6 @@ export class RecruitingDetailComponent implements OnInit {
};
};
return
;
return
;
}
}
if
(
!
this
.
trackStatusId
)
{
if
(
!
this
.
trackStatusId
)
{
this
.
toastDialog
=
true
;
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
this
.
toastInfo
=
{
...
@@ -317,23 +319,29 @@ export class RecruitingDetailComponent implements OnInit {
...
@@ -317,23 +319,29 @@ export class RecruitingDetailComponent implements OnInit {
};
};
return
;
return
;
}
}
const
RecruitTrackP
aram
=
{
p
aram
=
{
potentialId
:
this
.
potentialId
,
potentialId
:
this
.
potentialId
,
practitionerId
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
],
practitionerId
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
],
notice
:
this
.
notice
,
notice
:
this
.
notice
,
trackStatusId
:
this
.
trackStatusId
,
trackStatusId
:
this
.
trackStatusId
,
trackTime
:
this
.
trackTime
trackTime
:
this
.
trackTime
}
}
this
.
myService
.
addRecruitTrack
(
RecruitTrackParam
).
subscribe
((
res
)
=>
{
}
else
{
param
=
recruitTrackInfoItem
;
param
.
potentialId
=
this
.
potentialId
;
param
.
practitionerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
];
}
this
.
myService
.
addRecruitTrack
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
toastDialog
=
true
;
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
this
.
toastInfo
=
{
status
:
1
,
status
:
1
,
msg
:
'保存
成功!'
,
msg
:
recruitTrackInfoItem
?
'修改成功!'
:
'添加
成功!'
,
timeout
:
3000
,
timeout
:
3000
,
align
:
'center'
align
:
'center'
};
};
this
.
recruitTrackQuery
();
this
.
recruitTrackQuery
();
this
.
remarkId
=
''
;
}
else
{
}
else
{
this
.
toastDialog
=
true
;
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
this
.
toastInfo
=
{
...
@@ -380,4 +388,8 @@ export class RecruitingDetailComponent implements OnInit {
...
@@ -380,4 +388,8 @@ export class RecruitingDetailComponent implements OnInit {
}
}
})
})
}
}
editRemark
(
id
)
{
this
.
remarkId
=
id
}
}
}
src/index.html
View file @
b0b131ba
...
@@ -51,14 +51,7 @@
...
@@ -51,14 +51,7 @@
<script
src=
"./assets/LCalendar/LCalendar.js"
></script>
<script
src=
"./assets/LCalendar/LCalendar.js"
></script>
<script
src=
"./assets/laydate/laydate.js"
></script>
<script
src=
"./assets/laydate/laydate.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
//页面刷新的时候不出现
if
(
window
.
name
==
""
)
{
window
.
name
=
"isReload"
;
// 在首次进入页面时我们可以给window.name设置一个固定值
initialize
();
}
else
if
(
window
.
name
==
"isReload"
)
{
let
loading
=
document
.
getElementById
(
"adv"
);
loading
.
style
.
display
=
'none'
;
}
const
initialize
=
function
()
{
const
initialize
=
function
()
{
let
loading
=
document
.
getElementById
(
"adv"
);
let
loading
=
document
.
getElementById
(
"adv"
);
loading
.
style
.
display
=
'block'
;
loading
.
style
.
display
=
'block'
;
...
@@ -71,7 +64,14 @@
...
@@ -71,7 +64,14 @@
}
}
}
}
}
}
//页面刷新的时候不出现
if
(
window
.
name
==
""
)
{
window
.
name
=
"isReload"
;
// 在首次进入页面时我们可以给window.name设置一个固定值
initialize
();
}
else
if
(
window
.
name
==
"isReload"
)
{
let
loading
=
document
.
getElementById
(
"adv"
);
loading
.
style
.
display
=
'none'
;
}
//用于去除alert的url
//用于去除alert的url
window
.
alert
=
function
(
name
)
{
window
.
alert
=
function
(
name
)
{
...
@@ -95,7 +95,6 @@
...
@@ -95,7 +95,6 @@
}),
}),
async
:
false
,
async
:
false
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
let
content
=
res
[
'data'
][
'knowledge'
][
'content'
];
let
content
=
res
[
'data'
][
'knowledge'
][
'content'
];
$
(
'#content'
).
html
(
content
)
$
(
'#content'
).
html
(
content
)
...
...
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