|
@@ -64,7 +64,7 @@ export default {
|
|
|
if ((!state.branchs.length || force === true) && !loadings.commit_branchs) {
|
|
|
loadings.commit_branchs = true
|
|
|
try {
|
|
|
- state.branchsLoading = true
|
|
|
+ state.branchsLoading = getEmployeeOrgan()
|
|
|
const res = await getEmployeeOrgan()
|
|
|
commit('commit_branchs', res.data)
|
|
|
} catch (error) { }
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
},
|
|
|
async setSubjects ({ commit, state }, force) {
|
|
|
if ((!state.subjects.length || force === true) && !loadings.commit_subjects) {
|
|
|
- loadings.commit_subjects = true
|
|
|
+ loadings.commit_subjects = getSubject({rows: 9999, tenantId: '1'})
|
|
|
try {
|
|
|
state.subjectsLoading = true
|
|
|
const res = await getSubject({rows: 9999, tenantId: '1'})
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
},
|
|
|
async setVipGroupCategory ({ commit, state }, force) {
|
|
|
if ((!state.vipGroupCategory.length || force === true) && !loadings.commit_vip_group_category) {
|
|
|
- loadings.commit_vip_group_category = true
|
|
|
+ loadings.commit_vip_group_category = vipGroupCategory()
|
|
|
try {
|
|
|
state.vipGroupCategoryLoading = true
|
|
|
const res = await vipGroupCategory()
|
|
@@ -118,7 +118,7 @@ export default {
|
|
|
},
|
|
|
async setEducations({commit,state},force){
|
|
|
if ((!state.educations.length || force === true) && !loadings.commit_educations) {
|
|
|
- loadings.commit_educations = true
|
|
|
+ loadings.commit_educations = findEducationUsers()
|
|
|
try {
|
|
|
const res = await findEducationUsers()
|
|
|
commit('commit_educations', res.data)
|
|
@@ -128,7 +128,7 @@ export default {
|
|
|
},
|
|
|
async setTechnician({commit,state},force){
|
|
|
if ((!state.technician.length || force === true) && !loadings.commit_technician) {
|
|
|
- loadings.commit_technician = true
|
|
|
+ loadings.commit_technician = findTechnician()
|
|
|
try {
|
|
|
const res = await findTechnician()
|
|
|
commit('commit_technician', res.data)
|