Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1e81ea35
authored
Mar 16, 2022
by
chenwq
Committed by
杨北旺
Mar 19, 2022
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop主页
1 parent
52b99bb5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
src/views/sop/editSop/editEvent.vue
src/views/sop/index.vue
src/views/sop/editSop/editEvent.vue
View file @
1e81ea3
...
@@ -104,7 +104,6 @@ const ATT_TYPE = {
...
@@ -104,7 +104,6 @@ const ATT_TYPE = {
FILE
:
6
,
FILE
:
6
,
ACTIVITY
:
7
ACTIVITY
:
7
}
}
import
*
as
moment
from
'moment'
import
ActivityModel
from
'./components/activityModel'
import
ActivityModel
from
'./components/activityModel'
export
default
{
export
default
{
name
:
'editGift'
,
name
:
'editGift'
,
...
...
src/views/sop/index.vue
View file @
1e81ea3
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
class=
"chart-item"
v-for=
"item in sopList"
:key=
"item.id"
>
<div
class=
"chart-item"
v-for=
"item in sopList"
:key=
"item.id"
>
<p>
{{
item
.
sopName
}}
</p>
<p>
{{
item
.
sopName
}}
</p>
<div
:id=
"'sopPie' + item.id"
class=
"chart-pie"
></div>
<div
:id=
"'sopPie' + item.id"
class=
"chart-pie"
></div>
<p>
2021.10.28-2022.10.28
</p>
<p>
{{
item
.
dateRange
}}
</p>
<div
class=
"sop-btns"
>
<div
class=
"sop-btns"
>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
fn=
"分析sop"
@
click=
"handleJump('sopAnalysisList', item)"
>
sop分析
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
fn=
"分析sop"
@
click=
"handleJump('sopAnalysisList', item)"
>
sop分析
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
fn=
"编辑sop"
@
click=
"handleEdit('edit', item)"
>
编辑
</GLButton>
<GLButton
class=
"btn-item"
:size=
"size"
type=
"primary"
fn=
"编辑sop"
@
click=
"handleEdit('edit', item)"
>
编辑
</GLButton>
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
<
script
>
<
script
>
import
*
as
echarts
from
'echarts'
import
*
as
echarts
from
'echarts'
import
*
as
moment
from
'moment'
export
default
{
export
default
{
name
:
'sopIndex'
,
name
:
'sopIndex'
,
data
()
{
data
()
{
...
@@ -147,9 +148,18 @@ export default {
...
@@ -147,9 +148,18 @@ export default {
dealListData
()
{
dealListData
()
{
this
.
sopList
.
forEach
(
item
=>
{
this
.
sopList
.
forEach
(
item
=>
{
item
.
completedPercent
=
Math
.
round
((
item
.
sopStatistics
.
finishEventCount
/
item
.
sopStatistics
.
eventCount
)
*
100
).
toFixed
(
0
)
item
.
completedPercent
=
Math
.
round
((
item
.
sopStatistics
.
finishEventCount
/
item
.
sopStatistics
.
eventCount
)
*
100
).
toFixed
(
0
)
item
.
dateRange
=
moment
(
item
.
startDate
)
.
format
(
'YYYY-MM-DD'
)
.
replace
(
/-/g
,
'.'
)
+
(
item
.
endDate
?
'-'
+
moment
(
item
.
endDate
)
.
format
(
'YYYY-MM-DD'
)
.
replace
(
/-/g
,
'.'
)
:
''
)
})
})
},
},
drawPie
()
{
drawPie
()
{
console
.
log
(
this
.
sopList
)
console
.
log
(
this
.
sopList
)
this
.
sopList
.
forEach
(
item
=>
{
this
.
sopList
.
forEach
(
item
=>
{
...
@@ -157,7 +167,7 @@ export default {
...
@@ -157,7 +167,7 @@ export default {
let
myChart
=
echarts
.
init
(
chartDom
)
let
myChart
=
echarts
.
init
(
chartDom
)
let
option
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
pieOption
))
let
option
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
pieOption
))
option
.
title
.
text
=
item
.
completedPercent
==
'100'
?
'√'
:
item
.
completedPercent
+
'%'
//
option.title.text = item.completedPercent == '100' ? '√' : item.completedPercent + '%'
option
.
title
.
text
=
item
.
completedPercent
+
'%'
option
.
title
.
text
=
item
.
completedPercent
+
'%'
option
.
series
[
0
].
name
=
item
.
sopName
option
.
series
[
0
].
name
=
item
.
sopName
option
.
series
[
0
].
data
=
[
option
.
series
[
0
].
data
=
[
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment