yujialong 10 months ago
parent 95cca0fa27
commit b2d946f992
  1. 2
      src/api/config.ts
  2. 8
      src/api/judgment.ts
  3. 3
      src/components/Panel/index.vue
  4. 2
      src/views/Home.vue
  5. 20
      src/views/config/level/Index.vue
  6. 9
      src/views/product/afterLoan/1033.vue
  7. 13
      src/views/product/bank/Add.vue
  8. 4
      src/views/product/bank/Approve.vue
  9. 4
      src/views/product/bank/Config.vue
  10. 7
      src/views/product/fund/Add.vue
  11. 5
      src/views/product/insurance/Add.vue
  12. 6
      src/views/product/interestRate/935.vue
  13. 2
      src/views/product/strategy/152.vue
  14. 2
      src/views/product/strategy/153.vue
  15. 2
      src/views/product/strategy/154.vue
  16. 2
      src/views/product/strategy/155.vue

@ -10,6 +10,8 @@ export const financialMarketFind = async (): Promise<any> => (await axios.post('
export const financialMarketSave = async (data: Record<string, any>): Promise<any> => (await axios.post('/product/financialMarket/saveOrUpdate', data)).data;
export const delPass = async (data: number[]): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/batchDeletion', data)).data;
export const updateIsOpen = async (checkpointId: number, isEnable: number): Promise<any> =>
(await axios.post(`/nakadai/nakadai/customsPass/updateIsOpen?checkpointId=${checkpointId}&isEnable=${isEnable}`)).data;
export const listPass = async (data: Record<string, any>): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/checkpointList', data)).data;
export const savePass = async (data: Record<string, any>): Promise<any> => (await axios.post('/nakadai/nakadai/customsPass/save', data)).data;
export const updatePass = async (data: Record<string, any>[]): Promise<any> => (await axios.post(`/nakadai/nakadai/customsPass/update`, data)).data;

@ -7,5 +7,9 @@ export const getProcessInformationBasedOnRoles = async (id: number): Promise<any
export const addOperation = async (data: Record<string, any>): Promise<any> => (await axios.post('/product/product/bank/operation/addOperation', data)).data;
export const checkPointList = async (projectId: number, displayCollection?: number | string = ''): Promise<any> =>
(await axios.post(`/judgment/judgment/stRecord/checkPointList?projectId=${projectId}&displayCollection=${displayCollection}`)).data;
export const deleteCache = async (projectId: number, checkpoint: number): Promise<any> =>
(await axios.get(`/product/product/bank/operation/deleteCache?projectId=${projectId}&checkpoint=${checkpoint}`)).data;
export const deleteCache = async (data: Record<string, any>): Promise<any> =>
(
await axios.get(
`/product/product/bank/operation/deleteCache?projectId=${data.projectId}&checkpoint=${data.checkpointId}&assessmentId=${data.assessmentId}&competitionId=${data.competitionId}`,
)
).data;

@ -238,6 +238,7 @@ import 'mavon-editor/dist/css/index.css';
import '@vueup/vue-quill/dist/vue-quill.snow.css';
import { useDraggable } from '@vueuse/core';
import { logout } from '@/store/useCurrentUser';
import { getIds } from '@/utils/common';
const router = useRouter();
const route = useRoute();
@ -478,7 +479,7 @@ const toReport = () => {
};
//
const reload = async () => {
await deleteCache(param.projectId, Cookies.get('sand-level') ?? '');
await deleteCache(getIds());
reloadCount();
grade.value = '00';
setSubmit(false);

@ -24,7 +24,7 @@
<img v-else
src="@/assets/images/level/6.png"
alt="" />
<span class="ml-2 text-sm text-[#999]">仅显示已收藏的项目</span>
<span class="ml-2 text-sm text-[#999]">仅显示已收藏的关卡</span>
</div>
</div>
<div class="relative mt-20">

@ -123,11 +123,17 @@
width="140"
align="center">
<template #default="{ row }">
<el-popconfirm v-if="row.checkpointId"
:title="row.isEnable ? '禁用关卡后,已关联该关卡的判分点将被禁用,确定禁用吗?' : '启用关卡后,已关联该关卡的判分点将被启用,确定启用吗?'"
@confirm.stop="enableSubmit(row)">
<template #reference>
<el-switch v-if="row.checkpointId"
v-model="row.isEnable"
:active-value="1"
:inactive-value="0"
@change="hadChange = 1;" />
@change="enableChange(row)" />
</template>
</el-popconfirm>
</template>
</el-table-column>
<el-table-column label="操作"
@ -157,9 +163,9 @@
<script setup lang="ts">
import { computed, onMounted, ref, reactive, watch, nextTick } from 'vue';
import { ElMessage } from 'element-plus';
import { ElMessage, ElMessageBox } from 'element-plus';
import { Delete, Edit, Check, MoreFilled, Close } from '@element-plus/icons-vue';
import { listPass, savePass, updatePass, delPass } from '@/api/config';
import { listPass, savePass, updatePass, delPass, updateIsOpen } from '@/api/config';
import Search from '@/components/Search.vue';
import { useRouter, useRoute } from 'vue-router';
import Cookies from 'js-cookie';
@ -266,6 +272,14 @@ const toAdd = () => {
hadChange.value = 1;
};
//
const enableChange = (row: Record<string, any>) => {
row.isEnable = row.isEnable ? 0 : 1;
};
const enableSubmit = async (row: Record<string, any>) => {
row.isEnable = row.isEnable ? 0 : 1;
await updateIsOpen(row.checkpointId, row.isEnable);
};
//
const edit = async (row: Record<string, any>) => {
if (!row.editing) {

@ -27,10 +27,12 @@
<el-select v-if="row.recordChildren"
class="w-full"
v-model="row.verbalTrick">
<el-option v-for="item in row?.recordChildren[0].subject.itemList"
<el-option v-for="item in row?.recordChildren[0]?.subject?.itemList"
:key="item"
:label="item.options"
:value="item.itemId" />
:value="item.itemId">
<span>{{ item.options }}</span>
</el-option>
</el-select>
</template></el-table-column>
</el-table>
@ -68,12 +70,13 @@ const getConfig = async () => {
automaticOutboundCall: info.value.length ? !!cur.automaticOutboundCall : false,
shortMessageCollection: info.value.length ? !!cur.shortMessageCollection : false,
manualCollection: info.value.length ? !!cur.manualCollection : false,
verbalTrick: +(cur.verbalTrick || 750),
verbalTrick: cur.verbalTrick ? +cur.verbalTrick : '',
id: cur.id || '',
stRecordId: e.id,
});
});
form.value = result;
console.log('🚀 ~ getConfig ~ result:', result);
};
//
const getDetail = async () => {

@ -276,7 +276,7 @@ import type { TabsPaneContext, FormInstance, FormRules } from 'element-plus';
import { findById, save, update } from '@/api/bank';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum } from '@/utils/common';
import { handleId, isIllegalNum, getIds } from '@/utils/common';
import { getStatus } from '@/store/useProduct';
import Info from './Info.vue';
import Cookies from 'js-cookie';
@ -422,21 +422,20 @@ const submit = async (formEl: FormInstance | undefined) => {
pid: e > 22 && e < 33 ? 110 : e > 32 && e < 38 ? 111 : e,
});
});
let res;
if (id.value) {
param.id = id.value;
param.status = 295;
await update(param);
addRecord(param);
} else {
await save(param);
res = await save(param);
addRecord(param);
}
router.push({
path: '/product/bank/detail',
query: route.query,
});
router.push(`/product/bank/detail?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${res.message}`);
ElMessage.success('提交成功!');
emit('getList', 1);
emit('getList');
} finally {
}
} else {

@ -73,6 +73,7 @@ interface RuleForm {
}
const router = useRouter();
const route = useRoute();
const id = computed(() => +route.query.id);
const projectId = +Cookies.get('sand-projectId');
const levelId = +Cookies.get('sand-level');
const curTab = ref<string>('tab1');
@ -127,9 +128,10 @@ const submit = async (formEl: FormInstance | undefined) => {
param.approvalTime = dayjs(new Date()).format('YYYY-M-D');
await examineAndApprove(param.id, param.opinionDescription, param.status, param.approvalTime);
router.push(`/product/bank/detail?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${id.value}`);
addRecord(param);
ElMessage.success('提交成功!');
emit('getList', 1);
emit('getList');
} finally {
}
}

