1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

Add documentation for developer mode to change role (#871)

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-05-25 16:27:21 -04:00 committed by GitHub
parent 6b927bd88f
commit 822b2eba1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 76 additions and 0 deletions

View File

@ -35,3 +35,29 @@ En la versión de escritorio se hace clic sobre el icono de ADempiere "**AD**",
En la versión móvil se hace clic sobre el icono de ADempiere "**AD**", ubicado en la parte superior derecha de la ventana, para visualizar el menú que es desplegado por el mismo y seleccionar el rol en el campo "**Rol**".
<img :src="$withBase('/images/components/change-role/how-to-use-it-in-the-mobile-version.gif')" />
## Opciones para el Desarrollador
El panel de **Cambiar Rol** se encuentra en el icono a la derecha en la barra de navegacion.
```bash
└── src # Código fuente principal
└── views # Vistas
└── profile # Perfil
└── components # Componente
└── RolesNavbar # Barra de navegación de los Roles
```
Aquí puede ver un [Demo](https://demo-ui.erpya.com/#/7aa4242a-93c0-42d8-92be-8250002d3e3c/d97027fd-4cd5-445e-8fd8-ef5d3f7959b4/window/53418?tabParent=0&action=fa50908e-40f1-11e9-91a1-0242ac140002)
El llamado al consumo de servicio de **Cambiar Rol** se encuentra en la siguiente ruta:
```bash
└─ src # Código fuente principal
└─ api # Servicios globales
└─ role # Directorio principal de los servicios de roles
```
Los servicios llamados del componente son <br>
[GET /api/user/roles](https://adempiere.github.io/proxy-adempiere-api/guide/es/default-modules/adempiere-api/user.html#get-api-user-roles)<br>
[POST /api/user/change-role](https://adempiere.github.io/proxy-adempiere-api/guide/es/default-modules/adempiere-api/user.html#post-api-user-change-role)<br>

View File

@ -35,3 +35,28 @@ In the desktop version, click on the ADempiere icon "**AD**", located in the upp
In the mobile version, click on the ADempiere icon "**AD**", located in the upper right part of the window, to view the menu that is displayed and select the role in the field "**Role**".
<img :src="$withBase('/images/components/change-role/how-to-use-it-in-the-mobile-version.gif')" />
## Developer Options
The **Change Role** panel is located on the icon to the right in the navigation bar.
```bash
└── src # Main source code
└── views # Views
└── profile # Profile
└── components # Components
└── RolesNavbar # Navbar Roles
```
Here you can see a [Demo](https://demo-ui.erpya.com/#/7aa4242a-93c0-42d8-92be-8250002d3e3c/d97027fd-4cd5-445e-8fd8-ef5d3f7959b4/window/53418?tabParent=0&action=fa50908e-40f1-11e9-91a1-0242ac140002)
The **Change Role** service consumption call can be found in the following path:
```bash
└─ src # Main source code
└─ api # Global Services
└─ role # Main directory of role services
```
The services called from the component are <br>
[GET /api/user/roles](https://adempiere.github.io/proxy-adempiere-api/guide/default-modules/adempiere-api/user.html#get-api-user-roles)<br>
[POST /api/user/change-role](https://adempiere.github.io/proxy-adempiere-api/guide/default-modules/adempiere-api/user.html#post-api-user-change-role)<br>

View File

@ -35,3 +35,28 @@ ADempiere 自動執行角色更改,並更新視圖,以便僅顯示先前選
在移動版本中,單擊窗口右上方的 ADempiere 圖標 “**AD**”,以查看顯示的菜單並在 “**角色**” 字段中選擇角色。
<img :src="$withBase('/images/components/change-role/how-to-use-it-in-the-mobile-version.gif')" />
导航栏##开发者选项
**改变角色**面板位于导航栏中右侧的图标上。
```bash
└── src # 主要源代码
└── views # 观点
└── profile # 形象
└── components # 组成部分
└── RolesNavbar # 导航栏的作用
```
在这里你可以看到一个 [Demo](https://demo-ui.erpya.com/#/7aa4242a-93c0-42d8-92be-8250002d3e3c/d97027fd-4cd5-445e-8fd8-ef5d3f7959b4/window/53418?tabParent=0&action=fa50908e-40f1-11e9-91a1-0242ac140002)
在以下路径中可以找到**改变角色**的服务消费调用:
```bash
└─ src # 主要源代码
└─ api # 全球服务
└─ role # 角色服务的主要目录
```
从该组件中调用的服务有 <br>
[GET /api/user/roles](https://adempiere.github.io/proxy-adempiere-api/guide/default-modules/adempiere-api/user.html#get-api-user-roles)<br>
[POST /api/user/change-role](https://adempiere.github.io/proxy-adempiere-api/guide/default-modules/adempiere-api/user.html#post-api-user-change-role)<br>