소스 검색

添加员工时,同时保存roleName

wennn 2 년 전
부모
커밋
962537589a
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/ncs-clerk/components/clerkList.vue

+ 1 - 0
src/views/ncs-clerk/components/clerkList.vue

@@ -592,6 +592,7 @@ export default {
           if (this.imageUrl) {
             params.face = this.imageUrl
           }
+          params.role_name = this.rolesOptions.filter( p => p.role_id === params.role_id)[0].role_name
           if (params.member_id) {
             if (this.roleZzId === params.role_id) {
               const addIds = this.newCheckList.filter(function(val) { return _this.oldCheckList.indexOf(val) === -1 })