|
@@ -124,42 +124,44 @@ export default {
|
|
|
},
|
|
|
|
|
|
submitinfo(item) {
|
|
|
- // this.value = item.job;
|
|
|
+ if (this.user.job == '班长') {
|
|
|
+ // this.value = item.job;
|
|
|
|
|
|
- var wenyi = this.stuNameList.filter(item => item.job == '文艺委员');
|
|
|
- var anquan = this.stuNameList.filter(item => item.job == '安全委员');
|
|
|
+ var wenyi = this.stuNameList.filter(item => item.job == '文艺委员');
|
|
|
+ var anquan = this.stuNameList.filter(item => item.job == '安全委员');
|
|
|
|
|
|
- // this.value = item.job;
|
|
|
- // this.columns = this.column1;
|
|
|
- if (wenyi.length == '1') {
|
|
|
- if (anquan.length == '0') {
|
|
|
- if (item.job == '文艺委员') {
|
|
|
- this.columns = this.column1;
|
|
|
- } else {
|
|
|
- this.columns = this.column3;
|
|
|
- }
|
|
|
- } else if (anquan.length == '1') {
|
|
|
- if (item.job == '普通学生') {
|
|
|
- this.columns = this.column4;
|
|
|
- } else if (item.job == '安全委员') {
|
|
|
- this.columns = this.column3;
|
|
|
- } else if (item.job == '文艺委员') {
|
|
|
- this.columns = this.column2;
|
|
|
+ // this.value = item.job;
|
|
|
+ // this.columns = this.column1;
|
|
|
+ if (wenyi.length == '1') {
|
|
|
+ if (anquan.length == '0') {
|
|
|
+ if (item.job == '文艺委员') {
|
|
|
+ this.columns = this.column1;
|
|
|
+ } else {
|
|
|
+ this.columns = this.column3;
|
|
|
+ }
|
|
|
+ } else if (anquan.length == '1') {
|
|
|
+ if (item.job == '普通学生') {
|
|
|
+ this.columns = this.column4;
|
|
|
+ } else if (item.job == '安全委员') {
|
|
|
+ this.columns = this.column3;
|
|
|
+ } else if (item.job == '文艺委员') {
|
|
|
+ this.columns = this.column2;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- } else if (wenyi.length == '0') {
|
|
|
- if (anquan.length == '0') {
|
|
|
- this.columns = this.column1;
|
|
|
- } else if (anquan.length == 1) {
|
|
|
- if (item.job == '安全委员') {
|
|
|
+ } else if (wenyi.length == '0') {
|
|
|
+ if (anquan.length == '0') {
|
|
|
this.columns = this.column1;
|
|
|
- } else {
|
|
|
- this.columns = this.column2;
|
|
|
+ } else if (anquan.length == 1) {
|
|
|
+ if (item.job == '安全委员') {
|
|
|
+ this.columns = this.column1;
|
|
|
+ } else {
|
|
|
+ this.columns = this.column2;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ this.show = true;
|
|
|
+ this.newform = item;
|
|
|
}
|
|
|
- this.show = true;
|
|
|
- this.newform = item;
|
|
|
},
|
|
|
|
|
|
//设置优秀学员
|
|
@@ -168,11 +170,13 @@ export default {
|
|
|
},
|
|
|
|
|
|
async showPopup(item) {
|
|
|
- if (item.job == '普通学生') {
|
|
|
- console.log(item);
|
|
|
- this.psform = item;
|
|
|
- const res = await this.modelFetch({ model: 'bedroom', code: item.bedroom });
|
|
|
- this.newshow = true;
|
|
|
+ if (this.user.job == '班长') {
|
|
|
+ if (item.job == '普通学生') {
|
|
|
+ console.log(item);
|
|
|
+ this.psform = item;
|
|
|
+ const res = await this.modelFetch({ model: 'bedroom', code: item.bedroom });
|
|
|
+ this.newshow = true;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|