File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
web/public/js/components/iplist Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,29 @@ Vue.component("ip-list-table", {
104104 return Math . ceil ( seconds / 3600 ) + "小时"
105105 }
106106 return Math . ceil ( seconds / 86400 ) + "天"
107+ } ,
108+ cancelChecked : function ( ) {
109+ this . hasSelectedItems = false
110+ this . selectedAll = false
111+
112+ let boxes = this . $refs . itemCheckBox
113+ if ( boxes == null ) {
114+ return
115+ }
116+ boxes . forEach ( function ( box ) {
117+ box . checked = false
118+ } )
107119 }
108120 } ,
109121 template : `<div>
110122 <div v-show="hasSelectedItems">
123+ <div class="ui divider"></div>
111124 <button class="ui button basic" type="button" @click.prevent="deleteAll">批量删除所选</button>
112125
113126 <button class="ui button basic" type="button" @click.prevent="deleteCount" v-if="vTotal != null && vTotal >= MaxDeletes">批量删除{{MaxDeletes}}个</button>
127+
128+
129+ <button class="ui button basic" type="button" @click.prevent="cancelChecked">取消选中</button>
114130</div>
115131 <table class="ui table selectable celled" v-if="items.length > 0">
116132 <thead>
You can’t perform that action at this time.
0 commit comments