fix 79807
This commit is contained in:
@@ -53,9 +53,16 @@
|
||||
{{ $t('export') }}
|
||||
</a-button>
|
||||
<!-- 批量删除-->
|
||||
<a-button type="primary" icon="delete" ghost @click="batchDel" v-has="'vehicleItemLibrary: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" v-has="'vehicleItemLibrary:PMSInfoSynchronization'">
|
||||
<a-button type="primary"
|
||||
icon="setting"
|
||||
ghost
|
||||
@click="handlePMSInfoSynchronization"
|
||||
v-has="'vehicleItemLibrary:PMSInfoSynchronization'">
|
||||
{{ $t('projectLibrary.vehicleItemLibrary.PMSInfoSynchronization') }}
|
||||
</a-button>
|
||||
</div>
|
||||
@@ -86,17 +93,19 @@
|
||||
<a-dropdown placement="bottomCenter">
|
||||
<a-icon type="more" class="operate-icon-btn operate-icon-more" />
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
|
||||
<a @click="operationClick(operation,record)">
|
||||
<div class="operate-btn">
|
||||
<!-- 编辑图标-->
|
||||
<i class="iconfont icon-bianji operate-btn-icon" v-if="operation.text === $t('edit')" />
|
||||
<!-- 删除图标-->
|
||||
<i class="iconfont icon-shanchu_ operate-btn-icon" v-if="operation.text === $t('delete')" />
|
||||
{{ operation.text }}
|
||||
</div>
|
||||
</a>
|
||||
</a-menu-item>
|
||||
<template v-for="(operation, index) in operationList.slice(operateMaxNum)">
|
||||
<a-menu-item :key="index" v-if="!operation.show || operation.show(record)">
|
||||
<a @click="operationClick(operation,record)">
|
||||
<div class="operate-btn">
|
||||
<!-- 编辑图标-->
|
||||
<i class="iconfont icon-bianji operate-btn-icon" v-if="operation.text === $t('edit')" />
|
||||
<!-- 删除图标-->
|
||||
<i class="iconfont icon-shanchu_ operate-btn-icon" v-if="operation.text === $t('delete')" />
|
||||
{{ operation.text }}
|
||||
</div>
|
||||
</a>
|
||||
</a-menu-item>
|
||||
</template>
|
||||
</a-menu>
|
||||
</a-dropdown>
|
||||
</template>
|
||||
@@ -114,6 +123,7 @@ import '@assets/less/common.less'
|
||||
import { JeroListMixin } from '../../../mixins/JeroListMixin.js'
|
||||
import JTable from '../../../components/jero/JTable.vue'
|
||||
import VehicleItemLibraryModal from './modules/VehicleItemLibraryModal.vue'
|
||||
import { ProjectSource } from '../../../enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'VehicleItemLibrary',
|
||||
@@ -175,7 +185,10 @@ export default {
|
||||
{
|
||||
text: this.$t('projectLibrary.vehicleItemLibrary.PMSDetails'),
|
||||
clickEvent: 'handlePMSDetail',
|
||||
has: 'vehicleItemLibrary:pmsDetail'
|
||||
has: 'vehicleItemLibrary:pmsDetail',
|
||||
show: (record) => {
|
||||
return record.projectSource === ProjectSource.PMS.value
|
||||
}
|
||||
},
|
||||
// 编辑
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user