travel/service/public/static/js/chunk-a672369a.9317351f.js

1 line
7.3 KiB
JavaScript
Raw Normal View History

2024-07-02 16:15:03 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a672369a"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var l=r(),o=t-l,s=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=s;var r=Math.easeInOutQuad(u,l,o,e);i(r),u<e?n(t):a&&"function"===typeof a&&a()};c()}},"67f2":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},i=[],r=(a("a9e3"),a("09f4")),l={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(r["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},o=l,s=(a("7d30"),a("2877")),u=Object(s["a"])(o,n,i,!1,null,"28fdfbeb",null);e["a"]=u.exports},"7a17":function(t,e,a){},"7d30":function(t,e,a){"use strict";a("7a17")},a25c:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"产品名称"},model:{value:t.listQuery.product_name,callback:function(e){t.$set(t.listQuery,"product_name",e)},expression:"listQuery.product_name"}}),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"平台状态"},model:{value:t.listQuery.os_status,callback:function(e){t.$set(t.listQuery,"os_status",e)},expression:"listQuery.os_status"}},t._l(t.os_arr,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.getList}},[t._v(" 搜索 ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.list,border:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"产品名称",width:"260",prop:"product_name"}}),a("el-table-column",{attrs:{align:"center",label:"平台",width:"80",prop:"os"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.os?a("el-tag",{attrs:{type:"warning"}},[t._v("美团")]):t._e(),2===e.row.os?a("el-tag",{attrs:{type:"success"}},[t._v("快手")]):t._e(),3===e.row.os?a("el-tag",{attrs:{type:"primary"}},[t._v("抖音")]):t._e()]}}])}),a("el-table-column",{attrs:{align:"center",label:"订单数",width:"80",prop:"all"}}),a("el-