Commit 5fc1ccf1 by 杨北旺

bug:修复传参方式错误问题

1 parent a8416468
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
jumpPage(item) { jumpPage(item) {
this.$router.push({ this.$router.push({
name: 'upload', name: 'upload',
params: { query: {
packageCode: item.packageCode, packageCode: item.packageCode,
contractNo: item.contractNo contractNo: item.contractNo
} }
......
...@@ -41,13 +41,17 @@ export default { ...@@ -41,13 +41,17 @@ export default {
this.computedWidth() this.computedWidth()
}, },
mounted() { mounted() {
const packageCode = this.$route.params.packageCode const {packageCode,contractNo} = this.getQuery()
const contractNo = this.$route.params.contractNo // const packageCode = this.$route.params.packageCode
// const contractNo = this.$route.params.contractNo
this.getFileInof(packageCode, contractNo) this.getFileInof(packageCode, contractNo)
this.contractNo = contractNo this.contractNo = contractNo
this.packageCode = packageCode this.packageCode = packageCode
}, },
methods: { methods: {
getQuery() {
return window.vm.$route.query
},
// 根据手机屏幕宽度计算图片宽度 // 根据手机屏幕宽度计算图片宽度
computedWidth(){ computedWidth(){
const screen = window.screen.width const screen = window.screen.width
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!