[update] 任务转交模块增加按钮权限
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<div style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
<div style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px">{{ $t('query') }}</a-button>
|
<a-button type="primary" @click="searchQuery" icon="search" v-has="'taskCareOf:basicInfo:search'" style="margin-left: 8px">{{ $t('query') }}</a-button>
|
||||||
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
<!-- 操作区域 -->
|
<!-- 操作区域 -->
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<!-- 转交 -->
|
<!-- 转交 -->
|
||||||
<a-button icon="arrow-up" type="primary" ghost @click="handleTransfer">
|
<a-button icon="arrow-up" type="primary" ghost @click="handleTransfer" v-has="'taskCareOf:basicInfo:batchTransfer'">
|
||||||
{{ $t('personalCenter.taskCareOf.transfer') }}
|
{{ $t('personalCenter.taskCareOf.transfer') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -82,6 +82,7 @@ import {
|
|||||||
basicInfoTransfer,
|
basicInfoTransfer,
|
||||||
basicInfoBatchTransfer
|
basicInfoBatchTransfer
|
||||||
} from '@/api/personCenter'
|
} from '@/api/personCenter'
|
||||||
|
import { isHasPermission } from '../../../../utils/hasPermission'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BasicLibraryInfo',
|
name: 'BasicLibraryInfo',
|
||||||
@@ -99,6 +100,11 @@ export default {
|
|||||||
return `calc(100vh - ${this.defaultHeight['user-info-height']} - ${this.defaultHeight['breadcrumb-height']} - ${this.defaultHeight.oneLineSearchHeight} - ${this.defaultHeight.oneLineOperationHeight} - 48px - 48px - 54px - ${this.isBackTitle ? '56px' : '0px'} - 64px)`
|
return `calc(100vh - ${this.defaultHeight['user-info-height']} - ${this.defaultHeight['breadcrumb-height']} - ${this.defaultHeight.oneLineSearchHeight} - ${this.defaultHeight.oneLineOperationHeight} - 48px - 48px - 54px - ${this.isBackTitle ? '56px' : '0px'} - 64px)`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted () {
|
||||||
|
if (!isHasPermission('taskCareOf:basicInfo:transfer')) {
|
||||||
|
this.columns.pop()
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
labelCol: {
|
labelCol: {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
{{ toggleSearchStatus ? $t('putAway') : $t('open') }}
|
{{ toggleSearchStatus ? $t('putAway') : $t('open') }}
|
||||||
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||||
</a>
|
</a>
|
||||||
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px">{{ $t('query') }}</a-button>
|
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px" v-has="'taskCareOf:processInfo:search'">{{ $t('query') }}</a-button>
|
||||||
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<!-- 操作区域 -->
|
<!-- 操作区域 -->
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<!-- 转交 -->
|
<!-- 转交 -->
|
||||||
<a-button icon="arrow-up" type="primary" ghost @click="handleTransfer">
|
<a-button icon="arrow-up" type="primary" ghost @click="handleTransfer" v-has="'taskCareOf:processInfo:batchTransfer'">
|
||||||
{{ $t('personalCenter.taskCareOf.transfer') }}
|
{{ $t('personalCenter.taskCareOf.transfer') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -84,6 +84,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|||||||
import { processInfoTransfer, processInfoBatchTransfer } from '../../../../api/personCenter'
|
import { processInfoTransfer, processInfoBatchTransfer } from '../../../../api/personCenter'
|
||||||
import UserSelectModal from '@/components/selection/UserSelectModal'
|
import UserSelectModal from '@/components/selection/UserSelectModal'
|
||||||
import UserSelection from '@/components/selection/UserSelection'
|
import UserSelection from '@/components/selection/UserSelection'
|
||||||
|
import { isHasPermission } from '../../../../utils/hasPermission'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ProcessInfo',
|
name: 'ProcessInfo',
|
||||||
@@ -101,6 +102,11 @@ export default {
|
|||||||
return `calc(100vh - ${this.defaultHeight['user-info-height']} - ${this.defaultHeight['breadcrumb-height']} - ${this.defaultHeight.oneLineSearchHeight} - ${this.defaultHeight.oneLineOperationHeight} - 48px - 48px - 54px - ${this.isBackTitle ? '56px' : '0px'} - 64px - 56px)`
|
return `calc(100vh - ${this.defaultHeight['user-info-height']} - ${this.defaultHeight['breadcrumb-height']} - ${this.defaultHeight.oneLineSearchHeight} - ${this.defaultHeight.oneLineOperationHeight} - 48px - 48px - 54px - ${this.isBackTitle ? '56px' : '0px'} - 64px - 56px)`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted () {
|
||||||
|
if (!isHasPermission('taskCareOf:processInfo:transfer')) {
|
||||||
|
this.columns.pop()
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
labelCol: {
|
labelCol: {
|
||||||
|
|||||||
Reference in New Issue
Block a user