master V1.0.2
yujialong 8 months ago
parent d811eba4b6
commit 8dafd693ef
  1. 2
      .env
  2. 12
      src/utils/request.ts
  3. 2
      src/views/product/bank/Add.vue
  4. 2
      src/views/product/bank/Info.vue

@ -2,7 +2,7 @@ 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://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

@ -7,7 +7,7 @@ const service = axios.create({
baseURL: import.meta.env.VITE_BASE_API,
timeout: 10000,
});
let loaded = 0;
service.interceptors.request.use(
(config) => {
config.headers = { ...config.headers, ...getAuthHeaders() };
@ -36,10 +36,12 @@ service.interceptors.response.use(
},
} = e;
if (status === 401) {
ElMessageBox.alert('登录状态已过期,请重新登录', { confirmButtonText: '重新登录', type: 'warning', closeOnClickModal: false, showClose: false }).then(() => {
// 未登录
logout();
});
loaded ||
ElMessageBox.alert('登录状态已过期,请重新登录', { confirmButtonText: '重新登录', type: 'warning', closeOnClickModal: false, showClose: false }).then(() => {
// 未登录
logout();
});
loaded = 1;
} else if (message) {
ElMessage.error(message);
}

@ -596,7 +596,7 @@ const addRecord = async (data: Record<string, any>) => {
data.creditSelectedStatus && lcRule.push(handleId(108, 324, data.creditSelectedStatus, preIds + ',53,108', 1));
data.guaranteeLoanSelectedStatus && lcRule.push(handleId(109, 324, data.guaranteeLoanSelectedStatus, preIds + ',53,109', 1));
data.mortgageSelectedStatus && lcRule.push(handleId(1277, 324, data.mortgageSelectedStatus, preIds + ',53,110,1277', 1));
data.hypothecatedSelectedStatus && lcRule.push(handleId(1277, 324, data.hypothecatedSelectedStatus, preIds + ',53,111,1277', 1));
data.hypothecatedSelectedStatus && lcRule.push(handleId(1278, 324, data.hypothecatedSelectedStatus, preIds + ',53,111,1278', 1));
data.mortgageSelectedStatus === 795 && lcRule.push(handleId(1275, 13, data.bankGuaranteeTypeIds.filter((e: number) => e > 22 && e < 33).join(), preIds + ',53,110,1275', 1));
data.hypothecatedSelectedStatus === 795 && lcRule.push(handleId(1276, 14, data.bankGuaranteeTypeIds.filter((e: number) => e > 32 && e < 38).join(), preIds + ',53,111,1276', 1));

@ -37,7 +37,7 @@
<div v-if="info.prospectiveBorrowerText"
class="flex my-2">
<p class="text whitespace-nowrap">贷款对象</p>
<p class="text whitespace-nowrap">适用条件</p>
<div class="text"
v-html="info.prospectiveBorrowerText"></div>
</div>

Loading…
Cancel
Save