Browse Source

角色bug

whj 4 năm trước cách đây
mục cha
commit
f23be627ab
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      resources/views/admin/project-user-roles/create.blade.php

+ 1 - 1
resources/views/admin/project-user-roles/create.blade.php

xqd
@@ -60,7 +60,7 @@
                     console.log(project_id)
                     let options = '';
                     if(project_id == 1){
-                        options = '<option value="6" selected>' +  roleList[5].name + '</option>'
+                        options = '<option value="6" selected>领导账号</option>'
                     } else {
                         for(let i = 0; i < roleList.length; ++i) {
                             options += '<option value=' + parseInt(roleList[i].id) + (parseInt(roleList[i].id) === parseInt(project_id) ? ' selected' : '') + '>' + roleList[i].name + '</option>'