Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-admin
Commits
8c64cc56
提交
8c64cc56
authored
2月 06, 2021
作者:
wangyizheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
列表
上级
c05a292f
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
335 行增加
和
19 行删除
+335
-19
characteristics2.js
src/api/characteristics2.js
+4
-4
reach-scheme.js
src/api/reach-scheme.js
+5
-5
user-use-config.js
src/api/user-use-config.js
+5
-5
index.vue
src/pages/v2/cases/index.vue
+1
-0
index.vue
src/pages/v2/characteristics/index.vue
+106
-1
index.vue
src/pages/v2/reachschemes/index.vue
+107
-2
index.vue
src/pages/v2/useruseconfigs/index.vue
+107
-2
没有找到文件。
src/api/characteristics2.js
浏览文件 @
8c64cc56
...
...
@@ -8,7 +8,7 @@ export function createCharacteristic2(data) {
return
httpRequest
.
post
(
'/api/opera/v2/training/characteristic'
,
data
,
{
headers
})
}
//
添加特征
//
特征详情
export
function
characteristic2
(
id
,
params
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -16,7 +16,7 @@ export function characteristic2(id, params = {}) {
return
httpRequest
.
get
(
`/api/opera/v2/training/
${
id
}
/characteristic`
,
{
params
},
{
headers
})
}
// 删除用户
群
特征
// 删除用户特征
export
function
deleteCharacteristic2
(
id
,
params
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -24,7 +24,7 @@ export function deleteCharacteristic2(id, params = {}) {
return
httpRequest
.
delete
(
`/api/opera/v2/training/
${
id
}
/characteristic`
,
{
params
},
{
headers
})
}
//
删除用户群
特征
//
更新用户
特征
export
function
upateCharacteristic2
(
id
,
data
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -32,7 +32,7 @@ export function upateCharacteristic2(id, data = {}) {
return
httpRequest
.
put
(
`/api/opera/v2/training/
${
id
}
/characteristic`
,
data
,
{
headers
})
}
//
群
特征列表
// 特征列表
export
function
characteristics2List
(
params
)
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
src/api/reach-scheme.js
浏览文件 @
8c64cc56
import
httpRequest
from
'@/utils/axios'
// 添加
特征
// 添加
触达
export
function
createReachScheme
(
data
)
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -8,7 +8,7 @@ export function createReachScheme(data) {
return
httpRequest
.
post
(
'/api/opera/v2/training/reach-scheme'
,
data
,
{
headers
})
}
//
添加特征
//
触达详情
export
function
ReachScheme
(
id
,
params
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -16,7 +16,7 @@ export function ReachScheme(id, params = {}) {
return
httpRequest
.
get
(
`/api/opera/v2/training/
${
id
}
/reach-scheme`
,
{
params
},
{
headers
})
}
// 删除用户群
特征
// 删除用户群
触达
export
function
deleteReachScheme
(
id
,
params
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -24,7 +24,7 @@ export function deleteReachScheme(id, params = {}) {
return
httpRequest
.
delete
(
`/api/opera/v2/training/
${
id
}
/reach-scheme`
,
{
params
},
{
headers
})
}
// 删除
用户群特征
// 删除
触达
export
function
upateReachScheme
(
id
,
data
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -32,7 +32,7 @@ export function upateReachScheme(id, data = {}) {
return
httpRequest
.
put
(
`/api/opera/v2/training/
${
id
}
/reach-scheme`
,
data
,
{
headers
})
}
//
群特征
列表
//
触达
列表
export
function
reachSchemeList
(
params
)
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
src/api/user-use-config.js
浏览文件 @
8c64cc56
import
httpRequest
from
'@/utils/axios'
// 添加
特征
// 添加
用户使用配置
export
function
createUserUseConfig
(
data
)
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -8,7 +8,7 @@ export function createUserUseConfig(data) {
return
httpRequest
.
post
(
'/api/opera/v2/training/user-use-config'
,
data
,
{
headers
})
}
// 添加
特征
// 添加
用户使用配置
export
function
UserUseConfig
(
id
,
params
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -16,7 +16,7 @@ export function UserUseConfig(id, params = {}) {
return
httpRequest
.
get
(
`/api/opera/v2/training/
${
id
}
/user-use-config`
,
{
params
},
{
headers
})
}
// 删除用户
群特征
// 删除用户
使用配置
export
function
deleteUserUseConfig
(
id
,
params
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -24,7 +24,7 @@ export function deleteUserUseConfig(id, params = {}) {
return
httpRequest
.
delete
(
`/api/opera/v2/training/
${
id
}
/user-use-config`
,
{
params
},
{
headers
})
}
//
删除用户群特征
//
更新用户使用配置
export
function
upateUserUseConfig
(
id
,
data
=
{})
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
@@ -32,7 +32,7 @@ export function upateUserUseConfig(id, data = {}) {
return
httpRequest
.
put
(
`/api/opera/v2/training/
${
id
}
/user-use-config`
,
data
,
{
headers
})
}
//
群特征
列表
//
用户使用配置
列表
export
function
userUseConfigList
(
params
)
{
var
headers
=
{
'Content-Type'
:
'application/json'
...
...
src/pages/v2/cases/index.vue
浏览文件 @
8c64cc56
...
...
@@ -451,6 +451,7 @@ export default {
this
.
tableData
=
res
.
data
.
data
this
.
currentPage
=
res
.
data
.
current_page
this
.
totalPage
=
res
.
data
.
total
return
true
}
else
{
this
.
$message
.
error
(
res
.
message
)
return
false
...
...
src/pages/v2/characteristics/index.vue
浏览文件 @
8c64cc56
...
...
@@ -8,12 +8,117 @@
</el-breadcrumb>
</el-card>
</div>
<div>
<el-card
class=
"box-card"
>
<div>
<el-input
placeholder=
"请输入案例名称"
prefix-icon=
"el-icon-search"
v-model=
"searchCaseName"
size=
"mini"
style=
"width: 30%"
>
</el-input>
<el-button
size=
"mini"
icon=
"el-icon-search"
@
click=
"list(
{ name: searchCaseName, page: 1, limit: limit })">搜 索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
刷 新
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
@
click=
"drawer = true"
>
创建特征
</el-button>
</div>
</el-card>
</div>
<div>
<el-card
class=
"box-card"
>
<el-table
:data=
"tableData"
border
stripe
size=
"mini"
style=
"width: 100%"
>
<el-table-column
fixed
prop=
"id"
label=
"ID"
width=
"150px"
>
</el-table-column>
<el-table-column
fixed
width=
"150px"
label=
"案例名称"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
case
.
name
}}
</span>
</
template
>
</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: 'detail', row: scope.row }" label="详情">
</el-option>
<el-option
:value=
"
{ tag: 'edit', 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>
<div
class=
"block"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[10, 20, 30, 50, 100]"
:page-size=
"limit"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalPage"
>
</el-pagination>
</div>
</el-card>
</div>
</div>
</template>
<
script
>
import
*
as
characteristicsApi
from
'@/api/characteristics2'
export
default
{
name
:
'index'
name
:
'index'
,
data
()
{
return
{
searchCaseName
:
''
,
currentPage
:
1
,
totalPage
:
0
,
limit
:
10
,
tableData
:
[],
drawer
:
false
,
opera
:
''
}
},
mounted
()
{
this
.
list
({
page
:
this
.
currentPage
,
limit
:
this
.
limit
})
},
methods
:
{
handleSizeChange
(
val
)
{
this
.
list
({
page
:
this
.
currentPage
,
limit
:
val
})
},
handleCurrentChange
(
val
)
{
this
.
list
({
page
:
val
,
limit
:
this
.
limit
})
},
operation
(
opera
)
{
switch
(
opera
.
tag
)
{
case
'detail'
:
break
case
'edit'
:
break
case
'delete'
:
break
}
},
list
(
params
=
{})
{
characteristicsApi
.
characteristics2List
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
tableData
=
res
.
data
.
data
this
.
currentPage
=
res
.
data
.
current_page
this
.
totalPage
=
res
.
data
.
total
return
true
}
else
{
this
.
$message
.
error
(
res
.
message
)
return
false
}
})
},
refresh
()
{
this
.
searchCaseName
=
''
this
.
list
({
page
:
1
,
limit
:
this
.
limit
})
}
}
}
</
script
>
...
...
src/pages/v2/reachschemes/index.vue
浏览文件 @
8c64cc56
...
...
@@ -4,16 +4,121 @@
<el-card
class=
"box-card"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
:to=
"
{ path: '/' }">首页
</el-breadcrumb-item>
<el-breadcrumb-item>
触达
管理
</el-breadcrumb-item>
<el-breadcrumb-item>
特征
管理
</el-breadcrumb-item>
</el-breadcrumb>
</el-card>
</div>
<div>
<el-card
class=
"box-card"
>
<div>
<el-input
placeholder=
"请输入案例名称"
prefix-icon=
"el-icon-search"
v-model=
"searchCaseName"
size=
"mini"
style=
"width: 30%"
>
</el-input>
<el-button
size=
"mini"
icon=
"el-icon-search"
@
click=
"list(
{ name: searchCaseName, page: 1, limit: limit })">搜 索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
刷 新
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
@
click=
"drawer = true"
>
创建触达
</el-button>
</div>
</el-card>
</div>
<div>
<el-card
class=
"box-card"
>
<el-table
:data=
"tableData"
border
stripe
size=
"mini"
style=
"width: 100%"
>
<el-table-column
fixed
prop=
"id"
label=
"ID"
width=
"150px"
>
</el-table-column>
<el-table-column
fixed
width=
"150px"
label=
"案例名称"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
case
.
name
}}
</span>
</
template
>
</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: 'detail', row: scope.row }" label="详情">
</el-option>
<el-option
:value=
"
{ tag: 'edit', 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>
<div
class=
"block"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[10, 20, 30, 50, 100]"
:page-size=
"limit"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalPage"
>
</el-pagination>
</div>
</el-card>
</div>
</div>
</template>
<
script
>
import
*
as
reachSchemeApi
from
'@/api/reach-scheme'
export
default
{
name
:
'index'
name
:
'index'
,
data
()
{
return
{
searchCaseName
:
''
,
currentPage
:
1
,
totalPage
:
0
,
limit
:
10
,
tableData
:
[],
drawer
:
false
,
opera
:
''
}
},
mounted
()
{
this
.
list
({
page
:
this
.
currentPage
,
limit
:
this
.
limit
})
},
methods
:
{
handleSizeChange
(
val
)
{
this
.
list
({
page
:
this
.
currentPage
,
limit
:
val
})
},
handleCurrentChange
(
val
)
{
this
.
list
({
page
:
val
,
limit
:
this
.
limit
})
},
operation
(
opera
)
{
switch
(
opera
.
tag
)
{
case
'detail'
:
break
case
'edit'
:
break
case
'delete'
:
break
}
},
list
(
params
=
{})
{
reachSchemeApi
.
reachSchemeList
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
tableData
=
res
.
data
.
data
this
.
currentPage
=
res
.
data
.
current_page
this
.
totalPage
=
res
.
data
.
total
return
true
}
else
{
this
.
$message
.
error
(
res
.
message
)
return
false
}
})
},
refresh
()
{
this
.
searchCaseName
=
''
this
.
list
({
page
:
1
,
limit
:
this
.
limit
})
}
}
}
</
script
>
...
...
src/pages/v2/useruseconfigs/index.vue
浏览文件 @
8c64cc56
...
...
@@ -4,16 +4,121 @@
<el-card
class=
"box-card"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
:to=
"
{ path: '/' }">首页
</el-breadcrumb-item>
<el-breadcrumb-item>
用户使用配置
管理
</el-breadcrumb-item>
<el-breadcrumb-item>
特征
管理
</el-breadcrumb-item>
</el-breadcrumb>
</el-card>
</div>
<div>
<el-card
class=
"box-card"
>
<div>
<el-input
placeholder=
"请输入案例名称"
prefix-icon=
"el-icon-search"
v-model=
"searchCaseName"
size=
"mini"
style=
"width: 30%"
>
</el-input>
<el-button
size=
"mini"
icon=
"el-icon-search"
@
click=
"list(
{ name: searchCaseName, page: 1, limit: limit })">搜 索
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
刷 新
</el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-plus"
@
click=
"drawer = true"
>
创建用户使用配置
</el-button>
</div>
</el-card>
</div>
<div>
<el-card
class=
"box-card"
>
<el-table
:data=
"tableData"
border
stripe
size=
"mini"
style=
"width: 100%"
>
<el-table-column
fixed
prop=
"id"
label=
"ID"
width=
"150px"
>
</el-table-column>
<el-table-column
fixed
width=
"150px"
label=
"案例名称"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
case
.
name
}}
</span>
</
template
>
</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: 'detail', row: scope.row }" label="详情">
</el-option>
<el-option
:value=
"
{ tag: 'edit', 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>
<div
class=
"block"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"currentPage"
:page-sizes=
"[10, 20, 30, 50, 100]"
:page-size=
"limit"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalPage"
>
</el-pagination>
</div>
</el-card>
</div>
</div>
</template>
<
script
>
import
*
as
userUseConfigApi
from
'@/api/user-use-config'
export
default
{
name
:
'index'
name
:
'index'
,
data
()
{
return
{
searchCaseName
:
''
,
currentPage
:
1
,
totalPage
:
0
,
limit
:
10
,
tableData
:
[],
drawer
:
false
,
opera
:
''
}
},
mounted
()
{
this
.
list
({
page
:
this
.
currentPage
,
limit
:
this
.
limit
})
},
methods
:
{
handleSizeChange
(
val
)
{
this
.
list
({
page
:
this
.
currentPage
,
limit
:
val
})
},
handleCurrentChange
(
val
)
{
this
.
list
({
page
:
val
,
limit
:
this
.
limit
})
},
operation
(
opera
)
{
switch
(
opera
.
tag
)
{
case
'detail'
:
break
case
'edit'
:
break
case
'delete'
:
break
}
},
list
(
params
=
{})
{
userUseConfigApi
.
userUseConfigList
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
tableData
=
res
.
data
.
data
this
.
currentPage
=
res
.
data
.
current_page
this
.
totalPage
=
res
.
data
.
total
return
true
}
else
{
this
.
$message
.
error
(
res
.
message
)
return
false
}
})
},
refresh
()
{
this
.
searchCaseName
=
''
this
.
list
({
page
:
1
,
limit
:
this
.
limit
})
}
}
}
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论