From 5594026bfd6fceee5cbd534b84b1545b92e00171 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Sat, 8 Oct 2022 22:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=8F=B3=E9=94=AE=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=A4=A7=E9=83=A8=E5=88=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/auto_pt/downloading.html | 33 ++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/templates/auto_pt/downloading.html b/templates/auto_pt/downloading.html index 0df481a..d21e1eb 100644 --- a/templates/auto_pt/downloading.html +++ b/templates/auto_pt/downloading.html @@ -181,6 +181,7 @@ :mouse-config="{selected: true}" :row-config="{isCurrent: true, isHover: true, keyField: 'hash'}" :checkbox-config="{trigger: 'row', highlight: true, range: true, reserve: true}" + :sort-config="{trigger: 'cell', orders: ['desc', 'asc', null]}" highlight-current-row style="width: 100%"> @@ -468,8 +469,8 @@ prefixIcon: 'vxe-icon-sort', children: [ {code: 'clearSort', name: '清除排序', prefixIcon: 'vxe-icon-undo'}, - {code: 'sortAsc', name: '升序', prefixIcon: 'vxe-icon-sort-alpha-asc'}, - {code: 'sortDesc', name: '倒序', prefixIcon: 'vxe-icon-sort-alpha-desc'} + {#{code: 'sortAsc', name: '升序', prefixIcon: 'vxe-icon-sort-alpha-asc'},#} + {#{code: 'sortDesc', name: '倒序', prefixIcon: 'vxe-icon-sort-alpha-desc'}#} ] }, { @@ -483,6 +484,19 @@ prefixIcon: 'vxe-icon-square-checked' } ] + }, + { + code: 'clearCheckboxRow', + name: '清除选中', + prefixIcon: 'vxe-icon-funnel', + {#children: [#} + {# {code: 'clearCheckboxRow', name: '清除选中', prefixIcon: 'vxe-icon-funnel-clear'},#} + {#{#} + {# code: 'setAllCheckboxRow',#} + {# name: '全选',#} + {# prefixIcon: 'vxe-icon-square-checked'#} + //} + {#]#} } ], ] @@ -844,6 +858,21 @@ break case 'categoryForm': this.categoryForm = true + break + case 'clearSort': + this.table.clearSort() + break + case 'clearFilter': + this.table.clearFilter() + break + case 'clearCheckboxRow': + this.table.clearCheckboxRow() + break + case 'setAllCheckboxRow': + this.table.setAllCheckboxRow(true) + break + case 'filterSelect': + break default: VXETable.modal.message(`点击了 ${menu.name} 选项,该功能尚未开发完成!`)