Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-risk-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-risk-admin
提交
8f1cbe4a
提交
8f1cbe4a
编写于
12月 08, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接口联调
上级
e51f6f1e
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
91 行增加
和
13 行删除
+91
-13
index.js
src/router/index.js
+3
-0
doctor-black.vue
src/views/black-list/doctor-black.vue
+2
-1
empty-phone.vue
src/views/black-list/empty-phone.vue
+2
-2
strategy-edit.vue
src/views/strategy-data/strategy-edit.vue
+39
-0
strategy-list.vue
src/views/strategy-data/strategy-list.vue
+45
-10
未找到文件。
src/router/index.js
浏览文件 @
8f1cbe4a
...
...
@@ -29,6 +29,9 @@ export default new Router({
},{
path
:
'/strategy-list'
,
component
:
resolve
=>
require
([
'../views/strategy-data/strategy-list.vue'
],
resolve
),
},{
path
:
'/strategy-edit'
,
component
:
resolve
=>
require
([
'../views/strategy-data/strategy-edit.vue'
],
resolve
),
},
]
},
...
...
src/views/black-list/doctor-black.vue
浏览文件 @
8f1cbe4a
...
...
@@ -18,7 +18,7 @@
class=
"search-table"
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"searchName"
label=
"
名称
"
min-width=
"140"
align=
"center"
></el-table-column>
<el-table-column
prop=
"searchName"
label=
"
手机号
"
min-width=
"140"
align=
"center"
></el-table-column>
<el-table-column
prop=
"time"
label=
"添加时间"
min-width=
"140"
align=
"center"
></el-table-column>
<el-table-column
prop=
"remark"
label=
"添加理由"
min-width=
"150"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
...
...
@@ -124,6 +124,7 @@ export default {
}
},
mounted
()
{
// 1 黑名单 2 空号
this
.
search
();
},
methods
:
{
...
...
src/views/black-list/empty-phone.vue
浏览文件 @
8f1cbe4a
...
...
@@ -3,8 +3,8 @@
<el-row
:gutter=
"30"
class=
"row search"
type=
"flex"
style=
"margin-bottom:0;"
>
<el-form
ref=
"form"
:model=
"searchParam"
label-suffix=
":"
style=
"width:100%;"
>
<el-col
:span=
"18"
>
<el-form-item
label=
"
名称
"
>
<el-input
v-model=
"searchParam.searchName"
maxlength=
"20"
placeholder=
"请输入黑名单中的
名称
"
style=
"width:288px;"
></el-input>
<el-form-item
label=
"
手机号
"
>
<el-input
v-model=
"searchParam.searchName"
maxlength=
"20"
placeholder=
"请输入黑名单中的
手机号
"
style=
"width:288px;"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
style=
"padding:0;text-align:right;padding-right:15px;"
>
...
...
src/views/strategy-data/strategy-edit.vue
0 → 100644
浏览文件 @
8f1cbe4a
<
template
>
<div
class=
"startegy-edit-container"
>
<el-row
:gutter=
"30"
class=
"row edit"
type=
"flex"
style=
"margin-bottom:0;"
>
<el-form
ref=
"form"
:model=
"searchParam"
label-suffix=
":"
style=
"width:100%;"
>
<el-col
:span=
"18"
>
<el-form-item
label=
"策略名称"
>
<el-input></el-input>
</el-form-item>
<el-form-item
label=
"策略分类"
>
<el-select
v-model=
"searchParam.bizTypeId"
size=
"small"
placeholder=
"请选择策略分类"
clearable
style=
"margin-left: 20px"
>
<el-option
v-for=
"item in strategyData"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-form>
</el-row>
</div>
</
template
>
<
script
>
export
default
{
}
</
script
>
<
style
lang=
"less"
scoped
>
.startegy-edit-container {
}
</
style
>
\ No newline at end of file
src/views/strategy-data/strategy-list.vue
浏览文件 @
8f1cbe4a
...
...
@@ -34,12 +34,16 @@
<el-table-column
prop=
"bizTypeName"
label=
"策略分类"
min-width=
"140"
align=
"center"
></el-table-column>
<el-table-column
prop=
"paramsStyle"
label=
"策略定义"
min-width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"score"
label=
"击中分值"
min-width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"type"
label=
"策略状态"
min-width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"type"
label=
"策略状态"
min-width=
"150"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
publishFlag
|
statusFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"actived(scope.row)"
>
激活
</el-button>
<el-button
type=
"danger"
size=
"small"
@
click=
"downLine(scope.row)"
>
下线
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"reviewData(scope.row)"
>
查看
</el-button>
<el-button
v-if=
"scope.row.publishFlag == 1"
:disabled=
"scope.row.type == 1 || scope.row.type == 2"
type=
"primary"
size=
"small"
@
click=
"actived(scope.row)"
>
激活
</el-button>
<el-button
v-if=
"scope.row.publishFlag == 2"
:disabled=
"scope.row.type == 1 || scope.row.type == 2"
type=
"danger"
size=
"small"
@
click=
"downLine(scope.row)"
>
下线
</el-button>
<el-button
:disabled=
"scope.row.type == 1 || scope.row.type == 2"
type=
"primary"
size=
"small"
@
click=
"reviewData(scope.row)"
>
查看
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -83,13 +87,25 @@ export default {
},
totalRows
:
0
,
tableData
:
[],
strategyData
:
[]
strategyData
:
[],
downLineId
:
''
,
downLineFlag
:
0
}
},
mounted
()
{
this
.
getCategyData
();
this
.
search
();
},
filters
:
{
statusFilter
:
function
statusFilter
(
value
)
{
if
(
!
value
)
return
''
;
let
hash
=
{
1
:
'未激活'
,
2
:
'已激活'
,
};
return
hash
[
value
];
}
},
methods
:
{
// 封装一下请求通用的方法
getData
(
type
,
url
,
req
,
callback
)
{
...
...
@@ -130,20 +146,39 @@ export default {
},
// 新增策略
addStrategy
()
{
this
.
$router
.
push
({
path
:
'strategy-edit'
})
},
// 激活
actived
()
{
let
req
=
{
id
:
this
.
downLineId
,
publishFlag
:
2
// 1 下线 2 激活
}
this
.
getData
(
"post"
,
`/riskcontrol/strategy/deploy`
,
req
,
data
=>
{
}
);
},
// 下线
downLine
()
{
downLine
(
row
)
{
this
.
downDialogVisible
=
true
;
this
.
downLineId
=
row
.
id
;
},
confirmDown
()
{
let
req
=
{
id
:
this
.
downLineId
,
publishFlag
:
1
// 1 下线 2 激活
}
this
.
getData
(
"post"
,
`/riskcontrol/strategy/deploy`
,
req
,
data
=>
{
}
);
},
//
查看
//
编辑
reviewData
()
{
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录