From 331cf3e493b83dd20f81b16d0698eb1ac7e44733 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 26 Apr 2024 18:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A3=8E=E6=8E=A7=E5=8F=8A?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 +- src/api/bank.ts | 1 - src/api/model.ts | 44 +- src/assets/svgs/preview.svg | 1 + src/components/Panel/index.vue | 2 +- src/components/StrategyConfirm.vue | 2 +- src/views/Home.vue | 29 +- src/views/product/afterLoan/1031.vue | 3 +- src/views/product/bank/Config.vue | 567 ++++++++++++------ src/views/product/strategy/150.vue | 364 ----------- src/views/product/strategy/150/Detail.vue | 31 +- src/views/product/strategy/150/Index.vue | 73 ++- src/views/product/strategy/151.vue | 271 --------- src/views/product/strategy/151/Detail.vue | 300 +++++++++ src/views/product/strategy/151/Index.vue | 166 +++++ .../strategy/{152.vue => 152/Detail.vue} | 457 +++++++------- src/views/product/strategy/152/Index.vue | 166 +++++ src/views/product/strategy/CardList.vue | 8 +- 18 files changed, 1393 insertions(+), 1096 deletions(-) create mode 100644 src/assets/svgs/preview.svg delete mode 100644 src/views/product/strategy/150.vue delete mode 100644 src/views/product/strategy/151.vue create mode 100644 src/views/product/strategy/151/Detail.vue create mode 100644 src/views/product/strategy/151/Index.vue rename src/views/product/strategy/{152.vue => 152/Detail.vue} (54%) create mode 100644 src/views/product/strategy/152/Index.vue diff --git a/.env b/.env index 214a3f1..104e2c6 100644 --- a/.env +++ b/.env @@ -2,8 +2,8 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘 VITE_PORT=9520 # VITE_PROXY=http://192.168.31.125:8080 VITE_PUBLIC_PATH=./ -# VITE_BASE_API=http://192.168.31.51:9000 -VITE_BASE_API=http://121.37.12.51 +VITE_BASE_API=http://192.168.31.217:9000 +# VITE_BASE_API=http://121.37.12.51 # VITE_BASE_API=https://www.occupationlab.com VITE_I18N_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn diff --git a/src/api/bank.ts b/src/api/bank.ts index 92ca63e..ad660e6 100644 --- a/src/api/bank.ts +++ b/src/api/bank.ts @@ -15,7 +15,6 @@ export const elementDetail = async (id: number): Promise => (await axios.po export const save = async (data: Record): Promise => (await axios.post(`/product/product/bank/products/save`, data)).data; export const riskSave = async (data: Record): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/save`, data)).data; export const riskUpdate = async (data: Record): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/update`, data)).data; -export const riskById = async (id: number): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/findById?id=${id}`)).data; export const riskControlDetailsAreDisplayed = async (id: number): Promise => (await axios.post(`/product/managerOfRiskControl/bankRiskControlAllocation/riskControlDetailsAreDisplayed?id=${id}`)).data; export const examineAndApprove = async (id: number | string, opinionDescription: string, status: number, approvalTime: string): Promise => diff --git a/src/api/model.ts b/src/api/model.ts index 7ba71a3..1689de4 100644 --- a/src/api/model.ts +++ b/src/api/model.ts @@ -3,25 +3,55 @@ import { getIds } from '@/utils/common'; const host = `http://192.168.31.51:9000`; -export const accessStrategyGovernmentBlacklistFind = async (): Promise => (await axios.post(`/product/accessStrategyGovernmentBlacklist/details`, getIds())).data; +export const accessStrategyGovernmentBlacklistList = async (data: Record): Promise => + ( + await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/list`, { + ...getIds(), + ...data, + }) + ).data; +export const accessStrategyGovernmentBlacklistFind = async (params: Record): Promise => + (await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/details`, {}, { params })).data; export const accessStrategyGovernmentBlacklistSave = async (data: Record): Promise => - (await axios.post(`/product/accessStrategyGovernmentBlacklist/saveOrUpdate`, data)).data; + (await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/saveOrUpdate`, data)).data; +export const accessStrategyGovernmentBlacklistDel = async (data: Record): Promise => + (await axios.post(`${host}/product/accessStrategyGovernmentBlacklist/delete`, data)).data; export const accessStrategyEnterpriseBlacklistFind = async (): Promise => (await axios.post(`/product/accessStrategyEnterpriseBlacklist/details`, getIds())).data; export const accessStrategyEnterpriseBlacklistSave = async (data: Record): Promise => (await axios.post(`/product/accessStrategyEnterpriseBlacklist/saveOrUpdate`, data)).data; export const accessStrategyAntiFraudStrategyFind = async (): Promise => (await axios.post(`/product/accessStrategyAntiFraudStrategy/details`, getIds())).data; -export const accessStrategyAntiFraudStrategySave = async (data: Record): Promise => +export const accessStrategyAntiFraudStrategySave = async (data: Record): PromiaccessStrategyGovernmentBlacklistse => (await axios.post(`/product/accessStrategyAntiFraudStrategy/saveOrUpdate`, data)).data; -export const accessStrategyBusinessBlacklistFind = async (): Promise => (await axios.post(`/product/accessStrategyBusinessBlacklist/details`, getIds())).data; +export const accessStrategyBusinessBlacklist = async (data: Record): Promise => + ( + await axios.post(`${host}/product/accessStrategyBusinessBlacklist/list`, { + ...getIds(), + ...data, + }) + ).data; +export const accessStrategyBusinessBlacklistFind = async (params: Record): Promise => + (await axios.post(`${host}/product/accessStrategyBusinessBlacklist/details`, {}, { params })).data; export const accessStrategyBusinessBlacklistSave = async (data: Record): Promise => - (await axios.post(`/product/accessStrategyBusinessBlacklist/saveOrUpdate`, data)).data; + (await axios.post(`${host}/product/accessStrategyBusinessBlacklist/saveOrUpdate`, data)).data; +export const accessStrategyBusinessBlacklistDel = async (data: Record): Promise => + (await axios.post(`${host}/product/accessStrategyBusinessBlacklist/delete`, data)).data; -export const accessStrategyCreditBlacklistFind = async (): Promise => (await axios.post(`/product/accessStrategyCreditBlacklist/details`, getIds())).data; +export const accessStrategyCreditBlacklist = async (data: Record): Promise => + ( + await axios.post(`${host}/product/accessStrategyCreditBlacklist/list`, { + ...getIds(), + ...data, + }) + ).data; +export const accessStrategyCreditBlacklistFind = async (params: Record): Promise => + (await axios.post(`${host}/product/accessStrategyCreditBlacklist/details`, {}, { params })).data; export const accessStrategyCreditBlacklistSave = async (data: Record): Promise => - (await axios.post(`/product/accessStrategyCreditBlacklist/saveOrUpdate`, data)).data; + (await axios.post(`${host}/product/accessStrategyCreditBlacklist/saveOrUpdate`, data)).data; +export const accessStrategyCreditBlacklistDel = async (data: Record): Promise => + (await axios.post(`${host}/product/accessStrategyCreditBlacklist/delete`, data)).data; export const accessStrategyInlineBlacklistFind = async (): Promise => (await axios.post(`/product/accessStrategyInlineBlacklist/details`, getIds())).data; export const accessStrategyInlineBlacklistSave = async (data: Record): Promise => diff --git a/src/assets/svgs/preview.svg b/src/assets/svgs/preview.svg new file mode 100644 index 0000000..32979fc --- /dev/null +++ b/src/assets/svgs/preview.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Panel/index.vue b/src/components/Panel/index.vue index 1f99ef4..c0c7a43 100644 --- a/src/components/Panel/index.vue +++ b/src/components/Panel/index.vue @@ -534,7 +534,7 @@ let getCache = async (reloadPage?: number) => { }); } else { Cookies.remove('sand-level'); - setNewProject(); + setNewProject(reloadPage); } }; let handleCache = () => { diff --git a/src/components/StrategyConfirm.vue b/src/components/StrategyConfirm.vue index 7e69784..b33c4d7 100644 --- a/src/components/StrategyConfirm.vue +++ b/src/components/StrategyConfirm.vue @@ -31,6 +31,6 @@ const visible = computed({ }); const syncCheck = ref(false); const submit = () => { - emit('submit'); + emit('submit', +syncCheck.value); }; diff --git a/src/views/Home.vue b/src/views/Home.vue index 822859f..b955052 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -30,11 +30,11 @@
- LV.{{ item.serialNumber }} + LV.{{ i + 1 }}
-
第{{ numToChinese(item.serialNumber) }}关
+
第{{ numToChinese(i + 1) }}关

