迁移设备损耗品管理功能
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
:icon="btn.icon"
|
||||
:style="btn.cssStyle"
|
||||
:disabled="btn.needSelection && !selectedCount"
|
||||
:title="getToolbarDisabledTip(btn)"
|
||||
@click="btn.onClick"
|
||||
>
|
||||
{{ $t(btn.label) }}
|
||||
@@ -449,6 +450,11 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
getToolbarDisabledTip (btn) {
|
||||
if (!btn || !btn.needSelection || this.selectedCount) return ''
|
||||
return btn.disabledTip ? this.$t(btn.disabledTip) : ''
|
||||
},
|
||||
|
||||
/* ============ 分页事件 ============ */
|
||||
|
||||
onSizeChange (size) {
|
||||
|
||||
Reference in New Issue
Block a user