|
@@ -532,18 +532,46 @@
|
|
|
this.$message('请选择部门');
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ console.log(this.handleSelectionZzjgwillchange);
|
|
|
+ //接口调用样例代码如下
|
|
|
+ var ids = ['8189056724477485056', '8189056816878002176'];
|
|
|
+ this.http.post('/user/batchUpdateDept', {
|
|
|
+ userIds: JSON.stringify(ids),
|
|
|
+ deptId: 4
|
|
|
+ },
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.$message({
|
|
|
+ message: '修改成功',
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ this.getUser()
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
- for (let index = 0; index < this.handleSelectionZzjgDate.length; index++) {
|
|
|
- this.handleSelectionZzjgDate[index].departmentId = this.handleSelectionZzjgwillchange[this.handleSelectionZzjgwillchange.length - 1]
|
|
|
- if (this.handleSelectionZzjgDate[index].role == 1) {
|
|
|
- this.submitInsert1(this.handleSelectionZzjgDate[index],1)
|
|
|
- }else{
|
|
|
- this.submitInsert(this.handleSelectionZzjgDate[index],1)
|
|
|
- }
|
|
|
+ // for (let index = 0; index < this.handleSelectionZzjgDate.length; index++) {
|
|
|
+ // this.handleSelectionZzjgDate[index].departmentId = this.handleSelectionZzjgwillchange[this.handleSelectionZzjgwillchange.length - 1]
|
|
|
+ // if (this.handleSelectionZzjgDate[index].role == 1) {
|
|
|
+ // this.submitInsert1(this.handleSelectionZzjgDate[index],1)
|
|
|
+ // }else{
|
|
|
+ // this.submitInsert(this.handleSelectionZzjgDate[index],1)
|
|
|
+ // }
|
|
|
|
|
|
- }
|
|
|
- this.handleSelectionZzjgwillchange = null
|
|
|
- this.handleSelectionZzjgshow = false
|
|
|
+ // }
|
|
|
+ // this.handleSelectionZzjgwillchange = null
|
|
|
+ // this.handleSelectionZzjgshow = false
|
|
|
},
|
|
|
handleSelectionZzjgbtn3(){
|
|
|
if(this.handleSelectionZzjgDate.length == 0){
|