mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 04:06:45 +08:00
[Fix] nbs router
This commit is contained in:
@@ -43,21 +43,16 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
toItem_2(code, name) {
|
||||
console.log(123123)
|
||||
if (this.level === '3') return
|
||||
if (this.level === '1') this.$store.commit('setSecondManageCode', code)
|
||||
else if (this.level === '2') this.$store.commit('setThirdManageCode', code)
|
||||
if (this.level === '1') window.localStorage.setItem('nbsSecondManageCode', code)
|
||||
else if (this.level === '2') window.localStorage.setItem('nbsThirdManageCode', code)
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: `${location.origin}/#${this.url}?name=${name}`
|
||||
// forbidSwipeBack: '1',
|
||||
// needRefresh: '1'
|
||||
},
|
||||
routerInfo: { path: `${this.url}?name=${name}` }
|
||||
})
|
||||
console.log(this.$parent)
|
||||
if (this.$parent.watchUrlChange) this.$parent.watchUrlChange(String(parseInt(this.level) + 1))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,6 @@ export default {
|
||||
pageSize: 0,
|
||||
pageNum: 0
|
||||
})
|
||||
console.log(rs)
|
||||
let arr = [],
|
||||
num = 0
|
||||
for (let key in rs.content) {
|
||||
@@ -91,7 +90,6 @@ export default {
|
||||
}
|
||||
this.tableData.total = num
|
||||
this.tableData.list = arr
|
||||
console.log(this.tableData)
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
@@ -46,30 +46,14 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// watchUrlChange(level) {
|
||||
// console.log(level)
|
||||
// this.level = level
|
||||
// console.log(33333333)
|
||||
// if (this.level === '3') {
|
||||
// this.titleArr.push(this.$route.query.name)
|
||||
// } else {
|
||||
// if (this.titleArr.length === 2) this.titleArr.pop()
|
||||
// console.log(222)
|
||||
// }
|
||||
// this.tableData = {}
|
||||
// this.searchVal = ''
|
||||
// this.searchList = []
|
||||
// this.getDataList()
|
||||
// this.changeKey = this.changeKey === 1 ? 2 : 1
|
||||
// },
|
||||
async getDataList() {
|
||||
const data = {
|
||||
pageSize: 0,
|
||||
pageNum: 0,
|
||||
secondManageCode: this.$store.state.secondManageCode
|
||||
secondManageCode: window.localStorage.getItem('nbsSecondManageCode')
|
||||
}
|
||||
if (this.level === '2') delete data.thirdManageCode
|
||||
else data.thirdManageCode = this.$store.state.thirdManageCode
|
||||
else data.thirdManageCode = window.localStorage.getItem('nbsThirdManageCode')
|
||||
const rs = await getTableList(data)
|
||||
let arr = []
|
||||
for (let key in rs.content) {
|
||||
@@ -89,10 +73,8 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.getDataList()
|
||||
this.titleArr = [decodeURIComponent(this.$route.query.name)]
|
||||
this.$store.commit('setTitleArr', [...this.titleArr])
|
||||
console.log(this.titleArr)
|
||||
// window.appCallback = this.appCallBack
|
||||
this.titleArr = [this.$route.query.name]
|
||||
window.localStorage.setItem('nbsTitleArr', window.JSON.stringify(this.titleArr))
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -46,30 +46,14 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// watchUrlChange(level) {
|
||||
// console.log(level)
|
||||
// this.level = level
|
||||
// console.log(33333333)
|
||||
// if (this.level === '3') {
|
||||
// this.titleArr.push(this.$route.query.name)
|
||||
// } else {
|
||||
// if (this.titleArr.length === 2) this.titleArr.pop()
|
||||
// console.log(222)
|
||||
// }
|
||||
// this.tableData = {}
|
||||
// this.searchVal = ''
|
||||
// this.searchList = []
|
||||
// this.getDataList()
|
||||
// this.changeKey = this.changeKey === 1 ? 2 : 1
|
||||
// },
|
||||
async getDataList() {
|
||||
const data = {
|
||||
pageSize: 0,
|
||||
pageNum: 0,
|
||||
secondManageCode: this.$store.state.secondManageCode
|
||||
secondManageCode: window.localStorage.getItem('nbsSecondManageCode')
|
||||
}
|
||||
if (this.level === '2') delete data.thirdManageCode
|
||||
else data.thirdManageCode = this.$store.state.thirdManageCode
|
||||
else data.thirdManageCode = window.localStorage.getItem('nbsThirdManageCode')
|
||||
const rs = await getTableList(data)
|
||||
let arr = []
|
||||
for (let key in rs.content) {
|
||||
|
||||
Reference in New Issue
Block a user