|
@ -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) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
@ -280,7 +294,7 @@ const butttondata = (row) => { |
|
|
{ |
|
|
{ |
|
|
label: '生成标签', |
|
|
label: '生成标签', |
|
|
name: 'ssbq', |
|
|
name: 'ssbq', |
|
|
hide: isShowMainButton(row, ['3']), |
|
|
hide: isShowMainButtonLabel(row, ['3']), |
|
|
type: 'primary', |
|
|
type: 'primary', |
|
|
icon: '', |
|
|
icon: '', |
|
|
color: '', |
|
|
color: '', |
|
|