Browse Source

自定义拼接doorCodes

master
xuhuajiao 2 years ago
parent
commit
fffcf13fb7
  1. 11
      src/views/accessToLibrary/index.vue

11
src/views/accessToLibrary/index.vue

@ -42,7 +42,8 @@ export default {
dayNum: 0, dayNum: 0,
dayOutNum: 0, dayOutNum: 0,
monthNum: 0, monthNum: 0,
totalNum: 0
totalNum: 0,
otherDoorOther: null
} }
}, },
created() { created() {
@ -63,10 +64,16 @@ export default {
}, },
methods: { methods: {
getInitIntoNum() { getInitIntoNum() {
this.otherDoorOther = window.location.href.split('?')[1]?.split('=')[1]
if (this.otherDoorOther !== '' && this.otherDoorOther.indexOf('&')) {
this.otherDoorOther = this.otherDoorOther.replace(/\&/g, '、')
} else {
this.otherDoorOther = null
}
let params let params
if (!this.isSelfService) { if (!this.isSelfService) {
params = { params = {
doorCodes: null
doorCodes: this.otherDoorOther
} }
} else { } else {
params = { params = {

Loading…
Cancel
Save