yujialong 1 month ago
parent df11004ed0
commit 616df4a7db
  1. 6
      src/components/case/index.vue
  2. 526
      src/components/selectBusiness/index.vue
  3. 6
      src/layouts/header/index.vue
  4. 8
      src/libs/util.js
  5. 3
      src/pages/index/list/index.vue
  6. 2
      src/pages/manage/list/corporateLoans/application.vue
  7. 2
      src/pages/manage/list/personalLoans/detail.vue
  8. 7
      src/store/modules/user.js

@ -137,7 +137,7 @@
<script> <script>
import Cookie from 'js-cookie' import Cookie from 'js-cookie'
import util from '@/libs/util' import Util from '@/libs/util'
import Setting from '@/setting' import Setting from '@/setting'
// //
import { getProjectBySystemId, getProjectDetail, submit, getQueryCache, deleteCache, checkTest, checkTest2 } from "@/api/http.js"; import { getProjectBySystemId, getProjectDetail, submit, getQueryCache, deleteCache, checkTest, checkTest2 } from "@/api/http.js";
@ -210,7 +210,7 @@ export default {
stageId: '', stageId: '',
teamId: '', teamId: '',
isSubmit: false, isSubmit: false,
entryTime: util.formatDate('yyyy-MM-dd hh:mm:ss'), entryTime: Util.formatDate('yyyy-MM-dd hh:mm:ss'),
startTime: '', startTime: '',
stopTime: '', stopTime: '',
isSelected: false, isSelected: false,
@ -365,7 +365,7 @@ export default {
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
const storeProjectId = sessionStorage.getItem('storeProjectId') const storeProjectId = sessionStorage.getItem('storeProjectId')
sessionStorage.clear() Util.clearSession()
sessionStorage.setItem('token', token) sessionStorage.setItem('token', token)
sessionStorage.setItem('cid', cid) sessionStorage.setItem('cid', cid)
sessionStorage.setItem('systemId', systemId) sessionStorage.setItem('systemId', systemId)

@ -1,38 +1,24 @@
<template> <template>
<!-- 业务选择列表 --> <!-- 业务选择列表 -->
<el-dialog :visible="true" <el-dialog :visible="true" class="" :modal="false" @close="closeData" :close-on-click-modal="false"
class="" :show-close="false" custom-class="data-dia 2xl:w-7/12 xl:w-9/12 lg:w-full h-9/12">
:modal="false" <div slot="title" class="dia-header2">
@close="closeData"
:close-on-click-modal="false"
:show-close="false"
custom-class="data-dia 2xl:w-7/12 xl:w-9/12 lg:w-full h-9/12">
<div slot="title"
class="dia-header2">
<div class="data-title2">业务选择</div> <div class="data-title2">业务选择</div>
<div class="close"><img v-lazy="closeImg" <div class="close"><img v-lazy="closeImg" alt="" @click="showBusinessSelect(false)" /></div>
alt=""
@click="showBusinessSelect(false)" /></div>
</div> </div>
<p class="tips2">请选择您要办理的业务:</p> <p class="tips2">请选择您要办理的业务:</p>
<ul class="take-list2"> <ul class="take-list2">
<li v-for="(item) in getBusinessSelectList" <li v-for="(item) in getBusinessSelectList" :class="{ checked: takeCheck == item.myKey }" :key="item.myKey"
:class="{checked: takeCheck == item.myKey}" @click="checkTake(item.myKey)">
:key="item.myKey" <img v-lazy="businessImg" alt="">
@click="checkTake(item.myKey)"> <p>{{ item.myKey + item.text }}</p>
<img v-lazy="businessImg"
alt="">
<p>{{ item.myKey + item.text}}</p>
</li> </li>
<li v-for="(item) in (3 - getBusinessSelectList.length%3)" <li v-for="(item) in (3 - getBusinessSelectList.length % 3)" class="sitting" :key="item"></li>
class="sitting"
:key="item"></li>
</ul> </ul>
<div class="dia-footer2"> <div class="dia-footer2">
<div class='busyButtonBox'> <div class='busyButtonBox'>
<el-button @click="showBusinessSelect(false)">取消</el-button> <el-button @click="showBusinessSelect(false)">取消</el-button>
<el-button type="primary" <el-button type="primary" @click="selectBusiness()">确定</el-button>
@click="selectBusiness()">确定</el-button>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@ -40,6 +26,7 @@
<script> <script>
import { mapState, mapMutations, mapGetters } from 'vuex'; import { mapState, mapMutations, mapGetters } from 'vuex';
import Util from '@/libs/util'
export default { export default {
props: { props: {
@ -141,7 +128,7 @@ export default {
let timestamp = sessionStorage.getItem('timestamp') let timestamp = sessionStorage.getItem('timestamp')
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
const storeProjectId = sessionStorage.getItem('storeProjectId') const storeProjectId = sessionStorage.getItem('storeProjectId')
sessionStorage.clear() Util.clearSession()
sessionStorage.setItem('token', token) sessionStorage.setItem('token', token)
sessionStorage.setItem('cid', cid) sessionStorage.setItem('cid', cid)
sessionStorage.setItem('systemId', systemId) sessionStorage.setItem('systemId', systemId)
@ -193,249 +180,284 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.data-dia { .data-dia {
border-radius: 16px; border-radius: 16px;
margin-top: 4vh !important; margin-top: 4vh !important;
background: #fff; background: #fff;
position: fixed; position: fixed;
top: 7%; top: 7%;
left: 50%; left: 50%;
transform: translate(-50%, 0); transform: translate(-50%, 0);
padding: 0 15px 15px; padding: 0 15px 15px;
z-index: 997; z-index: 997;
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
max-height: 600px; max-height: 600px;
overflow: auto;
//
.take-list2 {
width: 100%;
display: flex;
justify-content: space-around;
flex-direction: row;
flex-wrap: wrap;
height: 40vh;
overflow: auto; overflow: auto;
//
.take-list2 { li {
width: 100%; display: inline-flex;
display: flex; align-items: center;
justify-content: space-around; width: 30%;
flex-direction: row; height: 10vh;
flex-wrap: wrap; font-size: 16px;
height: 40vh; margin: 1vh 0;
overflow: auto; border: 4px solid #dbdbdb;
li { border-radius: 20px;
display: inline-flex; cursor: pointer;
align-items: center; background-color: rgba(216, 216, 216, 0.1);
width: 30%;
height: 10vh; // &:first-child{
font-size: 16px; // margin: 0 0px 50px 0;
margin: 1vh 0; // }
border: 4px solid #dbdbdb; // &:last-child{
border-radius: 20px; // margin-left: 50px;
cursor: pointer; // }
background-color: rgba(216, 216, 216, 0.1); img {
// &:first-child{ width: 15%;
// margin: 0 0px 50px 0; margin: 0;
// } //height: 154px;
// &:last-child{ //margin: 0 45px;
// margin-left: 50px; }
// }
img { p {
width: 15%; font-size: 16px;
margin: 0; color: #000;
//height: 154px; text-align: left;
//margin: 0 45px; padding: 0 20px;
} // white-space: wrap;
p { // overflow: hidden;
font-size: 16px; // text-overflow: ellipsis;
color: #000; text-overflow: -o-ellipsis-lastline;
text-align: left; overflow: hidden;
padding: 0 20px; text-overflow: ellipsis;
// white-space: wrap; display: -webkit-box;
// overflow: hidden; -webkit-line-clamp: 2;
// text-overflow: ellipsis; -webkit-box-orient: vertical;
text-overflow: -o-ellipsis-lastline; }
overflow: hidden;
text-overflow: ellipsis; &.checked {
display: -webkit-box; background: rgba(97, 145, 255, 0.1) url('../../assets/svg/checked.svg') 96% 7% / auto no-repeat;
-webkit-line-clamp: 2; border-color: #6191ff;
-webkit-box-orient: vertical; }
} }
&.checked { }
background: rgba(97, 145, 255, 0.1) url('../../assets/svg/checked.svg') 96% 7% / auto no-repeat;
border-color: #6191ff; .dia-header2 {
} position: relative;
} height: 50px;
line-height: 50px;
background-color: rgb(98, 149, 243);
border-top-left-radius: 14px;
border-top-right-radius: 14px;
.data-title2 {
position: absolute;
left: 15px;
height: 50px;
font-size: 16px;
line-height: 50px;
color: #fff;
}
.close {
height: 50px;
position: absolute;
right: 15px;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
img {
vertical-align: center;
}
} }
.dia-header2 { }
.tips2 {
margin: 1vh 0 2vh 0;
text-align: left;
font-size: 16px;
color: #000;
}
.list {
width: 940px;
min-height: 204px;
max-height: 360px;
overflow: auto;
margin: 0 auto;
display: flex;
align-items: center;
.img-wrap {
background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat;
width: 180px;
height: 180px;
display: flex;
justify-content: center;
margin: 5px 10px;
position: relative;
cursor: pointer;
.file {
position: relative; position: relative;
height: 50px; max-width: 180px;
line-height: 50px; max-height: 130px;
background-color: rgb(98, 149, 243); text-align: center;
border-top-left-radius: 14px; margin: 10px 10px;
border-top-right-radius: 14px;
.data-title2 { img {
position: absolute; margin-top: 45px;
left: 15px;
height: 50px;
font-size: 16px;
line-height: 50px;
color: #fff;
} }
.close {
height: 50px; p {
position: absolute; position: absolute;
right: 15px; bottom: 0;
cursor: pointer; width: 100%;
display: flex; line-height: 54px;
flex-direction: column; text-align: center;
justify-content: center; font-size: 18px;
img { color: #000;
vertical-align: center; }
} }
.text {
font-size: 18px;
white-space: nowrap;
position: absolute;
bottom: 15px;
left: 50%;
transform: translate(-50%, 0);
}
&.checked {
background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
url('../../assets/svg/checked.svg') 165px 7% / auto no-repeat;
p {
color: #fff;
} }
}
} }
.tips2 { }
margin: 1vh 0 2vh 0;
text-align: left; .seal {
font-size: 16px; width: 1100px;
color: #000; padding: 0 5%;
display: flex;
justify-content: space-between;
.box {
border: 2px solid #e6e6e6;
width: 45%;
min-height: 300px;
border-radius: 10px;
padding: 10px;
} }
.list {
width: 940px; .left {
min-height: 204px; display: flex;
max-height: 360px; width: 50%;
overflow: auto; flex-wrap: wrap;
margin: 0 auto;
display: flex; .file {
align-items: center; position: relative;
.img-wrap { width: 140px;
background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat; height: 140px;
width: 180px; text-align: center;
height: 180px; background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat;
display: flex; cursor: pointer;
justify-content: center; margin: 5px 7px;
margin: 5px 10px;
position: relative; img {
cursor: pointer; width: 130px;
.file { max-height: 90px;
position: relative;
max-width: 180px;
max-height: 130px;
text-align: center;
margin: 10px 10px;
img {
margin-top: 45px;
}
p {
position: absolute;
bottom: 0;
width: 100%;
line-height: 54px;
text-align: center;
font-size: 18px;
color: #000;
}
}
.text {
font-size: 18px;
white-space: nowrap;
position: absolute;
bottom: 15px;
left: 50%;
transform: translate(-50%, 0);
}
&.checked {
background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
url('../../assets/svg/checked.svg') 165px 7% / auto no-repeat;
p {
color: #fff;
}
}
} }
}
.seal { &:last-child {
width: 1100px; margin-right: 0;
padding: 0 5%;
display: flex;
justify-content: space-between;
.box {
border: 2px solid #e6e6e6;
width: 45%;
min-height: 300px;
border-radius: 10px;
padding: 10px;
} }
.left {
display: flex; &:nth-child(n > 1) {
width: 50%; margin-top: 0;
flex-wrap: wrap;
.file {
position: relative;
width: 140px;
height: 140px;
text-align: center;
background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat;
cursor: pointer;
margin: 5px 7px;
img {
width: 130px;
max-height: 90px;
}
&:last-child {
margin-right: 0;
}
&:nth-child(n > 1) {
margin-top: 0;
}
img {
width: 130px;
max-height: 108px;
margin: 10px auto 0;
z-index: 9;
}
p {
position: absolute;
bottom: 0;
width: 100%;
line-height: 54px;
text-align: center;
font-size: 18px;
color: #000;
}
&.checked {
background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
url('../../assets/svg/checked.svg') 163px 7% / auto no-repeat;
p {
color: #fff;
}
}
}
&.active {
left: 0;
z-index: 9999;
}
img {
cursor: pointer;
&:last-child {
margin-right: 0;
}
}
} }
.right {
margin-left: 5%; img {
width: 130px;
max-height: 108px;
margin: 10px auto 0;
z-index: 9;
} }
.else {
width: 100%; p {
position: absolute;
bottom: 0;
width: 100%;
line-height: 54px;
text-align: center;
font-size: 18px;
color: #000;
} }
}
.dia-footer2 { &.checked {
height: 70px; background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
line-height: 70px; url('../../assets/svg/checked.svg') 163px 7% / auto no-repeat;
display: flex;
justify-content: flex-end; p {
align-items: center; color: #fff;
.busyButtonBox { }
display: flex;
justify-content: space-between;
} }
}
&.active {
left: 0;
z-index: 9999;
}
img {
cursor: pointer;
&:last-child {
margin-right: 0;
}
}
} }
.right {
margin-left: 5%;
}
.else {
width: 100%;
}
}
.dia-footer2 {
height: 70px;
line-height: 70px;
display: flex;
justify-content: flex-end;
align-items: center;
.busyButtonBox {
display: flex;
justify-content: space-between;
}
}
} }
.sitting { .sitting {
opacity: 0; opacity: 0;
cursor: default !important; cursor: default !important;
} }
</style> </style>

@ -20,13 +20,13 @@
<script> <script>
import { mapMutations } from 'vuex' import { mapMutations } from 'vuex'
import Setting from '@/setting' import Setting from '@/setting'
import util from '@/libs/util' import Util from '@/libs/util'
import Cookie from 'js-cookie' import Cookie from 'js-cookie'
export default { export default {
data () { data () {
return { return {
isDev: Setting.isDev, isDev: Setting.isDev,
token: util.local.get(Setting.tokenKey), token: Util.local.get(Setting.tokenKey),
ip: localStorage.getItem('localIp') ? +localStorage.getItem('localIp') : 0, ip: localStorage.getItem('localIp') ? +localStorage.getItem('localIp') : 0,
}; };
}, },
@ -59,7 +59,7 @@ export default {
const cid = sessionStorage.getItem('cid') const cid = sessionStorage.getItem('cid')
href += `station/preview?courseId=${cid}&curriculumName=银行项目&mallId=${this.$route.query.mallId}` href += `station/preview?courseId=${cid}&curriculumName=银行项目&mallId=${this.$route.query.mallId}`
} }
sessionStorage.clear() Util.clearSession()
location.href = href location.href = href
}, },

@ -1,6 +1,8 @@
import cookies from './util.cookies' import cookies from './util.cookies'
import { _local, _session } from './util.db' import { _local, _session } from './util.db'
import { Message } from 'element-ui' import { Message } from 'element-ui'
import Cookie from 'js-cookie'
import router from '@/router'
const util = { const util = {
cookies, cookies,
@ -133,6 +135,12 @@ const util = {
errorMsg (message, duration = 3000) { errorMsg (message, duration = 3000) {
return Message.error({ message, showClose: true, offset: (document.documentElement.clientHeight - 40) / 2, duration }) return Message.error({ message, showClose: true, offset: (document.documentElement.clientHeight - 40) / 2, duration })
}, },
// 清除sessionStorage后补上职站的token
clearSession () {
const token = sessionStorage.getItem('token')
sessionStorage.clear()
sessionStorage.setItem(Cookie.get('manager') ? 'oc_server_token' : 'oc_client_token', token)
},
// 授信年限 // 授信年限
creditTerms: [ creditTerms: [
{ {

@ -41,6 +41,7 @@
import { mapMutations, mapState } from 'vuex'; import { mapMutations, mapState } from 'vuex';
import saveSystemModule from '@/mixins/saveSystemModule' import saveSystemModule from '@/mixins/saveSystemModule'
import Bus from '@/libs/bus' import Bus from '@/libs/bus'
import Util from '@/libs/util'
export default { export default {
name: 'index', name: 'index',
mixins: [saveSystemModule], mixins: [saveSystemModule],
@ -60,7 +61,7 @@ export default {
}, },
created () { created () {
if (!sessionStorage.getItem('firstLoad2')) { if (!sessionStorage.getItem('firstLoad2')) {
sessionStorage.clear() Util.clearSession()
// sessionStorage.removeItem('submited') // sessionStorage.removeItem('submited')
// sessionStorage.removeItem('businessKey') // sessionStorage.removeItem('businessKey')
this.setBusinessKey('') this.setBusinessKey('')

@ -14,7 +14,7 @@
<el-table :data="list" stripe :header-cell-style="headerCellStyle"> <el-table :data="list" stripe :header-cell-style="headerCellStyle">
<el-table-column prop="customerName" label="客户姓名" align="center" /> <el-table-column prop="customerName" label="客户姓名" align="center" />
<el-table-column prop="applicationNumber" label="申请编号" align="center" /> <el-table-column prop="applicationNumber" label="申请编号" align="center" />
<el-table-column prop="createTime" label="申请日期" align="center" /> <el-table-column prop="loanApplicationDate" label="申请日期" align="center" />
<el-table-column prop="loanApplicationAmount" label="申请金额" align="center"> <el-table-column prop="loanApplicationAmount" label="申请金额" align="center">
<template slot-scope="scope">{{ scope.row.loanApplicationAmount || '-' }}</template> <template slot-scope="scope">{{ scope.row.loanApplicationAmount || '-' }}</template>
</el-table-column> </el-table-column>

@ -531,7 +531,7 @@ export default {
{ answerId: 860, emptyOne: 125, emptyTwo: form.contractAmount, operationIds: preId + ',860', type: 3 }, { answerId: 860, emptyOne: 125, emptyTwo: form.contractAmount, operationIds: preId + ',860', type: 3 },
{ answerId: 861, emptyOne: 141, emptyTwo: this.loanTerms.find(e => e.id === form.loanTerm).pointId, operationIds: preId + ',861', type: 1 }, { answerId: 861, emptyOne: 141, emptyTwo: this.loanTerms.find(e => e.id === form.loanTerm).pointId, operationIds: preId + ',861', type: 1 },
{ answerId: 862, emptyOne: 125, emptyTwo: form.interestStartDate, operationIds: preId + ',862', type: 3 }, { answerId: 862, emptyOne: 125, emptyTwo: form.interestStartDate, operationIds: preId + ',862', type: 3 },
{ answerId: 863, emptyOne: 125, emptyTwo: form.repaymentMethod, operationIds: preId + ',863', type: 1 }, { answerId: 863, emptyOne: 135, emptyTwo: form.repaymentMethod, operationIds: preId + ',863', type: 1 },
{ answerId: 864, emptyOne: 125, emptyTwo: form.repaymentAccount, operationIds: preId + ',864', type: 3 }, { answerId: 864, emptyOne: 125, emptyTwo: form.repaymentAccount, operationIds: preId + ',864', type: 3 },
] ]
await addOperation({ await addOperation({

@ -1,6 +1,6 @@
import Setting from '@/setting' import Setting from '@/setting'
import util from '@/libs/util' import Util from '@/libs/util'
import { Message } from 'element-ui' import { Message } from 'element-ui'
import { post, get, del, put } from '@/plugins/requests/index.js' import { post, get, del, put } from '@/plugins/requests/index.js'
import api from '@/api' import api from '@/api'
@ -27,9 +27,6 @@ export default {
let href = process.env.NODE_ENV === 'development' ? let href = process.env.NODE_ENV === 'development' ?
`http://${location.hostname}:8082/#/` : `http://${location.hostname}:8082/#/` :
`${location.origin}${isAdmin ? '/admin' : ''}/#/` `${location.origin}${isAdmin ? '/admin' : ''}/#/`
if (location.origin === 'http://118.31.167.228') {
href = `http://118.31.167.228/${isAdmin ? 'admin' : 'student'}/#/`
}
const { query } = router.app._route const { query } = router.app._route
let assessmentId = sessionStorage.getItem('assessmentId') || query.assessmentId let assessmentId = sessionStorage.getItem('assessmentId') || query.assessmentId
let competitionId = sessionStorage.getItem('competitionId') || query.competitionId let competitionId = sessionStorage.getItem('competitionId') || query.competitionId
@ -41,7 +38,7 @@ export default {
const cid = sessionStorage.getItem('cid') const cid = sessionStorage.getItem('cid')
href += `station/preview?courseId=${cid}&curriculumName=银行项目&mallId=${router.currentRoute.query.mallId}` href += `station/preview?courseId=${cid}&curriculumName=银行项目&mallId=${router.currentRoute.query.mallId}`
} }
sessionStorage.clear() Util.clearSession()
location.href = href location.href = href
}, },
}, },

Loading…
Cancel
Save