Browse Source

按钮不展示

master_hella_20240701
yufei0306 4 months ago
parent
commit
2011f278d3
  1. 13
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

13
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

@ -33,8 +33,8 @@
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
<template #action="{ row,$index }">
<ButtonBase :Butttondata="butttondata(row,$index)" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
@ -228,7 +228,14 @@ const buttonBaseClick = (val, item) => {
console.log('其他按钮', item)
}
}
//
const isShowMainButton = (row,val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
// -
const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1

Loading…
Cancel
Save