Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-admin
Commits
38d5df16
提交
38d5df16
authored
12月 21, 2020
作者:
王诒正
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用户群组
上级
d40d8151
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
67 行增加
和
13 行删除
+67
-13
characteristics-template.js
src/api/characteristics-template.js
+29
-0
add.vue
src/pages/yhfq/cgroup/add.vue
+0
-0
index.vue
src/pages/yhfq/cgroup/index.vue
+38
-13
没有找到文件。
src/api/characteristics-template.js
0 → 100644
浏览文件 @
38d5df16
import
httpRequest
from
'@/utils/axios'
// 特征模板列表
export
function
characteristicsTemplateList
(
params
=
{})
{
return
httpRequest
.
get
(
'/api/opera/v1/oprations/characteristics-templates'
,
{
params
})
}
// 创建用户群特征模板
export
function
characteristicsTemplateCreate
(
data
)
{
var
headers
=
{
'Content-Type'
:
'application/json'
}
return
httpRequest
.
post
(
'/api/opera/v1/oprations/characteristics-template'
,
data
,
{
headers
})
}
// 特征模板详情
export
function
characteristicsTemplateInfo
(
id
,
params
)
{
return
httpRequest
.
get
(
`/api/opera/v1/oprations/
${
id
}
/characteristics-template`
,
{
params
})
}
// 更新特征模板
export
function
characteristicsTemplateUpdate
(
id
,
data
)
{
return
httpRequest
.
get
(
`/api/opera/v1/oprations/
${
id
}
/characteristics-template`
,
data
)
}
// 删除特征模板
export
function
characteristicsTemplateDelete
(
id
)
{
return
httpRequest
.
delete
(
`/api/opera/v1/oprations/
${
id
}
/characteristics-template`
)
}
src/pages/yhfq/cgroup/add.vue
浏览文件 @
38d5df16
差异被折叠。
点击展开。
src/pages/yhfq/cgroup/index.vue
浏览文件 @
38d5df16
...
@@ -55,19 +55,23 @@
...
@@ -55,19 +55,23 @@
<div
v-if=
"scope.row.characteristics.length === 0"
><span>
无用户群相关特征...
</span></div>
<div
v-if=
"scope.row.characteristics.length === 0"
><span>
无用户群相关特征...
</span></div>
<div
v-else
>
<div
v-else
>
<el-button
type=
"text"
@
click=
"dialogVisible = true"
>
点击查看用户群特征
</el-button>
<el-button
type=
"text"
@
click=
"dialogVisible = true"
>
点击查看用户群特征
</el-button>
<el-dialog
:title=
"scope.row.name"
:visible
.
sync=
"dialogVisible"
:modal=
"false"
>
<div
class=
"dialog-box"
v-if=
"dialogVisible"
>
<i
v-for=
"characteristic in scope.row.characteristics"
>
<el-dialog
:title=
"scope.row.name"
:visible
.
sync=
"dialogVisible"
:modal=
"false"
>
<div
v-if=
"characteristic.context"
>
<div
class=
"scroll-content"
>
{{
characteristic
.
name
+
':'
}}
<i
v-for=
"(characteristic, index) in scope.row.characteristics"
:key=
"index"
>
<span
v-for=
"contextInfo in JSON.parse(characteristic.context)"
><br/>
{{
contextInfo
.
options
+
'、'
+
contextInfo
.
options_info
+
'. '
}}
</span>
<div
v-if=
"characteristic.context"
class=
"scroll-container"
>
<br/>
{{
characteristic
.
name
+
':'
}}
<span
v-for=
"(contextInfo, index) in JSON.parse(characteristic.context)"
:key=
"index"
><br/>
{{
contextInfo
.
options
+
'、'
+
contextInfo
.
options_info
+
'. '
}}
</span>
<br/>
</div>
</i>
</div>
</div>
</i
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"dialogVisible = false"
>
确 定
</el-button>
<
el-button
type=
"primary"
@
click=
"dialogVisible = false"
>
确 定
</el-button
>
<
/div
>
</
div
>
</
el-dialog
>
</
el-dialog
>
</
div
>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -133,5 +137,26 @@ export default {
...
@@ -133,5 +137,26 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
.dialog-box
{
width
:
100%
;
height
:
100%
;
position
:
fixed
;
top
:
0
;
left
:
0
;
z-index
:
999
;
background
:
rgba
(
0
,
0
,
0
,
.3
);
}
.dialog-zindex
{
z-index
:
9999999
;
}
.scroll-container
{
width
:
100%
;
height
:
30%
;
overflow
:
auto
;
}
.scroll-content
{
width
:
100%
;
height
:
30%
;
background-color
:
rgb
(
248
,
212
,
224
);
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论