Browse Source

修改灵敏感知-问题线索,将个人风险移到风险问题中

main
sjh 1 year ago
parent
commit
c489c99bb3
  1. 6
      src/api/sensitivePerception/riskScoreRule.ts
  2. 4
      src/views/sensitivePerception/RiskScoreRule.vue

6
src/api/sensitivePerception/riskScoreRule.ts

@ -6,6 +6,12 @@ export function listRiskScoreRuleTree() {
}); });
} }
export function listRiskScoreRuleTreeOld() {
return request.get({
url: '/risk/scoreRule/oldTree'
});
}
export function addRiskScoreRule(body) { export function addRiskScoreRule(body) {
return request.post({ return request.post({

4
src/views/sensitivePerception/RiskScoreRule.vue

@ -180,7 +180,7 @@ import { BASE_PATH } from "@/api/request";
import { calculateScore } from "@/api/work/negative"; import { calculateScore } from "@/api/work/negative";
import { MENU_ROOT_ID } from "@/enums/appEnums"; import { MENU_ROOT_ID } from "@/enums/appEnums";
import { import {
listRiskScoreRuleTree, listRiskScoreRuleTreeOld,
addRiskScoreRule, addRiskScoreRule,
updateRiskScoreRule, updateRiskScoreRule,
delRiskScoreRule delRiskScoreRule
@ -197,7 +197,7 @@ const treeOptions = ref([
]); ]);
function getList() { function getList() {
listRiskScoreRuleTree().then((data) => { listRiskScoreRuleTreeOld().then((data) => {
scoreRules.value = data; scoreRules.value = data;
treeOptions.value[0].children = data; treeOptions.value[0].children = data;
}); });

Loading…
Cancel
Save