|
|
@@ -47,11 +47,16 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
|
- <a :href="performance.prev_page_url" class="btn btn-sm" :class="performance.current_page === 1 ?'':'btn-outline-primary'"
|
|
|
- :disabled="performance.current_page === 1">上一页</a>
|
|
|
- <a :href="performance.next_page_url" class="btn btn-sm"
|
|
|
- :class="performance.current_page === performance.last_page ?'':'btn-outline-primary'"
|
|
|
- :disabled="performance.current_page === performance.lastPage">下一页</a>
|
|
|
+
|
|
|
+ <button class="btn btn-sm" :class="performance.current_page <= 1 ?'':'btn-outline-primary'"
|
|
|
+ @click="goPage(performance.current_page - 1)"
|
|
|
+ :disabled="performance.from === 1">上一页
|
|
|
+ </button>
|
|
|
+ <button class="btn btn-sm"
|
|
|
+ @click="goPage(performance.current_page + 1)"
|
|
|
+ :class="performance.current_page === performance.last_page ?'':'btn-outline-primary'"
|
|
|
+ :disabled="performance.current_page === performance.last_page">下一页
|
|
|
+ </button>
|
|
|
<input @keyup.enter="pageTurning($event)" class="form-control-sm ml-3 tooltipTarget"
|
|
|
:placeholder="'当前页数:'+performance.current_page+'/'+performance.last_page" title="去往指定页">
|
|
|
<span class="text-muted m-1">共 @{{performance.total}} 条 </span>
|
|
|
@@ -71,12 +76,12 @@
|
|
|
timeFrame:'{{$options['timeFrame']}}',
|
|
|
create_start:'{{$options['create_start']}}',
|
|
|
create_end:'{{$options['create_end']}}',
|
|
|
-
|
|
|
},
|
|
|
checkData:[],
|
|
|
},
|
|
|
mounted:function(){
|
|
|
$('#performance_div').removeClass("d-none");
|
|
|
+ console.log(this.performance);
|
|
|
let data =[
|
|
|
[{name:'create_start',type:'dateTime',tip:'统计时段开始',placeholder:'统计时段开始',killings:['timeFrame']},
|
|
|
{name:'create_end',type:'dateTime',tip:'统计时段结束',placeholder:'统计时段结束',killings:['timeFrame']},
|
|
|
@@ -92,15 +97,9 @@
|
|
|
queryForm.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- pageTurning(e){
|
|
|
- let page = $(e.target).val();
|
|
|
- if(page){
|
|
|
- window.location = this.performance.path+'?page='+page;
|
|
|
- }
|
|
|
- },
|
|
|
exportAll:function(){
|
|
|
let search = '?timeFrame='+this.option.timeFrame+'&create_start='+this.option.create_start+'&create_end='+this.option.create_end;
|
|
|
- let url = '{{url('orderIssuePerformance/export')}}'+search;
|
|
|
+ let url = '{{url('order/issue/orderIssuePerformance/export')}}'+search;
|
|
|
let token='{{ csrf_token() }}';
|
|
|
excelExport(false,'',url,null,token);
|
|
|
},
|
|
|
@@ -115,6 +114,25 @@
|
|
|
this.checkData = [];
|
|
|
}
|
|
|
},
|
|
|
+ pageTurning(e){
|
|
|
+ let page = $(e.target).val();
|
|
|
+ if (page > this.performance.last_page) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.goPage(page);
|
|
|
+ },
|
|
|
+ goPage(page){
|
|
|
+ let href = window.location.href;
|
|
|
+ if(href.indexOf('?')==-1){
|
|
|
+ href+='?'
|
|
|
+ }
|
|
|
+ if(href.indexOf('page=')!==-1){
|
|
|
+ href = href.replace('page='+this.performance.current_page,'page='+page);
|
|
|
+ }else{
|
|
|
+ href+='&page='+page;
|
|
|
+ }
|
|
|
+ window.location = href;
|
|
|
+ }
|
|
|
},
|
|
|
});
|
|
|
</script>
|