diff --git a/src/api/model.ts b/src/api/model.ts index 48618fe..4a5cd90 100644 --- a/src/api/model.ts +++ b/src/api/model.ts @@ -24,15 +24,26 @@ export const accessStrategyEnterpriseBlacklist = async (data: Record => (await axios.post(`/product/accessStrategyEnterpriseBlacklist/details`, getIds())).data; +export const accessStrategyEnterpriseBlacklistFind = async (params: Record): Promise => + (await axios.post(`/product/accessStrategyEnterpriseBlacklist/details`, {}, { params })).data; export const accessStrategyEnterpriseBlacklistSave = async (data: Record): Promise => (await axios.post(`/product/accessStrategyEnterpriseBlacklist/saveOrUpdate`, data)).data; export const accessStrategyEnterpriseBlacklistDel = async (data: Record): Promise => (await axios.post(`${host}/product/accessStrategyEnterpriseBlacklist/delete`, data)).data; -export const accessStrategyAntiFraudStrategyFind = async (): Promise => (await axios.post(`/product/accessStrategyAntiFraudStrategy/details`, getIds())).data; -export const accessStrategyAntiFraudStrategySave = async (data: Record): PromiaccessStrategyGovernmentBlacklistse => +export const accessStrategyAntiFraudStrategy = async (data: Record): Promise => + ( + await axios.post(`${host}/product/accessStrategyAntiFraudStrategy/list`, { + ...getIds(), + ...data, + }) + ).data; +export const accessStrategyAntiFraudStrategyFind = async (params: Record): Promise => + (await axios.post(`/product/accessStrategyAntiFraudStrategy/details`, {}, { params })).data; +export const accessStrategyAntiFraudStrategySave = async (data: Record): Promise => (await axios.post(`/product/accessStrategyAntiFraudStrategy/saveOrUpdate`, data)).data; +export const accessStrategyAntiFraudStrategyDel = async (data: Record): Promise => + (await axios.post(`${host}/product/accessStrategyAntiFraudStrategy/delete`, data)).data; export const accessStrategyBusinessBlacklist = async (data: Record): Promise => ( @@ -62,13 +73,33 @@ export const accessStrategyCreditBlacklistSave = 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 accessStrategyInlineBlacklist = async (data: Record): Promise => + ( + await axios.post(`${host}/product/accessStrategyInlineBlacklist/list`, { + ...getIds(), + ...data, + }) + ).data; +export const accessStrategyInlineBlacklistFind = async (params: Record): Promise => + (await axios.post(`/product/accessStrategyInlineBlacklist/details`, {}, { params })).data; export const accessStrategyInlineBlacklistSave = async (data: Record): Promise => (await axios.post(`/product/accessStrategyInlineBlacklist/saveOrUpdate`, data)).data; +export const accessStrategyInlineBlacklistDel = async (data: Record): Promise => + (await axios.post(`${host}/product/accessStrategyInlineBlacklist/delete`, data)).data; -export const accessStrategyNegativeIndustryStrategyFind = async (): Promise => (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/details`, getIds())).data; +export const accessStrategyNegativeIndustryStrategy = async (data: Record): Promise => + ( + await axios.post(`${host}/product/accessStrategyNegativeIndustryStrategy/list`, { + ...getIds(), + ...data, + }) + ).data; +export const accessStrategyNegativeIndustryStrategyFind = async (params: Record): Promise => + (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/details`, {}, { params })).data; export const accessStrategyNegativeIndustryStrategySave = async (data: Record): Promise => (await axios.post(`/product/accessStrategyNegativeIndustryStrategy/saveOrUpdate`, data)).data; +export const accessStrategyNegativeIndustryStrategyDel = async (data: Record): Promise => + (await axios.post(`${host}/product/accessStrategyNegativeIndustryStrategy/delete`, data)).data; export const delCredit = async (id: number): Promise => (await axios.post(`/product/creditScoringStrategy/delete?strategyId=${id}`)).data; export const findCredit = async (id: number): Promise => (await axios.post(`/product/creditScoringStrategy/details?strategyId=${id}`)).data; diff --git a/src/views/product/bank/Config.vue b/src/views/product/bank/Config.vue index a18ed7a..01af00e 100644 --- a/src/views/product/bank/Config.vue +++ b/src/views/product/bank/Config.vue @@ -598,7 +598,7 @@ ({ enterpriseQuotaModel: [], }); +const curPreviewTitle = ref(); +const assessNames = ['政务黑名单', '征信黑名单', '商采黑名单', '行内黑名单', '企业黑名单', '反欺诈策略', '负面行业黑名单策略']; const dynamicComponentMap = { '150': defineAsyncComponent(() => import('../strategy/150/Detail.vue')), '151': defineAsyncComponent(() => import('../strategy/151/Detail.vue')), '152': defineAsyncComponent(() => import('../strategy/152/Detail.vue')), '153': defineAsyncComponent(() => import('../strategy/153/Detail.vue')), '154': defineAsyncComponent(() => import('../strategy/154/Detail.vue')), - // '155': defineAsyncComponent(() => import('./155.vue')), - // '156': defineAsyncComponent(() => import('./156.vue')), + '155': defineAsyncComponent(() => import('../strategy/155/Detail.vue')), + '156': defineAsyncComponent(() => import('../strategy/156/Detail.vue')), // '148': defineAsyncComponent(() => import('./Credit.vue')), // '702': defineAsyncComponent(() => import('./Risk1.vue')), // '703': defineAsyncComponent(() => import('./Risk2.vue')), @@ -784,6 +795,10 @@ const getAccess = async (i: number) => { if (!i) res = await accessStrategyGovernmentBlacklistList(strategyParams); // 政务 if (i === 1) res = await accessStrategyCreditBlacklist(strategyParams); // 征信 if (i === 2) res = await accessStrategyBusinessBlacklist(strategyParams); // 商采 + if (i === 3) res = await accessStrategyInlineBlacklist(strategyParams); // 行内 + if (i === 4) res = await accessStrategyEnterpriseBlacklist(strategyParams); // 企业 + if (i === 5) res = await accessStrategyAntiFraudStrategy(strategyParams); // 反欺诈 + if (i === 6) res = await accessStrategyNegativeIndustryStrategy(strategyParams); // 负面行业 if (res) list[i].blackList = res.page.records; } finally { } @@ -1257,6 +1272,7 @@ const preview = (row: Record, i: number) => { strategyName: row.blackList.find((e) => e.strategyId === tacticsId)?.strategyName, }; curPreview.value = Object.keys(dynamicComponentMap)[i]; + curPreviewTitle.value = `查看${assessNames[i]}策略`; visible.value = true; }; diff --git a/src/views/product/strategy/150/Detail.vue b/src/views/product/strategy/150/Detail.vue index e58def2..3b19348 100644 --- a/src/views/product/strategy/150/Detail.vue +++ b/src/views/product/strategy/150/Detail.vue @@ -143,7 +143,7 @@
取消
确定
+ @click="confirmSubmit">确定 { }); addRecord(recordParam); }; +const confirmSubmit = () => { + if (!strategyName.value) return ElMessage.error('请输入策略名称!'); + syncVisible.value = true; +}; diff --git a/src/views/product/strategy/153/Detail.vue b/src/views/product/strategy/153/Detail.vue index 082ade8..b744a48 100644 --- a/src/views/product/strategy/153/Detail.vue +++ b/src/views/product/strategy/153/Detail.vue @@ -147,7 +147,7 @@
取消
确定
+ @click="confirmSubmit">确定 diff --git a/src/views/product/strategy/153/Index.vue b/src/views/product/strategy/153/Index.vue index 403e40c..3a3c3a1 100644 --- a/src/views/product/strategy/153/Index.vue +++ b/src/views/product/strategy/153/Index.vue @@ -38,7 +38,7 @@ width="60" align="center" /> 编辑 + @confirm.stop="handleDelete([row.strategyId])">