|
|
@ -505,7 +505,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="card" :class="{isie: isIE()}"> |
|
|
|
<div class="card" :class="{isie: isIE()}"> |
|
|
|
<!-- 管理员 --> |
|
|
|
<!-- 管理员 --> |
|
|
|
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(2) > -1"> |
|
|
|
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(13) > -1"> |
|
|
|
<div class="flex-between jobNumber"> |
|
|
|
<div class="flex-between jobNumber"> |
|
|
|
<span>管理员</span> |
|
|
|
<span>管理员</span> |
|
|
|
<div class="numberInput"> |
|
|
|
<div class="numberInput"> |
|
|
@ -556,7 +556,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
<!-- 教师 --> |
|
|
|
<!-- 教师 --> |
|
|
|
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(3) > -1"> |
|
|
|
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(14) > -1"> |
|
|
|
<div class="flex-between jobNumber"> |
|
|
|
<div class="flex-between jobNumber"> |
|
|
|
<span>教师</span> |
|
|
|
<span>教师</span> |
|
|
|
<div class="numberInput"> |
|
|
|
<div class="numberInput"> |
|
|
@ -783,11 +783,11 @@ export default { |
|
|
|
region: '', // 系统选择 |
|
|
|
region: '', // 系统选择 |
|
|
|
checkList: [{ |
|
|
|
checkList: [{ |
|
|
|
label: '管理员', |
|
|
|
label: '管理员', |
|
|
|
id: 2 |
|
|
|
id: 13 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '教师', |
|
|
|
label: '教师', |
|
|
|
id: 3 |
|
|
|
id: 14 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '学生', |
|
|
|
label: '学生', |
|
|
@ -1213,7 +1213,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 获取学校名称 |
|
|
|
// 获取学校名称 |
|
|
|
getSchoolData(){ |
|
|
|
getSchoolData(){ |
|
|
|
this.$get(this.api.querySchoolData,{schoolName: ''}).then(res => { |
|
|
|
this.$get(this.api.querySchoolData,{ |
|
|
|
|
|
|
|
schoolName: '', |
|
|
|
|
|
|
|
provinceId: '', |
|
|
|
|
|
|
|
cityId: '' |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
this.schoolList = res.message |
|
|
|
this.schoolList = res.message |
|
|
|
}).catch(res => {}); |
|
|
|
}).catch(res => {}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1419,11 +1423,11 @@ export default { |
|
|
|
let student = {} |
|
|
|
let student = {} |
|
|
|
this.saveList.forEach( e =>{ |
|
|
|
this.saveList.forEach( e =>{ |
|
|
|
// 管理员数据 |
|
|
|
// 管理员数据 |
|
|
|
if(e.roleIds.indexOf(2) > -1){ |
|
|
|
if(e.roleIds.indexOf(13) > -1){ |
|
|
|
staffLIst.push({ |
|
|
|
staffLIst.push({ |
|
|
|
platformId: e.platformId, |
|
|
|
platformId: e.platformId, |
|
|
|
workNumber: e.staworkNumber, |
|
|
|
workNumber: e.staworkNumber, |
|
|
|
roleId: 2, |
|
|
|
roleId: 13, |
|
|
|
schoolId: e.schoolId, |
|
|
|
schoolId: e.schoolId, |
|
|
|
customerId: e.customerId, |
|
|
|
customerId: e.customerId, |
|
|
|
schoolName: e.customerName, |
|
|
|
schoolName: e.customerName, |
|
|
@ -1434,11 +1438,11 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
// 教师数据 |
|
|
|
// 教师数据 |
|
|
|
if(e.roleIds.indexOf(3) > -1){ |
|
|
|
if(e.roleIds.indexOf(14) > -1){ |
|
|
|
staffLIst.push({ |
|
|
|
staffLIst.push({ |
|
|
|
platformId: e.platformId, |
|
|
|
platformId: e.platformId, |
|
|
|
workNumber: e.teaworkNumber, |
|
|
|
workNumber: e.teaworkNumber, |
|
|
|
roleId: 3, |
|
|
|
roleId: 14, |
|
|
|
schoolId: e.schoolId, |
|
|
|
schoolId: e.schoolId, |
|
|
|
customerId: e.customerId, |
|
|
|
customerId: e.customerId, |
|
|
|
schoolName: e.customerName, |
|
|
|
schoolName: e.customerName, |
|
|
@ -1538,7 +1542,7 @@ export default { |
|
|
|
async worknumberChange(item){ |
|
|
|
async worknumberChange(item){ |
|
|
|
let res = await this.$get(this.api.queryWorkNumberIsExist, { |
|
|
|
let res = await this.$get(this.api.queryWorkNumberIsExist, { |
|
|
|
workNumber: item.staworkNumber, |
|
|
|
workNumber: item.staworkNumber, |
|
|
|
roleId: 2, |
|
|
|
roleId: 13, |
|
|
|
schoolId: item.schoolId |
|
|
|
schoolId: item.schoolId |
|
|
|
}); |
|
|
|
}); |
|
|
|
if(JSON.stringify(res.message) != '{}'){ |
|
|
|
if(JSON.stringify(res.message) != '{}'){ |
|
|
@ -1551,7 +1555,7 @@ export default { |
|
|
|
async teaworknumberChange(item){ |
|
|
|
async teaworknumberChange(item){ |
|
|
|
let res = await this.$get(this.api.queryWorkNumberIsExist, { |
|
|
|
let res = await this.$get(this.api.queryWorkNumberIsExist, { |
|
|
|
workNumber: item.teaworkNumber, |
|
|
|
workNumber: item.teaworkNumber, |
|
|
|
roleId: 3, |
|
|
|
roleId: 14, |
|
|
|
schoolId: item.schoolId |
|
|
|
schoolId: item.schoolId |
|
|
|
}); |
|
|
|
}); |
|
|
|
if(JSON.stringify(res.message) != '{}'){ |
|
|
|
if(JSON.stringify(res.message) != '{}'){ |
|
|
@ -1737,7 +1741,7 @@ export default { |
|
|
|
let isEmpty = false |
|
|
|
let isEmpty = false |
|
|
|
this.chooseList.forEach(e =>{ |
|
|
|
this.chooseList.forEach(e =>{ |
|
|
|
// 管理员数据 |
|
|
|
// 管理员数据 |
|
|
|
if(e.roleIds.indexOf(2) > -1){ |
|
|
|
if(e.roleIds.indexOf(13) > -1){ |
|
|
|
for(let i in e) { |
|
|
|
for(let i in e) { |
|
|
|
if(i.startsWith('sta') && e[i] == ''){ |
|
|
|
if(i.startsWith('sta') && e[i] == ''){ |
|
|
|
isEmpty = true |
|
|
|
isEmpty = true |
|
|
@ -1747,7 +1751,7 @@ export default { |
|
|
|
stuStaffList.staffList.push({ |
|
|
|
stuStaffList.staffList.push({ |
|
|
|
platformId: e.platformId, |
|
|
|
platformId: e.platformId, |
|
|
|
workNumber: e.staworkNumber, |
|
|
|
workNumber: e.staworkNumber, |
|
|
|
roleId: 2, |
|
|
|
roleId: 13, |
|
|
|
schoolId: e.schoolId, |
|
|
|
schoolId: e.schoolId, |
|
|
|
customerId: e.customerId, |
|
|
|
customerId: e.customerId, |
|
|
|
schoolName: e.customerName, |
|
|
|
schoolName: e.customerName, |
|
|
@ -1759,7 +1763,7 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
// 教师数据 |
|
|
|
// 教师数据 |
|
|
|
if(e.roleIds.indexOf(3) > -1){ |
|
|
|
if(e.roleIds.indexOf(14) > -1){ |
|
|
|
for(let i in e) { |
|
|
|
for(let i in e) { |
|
|
|
if(i.startsWith('tea') && e[i] == ''){ |
|
|
|
if(i.startsWith('tea') && e[i] == ''){ |
|
|
|
isEmpty = true |
|
|
|
isEmpty = true |
|
|
@ -1769,7 +1773,7 @@ export default { |
|
|
|
stuStaffList.staffList.push({ |
|
|
|
stuStaffList.staffList.push({ |
|
|
|
platformId: e.platformId, |
|
|
|
platformId: e.platformId, |
|
|
|
workNumber: e.teaworkNumber, |
|
|
|
workNumber: e.teaworkNumber, |
|
|
|
roleId: 3, |
|
|
|
roleId: 14, |
|
|
|
schoolId: e.schoolId, |
|
|
|
schoolId: e.schoolId, |
|
|
|
customerId: e.customerId, |
|
|
|
customerId: e.customerId, |
|
|
|
schoolName: e.customerName, |
|
|
|
schoolName: e.customerName, |
|
|
@ -1817,7 +1821,7 @@ export default { |
|
|
|
let list = this.saveList |
|
|
|
let list = this.saveList |
|
|
|
let isEmpty = false |
|
|
|
let isEmpty = false |
|
|
|
for(let e of list){ |
|
|
|
for(let e of list){ |
|
|
|
if(e.roleIds.includes(2)){ |
|
|
|
if(e.roleIds.includes(13)){ |
|
|
|
for(let i in e) { |
|
|
|
for(let i in e) { |
|
|
|
if(i.startsWith('sta') && e[i] == ''){ |
|
|
|
if(i.startsWith('sta') && e[i] == ''){ |
|
|
|
isEmpty = true |
|
|
|
isEmpty = true |
|
|
@ -1825,7 +1829,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(e.roleIds.includes(3)){ |
|
|
|
if(e.roleIds.includes(14)){ |
|
|
|
for(let i in e) { |
|
|
|
for(let i in e) { |
|
|
|
if(i.startsWith('tea') && e[i] == ''){ |
|
|
|
if(i.startsWith('tea') && e[i] == ''){ |
|
|
|
isEmpty = true |
|
|
|
isEmpty = true |
|
|
@ -1948,10 +1952,10 @@ export default { |
|
|
|
this.$set(e, 'teacherstaffGradeName', ''); |
|
|
|
this.$set(e, 'teacherstaffGradeName', ''); |
|
|
|
if (e.roleId) { |
|
|
|
if (e.roleId) { |
|
|
|
switch (e.roleId) { |
|
|
|
switch (e.roleId) { |
|
|
|
case 2: |
|
|
|
case 13: |
|
|
|
e.staworkNumber = e.workNumber |
|
|
|
e.staworkNumber = e.workNumber |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
case 14: |
|
|
|
e.teaworkNumber = e.workNumber, |
|
|
|
e.teaworkNumber = e.workNumber, |
|
|
|
e.teacherstaffProId = e.staffProfessionalArchitectureId, |
|
|
|
e.teacherstaffProId = e.staffProfessionalArchitectureId, |
|
|
|
e.teacherstaffProName = e.staffProfessionalArchitectureName, |
|
|
|
e.teacherstaffProName = e.staffProfessionalArchitectureName, |
|
|
|