|
@@ -93,6 +93,7 @@ export default {
|
|
|
gradeOptions: ['一年级', '二年级', '三年级', '四年级', '五年级', '六年级', '七年级', '八年级', '九年级', '高一年级', '高二年级', '高三年级'],
|
|
|
checkedGrades: [],
|
|
|
vser: '',
|
|
|
+ createUserId:'',
|
|
|
optionsgroupUserList: [],
|
|
|
dialogVisible: false,
|
|
|
loading: false
|
|
@@ -105,6 +106,9 @@ export default {
|
|
|
this.vser = sessionStorage.getItem(
|
|
|
"f7a42fe7211f98ac7a60a285ac3a9529"
|
|
|
);
|
|
|
+ this.createUserId = sessionStorage.getItem(
|
|
|
+ "b80bb7740288fda1f201890375a60c8f"
|
|
|
+ );
|
|
|
this.getData()
|
|
|
this.getDatas()
|
|
|
},
|
|
@@ -113,11 +117,13 @@ export default {
|
|
|
dialogVisibleopen() {
|
|
|
this.dialogVisible = true
|
|
|
console.log(this.vser, '========================>this.vser');
|
|
|
- this.groupUser = [this.vser]
|
|
|
+ // this.groupUser = [this.vser]
|
|
|
+ this.groupUser = []
|
|
|
},
|
|
|
getData() {
|
|
|
this.$http.get(
|
|
|
- "/group/find?institutionNo=" + this.institutionNo,
|
|
|
+ // "/group/find?institutionNo=" + this.institutionNo,
|
|
|
+ `/group/find?institutionNo=${this.institutionNo}&userId=${this.createUserId}`,
|
|
|
{},
|
|
|
(response) => {
|
|
|
this.tableData = response.data;
|
|
@@ -188,12 +194,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
creatGroup(gradeName) {
|
|
|
+ console.log(this.groupUser,'===================jjjjjjjjjjjjj=========>this.groupUser');
|
|
|
+
|
|
|
+ let groupUserList = this.groupUser.map(item=>{
|
|
|
+ return {userId:item}
|
|
|
+ })
|
|
|
+ console.log(groupUserList,'=============================>groupUserListgroupUserListgroupUserList');
|
|
|
+
|
|
|
return new Promise((resolve, reject) => {
|
|
|
this.$http.post(
|
|
|
"/group/add",
|
|
|
{
|
|
|
groupName: gradeName.trim(),
|
|
|
institutionNo: this.institutionNo,
|
|
|
+ // groupUserList:groupUserList
|
|
|
},
|
|
|
(response) => {
|
|
|
//console.log("结果", response);
|