lex-xin 3 gadi atpakaļ
vecāks
revīzija
8416030667

+ 9 - 0
src/api/buildTeam.js

@@ -1648,3 +1648,12 @@ export function applyMusicGroupQuit(data) {
   })
 }
 
+// 获取角色信息
+export function getOrganRole(data) {
+  return request2({
+    url: api + `/organization/getOrganRole`,
+    method: 'get',
+    params:data
+  })
+}
+

+ 16 - 1
src/store/modules/selects.js

@@ -1,6 +1,6 @@
 /* eslint-disable no-empty */
 // import { branchQueryPage } from '@/api/specialSetting'
-import { getSubject, getTeacher,findEducationUsers,getEmployeeOrgan } from '@/api/buildTeam'
+import { getSubject, getTeacher,findEducationUsers,getEmployeeOrgan, getOrganRole } from '@/api/buildTeam'
 import { getSchool,queryEmployByOrganId } from '@/api/systemManage'
 import { vipGroupCategory } from "@/api/vipSeting"
 import { findTechnician } from '@/api/repairManager'
@@ -28,6 +28,7 @@ export default {
     educations:[],
     technician: [],
     employs:[],
+    roles: []
   },
   mutations: {
     commit_branchs: (state, branchs) => {
@@ -59,6 +60,9 @@ export default {
     commit_technician: (state, technician) => {
       state.technician = technician
     },
+    commit_roles: (state, roles) => {
+      state.roles = roles
+    },
     commit_employs:(state,employs)=>{
       state.employs = employs.map(emloys=>{
         return {
@@ -133,6 +137,17 @@ export default {
         loadings.commit_educations = false
       }
     },
+    async setOrganRole({commit,state},force) {
+      if ((!state.educations.length || force === true) && !loadings.commit_roles) {
+        loadings.commit_roles = getOrganRole()
+        try {
+          const res = await loadings.commit_roles
+          commit('commit_roles', res.data)
+        } catch (error) { }
+        loadings.commit_roles = false
+      }
+      getOrganRole
+    },
     async setTechnician({commit,state},force){
       if ((!state.technician.length || force === true) && !loadings.commit_technician) {
         loadings.commit_technician = findTechnician()

+ 5 - 2
src/views/teamBuild/signupList.vue

@@ -1528,9 +1528,12 @@ export default {
       // 生成报名二维码
       let id = this.id;
       this.codeStatus = true;
+      let tenantConfig = sessionStorage.getItem('tenantConfig')
+      tenantConfig = tenantConfig ? JSON.parse(tenantConfig) : {}
+      const tenantId = tenantConfig.tenantId || 0
       if (type == "payment") {
         this.codeTitle = "学员报名链接";
-        this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id + '&organId=' + this.organId;
+        this.qrCodeUrl = vaildStudentUrl() + "/#/login?musicGroupId=" + id + '&organId=' + this.organId+ '&tenantId=' + tenantId;
       } else if (type == "detail") {
         let teamName = this.$route.query.name;
         this.codeTitle = "报名缴费详情";
@@ -1543,7 +1546,7 @@ export default {
       } else if (type == "rePayment") {
         this.codeTitle = "学生报名链接(无乐器)";
         this.qrCodeUrl =
-          vaildStudentUrl() + "/#/login?musicGroupId=" + id + '&organId=' + this.organId + "&instrument=1";
+          vaildStudentUrl() + "/#/login?musicGroupId=" + id + '&organId=' + this.organId + '&tenantId=' + tenantId + "&instrument=1";
       }
     },
     onCreateQRCode2() {