|
@@ -519,7 +519,7 @@
|
|
|
:before-close="handleClose"
|
|
:before-close="handleClose"
|
|
|
class="addNewPP customWidth"
|
|
class="addNewPP customWidth"
|
|
|
>
|
|
>
|
|
|
- <div class="cypersonBox">
|
|
|
|
|
|
|
+ <div class="cypersonBox" v-loading="addcyPerloading">
|
|
|
<div class="cypersonBoxLeft">
|
|
<div class="cypersonBoxLeft">
|
|
|
<span @click="getTeacher(1)" :class="addCyperType == 1 ? 'cybck' : '' ">教师</span>
|
|
<span @click="getTeacher(1)" :class="addCyperType == 1 ? 'cybck' : '' ">教师</span>
|
|
|
<span @click="getTeacher(2)" :class="addCyperType == 2 ? 'cybck' : '' ">学生</span>
|
|
<span @click="getTeacher(2)" :class="addCyperType == 2 ? 'cybck' : '' ">学生</span>
|
|
@@ -661,6 +661,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ addcyPerloading:false,
|
|
|
|
|
+
|
|
|
gracheckAll: false,
|
|
gracheckAll: false,
|
|
|
checkedGra: [],
|
|
checkedGra: [],
|
|
|
gralist: ['一年级','二年级','三年级','四年级','五年级','六年级','七年级','八年级','九年级','高一','高二','高三'],
|
|
gralist: ['一年级','二年级','三年级','四年级','五年级','六年级','七年级','八年级','九年级','高一','高二','高三'],
|
|
@@ -1690,6 +1692,8 @@ export default {
|
|
|
// 添加社区人员获取人员列表
|
|
// 添加社区人员获取人员列表
|
|
|
getTeacher(val = 1) {
|
|
getTeacher(val = 1) {
|
|
|
this.addCyperType = val
|
|
this.addCyperType = val
|
|
|
|
|
+ this.addcyPerloading= true
|
|
|
|
|
+
|
|
|
let params = {
|
|
let params = {
|
|
|
oid: this.cyInfo.org ? this.cyInfo.org : this.cyInfo.id,
|
|
oid: this.cyInfo.org ? this.cyInfo.org : this.cyInfo.id,
|
|
|
inp: this.searchTN,
|
|
inp: this.searchTN,
|
|
@@ -1705,9 +1709,12 @@ export default {
|
|
|
this.teacherJuri = res.data[0];
|
|
this.teacherJuri = res.data[0];
|
|
|
this.checkboxList3 = this.cypersontableData.map(e=> e.userid)
|
|
this.checkboxList3 = this.cypersontableData.map(e=> e.userid)
|
|
|
this.dialogaddCyperson = true
|
|
this.dialogaddCyperson = true
|
|
|
-
|
|
|
|
|
|
|
+ this.addcyPerloading= false
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
|
|
|
+ this.addcyPerloading= false
|
|
|
|
|
+
|
|
|
console.error("请求失败,错误信息:", error);
|
|
console.error("请求失败,错误信息:", error);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|