Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 2091d5b8
authored
Oct 10, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
c2d1977b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
11 deletions
src/components/options.js
src/views/home/components/Journey.vue
src/views/home/components/home-step.vue
src/components/options.js
View file @
2091d5b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 14:08:14
* @Date: 2023-09-14 14:08:14
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-10 1
0:29:53
* @LastEditTime: 2023-10-10 1
6:12:17
* @FilePath: \scrm-micro-home\src\components\options.js
* @FilePath: \scrm-micro-home\src\components\options.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -142,13 +142,13 @@ function getLineOddOptions(obj) {
...
@@ -142,13 +142,13 @@ function getLineOddOptions(obj) {
type
:
'slider'
,
// 显示滑动条
type
:
'slider'
,
// 显示滑动条
xAxisIndex
:
0
,
// 指定水平拖动的 x 轴索引
xAxisIndex
:
0
,
// 指定水平拖动的 x 轴索引
start
:
0
,
// 初始的数据窗口范围的起始位置
start
:
0
,
// 初始的数据窗口范围的起始位置
end
:
100
,
// 初始的数据窗口范围的结束位置
end
:
100
// 初始的数据窗口范围的结束位置
dataBackground
:
{
//
dataBackground: {
lineStyle
:
{
//
lineStyle: {
width
:
10
,
// 滑动柱的宽度
//
width: 10, // 滑动柱的宽度
color
:
'#ff0000'
// 滑动柱的颜色
//
color: '#ff0000' // 滑动柱的颜色
}
//
}
}
//
}
}
}
],
],
yAxis
:
{
yAxis
:
{
...
...
src/views/home/components/Journey.vue
View file @
2091d5b
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<div
class=
"analysis-item-head"
>
<div
class=
"analysis-item-head"
>
<img
:src=
"require(`@/assets/img/home/icon-$
{index + 1}.png`)" />
<img
:src=
"require(`@/assets/img/home/icon-$
{index + 1}.png`)" />
<span>
{{
item
.
instName
}}
</span>
<span>
{{
item
.
instName
}}
</span>
<a
@
click=
"handleJump(item, 'journey/index')"
v-if=
"item.instStatus == 1"
>
查看使用情况
</a>
<a
@
click=
"handleJump(item, 'journey/index')"
v-if=
"item.instStatus == 1
&& isShow('/journey/index')
"
>
查看使用情况
</a>
<a
@
click=
"handleJump(item, 'journeyConfig/config')"
v-
else
>
去使用
</a>
<a
@
click=
"handleJump(item, 'journeyConfig/config')"
v-
if=
"item.instStatus == 0 && isShow('/journeyConfig/config')"
>
去使用
</a>
<div
:class=
"
{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }">
<div
:class=
"
{ 'analysis-item-status': true, 'is-disable': item.instStatus != 1 }">
<i
:class=
"`$
{getStatusValue(item, 'icon')}`">
</i>
<i
:class=
"`$
{getStatusValue(item, 'icon')}`">
</i>
<span>
{{
getStatusValue
(
item
,
'label'
)
}}
</span>
<span>
{{
getStatusValue
(
item
,
'label'
)
}}
</span>
...
@@ -33,6 +33,7 @@ const STATUS = [
...
@@ -33,6 +33,7 @@ const STATUS = [
{
label
:
'已禁用'
,
value
:
-
1
,
icon
:
'el-icon-remove-outline'
}
{
label
:
'已禁用'
,
value
:
-
1
,
icon
:
'el-icon-remove-outline'
}
]
]
import
{
mapMutations
}
from
'vuex'
import
{
mapMutations
}
from
'vuex'
import
util
from
'@/utils/util'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -100,6 +101,9 @@ export default {
...
@@ -100,6 +101,9 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapMutations
(
'journey'
,
[
'SET_JOURNEY_NUM'
]),
...
mapMutations
(
'journey'
,
[
'SET_JOURNEY_NUM'
]),
isShow
(
url
)
{
return
util
.
isShowBtn
(
url
,
null
)
},
async
byGroupIdSop
()
{
async
byGroupIdSop
()
{
const
res
=
await
this
.
$apis
.
journey
.
byGroupIdSop
({
groupId
:
this
.
$globalState
.
session
.
merchantId
,
pageNumber
:
1
,
pageSize
:
1000
})
const
res
=
await
this
.
$apis
.
journey
.
byGroupIdSop
({
groupId
:
this
.
$globalState
.
session
.
merchantId
,
pageNumber
:
1
,
pageSize
:
1000
})
const
journeyList
=
res
.
list
||
[]
const
journeyList
=
res
.
list
||
[]
...
...
src/views/home/components/home-step.vue
View file @
2091d5b
...
@@ -97,9 +97,12 @@
...
@@ -97,9 +97,12 @@
<span>
个
</span>
<span>
个
</span>
</div>
</div>
<div
class=
"step-title-h3 text-center"
>
客户旅程数
</div>
<div
class=
"step-title-h3 text-center"
>
客户旅程数
</div>
<div
class=
"step-operation"
@
click=
"jumpUrl('/scene/journeyConfig/index')"
>
<div
class=
"step-operation"
@
click=
"jumpUrl('/scene/journeyConfig/index')"
v-if=
"isShow('/journeyConfig/index')"
>
<label>
旅程配置
</label>
<label>
旅程配置
</label>
</div>
</div>
<div
class=
"step-operation"
v-else
>
<label>
无权限
</label>
</div>
</div>
</div>
</div>
</div>
<div
class=
"home-data-item"
>
<div
class=
"home-data-item"
>
...
@@ -119,6 +122,7 @@
...
@@ -119,6 +122,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
util
from
'@/utils/util'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
'homeStep'
,
name
:
'homeStep'
,
...
@@ -146,6 +150,9 @@ export default {
...
@@ -146,6 +150,9 @@ export default {
jumpUrl
(
url
)
{
jumpUrl
(
url
)
{
this
.
$history
.
push
(
url
)
this
.
$history
.
push
(
url
)
},
},
isShow
(
url
)
{
return
util
.
isShowBtn
(
url
,
null
)
},
viewData
()
{
viewData
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
home
.
viewData
({}).
then
(
res
=>
{
this
.
$apis
.
home
.
viewData
({}).
then
(
res
=>
{
...
...
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