Browse Source

风控规则优化

marxjaw 4 months ago
parent
commit
750b542e89

+ 11 - 3
src/views/main/riskModule/components/configForm.vue

@@ -38,7 +38,14 @@
                        <el-radio label="2" >满足一条即可</el-radio>
                     </el-radio-group>
                 </div>
-
+                <div style="display: flex; align-items: center;margin: 20px 0px;">
+                    业务节点:
+                  <el-select  v-model="configFormList.effectNode"
+                             placeholder="请选择" filterable >
+                    <el-option v-for=" item in getOptions('effect_node')" :key="item.label"
+                               :label="item.label" :value="item.value"></el-option>
+                  </el-select>
+                </div>
                 <h3 style="margin-top: 20px;">配置列表</h3>
 
                 <div class="flex mt-2" v-for="(item, index) in configFormList.configList">
@@ -278,7 +285,7 @@
         return true;
     }
 
-    const { dictData, loadDictData, uniqueTypes, optionsByType, getOptions, getDictionaryName } = useGetDictList();
+    const { loadDictData, getOptions, getDictionaryName } = useGetDictList();
 
     // 配置数据
     const configFormList = ref({
@@ -288,6 +295,7 @@
         createUserId: null,
         enabled: null,
         allSatisfy: null,
+        effectNode: null,
         templateCode: '', //风控配置模板编号
         templateContent: '', //风控配置模板内容
         templateId: '',//风控配置模板ID
@@ -515,7 +523,7 @@
     watch(() => configFormList.value.configList.length, (newLength) => {
         configInputRefs.value.length = newLength;
     });
-
+  
     // 编辑时获取回显数据
     watch(() => props.layer.show, (val) => {
         if (val && props.layer.disabled && props.layer.templateId) {

+ 8 - 2
src/views/main/riskModule/riskControlConfig.vue

@@ -27,7 +27,7 @@
           </template>
         </el-table-column>
         <el-table-column prop="templateCode" label="配置编码" width="90" />
-        <el-table-column prop="templateContent" label="配置内容">
+        <el-table-column prop="templateContent" label="配置内容" width="200">
           <template #default="scope">
             <el-popover
               class="box-item"
@@ -47,6 +47,11 @@
               {{getDictionaryName('all_satisfy', scope.row.allSatisfy)}}
             </template>
         </el-table-column>
+        <el-table-column prop="effectNode" label="业务节点" width="100">
+            <template #default="scope">
+              {{getDictionaryName('effect_node', scope.row.effectNode)}}
+            </template>
+        </el-table-column>
         <el-table-column prop="templateId" label="配置模版ID" width="160" />
         <el-table-column prop="templateName" label="配置名称" width="100" />
         <el-table-column prop="createTime" label="创建时间" width="160">
@@ -328,7 +333,8 @@
           templateName: data.templateName,
           templateContent: data.templateContent,
           templateCode: data.templateCode,
-          allSatisfy: data.allSatisfy
+          allSatisfy: data.allSatisfy,
+          effectNode: data.effectNode
         })
       if (res.code === 200) {
         ElMessage.success('配置保存成功')