|
@@ -376,18 +376,17 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// getCheckedNodes()
|
|
// getCheckedNodes()
|
|
|
|
|
|
- a() {
|
|
|
|
- console.log(this.personnel.position)
|
|
|
|
|
|
+ // a() {
|
|
|
|
+ // console.log(this.personnel.position)
|
|
|
|
|
|
- },
|
|
|
|
- b() {
|
|
|
|
- console.log(this.name)
|
|
|
|
- this.personnel.departmentIds=[]
|
|
|
|
- this.name.forEach(item => {
|
|
|
|
- this.personnel.departmentIds.push(item[item.length-1])
|
|
|
|
- })
|
|
|
|
- // console.log(this.personnel)
|
|
|
|
- },
|
|
|
|
|
|
+ // },
|
|
|
|
+ // b() {
|
|
|
|
+ // console.log(this.name)
|
|
|
|
+ // this.personnel.departmentIds=[]
|
|
|
|
+ // this.name.forEach(item => {
|
|
|
|
+ // this.personnel.departmentIds.push(item[item.length-1])
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
getPremissData(id, name, data) {
|
|
getPremissData(id, name, data) {
|
|
// console.log(id, name, data)
|
|
// console.log(id, name, data)
|
|
this.pdata = {
|
|
this.pdata = {
|
|
@@ -500,7 +499,7 @@ export default {
|
|
handleSelectionChange(val) {
|
|
handleSelectionChange(val) {
|
|
// console.log(val,this.$refs.multipleTable.selection)
|
|
// console.log(val,this.$refs.multipleTable.selection)
|
|
this.multipleSelection = val;
|
|
this.multipleSelection = val;
|
|
- console.log(val)
|
|
|
|
|
|
+ // console.log(val)
|
|
},
|
|
},
|
|
normalizer(node) {
|
|
normalizer(node) {
|
|
return {
|
|
return {
|
|
@@ -586,13 +585,13 @@ export default {
|
|
getclient() {
|
|
getclient() {
|
|
this.$api.getAllDepartmentList().then(response => {
|
|
this.$api.getAllDepartmentList().then(response => {
|
|
this.department = response.data
|
|
this.department = response.data
|
|
- console.log(this.department)
|
|
|
|
|
|
+ // console.log(this.department)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getPositionList() {
|
|
getPositionList() {
|
|
this.$api.getAllPositionList().then(response => {
|
|
this.$api.getAllPositionList().then(response => {
|
|
this.positionList = response.data
|
|
this.positionList = response.data
|
|
- console.log(this.positionList)
|
|
|
|
|
|
+ // console.log(this.positionList)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
@@ -651,7 +650,7 @@ export default {
|
|
})
|
|
})
|
|
this.$api.getPersonnelList(this.personnel).then(response => {
|
|
this.$api.getPersonnelList(this.personnel).then(response => {
|
|
this.personnelTableData = response.data
|
|
this.personnelTableData = response.data
|
|
- console.log(response)
|
|
|
|
|
|
+ // console.log(response)
|
|
this.personnelTotal = response.pageColumn.total
|
|
this.personnelTotal = response.pageColumn.total
|
|
this.load = false
|
|
this.load = false
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
@@ -687,15 +686,15 @@ export default {
|
|
closeDrawer() {
|
|
closeDrawer() {
|
|
this.drawer = false
|
|
this.drawer = false
|
|
this.multipleSelection = ''
|
|
this.multipleSelection = ''
|
|
- console.log(this.distributionParam)
|
|
|
|
- console.log(this.multipleSelection)
|
|
|
|
|
|
+ // console.log(this.distributionParam)
|
|
|
|
+ // console.log(this.multipleSelection)
|
|
},
|
|
},
|
|
addRolePersonnelBatch() {
|
|
addRolePersonnelBatch() {
|
|
this.distributionParam.personnelIds = []
|
|
this.distributionParam.personnelIds = []
|
|
this.multipleSelection.forEach(item => {
|
|
this.multipleSelection.forEach(item => {
|
|
this.distributionParam.personnelIds.push(item.id)
|
|
this.distributionParam.personnelIds.push(item.id)
|
|
})
|
|
})
|
|
- console.log(this.distributionParam)
|
|
|
|
|
|
+ // console.log(this.distributionParam)
|
|
this.$api.addRolePersonnelBatch(this.distributionParam).then(response => {
|
|
this.$api.addRolePersonnelBatch(this.distributionParam).then(response => {
|
|
})
|
|
})
|
|
}
|
|
}
|