diff --git a/src/views/system/companyManage/index.vue b/src/views/system/companyManage/index.vue index 9b279f4d5..78d498185 100644 --- a/src/views/system/companyManage/index.vue +++ b/src/views/system/companyManage/index.vue @@ -103,8 +103,12 @@ export default { this.$router.go(-1); }, handleGenerateQrCode(index, row) { + let state = 2; + if (process.env.NODE_ENV === 'production') { + state = 1; + } const param = { - url: `companyName=${row.name}&&companyId=${row.id}`, + url: `https://joylink.club/oss/joylink/company?state=${state}_${row.id}`, title: '单位二维码' }; this.$refs.qrCode.doShow(param); diff --git a/src/views/teach/index.vue b/src/views/teach/index.vue index 454d72bfb..866e6a24c 100644 --- a/src/views/teach/index.vue +++ b/src/views/teach/index.vue @@ -50,7 +50,8 @@ export default { loading: false, project: '', mapId: '', - prdType: '' + prdType: '', + cityCode: '' }; }, computed: { @@ -84,6 +85,7 @@ export default { this.mapId = resp.data.mapId; this.prdType = resp.data.prdType; this.tableData = resp.data.lessonList; + this.cityCode = resp.data.cityCode; } else { this.tableData = []; } @@ -129,7 +131,7 @@ export default { }); }, draftLessonManage() { - const query = {mapId: this.mapId, prdType: this.prdType, cityCode: this.$route.query.cityCode}; + const query = {mapId: this.mapId, prdType: this.prdType, cityCode: this.cityCode}; this.$router.push({ path: `/trainingPlatform/draftTeach/${this.$route.params.subSystem}`, query: query }); }, handleDelete(row) { diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue index 6b9c2a717..95777bcd3 100644 --- a/src/views/trainingPlatform/demonList.vue +++ b/src/views/trainingPlatform/demonList.vue @@ -113,7 +113,7 @@ export default { break; case 'Lesson': this.setLocalRoute(`${UrlConfig.trainingPlatform.teachHome}/${obj.id}`); - router = { path: `${UrlConfig.trainingPlatform.teachHome}/${obj.id}?cityCode=${this.filterSelect}`}; + router = { path: `${UrlConfig.trainingPlatform.teachHome}/${obj.id}`}; this.toNextPage(isReplace, router); break; case 'Simulation':