yujialong 9 months ago
parent 5390916ca9
commit 00f09e0488
  1. 4
      .env
  2. 15
      src/components/Panel/index.vue
  3. 12
      src/views/product/bank/CardList.vue
  4. 1
      src/views/product/bank/Config.vue
  5. 4
      src/views/product/strategy/153.vue

@ -2,8 +2,8 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘
VITE_PORT=9520 VITE_PORT=9520
VITE_PROXY=http://192.168.31.125:8080 VITE_PROXY=http://192.168.31.125:8080
VITE_PUBLIC_PATH=./ VITE_PUBLIC_PATH=./
# VITE_BASE_API=http://192.168.31.217:9000 VITE_BASE_API=http://192.168.31.217:9000
# VITE_BASE_API=http://121.37.12.51 # VITE_BASE_API=http://121.37.12.51
VITE_BASE_API=https://www.occupationlab.com # VITE_BASE_API=https://www.occupationlab.com
VITE_I18N_LOCALE=zh-cn VITE_I18N_LOCALE=zh-cn
VITE_I18N_FALLBACK_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn

@ -490,6 +490,7 @@ const getCache = async (reloadPage?: number) => {
cancelButtonText: '否', cancelButtonText: '否',
type: 'success', type: 'success',
closeOnClickModal: false, closeOnClickModal: false,
showClose: false,
}) })
.then(async () => { .then(async () => {
// id // id
@ -517,6 +518,13 @@ const getCache = async (reloadPage?: number) => {
setNewProject(); setNewProject();
} }
}; };
const handleCache = () => {
//
if (!isSubmit.value) {
param.cid && getEntryTime();
visible.value && !Cookies.get('sand-loaded') && getCache(0); //
}
};
// //
const toReport = () => { const toReport = () => {
router.push('/report'); router.push('/report');
@ -698,13 +706,6 @@ const initSocket = () => {
// socket // socket
socket.onmessage = getMessage; socket.onmessage = getMessage;
}; };
const handleCache = () => {
//
if (!isSubmit.value) {
param.cid && getEntryTime();
visible.value && !Cookies.get('sand-loaded') && getCache(0); //
}
};
// //
const init = async () => { const init = async () => {
getLevel.value = inject('getLevel'); // getLevel.value = inject('getLevel'); //

@ -43,6 +43,7 @@
<!-- <component :is="currentSubApp" <!-- <component :is="currentSubApp"
@getList="getList"></component> --> @getList="getList"></component> -->
<config v-if="action === 'config'" <config v-if="action === 'config'"
:key="configKey"
@getList="getList"></config> @getList="getList"></config>
<detail v-if="action === 'detail'"></detail> <detail v-if="action === 'detail'"></detail>
<add v-else-if="action === 'add'" <add v-else-if="action === 'add'"
@ -69,7 +70,7 @@ import { getIds } from '@/utils/common';
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
const action = ref<any>(''); const action = ref<string>();
// const modules: any = import.meta.glob('./*.vue'); // const modules: any = import.meta.glob('./*.vue');
// let currentSubApp = defineAsyncComponent(modules[`./${route.params.action}.vue`]); // let currentSubApp = defineAsyncComponent(modules[`./${route.params.action}.vue`]);
@ -78,6 +79,7 @@ const loading = ref<boolean>(false);
const productType = computed(() => route.query.type); // / const productType = computed(() => route.query.type); // /
const role = computed(() => +route.query.role || 41); const role = computed(() => +route.query.role || 41);
const id = computed(() => +route.query.id); const id = computed(() => +route.query.id);
const configKey = ref<number>(1);
// //
const getList = async (refresh?: number) => { const getList = async (refresh?: number) => {
loading.value = true; loading.value = true;
@ -115,8 +117,12 @@ watch(
// //
const switchProduct = (row: any, refresh?: number) => { const switchProduct = (row: any, refresh?: number) => {
// addconfigapprove3 // addconfigapprove3
const path = `/product/bank/${refresh ? 'detail' : row.showElementsOrNot ? 'add' : row.showRiskControlOrNot ? 'config' : row.showApprovalOrNot ? 'approve' : 'detail'}`; const toAction = refresh ? 'detail' : row.showElementsOrNot ? 'add' : row.showRiskControlOrNot ? 'config' : row.showApprovalOrNot ? 'approve' : 'detail';
router.push(`${path}?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${row.id}&name=${name}`); const curAction = action.value;
const path = `/product/bank/${toAction}`;
router.push(`${path}?type=${route.query.type || ''}&i=${route.query.i}&role=${route.query.role}&id=${row.id}&name=${route.query.name ?? ''}`);
console.log('🚀 ~ switchProduct ~ toAction:', toAction, curAction, (toAction === curAction) === 'config');
if (toAction === 'config' && curAction === 'config') configKey.value += 1;
}; };
// //
const toAdd = () => { const toAdd = () => {

@ -60,6 +60,7 @@
prop="loanApplicationMethod"> prop="loanApplicationMethod">
<p class="mr-5 text-xs text-[#666]">选择申请方式至少选一样</p> <p class="mr-5 text-xs text-[#666]">选择申请方式至少选一样</p>
<el-checkbox-group v-if="config.length" <el-checkbox-group v-if="config.length"
style="font-size: 14px"
v-model="form.loanApplicationMethod"> v-model="form.loanApplicationMethod">
<el-checkbox v-for="(item, i) in config[1]?.recordChildren[0]?.subject?.itemList" <el-checkbox v-for="(item, i) in config[1]?.recordChildren[0]?.subject?.itemList"
:key="i" :key="i"

@ -240,9 +240,9 @@ const addRecord = async (data: Record<string, any>) => {
const rule: Array<Record<string, any>> = []; const rule: Array<Record<string, any>> = [];
data.map((e) => { data.map((e) => {
e.enterBlacklist && rule.push(handleId(363, 324, e.enterBlacklist, preIds + ',' + e.stRecordId + ',363', '')); e.enterBlacklist && rule.push(handleId(363, 324, e.enterBlacklist, preIds + ',' + e.stRecordId + ',363', 1));
rule.push(handleId(367, 166, e.enterRuleOne, preIds + ',' + e.stRecordId + ',364,367', 5), handleId(368, 167, e.enterRuleTwo, preIds + ',' + e.stRecordId + ',364,368', 5)); rule.push(handleId(367, 166, e.enterRuleOne, preIds + ',' + e.stRecordId + ',364,367', 5), handleId(368, 167, e.enterRuleTwo, preIds + ',' + e.stRecordId + ',364,368', 5));
e.outBlacklist && rule.push(handleId(365, 324, e.outBlacklist, preIds + ',' + e.stRecordId + ',365', '')); e.outBlacklist && rule.push(handleId(365, 324, e.outBlacklist, preIds + ',' + e.stRecordId + ',365', 1));
rule.push(handleId(367, 166, e.outRuleOne, preIds + ',' + e.stRecordId + ',366,367', 5), handleId(368, 167, e.outRuleTwo, preIds + ',' + e.stRecordId + ',366,368', 5)); rule.push(handleId(367, 166, e.outRuleOne, preIds + ',' + e.stRecordId + ',366,367', 5), handleId(368, 167, e.outRuleTwo, preIds + ',' + e.stRecordId + ',366,368', 5));
}); });

Loading…
Cancel
Save