[update] 绑定零部件增加按钮权限
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
{{ toggleSearchStatus ? $t('putAway') : $t('open') }}
|
||||
<a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
|
||||
</a>
|
||||
<a-button type="primary" @click="searchQuery" icon="search">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" @click="searchQuery" icon="search" v-has="'sys:bindingPart:search'">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||
</div>
|
||||
|
||||
@@ -63,9 +63,9 @@
|
||||
|
||||
<div class="table-operator">
|
||||
<!-- 新增 -->
|
||||
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
||||
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'sys:bindingPart:add'">{{ $t('newlyAdded') }}</a-button>
|
||||
<!-- 批量删除 -->
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel">{{ $t('batchDelete') }}</a-button>
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel" v-has="'sys:bindingPart:batchDel'">{{ $t('batchDelete') }}</a-button>
|
||||
<!-- 使用绑定关系 -->
|
||||
<!--<a-button icon="setting" type="primary" ghost @click="useBindingRelationship">{{ $t('system.bindingParts.useBindingRelationship') }}</a-button>-->
|
||||
</div>
|
||||
@@ -103,9 +103,9 @@
|
||||
</template>
|
||||
|
||||
<template v-slot:action="{text, record}">
|
||||
<a @click="handleEdit(record)">{{ $t('edit') }}</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="handleDelete(record.id)">{{ $t('delete') }}</a>
|
||||
<a @click="handleEdit(record)" v-has="'sys:bindingPart:edit'">{{ $t('edit') }}</a>
|
||||
<a-divider type="vertical" v-if="isHasPermission('sys:bindingPart:edit') && isHasPermission('sys:bindingPart:delete')" />
|
||||
<a @click="handleDelete(record.id)" v-has="'sys:bindingPart:delete'">{{ $t('delete') }}</a>
|
||||
</template>
|
||||
|
||||
</j-table>
|
||||
@@ -122,6 +122,7 @@ import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||
import JTable from '../../../components/jero/JTable'
|
||||
import BingingPartsModal from './modules/BingingPartsModal'
|
||||
import ClauseModal from './modules/ClauseModal'
|
||||
import { isHasPermission } from '../../../utils/hasPermission'
|
||||
// import { postAction } from '../../../api/manage'
|
||||
|
||||
export default {
|
||||
@@ -197,6 +198,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isHasPermission,
|
||||
// 使用绑定关系
|
||||
useBindingRelationship () {
|
||||
// if (this.selectedRowKeys.length <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user