chunk-3f426cd0.e6e7ea90.js 3.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f426cd0"],{"1c4c":function(t,e,a){"use strict";a.d(e,"i",(function(){return n})),a.d(e,"b",(function(){return r})),a.d(e,"k",(function(){return c})),a.d(e,"d",(function(){return s})),a.d(e,"g",(function(){return u})),a.d(e,"h",(function(){return i})),a.d(e,"a",(function(){return d})),a.d(e,"j",(function(){return l})),a.d(e,"f",(function(){return f})),a.d(e,"c",(function(){return h})),a.d(e,"e",(function(){return p}));var o=a("b775");function n(t){return Object(o["a"])({url:"source/data/categories/",method:"post",data:t})}function r(t){return Object(o["a"])({url:"source/data/categories/create/",method:"post",data:t})}function c(t){return Object(o["a"])({url:"/source/data/category/update",method:"post",data:t})}function s(t){return Object(o["a"])({url:"/source/data/category/delete",method:"post",data:t})}function u(t){return Object(o["a"])({url:"/source/data/category/info",method:"post",data:t})}function i(t){return Object(o["a"])({url:"/source/data/search",method:"post",data:t})}function d(t){return Object(o["a"])({url:"/source/data/create",method:"post",data:t})}function l(t){return Object(o["a"])({url:"/source/data/update",method:"post",data:t})}function f(t){return Object(o["a"])({url:"/source/data/info",method:"post",data:t})}function h(t){return Object(o["a"])({url:"/source/data/delete",method:"post",data:t})}function p(t){return Object(o["a"])({url:"/source/data/find",method:"post",data:t})}},"3d7c":function(t,e,a){},9636:function(t,e,a){"use strict";a("3d7c")},b25c:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"com-data-view"},[a("div",{ref:"luckysheet",staticStyle:{margin:"0px",padding:"0px",position:"absolute",width:"100%",height:"100%",left:"0px",top:"0px",bottom:"0px"},attrs:{id:"luckysheet"}}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isMaskShow,expression:"isMaskShow"}],staticStyle:{position:"absolute","z-index":"1000000",left:"0px",top:"0px",bottom:"0px",right:"0px",background:"rgba(255, 255, 255, 0.8)","text-align":"center","font-size":"40px","align-items":"center","justify-content":"center",display:"flex"}},[t._v(" 下载中")]),a("div",{staticClass:"btn-save"})])},n=[],r=a("ade3"),c=(a("b0c0"),a("b64b"),a("f7e6")),s=a.n(c),u=a("1c4c"),i={data:function(){return{isMaskShow:!1,dataForm:{id:0,code:"",name:"",sourceData:{exportJson:null,luckysheetfile:""},status:""}}},mounted:function(){var t=this.$route.query.id;this.loadSourceData(t)},methods:{loadSourceData:function(t){var e=this;Object(u["f"])({id:t}).then((function(t){200==t.status&&(e.dataForm=t.data,e.dataForm.sourceData=JSON.parse(e.dataForm.source_data),e.fileLoadStatus=!0,e.$nextTick((function(){luckysheet.destroy(),luckysheet.create({container:"luckysheet",data:e.dataForm.sourceData.exportJson.sheets,lang:"zh",allowEdit:!1,hook:{cellUpdated:function(t,e,a,o,n){console.log("r",t),console.log("c",e)}}})})))}))},onSave:function(t){console.log(this.$refs.luckysheet)},loadExcel:function(t){var e=this;if(null!=t){var a=t.url,o=t.name;this.isMaskShow=!0,s.a.transformExcelToLuckyByUrl(a,o,(function(t,a){null!=t.sheets&&0!=t.sheets.length?(e.isMaskShow=!1,window.luckysheet.destroy(),window.luckysheet.create(Object(r["a"])(Object(r["a"])(Object(r["a"])({container:"luckysheet",data:t.sheets,title:t.info.name,userInfo:t.info.name.creator,lang:"zh",showinfobar:!1,showstatisticBar:!0,sheetBottomConfig:!0,allowEdit:!1,enableAddRow:!1,enableAddCol:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbar:!1},"enableAddRow",!1),"events",{}),"showsheetbarConfig",{add:!1,menu:!1}))):alert("Failed to read the content of the excel file, currently does not support xls files!")}))}else this.$alert("请选择正确的文件")}}},d=i,l=(a("9636"),a("2877")),f=Object(l["a"])(d,o,n,!1,null,null,null);e["default"]=f.exports}}]);