|
|
@ -264,6 +264,20 @@ const isShowMainButton = (row, val) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButtonLabel = (row, val) => { |
|
|
|
if (val.indexOf(row.status) > -1) { |
|
|
|
if(row.labelStatus == '2'){ |
|
|
|
return true |
|
|
|
}else{ |
|
|
|
return false |
|
|
|
} |
|
|
|
} else { |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
@ -280,7 +294,7 @@ const butttondata = (row) => { |
|
|
|
{ |
|
|
|
label: '生成标签', |
|
|
|
name: 'ssbq', |
|
|
|
hide: isShowMainButton(row, ['3']), |
|
|
|
hide: isShowMainButtonLabel(row, ['3']), |
|
|
|
type: 'primary', |
|
|
|
icon: '', |
|
|
|
color: '', |
|
|
|