diff --git a/pages/Athletes/AthAdd.vue b/pages/Athletes/AthAdd.vue index ff76225..de5c5a0 100644 --- a/pages/Athletes/AthAdd.vue +++ b/pages/Athletes/AthAdd.vue @@ -90,6 +90,7 @@ import { upload } from 'api/upload' import { saveplayer } from 'api/saveplayer' import { playerInfo } from 'api/playerInfo' import { group } from 'api/group' +import { mapState } from 'vuex' // import { photoBase64 } from 'api/photoBase64' export default { async onLoad(option) { @@ -212,6 +213,7 @@ import { group } from 'api/group' showview: 0 } }, + computed:mapState('project',['companyId']), methods: { delimg(index) { const that = this @@ -403,7 +405,7 @@ import { group } from 'api/group' try{ const params = { param: { - competeId: that.$store.state.project.companyId, + competeId: that.companyId, groupRemark: that.groupRemark,//组别id playerName: that.list[0].content,//选手姓名 gender: that.che,//性别 @@ -511,7 +513,7 @@ import { group } from 'api/group' const params = { param: { playerId: that.playerId, - competeId: that.$store.state.project.companyId, + competeId: that.companyId, groupRemark: that.groupRemark,//组别id playerName: that.list[0].content,//选手姓名 gender: that.che,//性别 diff --git a/pages/Athletes/Athletes.vue b/pages/Athletes/Athletes.vue index 40f9cdf..e94a2cb 100644 --- a/pages/Athletes/Athletes.vue +++ b/pages/Athletes/Athletes.vue @@ -26,6 +26,7 @@