{{ item.customsPassName }}

{ provide('getLevel', getLevel); // 点击关卡回调 const selecLevel = (item: Record) => { - curLevel.value = item.checkpointId; + if (item.enableOrNot) curLevel.value = item.checkpointId; }; // 收藏 const collectItem = async (item: Record) => { - if (item.collect) { - await cancelCollection(item.favoriteId); - } else { - await collect({ - checkpointId: item.checkpointId, - projectId, - }); + if (item.enableOrNot) { + if (item.collect) { + await cancelCollection(item.favoriteId); + } else { + await collect({ + checkpointId: item.checkpointId, + projectId, + }); + } + getLevel(); } - getLevel(); }; // 确定 const toRole = () => { @@ -185,6 +187,9 @@ onMounted(() => { -webkit-text-fill-color: #fff; } } + &.disabled { + @apply opacity-30 cursor-not-allowed; + } &:nth-child(2) { @apply top-[var(--line2)] left-[160px]; diff --git a/src/views/product/afterLoan/1031.vue b/src/views/product/afterLoan/1031.vue index bc2c975..fc75a43 100644 --- a/src/views/product/afterLoan/1031.vue +++ b/src/views/product/afterLoan/1031.vue @@ -199,7 +199,7 @@ import Cookies from 'js-cookie'; const form = ref[]>([]); const info = ref[]>([]); // 公式的默认答案 -const answer = [[697, 697], [697, 697], [1, 707], [714], [], [697, 697], [697, 697]]; +const answer = [[697, 693], [698, 691], [1, 707], [716], [], [695, 696], [696, 694]]; // 配置项 const getConfig = async () => { const { process } = await getProcessInformationBasedOnRoles(1031); @@ -210,7 +210,6 @@ const getConfig = async () => { }, ]; process.map((e, i) => { - console.log('🚀 ~ process.map ~ i:', i); let temp = { ...getIds(), recordName: e.name, diff --git a/src/views/product/bank/Config.vue b/src/views/product/bank/Config.vue index 8f87b85..2c86019 100644 --- a/src/views/product/bank/Config.vue +++ b/src/views/product/bank/Config.vue @@ -231,109 +231,109 @@
-
-
- - {{ item.options }} - -
- +
-
-
+
+
- 个人信用评分策略 - - {{ item.name }} + {{ item.name }} + + {{ option.options }}
-
-
+
+ + +
+
- 企业信用评分策略 - - 个人风险度策略 + + {{ item.name }} + :label="item.itemId">{{ item.options }}
- - - -
-
-
- -
- - {{ item.options }} - - - - {{ item.options }} - -
- -
- -
- {{ (info.productType ? '企业' : '个人') + '额度模型' }} - - 企业风险度策略 + + {{ item.options }}
- +
+ + +
+
+ {{ item.name }} + + {{ option.options }} + +
-
- {{ (info.productType ? '企业' : '个人') + '利率模型' }} - - {{ item.options }} +
+ 企业额度模型 + + {{ option.options }} + + + {{ item.options }} + +
+ +
+ 企业利率模型 + + {{ option.options }} + + + +
@@ -529,26 +555,28 @@
贷后管理
- -
-
- - {{ item.options }} + +
+
+ {{ item.name }} + + {{ option.options }} + + +
-
@@ -567,16 +595,25 @@
+ + + +
diff --git a/src/views/product/strategy/150/Detail.vue b/src/views/product/strategy/150/Detail.vue index 73f9b94..2275ed7 100644 --- a/src/views/product/strategy/150/Detail.vue +++ b/src/views/product/strategy/150/Detail.vue @@ -9,12 +9,12 @@ placeholder="请输入20以内字符" maxlength="20" clearable - v-model="name"> + v-model="strategyName">
@@ -138,7 +138,8 @@ -
+
取消
diff --git a/src/views/product/strategy/150/Index.vue b/src/views/product/strategy/150/Index.vue index d976391..e3587d4 100644 --- a/src/views/product/strategy/150/Index.vue +++ b/src/views/product/strategy/150/Index.vue @@ -1,7 +1,7 @@