yujialong 2 months ago
parent 6626316a7f
commit d469a1f86f
  1. 142
      src/components/case/index.vue
  2. 2
      src/pages/counter/list/index.vue
  3. 29
      src/pages/manage/index/index.vue
  4. 8
      src/pages/manage/list/personalLoans/detail.vue
  5. 25
      src/pages/manage/navbar/index.vue

@ -229,6 +229,42 @@ export default {
submitType: false submitType: false
} }
}, },
computed: {
needSendSunc: function () {
return this.sendSync;
},
//
second: function () {
return this.num(this.seconds);
},
minute: function () {
return this.num(this.minutes);
},
activeNames () {
//
return this.requires.map(item => item.id)
},
},
watch: {
countVal: {
deep: true,
handler: function (val, oldVal) {
let vm = this;
if (vm.needSendSunc) {
vm.passToParent(val);
}
}
},
needSendSunc: {
deep: true,
handler: function (val) {
let vm = this;
if (val) {
vm.passToParent(vm.countString);
}
}
},
},
created () { created () {
let assessmentId = this.getQueryVariable('assessmentId') let assessmentId = this.getQueryVariable('assessmentId')
sessionStorage.setItem('assessmentId', assessmentId) sessionStorage.setItem('assessmentId', assessmentId)
@ -252,7 +288,6 @@ export default {
}); });
// //
this.sureSubmit(true) this.sureSubmit(true)
} else {
} }
}) })
}, 4000) }, 4000)
@ -261,69 +296,22 @@ export default {
this.popContainer = data this.popContainer = data
}) })
}, },
watch: {
countVal: {
deep: true,
handler: function (val, oldVal) {
let vm = this;
if (vm.needSendSunc) {
vm.passToParent(val);
}
}
},
needSendSunc: {
deep: true,
handler: function (val) {
let vm = this;
if (val) {
vm.passToParent(vm.countString);
}
}
},
// caseVisible(newVal) {
// if(!newVal) {
// console.log(this.$refs.scrollTag)
// }
// }
},
computed: {
needSendSunc: function () {
return this.sendSync;
},
//
second: function () {
return this.num(this.seconds);
},
minute: function () {
return this.num(this.minutes);
},
activeNames () {
//
return this.requires.map(item => item.id)
},
},
mounted () { mounted () {
let token = sessionStorage.getItem('token') || this.getQueryVariable('token') let token = this.getParam('token')
let cid = sessionStorage.getItem('cid') || this.getQueryVariable('cid') let cid = this.getParam('cid')
let systemId = sessionStorage.getItem('systemId') || this.getQueryVariable('systemId') let systemId = this.getParam('systemId')
let projectId = this.getQueryVariable('projectId') let projectId = this.getParam('projectId')
if (sessionStorage.getItem('projectId')) { let assessmentId = this.getParam('assessmentId')
projectId = sessionStorage.getItem('projectId') let competitionId = this.getParam('competitionId')
} let stageId = this.getParam('stageId')
let assessmentId = sessionStorage.getItem('assessmentId') || this.getQueryVariable('assessmentId') let teamId = this.getParam('teamId')
let competitionId = sessionStorage.getItem('competitionId') || this.getQueryVariable('competitionId') let classId = this.getParam('classId')
let stageId = sessionStorage.getItem('stageId') || this.getQueryVariable('stageId') let stopTime = this.getParam('stopTime')
let teamId = sessionStorage.getItem('teamId') || this.getQueryVariable('teamId') let mallId = this.getParam('mallId')
let classId = sessionStorage.getItem('classId') || this.getQueryVariable('classId') let timestamp = +stopTime
let stopTime = sessionStorage.getItem('stopTime') || this.getQueryVariable('stopTime') timestamp || sessionStorage.removeItem('timestamp')
let mallId = sessionStorage.getItem('mallId') || this.getQueryVariable('mallId')
let timestamp = +stopTime; if (token) {
if (timestamp != null) {
} else {
sessionStorage.setItem('timestamp', null)
}
if (token != null) {
sessionStorage.setItem('token', token) sessionStorage.setItem('token', token)
sessionStorage.setItem('cid', cid) sessionStorage.setItem('cid', cid)
sessionStorage.setItem('systemId', systemId) sessionStorage.setItem('systemId', systemId)
@ -335,21 +323,20 @@ export default {
sessionStorage.setItem('teamId', teamId) sessionStorage.setItem('teamId', teamId)
sessionStorage.setItem('classId', classId) sessionStorage.setItem('classId', classId)
this.assessmentId = assessmentId this.assessmentId = assessmentId
this.competitionId = JSON.parse(competitionId) this.competitionId = competitionId
this.stageId = stageId this.stageId = stageId
this.teamId = teamId this.teamId = teamId
this.classId = classId this.classId = classId
this.mallId = mallId this.mallId = mallId
} }
let tokens = sessionStorage.getItem('token') if (token) {
if (tokens || token) {
this.projectPermissions = this.assessmentId ? this.projectPermissions = this.assessmentId ?
1 : 1 :
this.competitionId ? this.competitionId ?
2 : 2 :
0 0
this.assessmentId && this.projectId && this.checkVer() this.assessmentId && this.projectId && this.checkVer()
if (JSON.parse(assessmentId != null && assessmentId != '' && assessmentId != 'null' || this.competitionId)) { if (assessmentId || this.competitionId) {
this.selectProjects({ this.selectProjects({
projectId projectId
}) })
@ -411,6 +398,11 @@ export default {
this.toggleCase() this.toggleCase()
} }
}, },
//
getParam (field) {
const s = sessionStorage.getItem(field)
return s !== 'null' && s !== 'undefined' && s ? s : this.getQueryVariable(field)
},
getQueryVariable (name) { getQueryVariable (name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)') var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)')
if (window.location.href.split('?')[1]) { if (window.location.href.split('?')[1]) {
@ -421,20 +413,6 @@ export default {
return null return null
} }
} }
// if(sessionStorage.getItem(name)) {
// return sessionStorage.getItem(name)
// }else {
// var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)')
// if(window.location.href.split('?')[1]){
// var r = window.location.href.split('?')[1].match(reg)
// if (r != null){
// return (r[2])
// }else{
// return null
// }
// }
// }
}, },
// //
getData () { getData () {
@ -549,6 +527,7 @@ export default {
this.selectProjects(params) this.selectProjects(params)
}, },
selectProjects (params) { selectProjects (params) {
console.log("🚀 ~ selectProjects ~ params:", params)
getProjectDetail(params).then((data) => { getProjectDetail(params).then((data) => {
if (data.status == 200) { if (data.status == 200) {
this.globalTimer = ""; this.globalTimer = "";
@ -601,6 +580,7 @@ export default {
sessionStorage.removeItem('submited', 0) sessionStorage.removeItem('submited', 0)
sessionStorage.removeItem('firstLoad2') sessionStorage.removeItem('firstLoad2')
this.setBusinessKey('') this.setBusinessKey('')
console.log("🚀 ~ getProjectDetail ~ params:", params)
getProjectDetail(params).then((data) => { getProjectDetail(params).then((data) => {
if (data.status == 200) { if (data.status == 200) {
const { systemId, projectId } = data.data.projectManage const { systemId, projectId } = data.data.projectManage

@ -1567,7 +1567,7 @@ export default {
}, },
showManage () {// showManage () {//
this.manageVisible = true; this.manageVisible = true;
this.$router.push(sessionStorage.getItem('computerPath') || (this.isCredit ? '/counter/list/manage/personalLoans' : '/counter/list/manage/consumerClient')) this.$router.push(sessionStorage.getItem(this.isCredit ? 'creditPath' : 'computerPath') || (this.isCredit ? '/counter/list/manage/personalLoans' : '/counter/list/manage/consumerClient'))
}, },
popSure () {/* 弹框-确定 */ popSure () {/* 弹框-确定 */
// //

@ -38,22 +38,29 @@ export default {
name: 'index', name: 'index',
data () { data () {
return { return {
curRoute: ''
} }
}, },
components: { components: {
navbar navbar
}, },
// beforeMount() { computed: {
// const path = sessionStorage.getItem('computerPath') ...mapState('system', ['fullScreen', 'isCredit'])
// console.log('router-view') },
// console.log(path) watch: {
// this.$router.push(path) '$route': {
// }, handler () {
this.curRoute = this.$route.path
},
immediate: true
}
},
beforeDestroy () {
sessionStorage.setItem(this.curRoute.includes('Loans') ? 'creditPath' : 'computerPath', this.curRoute)
sessionStorage.getItem('submited') || this.$router.push('/counter/list/')
},
methods: { methods: {
close () { close () {
// 退 退
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
handleFullscreen () { handleFullscreen () {
@ -62,10 +69,6 @@ export default {
shrink () { shrink () {
this.$store.commit('system/changeFullscreen', false) this.$store.commit('system/changeFullscreen', false)
}, },
},
computed: {
...mapState('system', ['fullScreen', 'isCredit'])
} }
}; };
</script> </script>

@ -364,7 +364,6 @@ export default {
], ],
}, },
submited: 0, submited: 0,
curRoute: '',
curStep: 1, curStep: 1,
disbursementDate: '', disbursementDate: '',
loanVisible: false, loanVisible: false,
@ -415,12 +414,7 @@ export default {
], ],
} }
}, },
beforeDestroy () {
sessionStorage.setItem('computerPath', this.curRoute)
},
mounted () { mounted () {
this.curRoute = this.$route.path
this.getDetail() this.getDetail()
}, },
methods: { methods: {
@ -479,7 +473,7 @@ export default {
popUp1 (text) { popUp1 (text) {
this.setTipsOperate('请刷身份证'); this.setTipsOperate('请刷身份证');
this.setPopId('1399') this.setPopId('1399')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('creditPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
// //

@ -35,23 +35,12 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
// import bus from '@/libs/bus';
import Setting from '@/setting';
export default { export default {
// props: {
// needIndex: {
// type: String,
// required: true
// }
// },
computed: { computed: {
...mapState({ ...mapState('system', ['isCredit'])
isCredit: state => state.system.isCredit
})
}, },
data () { data () {
return { return {
// onRoutes:'/counter/list/manage/consumerClient',
onRoutes: '', onRoutes: '',
menus: [], menus: [],
defaultMenus: [ defaultMenus: [
@ -260,14 +249,9 @@ export default {
] ]
} }
}, },
watch: {
needIndex (newVal) {
this.onRoutes = newVal
}
},
created () { created () {
this.menus = this.isCredit ? this.creditMenus : this.defaultMenus this.menus = this.isCredit ? this.creditMenus : this.defaultMenus
const path = sessionStorage.getItem('computerPath') let path = sessionStorage.getItem(this.isCredit ? 'creditPath' : 'computerPath')
if (path) { if (path) {
this.onRoutes = path this.onRoutes = path
} else { } else {
@ -279,11 +263,6 @@ export default {
this.onRoutes = path this.onRoutes = path
} }
}, },
beforeDestroy () {
sessionStorage.setItem('computerPath', this.onRoutes)
sessionStorage.getItem('submited') || this.$router.push('/counter/list/')
},
}; };
</script> </script>

Loading…
Cancel
Save