withdraw permission
This commit is contained in:
@@ -359,7 +359,7 @@
|
|||||||
:exact="false"
|
:exact="false"
|
||||||
/>
|
/>
|
||||||
<CSidebarNavItem
|
<CSidebarNavItem
|
||||||
v-if="hasPermission('AdminGpsWithdrawList')"
|
v-if="hasPermission('admin-gps-withdraw')"
|
||||||
name="درخواست های برداشت"
|
name="درخواست های برداشت"
|
||||||
:to="{ name: 'admin-gps-withdraw', query: { filter: 'all' } }"
|
:to="{ name: 'admin-gps-withdraw', query: { filter: 'all' } }"
|
||||||
font-icon="fal fa-credit-card"
|
font-icon="fal fa-credit-card"
|
||||||
|
|||||||
@@ -163,7 +163,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'AdminGpsWithdrawList',
|
name: 'AdminGpsWithdraw',
|
||||||
layout: 'admin',
|
layout: 'admin',
|
||||||
async asyncData({ $axios, error, query }) {
|
async asyncData({ $axios, error, query }) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -121,6 +121,6 @@ module.exports = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'درخواست برداشت نصاب',
|
name: 'درخواست برداشت نصاب',
|
||||||
value: 'AdminGpsWithdrawList'
|
value: 'admin-gps-withdraw'
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ router.get('/gps/award-request/:id', hasPermission('gps'), awardRequest.findOne)
|
|||||||
router.put('/gps/award-request/:id', hasPermission('gps'), awardRequest.update)
|
router.put('/gps/award-request/:id', hasPermission('gps'), awardRequest.update)
|
||||||
|
|
||||||
/// ////////////// Withdraw
|
/// ////////////// Withdraw
|
||||||
router.get('/gps/withdraw', hasPermission('AdminGpsWithdrawList'), withdraw.getAllForAdmin)
|
router.get('/gps/withdraw', hasPermission('admin-gps-withdraw'), withdraw.getAllForAdmin)
|
||||||
router.patch('/gps/withdraw/:id/:type', hasPermission('AdminGpsWithdrawList'), withdraw.updateReq)
|
router.patch('/gps/withdraw/:id/:type', hasPermission('admin-gps-withdraw'), withdraw.updateReq)
|
||||||
|
|
||||||
/// ////////////// Installed device
|
/// ////////////// Installed device
|
||||||
router.patch('/gps/register-device/:id/:type', installedDevice.updateInstalled)
|
router.patch('/gps/register-device/:id/:type', installedDevice.updateInstalled)
|
||||||
|
|||||||
Reference in New Issue
Block a user