浏览代码

添加员工时,同时保存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 })