Browse Source

修改 角色默认值

java8
赵宏斌 2 months ago
parent
commit
ce80b464ad
  1. 12
      src/views/modules/eam/eamFeedBack.vue

12
src/views/modules/eam/eamFeedBack.vue

@ -1877,7 +1877,13 @@
this.operatorData.bu = this.saveModalData.bu
this.$set(this.operatorData,'date',this.saveModalData.defectDate)
if (this.roleList.length > 0) {
let filterList = this.roleList.filter(item => item.roleName === '机修人员')
let roleName
if (this.saveModalData.repairType == '设备维修组'){
roleName = '机修'
} else {
roleName = '换线组'
}
let filterList = this.roleList.filter(item => item.roleName === roleName)
if (filterList.length > 0) {
this.operatorData.roleId = filterList[0].roleId
} else {
@ -1886,9 +1892,9 @@
} else {
this.operatorData.roleId = ''
}
//
//
this.$set(this.operatorData,'classesCode','')
//bu
// bu
await this.getClassesList()
//
await getOperatorListByOrder(this.operatorData).then(({data}) => {

Loading…
Cancel
Save