mt-ck-wms-ui/dist/static/js/chunk-6de8d2c1.2e7feae7.js

1 line
4.8 KiB
JavaScript
Raw Normal View History

2022-06-07 10:43:58 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6de8d2c1"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var n=a("2b0b"),i=a.n(n);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 o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){i()(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function c(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,a){var n=c(),i=t-n,s=20,u=0;e="undefined"===typeof e?500:e;var d=function t(){u+=s;var c=Math.easeInOutQuad(u,n,i,e);r(c),u<e?o(t):a&&"function"===typeof a&&a()};d()}},1:function(t,e){},2:function(t,e){},8425:function(t,e,a){},"93eb":function(t,e,a){"use strict";a.d(e,"e",(function(){return i})),a.d(e,"d",(function(){return o})),a.d(e,"f",(function(){return r})),a.d(e,"a",(function(){return c})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return u}));var n=a("b775");function i(t){return Object(n["a"])({url:"/api/wms/area/page",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/api/wms/area/getById",method:"post",data:{id:t}})}function r(t){return Object(n["a"])({url:"/api/wms/area/update",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/api/wms/area/add",method:"post",data:t})}function s(){return Object(n["a"])({url:"/api/wms/area/getCode",method:"post"})}function u(t){return Object(n["a"])({url:"/api/wms/area/delete",method:"post",data:{id:t}})}},e1f8: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("head-form",{attrs:{"placeholder-name":t.placeholderName,"key-name":t.keyName},on:{getDataList:t.getList,add:t.addNew}}),t._v(" "),a("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}},[a("method-btn",{attrs:{slot:"handleBtn",width:t.trueWidth,"method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"})],1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.current,limit:t.listQuery.size},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}})],1)},i=[],o=(a("7f7f"),a("a3e3")),r=a.n(o),c=a("3393"),s=a.n(c),u=a("9923"),d=a("93eb"),l=a("bb1e"),m=a("c0ee"),f=a("333d"),h=a("ebe9"),p=a("8975"),b=[{type:"edit",btnName:"btn.edit"},{type:"delete",btnName:"btn.delete"},{type:"detail",btnName:"btn.detail"}],g=[{prop:"createTime",label:u["a"].t("module.basicData.factory.createTime"),filter:p["timeFormatter"],align:"center"},{prop:"tareaName",label:u["a"].t("module.basicData.cache.CacheName"),align:"center"},{prop:"code",label:u["a"].t("module.basicData.cache.CacheCode"),align:"center"},{prop:"enName",label:u["a"].t("module.basicData.visual.EnglishName"),align:"center"}],y={name:"Cache",components:{Pagination:f["a"],BaseTable:m["a"],MethodBtn:h["a"],HeadForm:l["a"]},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{keyName:u["a"].t("module.basicData.visual.keyword"),placeholderName:this.$t("module.basicData.cache.CacheName")+this.$t("module.basicData.visual.Or")+this.$t("module.basicData.cache.CacheCode"),tableBtn:b,trueWidth:240,tableProps:g,list:[],total:0,listLoading:!0,listQuery:{current:1,size:10}}},created:function(){this.getList()},methods:{handleClick:function(t){var e,a=this;"delete"===t.type?this.$confirm(r()(e="".concat(this.$t("module.basicData.visual.TipsBefore"),"[")).call(e,t.data.name,"]?"),this.$t("module.basicData.visual.Tips"),{confirmButtonText:this.$t("module.basicData.visual.confirmButtonText"),cancelButtonText:this.$t("module.b