风控修改(一半)
This commit is contained in:
parent
f2482a6d40
commit
0c8a25a75e
|
@ -222,11 +222,13 @@ export const StoreStaffRole = {
|
|||
STAFF: "2", // 员工
|
||||
}
|
||||
|
||||
// 设备在线状态
|
||||
export const DeviceOnlineStatus = {
|
||||
ONLINE: "1", // 在线
|
||||
OFFLINE: "0", // 离线
|
||||
}
|
||||
|
||||
// 分成状态
|
||||
export const BonusStatus = {
|
||||
UN_DIVIDEND: "1", // 未出账
|
||||
WAIT_DIVIDE: "2", // 待分成
|
||||
|
@ -237,3 +239,12 @@ export const BonusStatus = {
|
|||
return [this.WAIT_DIVIDE]
|
||||
}
|
||||
}
|
||||
|
||||
// 风控需要提交的材料
|
||||
export const RiskSubmitType = {
|
||||
REAL_NAME: "1", // 实名信息
|
||||
ID_CARD: "2", // 身份证正反面
|
||||
ID_CARD_HAND: "3", // 手持身份证照片
|
||||
VIDEO: "4", // 使用场景视频
|
||||
BUSINESS_LICENCE: "5", // 营业执照
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<boolean-tag :value="d.row.isFinished" true-text="已解封" false-text="风控中"/>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'unsealSelf'">
|
||||
<boolean-tag :value="d.row.unsealSelf" true-text="允许" false-text="不允许"/>
|
||||
<boolean-tag :value="d.row.unsealSelf" true-text="开启" false-text="不开启"/>
|
||||
</template>
|
||||
<template v-else>
|
||||
{{d.row[column.key]}}
|
||||
|
@ -170,8 +170,16 @@
|
|||
placeholder="请选择解封时间,为空则永久封禁">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="实名解封" prop="unsealSelf">
|
||||
<el-switch v-model="form.unsealSelf" active-text="允许" inactive-text="不允许"/>
|
||||
<el-form-item label="解封材料" prop="submitType">
|
||||
<el-checkbox-group v-model="form.submitType">
|
||||
<el-checkbox v-for="dict of dict.type.risk_submit_type" :key="dict.value" :label="dict.value">{{dict.label}}</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="场景提示" prop="videoWords" v-if="!isEmpty(form.submitType) && form.submitType.includes(RiskSubmitType.VIDEO)">
|
||||
<el-input v-model="form.videoWords" type="textarea" :maxlength="200" show-word-limit placeholder="请输入使用场景视频文本提示"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="提交后自动解封" prop="unsealSelf" label-width="9em" v-if="!isEmpty(form.submitType)">
|
||||
<el-switch v-model="form.unsealSelf" active-text="开启" inactive-text="不开启"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
|
@ -188,6 +196,8 @@ import { $showColumns, $view } from '@/utils/mixins'
|
|||
import UserLink from '@/components/Business/SmUser/UserLink.vue'
|
||||
import UserInput from '@/components/Business/SmUser/UserInput.vue'
|
||||
import BooleanTag from '@/components/BooleanTag/index.vue'
|
||||
import { RiskSubmitType } from '@/utils/constants'
|
||||
import { isEmpty } from '@/utils'
|
||||
|
||||
// 默认排序字段
|
||||
const defaultSort = {
|
||||
|
@ -197,8 +207,13 @@ const defaultSort = {
|
|||
|
||||
export default {
|
||||
name: "Risk",
|
||||
computed: {
|
||||
RiskSubmitType() {
|
||||
return RiskSubmitType
|
||||
}
|
||||
},
|
||||
mixins: [$showColumns, $view],
|
||||
dicts: ['risk_type'],
|
||||
dicts: ['risk_type', 'risk_submit_type'],
|
||||
components: { BooleanTag, UserInput, UserLink },
|
||||
props: {
|
||||
query: {
|
||||
|
@ -218,7 +233,7 @@ export default {
|
|||
{key: 'isFinished', visible: true, label: '风控状态', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
|
||||
{key: 'reason', visible: true, label: '风控原因', minWidth: "150", sortable: true, overflow: true, align: 'center', width: null},
|
||||
{key: 'endTime', visible: true, label: '解封时间', minWidth: null, sortable: true, overflow: false, align: 'center', width: "100"},
|
||||
{key: 'unsealSelf', visible: true, label: '实名解封', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
|
||||
{key: 'unsealSelf', visible: true, label: '提交后自动解封', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
|
||||
{key: 'createTime', visible: true, label: '创建时间', minWidth: null, sortable: true, overflow: false, align: 'center', width: "100"},
|
||||
{key: 'realNameId', visible: false, label: '实名认证ID', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
|
||||
],
|
||||
|
@ -282,6 +297,7 @@ export default {
|
|||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
isEmpty,
|
||||
/** 当排序按钮被点击时触发 **/
|
||||
onSortChange(column) {
|
||||
if (column.order == null) {
|
||||
|
@ -317,7 +333,8 @@ export default {
|
|||
endTime: null,
|
||||
createTime: null,
|
||||
realNameId: null,
|
||||
unsealSelf: false
|
||||
unsealSelf: false,
|
||||
submitType: []
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user