|
|
|
@ -24,8 +24,13 @@ |
|
|
|
|
min-width="310" |
|
|
|
|
align="center"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-full" |
|
|
|
|
<p v-if="row.recordChildren && row.verbalTrick">{{ row?.recordChildren[0]?.subject?.itemList.find(e => e.itemId === row.verbalTrick)?.options }}</p> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
:icon="Plus" |
|
|
|
|
@click="showDia(row)">选择</el-button> |
|
|
|
|
|
|
|
|
|
<!-- <el-select v-if="row.recordChildren" |
|
|
|
|
class="w-full type-select" |
|
|
|
|
v-model="row.verbalTrick"> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[0]?.subject?.itemList" |
|
|
|
|
:key="item" |
|
|
|
@ -33,7 +38,7 @@ |
|
|
|
|
:value="item.itemId"> |
|
|
|
|
<span>{{ item.options }}</span> |
|
|
|
|
</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-select> --> |
|
|
|
|
</template></el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
@ -41,10 +46,33 @@ |
|
|
|
|
<div class="submit" |
|
|
|
|
@click="submit">确认完成配置</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-dialog v-model="selectDia" |
|
|
|
|
custom-class="select-dia"> |
|
|
|
|
<div class="selects" |
|
|
|
|
v-if="curRow.recordChildren"> |
|
|
|
|
<div v-for="item in |
|
|
|
|
curRow?.recordChildren[0]?.subject?.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
class="line" |
|
|
|
|
@click="curRow.verbalTrick = item.itemId"> |
|
|
|
|
<el-radio v-model="curRow.verbalTrick" |
|
|
|
|
:label="item.itemId"></el-radio> |
|
|
|
|
<span>{{ item.options }}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<template #footer> |
|
|
|
|
<span class="dialog-footer"> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
@click="selectDia = false">关闭</el-button> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
|
import { ref, onMounted } from 'vue'; |
|
|
|
|
import { Plus } from '@element-plus/icons-vue'; |
|
|
|
|
import { ElMessage } from 'element-plus'; |
|
|
|
|
import { collectionAfterLoanDetails, collectionAfterLoanSave } from '@/api/model'; |
|
|
|
|
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; |
|
|
|
@ -55,6 +83,8 @@ const projectId = +Cookies.get('sand-projectId'); |
|
|
|
|
const levelId = +Cookies.get('sand-level'); |
|
|
|
|
const form = ref<Record<string, any>[]>([]); |
|
|
|
|
const info = ref<Record<string, any>[]>([]); |
|
|
|
|
const curRow = ref<Record<string, any>>({}); |
|
|
|
|
const selectDia = ref<boolean>(false); |
|
|
|
|
// 配置项 |
|
|
|
|
const getConfig = async () => { |
|
|
|
|
const { process } = await getProcessInformationBasedOnRoles(1033); |
|
|
|
@ -87,7 +117,11 @@ const getDetail = async () => { |
|
|
|
|
} finally { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 弹框 |
|
|
|
|
const showDia = (row: Record<string, any>) => { |
|
|
|
|
selectDia.value = true; |
|
|
|
|
curRow.value = row; |
|
|
|
|
}; |
|
|
|
|
// 新增判分记录 |
|
|
|
|
const addRecord = async (data: Record<string, any>) => { |
|
|
|
|
const preIds = `1,${levelId},42,69,1033,1149`; // 1,关卡id,角色(这个页面是风控经理策略) |
|
|
|
@ -140,4 +174,23 @@ onMounted(() => { |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
@import url(../../../styles/form.scss); |
|
|
|
|
.select-dia { |
|
|
|
|
.selects { |
|
|
|
|
margin-top: 20px; |
|
|
|
|
} |
|
|
|
|
.line { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: flex-start; |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
background-color: #fff; |
|
|
|
|
.el-radio { |
|
|
|
|
height: 20px; |
|
|
|
|
margin-right: 10px; |
|
|
|
|
:deep(.el-radio__label) { |
|
|
|
|
display: none; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|