update 国内标准、车型项目库列表按钮权限,查询组件按钮权限
This commit is contained in:
@@ -32,7 +32,9 @@
|
||||
<a-col :md="6" :sm="8">
|
||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a-button type="primary" @click="searchReset" icon="reload" ghost>{{ $t('reset') }}</a-button>
|
||||
<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="'vehicleItemLibrary:search'">
|
||||
{{ $t('query') }}
|
||||
</a-button>
|
||||
</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -41,15 +43,19 @@
|
||||
|
||||
<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="'vehicleItemLibrary:add'">{{ $t('newlyAdded') }}</a-button>
|
||||
<!-- 导出-->
|
||||
<a-button icon="upload" type="primary" ghost @click="handleExportXls($t('projectLibrary.vehicleItemLibrary.vehicleItemLibrary'))">
|
||||
<a-button icon="upload"
|
||||
type="primary"
|
||||
ghost
|
||||
@click="handleExportXls($t('projectLibrary.vehicleItemLibrary.vehicleItemLibrary'))"
|
||||
v-has="'vehicleItemLibrary:export'">
|
||||
{{ $t('export') }}
|
||||
</a-button>
|
||||
<!-- 批量删除-->
|
||||
<a-button type="primary" icon="delete" ghost @click="batchDel">{{ $t('batchDelete') }}</a-button>
|
||||
<a-button type="primary" icon="delete" ghost @click="batchDel" v-has="'vehicleItemLibrary:batchDel'">{{ $t('batchDelete') }}</a-button>
|
||||
<!-- PMS信息同步-->
|
||||
<a-button type="primary" icon="setting" ghost @click="handlePMSInfoSynchronization">
|
||||
<a-button type="primary" icon="setting" ghost @click="handlePMSInfoSynchronization" v-has="'vehicleItemLibrary:PMSInfoSynchronization'">
|
||||
{{ $t('projectLibrary.vehicleItemLibrary.PMSInfoSynchronization') }}
|
||||
</a-button>
|
||||
</div>
|
||||
@@ -66,7 +72,6 @@
|
||||
@change="handleTableChange">
|
||||
|
||||
<template v-slot:operation="{text, record}">
|
||||
<!-- 收藏-->
|
||||
<a @click="operationClick(operationList[0],record)">{{ operationList[0].text }}</a>
|
||||
<a-divider type="vertical" />
|
||||
<a-dropdown placement="bottomCenter">
|
||||
@@ -130,7 +135,7 @@ export default {
|
||||
},
|
||||
// 项目负责人
|
||||
{
|
||||
dataIndex: 'projectLeader',
|
||||
dataIndex: 'nameWorkNo',
|
||||
title: this.$t('projectLibrary.vehicleItemLibrary.projectLeader'),
|
||||
width: 250
|
||||
},
|
||||
@@ -152,23 +157,26 @@ export default {
|
||||
// 查看
|
||||
{
|
||||
text: this.$t('view'),
|
||||
clickEvent: 'handleCollection',
|
||||
has: ''
|
||||
clickEvent: 'handleDetail',
|
||||
has: 'vehicleItemLibrary:detail'
|
||||
},
|
||||
// PMS详情
|
||||
{
|
||||
text: this.$t('projectLibrary.vehicleItemLibrary.PMSDetails'),
|
||||
clickEvent: 'handleShare',
|
||||
has: ''
|
||||
clickEvent: 'handlePMSDetail',
|
||||
has: 'vehicleItemLibrary:pmsDetail'
|
||||
},
|
||||
// 编辑
|
||||
{
|
||||
text: this.$t('edit'),
|
||||
clickEvent: 'handleEdit',
|
||||
has: ''
|
||||
has: 'vehicleItemLibrary:edit'
|
||||
},
|
||||
// 删除
|
||||
{
|
||||
text: this.$t('delete'),
|
||||
clickEvent: 'handleDelete',
|
||||
has: ''
|
||||
has: 'vehicleItemLibrary:delete'
|
||||
}
|
||||
],
|
||||
needFilterTableBtn: true, // 是否需要过滤表格操作列没有权限的按钮
|
||||
@@ -191,6 +199,9 @@ export default {
|
||||
this[operation.clickEvent](record)
|
||||
}
|
||||
},
|
||||
handleDetail () {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<!--项目负责人-->
|
||||
<a-col :span="12">
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('projectLibrary.vehicleItemLibrary.projectLeader')">
|
||||
<user-selection v-decorator="['projectLeader', validatorRules.projectLeader]"
|
||||
<user-selection v-decorator="['projectLeader', validatorRules.projectLeader]" :name-str="model.nameWorkNo"
|
||||
:placeholder="$t('pleaseSelect') + $t('projectLibrary.vehicleItemLibrary.projectLeader')" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
Reference in New Issue
Block a user