@ -523,9 +523,9 @@ const submit = async (formEl: FormInstance | undefined) => {
await riskSave(param);
addRecord(param);
}
router.push(`/product/bank/detail?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${id.value}`);
ElMessage.success('提交成功!');
emit('getList', 1);
emit('getList');
} finally {
}
} else {

@ -317,7 +317,7 @@ import { Plus, Minus } from '@element-plus/icons-vue';
import { getAListOfAShares, saveFund } from '@/api/fund';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum } from '@/utils/common';
import { handleId, isIllegalNum, getIds } from '@/utils/common';
import Cookies from 'js-cookie';
const emit = defineEmits(['getList']);
@ -553,10 +553,11 @@ const submit = async () => {
const recordParam = JSON.parse(JSON.stringify(param));
delete param.buySellRatioList0;
delete param.buySellRatioList1;
await saveFund(param);
const res = await saveFund(param);
router.push(`/product/fund/detail?id=` + res.message);
addRecord(recordParam);
ElMessage.success('提交成功!');
emit('getList', 1);
emit('getList');
} finally {
}
};

@ -117,7 +117,7 @@ import { ElMessage } from 'element-plus';
import { insuranceProductDetails, addInsuranceProducts } from '@/api/insurance';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router';
import { handleId, isIllegalNum } from '@/utils/common';
import { handleId, isIllegalNum, getIds } from '@/utils/common';
import Cookies from 'js-cookie';
const emit = defineEmits(['getList']);
@ -248,7 +248,8 @@ const submit = async () => {
if (!param.exemptionFromLiability.length) return ElMessage.error('请至少选择一项责任免除');
param.applicationMaterial = param.applicationMaterial.join();
param.exemptionFromLiability = param.exemptionFromLiability.join();
await addInsuranceProducts(param);
const res = await addInsuranceProducts(param);
// router.push(`/product/insurance/detail?id=` + res.message);
addRecord(param);
ElMessage.success('提交成功!');
emit('getList', 1);

@ -145,9 +145,9 @@ const getConfig = async () => {
len.value = result.length - 1;
if (info.value.length) {
result.forEach((e, i) => {
result[i].score = info.value[i].score;
result[i].id = info.value[i].id;
result[i].modelId = info.value[i].modelId;
result[i].score = info.value[i]?.score;
result[i].id = info.value[i]?.id;
result[i].modelId = info.value[i]?.modelId;
});
}
form.value.individualInterestRateModels = result;

@ -156,7 +156,7 @@ import { accessStrategyBusinessBlacklistFind, accessStrategyBusinessBlacklistSav
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import type { TableColumnCtx } from 'element-plus';
import { useRouter, useRoute } from 'vue-router';
import { handleId, getNum, getSymbol, getChinese } from '@/utils/common';
import { handleId, getNum, getSymbol, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie';
const router = useRouter();

@ -129,7 +129,7 @@ import { accessStrategyInlineBlacklistFind, accessStrategyInlineBlacklistSave }
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import type { TableColumnCtx } from 'element-plus';
import { useRoute } from 'vue-router';
import { handleId, getNum, getChinese } from '@/utils/common';
import { handleId, getNum, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie';
const route = useRoute();

@ -266,7 +266,7 @@ import { ElMessage } from 'element-plus';
import { accessStrategyEnterpriseBlacklistFind, accessStrategyEnterpriseBlacklistSave } from '@/api/model';
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import { useRouter, useRoute } from 'vue-router';
import { handleId, getNum, getSymbol, getChinese } from '@/utils/common';
import { handleId, getNum, getSymbol, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie';
const router = useRouter();

@ -125,7 +125,7 @@ import { accessStrategyAntiFraudStrategyFind, accessStrategyAntiFraudStrategySav
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment';
import type { TableColumnCtx } from 'element-plus';
import { useRouter, useRoute } from 'vue-router';
import { handleId, getNum, getSymbol, getChinese } from '@/utils/common';
import { handleId, getNum, getSymbol, getChinese, getIds } from '@/utils/common';
import Cookies from 'js-cookie';
const router = useRouter();

Loading…
Cancel
Save