fix 79807

This commit is contained in:
赵霄
2023-12-27 10:52:41 +08:00
parent ef56ba9be7
commit 9a2b0a4d17
@@ -53,9 +53,16 @@
{{ $t('export') }} {{ $t('export') }}
</a-button> </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信息同步--> <!-- 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') }} {{ $t('projectLibrary.vehicleItemLibrary.PMSInfoSynchronization') }}
</a-button> </a-button>
</div> </div>
@@ -86,17 +93,19 @@
<a-dropdown placement="bottomCenter"> <a-dropdown placement="bottomCenter">
<a-icon type="more" class="operate-icon-btn operate-icon-more" /> <a-icon type="more" class="operate-icon-btn operate-icon-more" />
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index"> <template v-for="(operation, index) in operationList.slice(operateMaxNum)">
<a @click="operationClick(operation,record)"> <a-menu-item :key="index" v-if="!operation.show || operation.show(record)">
<div class="operate-btn"> <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-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 }} <i class="iconfont icon-shanchu_ operate-btn-icon" v-if="operation.text === $t('delete')" />
</div> {{ operation.text }}
</a> </div>
</a-menu-item> </a>
</a-menu-item>
</template>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
</template> </template>
@@ -114,6 +123,7 @@ import '@assets/less/common.less'
import { JeroListMixin } from '../../../mixins/JeroListMixin.js' import { JeroListMixin } from '../../../mixins/JeroListMixin.js'
import JTable from '../../../components/jero/JTable.vue' import JTable from '../../../components/jero/JTable.vue'
import VehicleItemLibraryModal from './modules/VehicleItemLibraryModal.vue' import VehicleItemLibraryModal from './modules/VehicleItemLibraryModal.vue'
import { ProjectSource } from '../../../enums/commonEnums'
export default { export default {
name: 'VehicleItemLibrary', name: 'VehicleItemLibrary',
@@ -175,7 +185,10 @@ export default {
{ {
text: this.$t('projectLibrary.vehicleItemLibrary.PMSDetails'), text: this.$t('projectLibrary.vehicleItemLibrary.PMSDetails'),
clickEvent: 'handlePMSDetail', clickEvent: 'handlePMSDetail',
has: 'vehicleItemLibrary:pmsDetail' has: 'vehicleItemLibrary:pmsDetail',
show: (record) => {
return record.projectSource === ProjectSource.PMS.value
}
}, },
// 编辑 // 编辑
{ {