Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-admin
Commits
3430f437
提交
3430f437
authored
12月 17, 2020
作者:
王诒正
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
案例列表
上级
23435e13
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
280 行增加
和
165 行删除
+280
-165
cases.js
src/api/cases.js
+26
-0
index.vue
src/pages/home/index.vue
+1
-1
index.vue
src/pages/triggerEditor/index.vue
+1
-1
detail.vue
src/pages/yhfq/albj/detail.vue
+63
-0
index.vue
src/pages/yhfq/albj/index.vue
+187
-162
routes.js
src/router/routes.js
+2
-1
没有找到文件。
src/api/cases.js
0 → 100644
浏览文件 @
3430f437
import
httpRequest
from
'@/utils/axios'
// 案例列表
export
function
caseList
(
params
)
{
return
httpRequest
.
get
(
'/api/opera/v1/operations/cases'
,
{
params
})
}
// 案例详情
export
function
caseInfo
(
id
,
params
=
{})
{
return
httpRequest
.
get
(
`/api/opera/v1/operations/
${
id
}
/case`
,
{
params
})
}
// 添加案例背景
export
function
caseCreate
(
data
)
{
return
httpRequest
.
post
(
'/api/opera/v1/operations/case'
,
data
)
}
// 更新案例背景
export
function
caseUpdate
(
id
,
data
)
{
return
httpRequest
.
put
(
`/api/opera/v1/operations/
${
id
}
/case`
,
data
)
}
// 删除案例背景
export
function
caseDelete
(
id
,
params
)
{
return
httpRequest
.
delete
(
`/api/opera/v1/operations/
${
id
}
/case`
,
{
params
})
}
src/pages/home/index.vue
浏览文件 @
3430f437
<
template
>
<
template
>
<div>
11
</div>
<div></div>
</
template
>
</
template
>
src/pages/triggerEditor/index.vue
浏览文件 @
3430f437
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
triggerMode
:
[
triggerMode
:
[
{
option
:
'A'
,
context
:
'
11
'
}
{
option
:
'A'
,
context
:
''
}
],
],
triggerTime
:
[
triggerTime
:
[
{
option
:
'A'
,
context
:
''
}
{
option
:
'A'
,
context
:
''
}
...
...
src/pages/yhfq/albj/detail.vue
0 → 100644
浏览文件 @
3430f437
<
template
>
<div>
<div>
<el-card
class=
"box-card"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
:to=
"
{ path: '/' }">首页
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/yhfq/albj' }">案例背景
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/yhfq/albj/detail' }">案例背景
</el-breadcrumb-item>
</el-breadcrumb>
</el-card>
</div>
<div>
<el-card
class=
"box-card"
style=
"float: left; width: 33.5%"
>
<div
slot=
"header"
class=
"clearfix"
>
<span
style=
"text-align:center"
>
公司信息
</span>
</div>
<div
class=
"text item"
>
{{
companyDetail
}}
</div>
</el-card>
<el-card
class=
"box-card"
style=
"float: left; width: 33.3%"
>
<div
slot=
"header"
class=
"clearfix"
>
<span
style=
"text-align:center"
>
产品信息
</span>
</div>
<div
class=
"text item"
>
{{
productDetail
}}
</div>
</el-card>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
>
<span
style=
"text-align:center"
>
职位信息
</span>
</div>
<div
class=
"text item"
>
{{
positionDetail
}}
</div>
</el-card>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'detail'
,
mounted
()
{
var
data
=
this
.
$route
.
params
console
.
log
(
'dasdasdas'
,
this
.
$route
.
params
)
this
.
companyDetail
=
data
.
company_detail
this
.
productDetail
=
data
.
product_detail
this
.
positionDetail
=
data
.
position_detail
},
data
()
{
return
{
companyDetail
:
''
,
productDetail
:
''
,
positionDetail
:
''
}
}
}
</
script
>
<
style
>
</
style
>
src/pages/yhfq/albj/index.vue
浏览文件 @
3430f437
<
template
>
<
template
>
<app-container
title=
"请选择您要进入的案例背景"
>
<div>
<template>
<div>
<div
class=
"list"
v-for=
"item in arr"
:key=
"item.index"
@
click=
"clk(item.index)"
ref=
"main"
:flag=
"flag"
>
<el-card
class=
"box-card"
>
<it-em
:id=
"activeIndex == item.index ? 'clk' : ''"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<template
v-slot:title
>
<el-breadcrumb-item
:to=
"
{ path: '/' }">首页
</el-breadcrumb-item>
<div>
<el-breadcrumb-item
:to=
"
{ path: '/' }">案例背景
</el-breadcrumb-item>
<img
:src=
"item.imgsrc"
alt=
""
srcset=
""
/>
</el-breadcrumb>
<p>
{{
item
.
title
}}
</p>
</el-card>
</div>
</div>
</
template
>
<div>
<
template
v-slot:xm
>
<el-tabs
v-model=
"activeName"
type=
"border-card"
@
tab-click=
"handleClick"
>
<div>
姓名
</div>
<el-tab-pane
label=
"初级"
name=
"1"
>
<div>
{{
item
.
name
}}
</div>
<div>
</
template
>
<el-card
class=
"box-card"
>
<
template
v-slot:gs
>
<el-row>
<div>
公司
</div>
<el-button
size=
"mini"
icon=
"el-icon-plus"
type=
"success"
>
添加
</el-button>
<div>
{{
item
.
gs
}}
</div>
</el-row>
</
template
>
</el-card>
<
template
v-slot:bm
>
<el-card
class=
"box-card"
>
<div>
部门
</div>
<el-table
<div>
{{
item
.
bm
}}
</div>
:data=
"tableData1"
</
template
>
border
<
template
v-slot:zw
>
style=
"width: 100%"
>
<div>
职位
</div>
<el-table-column
<div>
{{
item
.
zw
}}
</div>
fixed
</
template
>
prop=
"created_at"
<
template
v-slot:cp
>
label=
"日期"
>
<div>
营销产品
</div>
</el-table-column>
<div>
{{
item
.
cp
}}
</div>
<el-table-column
label=
"图片"
>
</
template
>
<template
slot-scope=
"scope"
>
</it-em>
<div
class=
"demo-image__placeholder"
>
</div>
<div
class=
"block"
>
</template>
<el-image
fit=
"scale-down"
:src=
"scope.row.poster_url"
>
<!-- <it-em>
<div
slot=
"placeholder"
class=
"image-slot"
>
<template v-slot:title>
加载中
<span
class=
"dot"
>
...
</span>
<div>
</div>
<img src="../../../assets/images/gsxx.png" alt="" srcset="">
</el-image>
<p>案例分析2</p>
</div>
</div>
</div>
</template>
</
template
>
<template v-slot:xm>
</el-table-column>
<div>姓名</div>
<el-table-column
<div>立马</div>
prop=
"name"
</template>
label=
"案例名称"
>
<template v-slot:gs>
</el-table-column>
<div>公司</div>
<el-table-column
<div>建国保险公司</div>
prop=
"username"
</template>
label=
"姓名"
>
<template v-slot:bm>
</el-table-column>
<div>部门</div>
<el-table-column
<div>市场营销部</div>
prop=
"department"
</template>
label=
"部门"
>
<template v-slot:zw>
</el-table-column>
<div>职位</div>
<el-table-column
<div>市场营销专员</div>
prop=
"position"
</template>
label=
"职位"
>
<template v-slot:cp>
</el-table-column>
<div>营销产品</div>
<el-table-column
<div>建国重疾险</div>
prop=
"product"
</template>
label=
"营销产品"
>
</it-em>
</el-table-column>
<it-em>
<el-table-column
<template v-slot:title>
fixed=
"right"
<div>
label=
"操作"
>
<img src="../../../assets/images/gsxx.png" alt="" srcset="">
<
template
slot-scope=
"scope"
>
<p>案例分析3</p>
<el-select
size=
"mini"
:value=
"opera"
@
change=
"operation"
placeholder=
"请选择"
>
</div>
<el-option
:value=
"
{ tag: 'reach', row: scope.row }" label="触达方案">
</el-option>
</template>
<el-option
:value=
"
{ tag: 'group', row: scope.row }" label="用户群">
</el-option>
<template v-slot:xm>
<el-option
:value=
"
{ tag: 'detail', row: scope.row }" label="详情">
</el-option>
<div>姓名</div>
<el-option
:value=
"
{ tag: 'delete', row: scope.row }" label="删除">
</el-option>
<div>立马</div>
</el-select>
</template>
</
template
>
<template v-slot:gs>
</el-table-column>
<div>公司</div>
</el-table>
<div>建国保险公司</div>
</el-card>
</template>
</div>
<template v-slot:bm>
</el-tab-pane>
<div>部门</div>
<el-tab-pane
label=
"中级"
name=
"2"
>
<div>市场营销部</div>
<div>
</template>
<el-card
class=
"box-card"
>
<template v-slot:zw>
<el-row>
<div>职位</div>
<el-button
size=
"mini"
icon=
"el-icon-plus"
type=
"success"
>
添加
</el-button>
<div>市场营销专员</div>
</el-row>
</template>
</el-card>
<template v-slot:cp>
<el-card
class=
"box-card"
>
<div>营销产品</div>
<el-table
<div>建国重疾险</div>
:data=
"tableData2"
</template>
border
</it-em> -->
style=
"width: 100%"
>
<
template
#
footer
>
<el-table-column
<div
class=
"app-container-ft"
>
fixed
<el-button
type=
"primary"
size=
"mini"
@
click=
"open()"
>
开始实训
</el-button>
prop=
"created_at"
<el-button
type=
"primary"
size=
"mini"
@
click=
"jump()"
>
查看背景详情
</el-button>
label=
"日期"
>
</div>
</el-table-column>
</
template
>
<el-table-column
label=
"图片"
>
</app-container>
<
template
slot-scope=
"scope"
>
<div
class=
"demo-image__placeholder"
>
<div
class=
"block"
>
<el-image
fit=
"scale-down"
:src=
"scope.row.poster_url"
>
<div
slot=
"placeholder"
class=
"image-slot"
>
加载中
<span
class=
"dot"
>
...
</span>
</div>
</el-image>
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"案例名称"
>
</el-table-column>
<el-table-column
prop=
"username"
label=
"姓名"
>
</el-table-column>
<el-table-column
prop=
"department"
label=
"部门"
>
</el-table-column>
<el-table-column
prop=
"position"
label=
"职位"
>
</el-table-column>
<el-table-column
prop=
"product"
label=
"营销产品"
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-select
size=
"mini"
:value=
"opera"
@
change=
"operation"
placeholder=
"请选择"
>
<el-option
:value=
"
{ tag: 'reach', row: scope.row }" label="触达方案">
</el-option>
<el-option
:value=
"
{ tag: 'group', row: scope.row }" label="用户群">
</el-option>
<el-option
:value=
"
{ tag: 'detail', row: scope.row }" label="详情">
</el-option>
<el-option
:value=
"
{ tag: 'delete', row: scope.row }" label="删除">
</el-option>
</el-select>
</
template
>
</el-table-column>
</el-table>
</el-card>
</div>
</el-tab-pane>
<el-tab-pane
label=
"高级"
name=
"3"
>
当前功能暂无...
</el-tab-pane>
</el-tabs>
</div>
</div>
</template>
</template>
</app-container>
</template>
<
script
>
<
script
>
import
AppContainer
from
'@/components/AppContainer'
import
*
as
api
from
'@/api/cases'
import
ItEm
from
'./item.vue'
export
default
{
export
default
{
components
:
{
AppContainer
,
ItEm
},
mounted
()
{
api
.
caseList
({
level
:
parseInt
(
this
.
activeName
)
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
0
)
{
this
.
tableData1
=
res
.
data
}
}).
catch
(
error
=>
{
console
.
log
(
error
)
})
},
data
()
{
data
()
{
return
{
return
{
arr
:
[
activeName
:
'1'
,
{
opera
:
''
,
imgsrc
:
require
(
'../../../assets/images/gsxx.png'
),
tableData1
:
[],
title
:
'案例分析1'
,
tableData2
:
[],
name
:
'立马'
,
tableData3
:
[]
gs
:
'建国保险公司'
,
bm
:
'市场营销部'
,
zw
:
'市场营销专员'
,
cp
:
'建国重疾险'
,
index
:
1
},
{
imgsrc
:
require
(
'../../../assets/images/gsxx.png'
),
title
:
'案例分析2'
,
name
:
'立马'
,
gs
:
'建国保险公司'
,
bm
:
'市场营销部'
,
zw
:
'市场营销专员'
,
cp
:
'建国重疾险'
,
index
:
2
},
{
imgsrc
:
require
(
'../../../assets/images/gsxx.png'
),
title
:
'案例分析3'
,
name
:
'立马'
,
gs
:
'建国保险公司'
,
bm
:
'市场营销部'
,
zw
:
'市场营销专员'
,
cp
:
'建国重疾险'
,
index
:
3
}
],
activeIndex
:
-
1
,
flag
:
false
,
main1
:
false
,
main2
:
false
,
main3
:
false
}
}
},
},
methods
:
{
methods
:
{
clk
(
index
)
{
handleClick
(
tab
,
event
)
{
this
.
activeIndex
=
index
api
.
caseList
({
level
:
parseInt
(
this
.
activeName
)
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
0
)
{
this
.
tableData2
=
res
.
data
}
}).
catch
(
error
=>
{
console
.
log
(
error
)
})
},
},
jump
()
{
operation
(
opera
)
{
if
(
this
.
activeIndex
!==
-
1
)
{
console
.
log
(
opera
.
row
)
this
.
$router
.
push
(
'/yhfq/alfx'
)
switch
(
opera
.
tag
)
{
case
'reach'
:
break
case
'group'
:
break
case
'detail'
:
this
.
$router
.
push
({
name
:
'case-detail'
,
params
:
opera
.
row
})
break
case
'delete'
:
break
}
}
},
open
()
{
window
.
location
.
href
=
'http://eademo-test.ezijing.com/app.html#/InAppList'
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
app-container
{
overflow
:
hidden
;
// it-em {
// float: left;
// margin-right: 20px;
// }
}
#clk
{
box-shadow
:
0px
8px
16px
0px
rgba
(
192
,
21
,
64
,
0
.4
);
border
:
1px
solid
#c01540
;
}
</
style
>
src/router/routes.js
浏览文件 @
3430f437
import
Layout
from
'@/components/layout'
import
Layout
from
'@/components/layout'
// 用户分
群
// 用户分
组
const
userGroup
=
[
const
userGroup
=
[
/* 首页 */
/* 首页 */
{
path
:
'/yhfq'
,
redirect
:
'/yhfq/albj'
},
{
path
:
'/yhfq'
,
redirect
:
'/yhfq/albj'
},
{
path
:
'/yhfq/albj'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/albj'
)
},
{
path
:
'/yhfq/albj'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/albj'
)
},
{
path
:
'/yhfq/albj/detail'
,
name
:
'case-detail'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/albj/detail'
)
},
{
path
:
'/albj'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/albj'
)
},
{
path
:
'/albj'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/albj'
)
},
{
path
:
'/yhfq/alfx'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/alfx'
)
},
{
path
:
'/yhfq/alfx'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/alfx'
)
},
{
path
:
'/yhfq/yhqfx'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/yhqfx'
)
}
{
path
:
'/yhfq/yhqfx'
,
component
:
()
=>
import
(
/* webpackChunkName: "usergroup" */
'@/pages/yhfq/yhqfx'
)
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论