diff --git a/src/api/api.js b/src/api/api.js
index 4e5aeb5..a09c21b 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -10,14 +10,14 @@ if (dev) {
// 本地
host = 'http://121.37.12.51/' // 中台测试服
// host = 'https://www.occupationlab.com/' // 正式服
- // host = 'http://192.168.31.151:9000/' // 榕
- // host = 'http://192.168.31.116:9000/' // 赓
+ host = 'http://192.168.31.217:9000/'
}
// 创建axios实例
const service = axios.create({
baseURL: host, // 测试
timeout: 30000 // 请求超时时间
})
+let logouted = 0;
// 添加request拦截器
service.interceptors.request.use(config => {
return config
@@ -34,11 +34,13 @@ service.interceptors.response.use(
},
error => {
if (error.response.status == 401) {
- console.log("🚀 ~ error:", error.response.status, store.commit('user/logout'))
- util.errorMsg('登录过期,请重新登录')
- setTimeout(() => {
- store.commit('user/logout')
- }, 1500)
+ if (!logouted) {
+ util.errorMsg('登录过期,请重新登录')
+ setTimeout(() => {
+ store.commit('user/logout')
+ }, 1500)
+ logouted = 1
+ }
}
return Promise.reject(error.response)
}
diff --git a/src/api/http.js b/src/api/http.js
index 8f405ba..69cb2f2 100644
--- a/src/api/http.js
+++ b/src/api/http.js
@@ -1,52 +1,78 @@
-// 引入封装好的axios
-// ps:如果没有封装,正常引入axios即可
-import {get, post,deletes,put} from './api.js'
+import { get, post, deletes, put } from './api.js'
// import axios from "./";
-// /api为配置跨域的路径变量
-export const getProjectBySystemId= (params) => {
- return get( '/occupationlab/occupationlab/projectManage/getProjectBySystemId',params)
+export const getProjectBySystemId = (params) => {
+ return get('/occupationlab/occupationlab/projectManage/getProjectBySystemId', params)
}
-export const getProjectDetail= (params) => {
- return get( '/occupationlab/occupationlab/projectManage/getProjectDetail',params)
+export const getProjectDetail = (params) => {
+ return get('/occupationlab/occupationlab/projectManage/getProjectDetail', params)
}
-export const submit= (params) => {
- return post( '/bank/bank/submit',params)
+export const submit = (params) => {
+ return post('/bank/bank/submit', params)
}
-export const getSubjectInfo= (params) => {
- return get( '/judgment/judgment/lcSubject/getSubjectInfo',params)
+export const getSubjectInfo = (params) => {
+ return get('/judgment/judgment/lcSubject/getSubjectInfo', params)
}
-export const getQueryCache= () => {
- return get( '/bank/bank/queryCache')
+export const getQueryCache = () => {
+ return get('/bank/bank/queryCache')
}
-export const addOperation= (params) => {
- return post( '/bank/bank/addOperation',params)
+export const addOperation = (params) => {
+ return post('/bank/bank/addOperation', params)
}
-export const getOperation= (params) => {
- return get( '/bank/bank/getOperation',params)
+export const getOperation = (params) => {
+ return get('/bank/bank/getOperation', params)
}
-export const deleteCache= () => {
- return get( '/bank/bank/deleteCache')
+export const deleteCache = () => {
+ return get('/bank/bank/deleteCache')
}
-export const exportBankExperimentReport= (params) => {
- return post( '/occupationlab/occupationlab/achievement/exportBankExperimentReport',params)
+export const exportBankExperimentReport = (params) => {
+ return post('/occupationlab/occupationlab/achievement/exportBankExperimentReport', params)
}
-export const updateReport= (params) => {
- return post( '/occupationlab/occupationlab/achievement/updateReport',params)
+export const updateReport = (params) => {
+ return post('/occupationlab/occupationlab/achievement/updateReport', params)
}
// 学生查看考核状态
-export const checkTest= (params) => {
- return get( '/occupationlab/occupationlab/assessment/getDetailById', {...params})
+export const checkTest = (params) => {
+ return get('/occupationlab/occupationlab/assessment/getDetailById', { ...params })
}
-export const checkTest2= (params) => {
- return post( '/occupationlab/occupationlab/assessment/pageStuAssessment',{
- pageNum: 1,
- pageSize: 10000,
- ...params
- })
+export const checkTest2 = (params) => {
+ return post('/occupationlab/occupationlab/assessment/pageStuAssessment', {
+ pageNum: 1,
+ pageSize: 10000,
+ ...params
+ })
}
export const reportDetail = (reportId) => {
- return get( '/occupationlab/occupationlab/achievement/reportDetail',{
- reportId
- })
+ return get('/occupationlab/occupationlab/achievement/reportDetail', {
+ reportId
+ })
+}
+export const creditEvaluationInput = data => {
+ return post('/judgment/bankCreditEvaluation/creditEvaluationInput', data)
+}
+
+export const loanContractDel = data => {
+ return post('/judgment/bankLoanContractInfo/batchDeletion', data)
+}
+export const loanContractFind = id => {
+ return post('/judgment/bankLoanContractInfo/findById?id=' + id)
+}
+export const loanContractList = (data) => {
+ return post('/judgment/bankLoanContractInfo/pagingQuery', data)
+}
+export const loanContractSave = (data) => {
+ return post('/judgment/bankLoanContractInfo/saveOrUpdate', data)
+}
+
+export const personalBasicDel = data => {
+ return post('/judgment/bankPersonalBasicInfo/batchDeletion', data)
+}
+export const personalBasicFind = id => {
+ return post('/judgment/bankPersonalBasicInfo/findById?id=' + id)
+}
+export const personalBasicList = (data) => {
+ return post('/judgment/bankPersonalBasicInfo/pagingQuery', data)
+}
+export const personalBasicSave = (data) => {
+ return post('/judgment/bankPersonalBasicInfo/saveOrUpdate', data)
}
\ No newline at end of file
diff --git a/src/mixins/tipsBefore/index.js b/src/mixins/tipsBefore/index.js
index 9642be4..cef2c4a 100644
--- a/src/mixins/tipsBefore/index.js
+++ b/src/mixins/tipsBefore/index.js
@@ -2,85 +2,80 @@
const obj = {
- // 'consumerClient': '/counter/list/manage/consumerClient',
- // 'currentAccount/openAccount': '/counter/list/manage/currentAccount',
- // 'currentAccount/deposit': '/counter/list/manage/currentAccount'
- 'consumerClient': '客户信息 -> 个人客户信息建立',
- 'corporateClient': '客户信息 -> 公司客户信息建立',
- 'currentAccount/openAccount': '活期业务 -> 开户',
- 'currentAccount/deposit': '活期业务 -> 存款',
- 'currentAccount/withdrawal': '活期业务 -> 取款',
- 'currentAccount/transferAccounts': '活期业务 -> 转账',
- 'currentAccount/settle': '活期业务 -> 结清',
- 'currentAccount/Cancell': '活期业务 -> 销户',
- 'timeDeposit/openAccount': '整存整取 -> 开户',
- 'timeDeposit/deposit': '整存整取 -> 存款',
- 'timeDeposit/withdrawal': '整存整取 -> 取款',
- 'timeDeposit/deposit': '整存整取 -> 存款',
- 'business/openAccount': '公司业务 -> 开户'
+ // 'consumerClient': '/counter/list/manage/consumerClient',
+ // 'currentAccount/openAccount': '/counter/list/manage/currentAccount',
+ // 'currentAccount/deposit': '/counter/list/manage/currentAccount'
+ 'consumerClient': '客户信息 -> 个人客户信息建立',
+ 'corporateClient': '客户信息 -> 公司客户信息建立',
+ 'currentAccount/openAccount': '活期业务 -> 开户',
+ 'currentAccount/deposit': '活期业务 -> 存款',
+ 'currentAccount/withdrawal': '活期业务 -> 取款',
+ 'currentAccount/transferAccounts': '活期业务 -> 转账',
+ 'currentAccount/settle': '活期业务 -> 结清',
+ 'currentAccount/Cancell': '活期业务 -> 销户',
+ 'timeDeposit/openAccount': '整存整取 -> 开户',
+ 'timeDeposit/deposit': '整存整取 -> 存款',
+ 'timeDeposit/withdrawal': '整存整取 -> 取款',
+ 'timeDeposit/deposit': '整存整取 -> 存款',
+ 'business/openAccount': '公司业务 -> 开户'
}
import { mapGetters } from 'vuex'
export default {
- data(){
- return {
- unNeed: false,
- isNeedBefore: false,
- needBefore: false,
- tipsNefore: null
- }
- },
- created() {
- // 将上次保存的这个模块的数据写上页面,因为上次退出时保存了这个模块的数据(beforeDestroy)
- if(sessionStorage.getItem(this.moduleName)) {
- const getBeforeData = JSON.parse(sessionStorage.getItem(this.moduleName))
- for(const key in getBeforeData) {
- this.form[key] = Number(getBeforeData[key])? Number(getBeforeData[key]): getBeforeData[key]
- }
- }
+ data () {
+ return {
+ unNeed: false,
+ isNeedBefore: false,
+ needBefore: false,
+ tipsNefore: null
+ }
+ },
+ created () {
+ // 将上次保存的这个模块的数据写上页面,因为上次退出时保存了这个模块的数据(beforeDestroy)
+ if (sessionStorage.getItem(this.moduleName)) {
+ const getBeforeData = JSON.parse(sessionStorage.getItem(this.moduleName))
+ for (const key in getBeforeData) {
+ this.form[key] = Number(getBeforeData[key]) ? Number(getBeforeData[key]) : getBeforeData[key]
+ }
+ }
- // 如果所选业务需要(需求变更,不用管这个了)
- if(this.inMyWork(this.moduleName)) {
- if(this.needsModule(this.moduleName)) {
- this.isNeedBefore = true
- this.needBefore = this.needsModule(this.moduleName)
- }
- }else {
- this.isNeedBefore = true
- this.unNeed = true
- return;
- }
-
- },
- methods: {
- // 暴露出外面的方法,可以提交后删除调存在sessionStorage中的的数据,因为有后端缓存了。
- clearSaveData() {
- sessionStorage.removeItem(this.moduleName)
- }
- },
- beforeDestroy() {
- // clearInterval(this.myTipBefore)
- // this.myTipBefore = null
+ // 如果所选业务需要(需求变更,不用管这个了)
+ if (this.inMyWork(this.moduleName)) {
+ if (this.needsModule(this.moduleName)) {
+ this.isNeedBefore = true
+ this.needBefore = this.needsModule(this.moduleName)
+ }
+ } else {
+ this.isNeedBefore = true
+ this.unNeed = true
+ return;
+ }
- // 这个业务是我们需要的,所以我们存数据
+ },
+ methods: {
+ // 暴露出外面的方法,可以提交后删除调存在sessionStorage中的的数据,因为有后端缓存了。
+ clearSaveData () {
+ sessionStorage.removeItem(this.moduleName)
+ }
+ },
+ beforeDestroy () {
+ // 这个业务是我们需要的,所以我们存数据
+ let tmpForm = {}
+ for (const key in this.form) {
+ if (this.form[key] !== '') {
+ tmpForm[key] = this.form[key]
+ }
+ }
- let tmpForm = {}
- for(const key in this.form) {
- if(this.form[key] !== '') {
- tmpForm[key] = this.form[key]
- }
- }
-
- // 系统录入当前页面关闭或离开的时候,保存当前模块的数据。回来的时候这些数据还在(业务需求)。
- sessionStorage.setItem(this.moduleName, JSON.stringify(tmpForm))
-
- },
- computed: {
- ...mapGetters({
- needsModule: 'system/needsModule',
- inMyWork: 'system/inMyWork'
- })
- },
+ // 系统录入当前页面关闭或离开的时候,保存当前模块的数据。回来的时候这些数据还在(业务需求)。
+ sessionStorage.setItem(this.moduleName, JSON.stringify(tmpForm))
+ },
+ computed: {
+ ...mapGetters({
+ needsModule: 'system/needsModule',
+ inMyWork: 'system/inMyWork'
+ })
+ },
}
diff --git a/src/pages/manage/list/business/transfer.vue b/src/pages/manage/list/business/transfer.vue
index 08f8714..7d3093c 100644
--- a/src/pages/manage/list/business/transfer.vue
+++ b/src/pages/manage/list/business/transfer.vue
@@ -1,74 +1,77 @@
// 转账
-