travel/service/public/static/js/chunk-f0c16dc4.0504a557.js

1 line
14 KiB
JavaScript
Raw Normal View History

2024-10-22 10:52:29 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f0c16dc4"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var o=r(),l=e-o,s=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=s;var r=Math.easeInOutQuad(c,o,l,t);i(r),c<t?n(e):a&&"function"===typeof a&&a()};u()}},"2cbf":function(e,t,a){"use strict";a("73e0")},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},i=[],r=(a("a9e3"),a("09f4")),o={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(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(r["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},l=o,s=(a("2cbf"),a("2877")),c=Object(s["a"])(l,n,i,!1,null,"6af373ef",null);t["a"]=c.exports},"50fc":function(e,t,a){"use strict";a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return r})),a.d(t,"f",(function(){return o})),a.d(t,"g",(function(){return l})),a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return c})),a.d(t,"c",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"h",(function(){return p}));a("99af");var n=a("b775");function i(){return Object(n["a"])({url:"admin/products/list",method:"get"})}function r(e){return Object(n["a"])({url:"/admin/products/add",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/admin/products/list?page=".concat(e.page,"&limit=").concat(e.limit),method:"get"})}function l(e){return Object(n["a"])({url:"/admin/products/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/admin/products/productschedules?id=".concat(e),method:"get"})}function c(e){return Object(n["a"])({url:"/admin/products/addproductschedules",method:"post",data:e})}function u(){return Object(n["a"])({url:"/admin/setting/getContractSetting",method:"get"})}function d(e){return Object(n["a"])({url:"/admin/setting/savecontractsetting",method:"post",data:e})}function p(){return Object(n["a"])({url:"/admin/setting/getContractSetting",method:"get"})}},"73e0":function(e,t,a){},"7d12":function(e,t,a){"use strict";a("9098")},9098:function(e,t,a){},bf50:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px","margin-right":"10px"},attrs:{placeholder:"用户名"},m