diff --git a/snowy-admin-web/src/components/Table/index.vue b/snowy-admin-web/src/components/Table/index.vue index 5dd5c0cc..db8b3c80 100644 --- a/snowy-admin-web/src/components/Table/index.vue +++ b/snowy-admin-web/src/components/Table/index.vue @@ -307,14 +307,6 @@ ) }) - // 绘制 清空 按钮 - const clearItem = - typeof this.alert === 'boolean' && this.alert - ? this.renderClear(this.clearSelected) - : typeof this.alert.clear === 'function' - ? this.renderClear(this.alert.clear) - : null - // 绘制 alert 组件 if (alert) { const showAlert = @@ -323,21 +315,28 @@ this.alert.show && typeof this.rowSelection.selectedRowKeys !== 'undefined') || this.alert - const message = ( -
- - 已选择:{' '} - - {this.rowSelection && this.rowSelection.selectedRowKeys - ? this.rowSelection.selectedRowKeys.length - : 0} - - - {needTotalItems} - {clearItem} -
- ) if (showAlert) { + // 绘制 清空 按钮 + const clearItem = + typeof this.alert === 'boolean' && this.alert + ? this.renderClear(this.clearSelected) + : this.alert.clear && typeof this.alert.clear === 'function' + ? this.renderClear(this.alert.clear) + : null + const message = ( +
+ + 已选择:{' '} + + {this.rowSelection && this.rowSelection.selectedRowKeys + ? this.rowSelection.selectedRowKeys.length + : 0} + + + {needTotalItems} + {clearItem} +
+ ) return } } diff --git a/snowy-admin-web/src/views/biz/dict/index.vue b/snowy-admin-web/src/views/biz/dict/index.vue index a550fb49..5bb23366 100644 --- a/snowy-admin-web/src/views/biz/dict/index.vue +++ b/snowy-admin-web/src/views/biz/dict/index.vue @@ -1,7 +1,7 @@ 查询 - + 重置 @@ -184,13 +184,10 @@ diff --git a/snowy-admin-web/src/views/biz/org/index.vue b/snowy-admin-web/src/views/biz/org/index.vue index 41f9aa27..072f0e89 100644 --- a/snowy-admin-web/src/views/biz/org/index.vue +++ b/snowy-admin-web/src/views/biz/org/index.vue @@ -1,7 +1,7 @@