Browse Source

SBBJ-895固定资产没有照片查看,只能在编辑中查看

master
zhaoyiran 2 weeks ago
parent
commit
a40acba00a
  1. 13
      src/views/eam/basic/fixedAssets/index.vue

13
src/views/eam/basic/fixedAssets/index.vue

@ -36,7 +36,7 @@
<ButtonBase v-if="row.filePathList != null && row.filePathList.length != 0" :Butttondata="butttondataView(row)" @button-base-click="buttonTableClick($event, row)" />
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
@ -152,10 +152,13 @@ const buttonBaseClick = (val, item) => {
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:fixed-assets:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:fixed-assets:delete'}), //
]
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({hasPermi:'eam:fixed-assets:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:fixed-assets:delete'}), //
defaultButtons.viewBtn({ hide: !(row.filePathList != null && row.filePathList.length != 0) })
]
}
// -
const buttonTableClick = async (val, row) => {

Loading…
Cancel
Save