yujialong 1 month ago
parent df11004ed0
commit 616df4a7db
  1. 6
      src/components/case/index.vue
  2. 68
      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}"
:key="item.myKey"
@click="checkTake(item.myKey)"> @click="checkTake(item.myKey)">
<img v-lazy="businessImg" <img v-lazy="businessImg" alt="">
alt="">
<p>{{ item.myKey + item.text }}</p> <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)
@ -205,6 +192,7 @@ export default {
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
max-height: 600px; max-height: 600px;
overflow: auto; overflow: auto;
// //
.take-list2 { .take-list2 {
width: 100%; width: 100%;
@ -214,6 +202,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
height: 40vh; height: 40vh;
overflow: auto; overflow: auto;
li { li {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@ -225,6 +214,7 @@ export default {
border-radius: 20px; border-radius: 20px;
cursor: pointer; cursor: pointer;
background-color: rgba(216, 216, 216, 0.1); background-color: rgba(216, 216, 216, 0.1);
// &:first-child{ // &:first-child{
// margin: 0 0px 50px 0; // margin: 0 0px 50px 0;
// } // }
@ -237,6 +227,7 @@ export default {
//height: 154px; //height: 154px;
//margin: 0 45px; //margin: 0 45px;
} }
p { p {
font-size: 16px; font-size: 16px;
color: #000; color: #000;
@ -252,12 +243,14 @@ export default {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
&.checked { &.checked {
background: rgba(97, 145, 255, 0.1) url('../../assets/svg/checked.svg') 96% 7% / auto no-repeat; background: rgba(97, 145, 255, 0.1) url('../../assets/svg/checked.svg') 96% 7% / auto no-repeat;
border-color: #6191ff; border-color: #6191ff;
} }
} }
} }
.dia-header2 { .dia-header2 {
position: relative; position: relative;
height: 50px; height: 50px;
@ -265,6 +258,7 @@ export default {
background-color: rgb(98, 149, 243); background-color: rgb(98, 149, 243);
border-top-left-radius: 14px; border-top-left-radius: 14px;
border-top-right-radius: 14px; border-top-right-radius: 14px;
.data-title2 { .data-title2 {
position: absolute; position: absolute;
left: 15px; left: 15px;
@ -273,6 +267,7 @@ export default {
line-height: 50px; line-height: 50px;
color: #fff; color: #fff;
} }
.close { .close {
height: 50px; height: 50px;
position: absolute; position: absolute;
@ -281,17 +276,20 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
img { img {
vertical-align: center; vertical-align: center;
} }
} }
} }
.tips2 { .tips2 {
margin: 1vh 0 2vh 0; margin: 1vh 0 2vh 0;
text-align: left; text-align: left;
font-size: 16px; font-size: 16px;
color: #000; color: #000;
} }
.list { .list {
width: 940px; width: 940px;
min-height: 204px; min-height: 204px;
@ -300,6 +298,7 @@ export default {
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
align-items: center; align-items: center;
.img-wrap { .img-wrap {
background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat; background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat;
width: 180px; width: 180px;
@ -309,15 +308,18 @@ export default {
margin: 5px 10px; margin: 5px 10px;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
.file { .file {
position: relative; position: relative;
max-width: 180px; max-width: 180px;
max-height: 130px; max-height: 130px;
text-align: center; text-align: center;
margin: 10px 10px; margin: 10px 10px;
img { img {
margin-top: 45px; margin-top: 45px;
} }
p { p {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -328,6 +330,7 @@ export default {
color: #000; color: #000;
} }
} }
.text { .text {
font-size: 18px; font-size: 18px;
white-space: nowrap; white-space: nowrap;
@ -336,20 +339,24 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, 0); transform: translate(-50%, 0);
} }
&.checked { &.checked {
background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat, background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
url('../../assets/svg/checked.svg') 165px 7% / auto no-repeat; url('../../assets/svg/checked.svg') 165px 7% / auto no-repeat;
p { p {
color: #fff; color: #fff;
} }
} }
} }
} }
.seal { .seal {
width: 1100px; width: 1100px;
padding: 0 5%; padding: 0 5%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.box { .box {
border: 2px solid #e6e6e6; border: 2px solid #e6e6e6;
width: 45%; width: 45%;
@ -357,10 +364,12 @@ export default {
border-radius: 10px; border-radius: 10px;
padding: 10px; padding: 10px;
} }
.left { .left {
display: flex; display: flex;
width: 50%; width: 50%;
flex-wrap: wrap; flex-wrap: wrap;
.file { .file {
position: relative; position: relative;
width: 140px; width: 140px;
@ -369,22 +378,27 @@ export default {
background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat; background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat;
cursor: pointer; cursor: pointer;
margin: 5px 7px; margin: 5px 7px;
img { img {
width: 130px; width: 130px;
max-height: 90px; max-height: 90px;
} }
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
&:nth-child(n > 1) { &:nth-child(n > 1) {
margin-top: 0; margin-top: 0;
} }
img { img {
width: 130px; width: 130px;
max-height: 108px; max-height: 108px;
margin: 10px auto 0; margin: 10px auto 0;
z-index: 9; z-index: 9;
} }
p { p {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -394,6 +408,7 @@ export default {
font-size: 18px; font-size: 18px;
color: #000; color: #000;
} }
&.checked { &.checked {
background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat, background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
url('../../assets/svg/checked.svg') 163px 7% / auto no-repeat; url('../../assets/svg/checked.svg') 163px 7% / auto no-repeat;
@ -403,30 +418,37 @@ export default {
} }
} }
} }
&.active { &.active {
left: 0; left: 0;
z-index: 9999; z-index: 9999;
} }
img { img {
cursor: pointer; cursor: pointer;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
} }
} }
.right { .right {
margin-left: 5%; margin-left: 5%;
} }
.else { .else {
width: 100%; width: 100%;
} }
} }
.dia-footer2 { .dia-footer2 {
height: 70px; height: 70px;
line-height: 70px; line-height: 70px;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
.busyButtonBox { .busyButtonBox {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

@ -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