绑定单位调整

This commit is contained in:
fan 2021-01-12 13:18:52 +08:00
parent 0e5ebf2445
commit dbc02056fb
3 changed files with 10 additions and 4 deletions

View File

@ -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);

View File

@ -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) {

View File

@ -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':