cloud-web-corejs 1.0.54-dev.250 → 1.0.54-dev.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.250",
4
+ "version": "1.0.54-dev.251",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -21,21 +21,71 @@
21
21
  {{ $t2('当前页导出', 'components.excelExport.currentExport') }}
22
22
  </el-dropdown-item>
23
23
  </el-dropdown-menu>
24
+
25
+ <indexViewDialog v-if="showIndexViewDialog" :visiabled.sync="showIndexViewDialog" :param="indexViewOption"></indexViewDialog>
24
26
  </el-dropdown>
25
27
  </template>
26
28
 
27
29
  <script>
30
+ import indexViewDialog from "./index.vue";
31
+
32
+
28
33
  export default {
29
- name: "base-table-export2",
34
+ name: "base-table-export",
30
35
  props: {
31
36
  option: Object
32
37
  },
38
+ components:{
39
+ indexViewDialog
40
+ },
41
+ data(){
42
+ return {
43
+ showExportFieldOptions:null,
44
+ showExportFieldDialog:false,
45
+ indexViewOption:null,
46
+ showIndexViewDialog:false
47
+ }
48
+ },
33
49
  methods: {
34
50
  toDo(type) {
35
- let option = {...this.option, type: type};
36
51
  let that = this.$attrs['parent-target'];
37
- that.$excelExport(option);
38
- }
52
+ let option = {...this.option, type: type, vue:that,destroyComponent:(loadingObj)=>{
53
+ this.showIndexViewDialog = false;
54
+ if(loadingObj){
55
+ setTimeout(function (){
56
+ loadingObj.close()
57
+ },200)
58
+ }
59
+ }};
60
+
61
+
62
+ /*
63
+ // this.option = this.param;
64
+ let $grid = getGrid(option.vue, option.targetRef);
65
+ let datas = [];
66
+ if (type == "selected") {
67
+ datas = $grid.getCheckboxRecords(true);
68
+ if (!datas.length) {
69
+ this.$baseAlert(this.$t2('请选择导出的数据', 'components.excelExport.warmMsg1'));
70
+ return;
71
+ }
72
+ } else if (type == "current") {
73
+ datas = $grid.getTableData().fullData;
74
+ if (!datas.length) {
75
+ this.$baseAlert(this.$t2('不存在可导出的数据', 'components.excelExport.warmMsg2'));
76
+ return;
77
+ }
78
+ }
79
+ */
80
+
81
+
82
+ this.indexViewOption = option;
83
+ this.showIndexViewDialog = true;
84
+ // that.$excelExport(option);
85
+ },
86
+ openIndexViewDialog(option){
87
+
88
+ },
39
89
  }
40
90
  }
41
91
  </script>
@@ -2,5 +2,47 @@ import vue from "vue"
2
2
  import excelExport from './index.vue'
3
3
 
4
4
  const moudule = {};
5
- (function(_0x7d1397,_0x107c60){function _0x25c674(_0x499494,_0x58d77b,_0x3b4181,_0x30ad58,_0x4433a8){return _0x1890(_0x30ad58- -0x16a,_0x499494);}function _0x4ac124(_0x4fd219,_0x10aa63,_0x53b6e7,_0x5f15ff,_0x1db064){return _0x5d60(_0x5f15ff- -0xd,_0x10aa63);}const _0x598d19=_0x7d1397();function _0x17da2d(_0x293ac8,_0x3e16bd,_0x99319a,_0x81f0cf,_0x59448d){return _0x1890(_0x59448d-0x11b,_0x3e16bd);}function _0x42327e(_0x488072,_0x38004c,_0x2f248e,_0x71c8a5,_0x35ac1b){return _0x1890(_0x35ac1b-0x2a2,_0x38004c);}function _0x23a2a0(_0x5e6d2f,_0x3dae55,_0x5e30a8,_0x5720e1,_0x926080){return _0x5d60(_0x5720e1- -0x330,_0x3dae55);}function _0x494052(_0x44597d,_0xe41e77,_0xba95ae,_0x5da5b9,_0x17233f){return _0x5d60(_0x5da5b9- -0x176,_0xe41e77);}function _0x3a3fb4(_0x3d1237,_0x2bb208,_0x2c7edb,_0x188fb5,_0x53a762){return _0x1890(_0x2bb208- -0x169,_0x3d1237);}function _0x5802d1(_0x5a484a,_0x4653d2,_0x1edab6,_0x5334c0,_0x1d8272){return _0x5d60(_0x4653d2- -0x64,_0x5a484a);}function _0x4054f2(_0x3bd154,_0x3e9439,_0x3a7e9f,_0x31e7fa,_0x344ff1){return _0x1890(_0x31e7fa-0xdf,_0x3e9439);}function _0x235e7e(_0x23c3ba,_0x2ab358,_0x588d6e,_0x438cd3,_0x417986){return _0x5d60(_0x588d6e- -0x57,_0x417986);}do{try{const _0x27d6b9=parseInt(_0x494052(-0x160,"\u0074\u0063\u004b\u006d",-0x143,-0x150,-0x143))/0x1*(parseInt(_0x494052(-0x180,"tkz1".split("").reverse().join(""),-0x161,-0x173,-0x176))/0x2)+parseInt(_0x494052(-0x163,"\u006c\u0063\u0033\u0050",-0x174,-0x15c,-0x15d))/0x3+-parseInt(_0x25c674(-0x143,-0x14f,-0x15a,-0x14f,-0x14b))/0x4+parseInt(_0x494052(-0x160,")Y%#".split("").reverse().join(""),-0x145,-0x156,-0x13d))/0x5*(parseInt(_0x25c674(-0x137,-0x15c,-0x159,-0x148,-0x137))/0x6)+parseInt(_0x25c674(-0x151,-0x142,-0x152,-0x13a,-0x13b))/0x7*(-parseInt(_0x42327e(0x2be,0x2c7,0x2de,0x2b5,0x2cd))/0x8)+parseInt(_0x235e7e(-0x50,-0x3a,-0x39,-0x2c,"\u004b\u006f\u0052\u004e"))/0x9*(parseInt(_0x235e7e(-0x48,-0x27,-0x2f,-0x26,"WB^3".split("").reverse().join("")))/0xa)+parseInt(_0x25c674(-0x17a,-0x174,-0x14e,-0x15f,-0x14a))/0xb*(-parseInt(_0x494052(-0x15d,"\u006c\u0063\u0033\u0050",-0x165,-0x14c,-0x15b))/0xc);if(_0x27d6b9===_0x107c60){break;}else{_0x598d19['push'](_0x598d19['shift']());}}catch(_0x5d17da){_0x598d19["\u0070\u0075\u0073\u0068"](_0x598d19['shift']());}}while(!![]);})(_0x365a,0xc9ac5);var _0x4ca917=0x2+0x1;const _0x9067c1=vue["\u0065\u0078\u0074\u0065\u006e\u0064"](excelExport);_0x4ca917=0x5;function _0x365a(){const _0x39b493=["u2CVX2y".split("").reverse().join(""),"uwENfvBPvto".split("").reverse().join(""),"woCknomPdpOWIoSs".split("").reverse().join(""),"\u0057\u0034\u0039\u002f\u006d\u0063\u0078\u0063\u004a\u0068\u0042\u0064\u0050\u0071\u0057","\u0065\u0077\u0072\u004f\u0057\u0050\u0053\u0039\u0057\u0034\u006c\u0063\u0051\u0038\u006b\u007a","0j3BWHxrSv2y4vgj".split("").reverse().join(""),"\u0057\u0037\u007a\u0035\u0057\u0037\u0068\u0063\u0047\u0043\u006f\u0058\u0063\u0047\u0042\u0063\u004e\u0061","\u006d\u004a\u0079\u0032\u006e\u0064\u0071\u0035\u006e\u004d\u0044\u004e\u0044\u004e\u0076\u0079\u0077\u0061","\u0070\u0073\u0062\u004b\u0057\u0035\u006e\u005a\u0057\u0036\u0061","\u006d\u0077\u0035\u0056\u0079\u0030\u006a\u0036\u007a\u0061","\u007a\u0078\u0048\u004a\u007a\u0077\u0058\u0066\u0045\u0068\u0062\u0056\u0043\u004e\u0071","\u0079\u004d\u0039\u004b\u0045\u0071","\u006d\u0074\u0072\u0068\u0043\u0031\u006e\u004a\u0042\u004d\u006d","uOWjkCLdFasKoSQdJPW".split("").reverse().join(""),"KKwSr3s".split("").reverse().join(""),"RjKoi16W".split("").reverse().join(""),"uC7WiysIdBRW".split("").reverse().join(""),"G6W6a6WNkCf".split("").reverse().join(""),"avWntQchRW".split("").reverse().join(""),"WMdlgnKrbEDo8n".split("").reverse().join(""),"\u0044\u0066\u0070\u0064\u0052\u004e\u002f\u0063\u0055\u0072\u0043\u0053\u0057\u0034\u0034\u0045\u0063\u0038\u006b\u0054\u0078\u005a\u0075","\u0057\u0034\u0052\u0064\u0048\u0049\u0038","\u0079\u0078\u0062\u0057\u007a\u0077\u0035\u004b\u0071\u0032\u0048\u0050\u0042\u0067\u0071","\u006c\u0053\u006b\u002b\u0041\u0047","ufAt52zWbJm".split("").reverse().join(""),"K3BYr3CLrgj".split("").reverse().join(""),"\u0057\u0037\u0046\u0064\u004c\u0074\u0043\u0045\u0057\u0036\u0030\u0063\u0057\u004f\u0079\u006d","UDwAZnxy".split("").reverse().join(""),"\u006e\u0064\u0047\u0033\u006d\u004a\u006d\u0059\u006f\u0075\u0066\u004b\u0044\u0030\u0066\u004b\u0074\u0047","\u0074\u0065\u0035\u006e\u0073\u0075\u006d","\u0057\u0037\u0048\u0072\u006b\u0057","\u0042\u004d\u006a\u004d\u007a\u0067\u0076\u0056","\u0062\u005a\u0066\u0030","\u006a\u0067\u0031\u0056\u0044\u0077\u0035\u0030","WRcZOW6kSTcN5W".split("").reverse().join(""),"\u006d\u005a\u0061\u0033\u006d\u004a\u0065\u0058\u006e\u0067\u0072\u004f\u0075\u004e\u0062\u0032\u0075\u0047","\u0057\u0035\u004b\u0038\u0064\u005a\u0030\u006f","\u0044\u0030\u0050\u0063\u0041\u0033\u0047","BbhQctXsGi7W".split("").reverse().join(""),"\u0057\u0052\u0061\u0037\u0057\u0037\u0042\u0063\u004b\u006d\u006f\u006d\u0064\u0063\u0033\u0063\u0052\u0076\u004f","\u006d\u0074\u0079\u0031\u006e\u0074\u0047\u0059\u006d\u004e\u0066\u0054\u0079\u004d\u0076\u0052\u0079\u0071","\u0041\u0030\u0050\u0062\u0079\u0077\u0079","\u006e\u004a\u0062\u004f\u007a\u0076\u006a\u0059\u0075\u004b\u0065","\u0057\u0037\u006e\u0035\u0057\u0051\u0037\u0064\u004c\u0053\u006b\u0073\u0073\u0077\u0064\u0063\u0055\u0076\u0046\u0063\u0050\u0053\u006b\u0035\u0057\u0051\u0053\u0035","\u006e\u0074\u0071\u0032\u006d\u005a\u0071\u0057\u0043\u004b\u004c\u006d\u0072\u004e\u007a\u0031","\u0057\u0035\u0070\u0064\u0053\u0076\u0061\u0063\u006e\u006d\u006f\u007a","\u0057\u0036\u006d\u0033\u0044\u0072\u0052\u0063\u004d\u0071","xoCoZkSeMoCHd74WJHuJd75WFKRW".split("").reverse().join(""),"\u0057\u0052\u006d\u0045\u0057\u0052\u0074\u0063\u0053\u0038\u006b\u0075\u0057\u0051\u005a\u0064\u0051\u004e\u0057\u0039\u0057\u0034\u0044\u0041\u0057\u0051\u0039\u0043","\u0057\u0035\u0046\u0063\u004c\u0049\u0052\u0063\u0055\u006d\u006b\u0066\u0078\u0059\u0035\u006c","JqJq".split("").reverse().join(""),"lH3BJDMr4qZn4mZm".split("").reverse().join(""),"\u0061\u0038\u006b\u0038\u0057\u0037\u0031\u0059\u0057\u0051\u0031\u0052\u0076\u006d\u006f\u0078\u0057\u0037\u0058\u0048\u0057\u0034\u0074\u0063\u0053\u0030\u0061"];_0x365a=function(){return _0x39b493;};return _0x365a();}let _0x3ca182;let _0x339f19=null;function _0x5d60(_0x29f2f3,_0x365a6c){const _0x189088=_0x365a();_0x5d60=function(_0x288172,_0x2d3058){_0x288172=_0x288172-0x0;let _0x3389bd=_0x189088[_0x288172];if(_0x5d60["\u0057\u004f\u0042\u0055\u0054\u0054"]===undefined){var _0x54ab22=function(_0x476be3){const _0x1094c8="\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f\u0070\u0071\u0072\u0073\u0074\u0075\u0076\u0077\u0078\u0079\u007a\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u002b\u002f\u003d";let _0x49a7f3='';let _0x1803c7='';for(let _0x30f3ef=0x0,_0x2d1ae3,_0x165bae,_0x4fae5f=0x0;_0x165bae=_0x476be3["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x4fae5f++);~_0x165bae&&(_0x2d1ae3=_0x30f3ef%0x4?_0x2d1ae3*0x40+_0x165bae:_0x165bae,_0x30f3ef++%0x4)?_0x49a7f3+=String['fromCharCode'](0xff&_0x2d1ae3>>(-0x2*_0x30f3ef&0x6)):0x0){_0x165bae=_0x1094c8["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x165bae);}for(let _0x5db749=0x0,_0x3c3127=_0x49a7f3['length'];_0x5db749<_0x3c3127;_0x5db749++){_0x1803c7+="\u0025"+("\u0030\u0030"+_0x49a7f3["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x5db749)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x1803c7);};const _0xf7fd5e=function(_0x10ff83,_0x167f79){let _0x5323d4=[],_0x485fac=0x0,_0x360be8,_0xc38398='';_0x10ff83=_0x54ab22(_0x10ff83);let _0x5d8371;for(_0x5d8371=0x0;_0x5d8371<0x100;_0x5d8371++){_0x5323d4[_0x5d8371]=_0x5d8371;}for(_0x5d8371=0x0;_0x5d8371<0x100;_0x5d8371++){_0x485fac=(_0x485fac+_0x5323d4[_0x5d8371]+_0x167f79["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x5d8371%_0x167f79["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x360be8=_0x5323d4[_0x5d8371];_0x5323d4[_0x5d8371]=_0x5323d4[_0x485fac];_0x5323d4[_0x485fac]=_0x360be8;}_0x5d8371=0x0;_0x485fac=0x0;for(let _0x42d2e4=0x0;_0x42d2e4<_0x10ff83["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x42d2e4++){_0x5d8371=(_0x5d8371+0x1)%0x100;_0x485fac=(_0x485fac+_0x5323d4[_0x5d8371])%0x100;_0x360be8=_0x5323d4[_0x5d8371];_0x5323d4[_0x5d8371]=_0x5323d4[_0x485fac];_0x5323d4[_0x485fac]=_0x360be8;_0xc38398+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x10ff83["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x42d2e4)^_0x5323d4[(_0x5323d4[_0x5d8371]+_0x5323d4[_0x485fac])%0x100]);}return _0xc38398;};_0x5d60['rSSRKy']=_0xf7fd5e;_0x29f2f3=arguments;_0x5d60["\u0057\u004f\u0042\u0055\u0054\u0054"]=!![];}const _0x415001=_0x189088[0x0];const _0x1fdee0=_0x288172+_0x415001;const _0x5d6097=_0x29f2f3[_0x1fdee0];if(!_0x5d6097){if(_0x5d60["\u0050\u0074\u004f\u007a\u0061\u0065"]===undefined){_0x5d60["\u0050\u0074\u004f\u007a\u0061\u0065"]=!![];}_0x3389bd=_0x5d60["\u0072\u0053\u0053\u0052\u004b\u0079"](_0x3389bd,_0x2d3058);_0x29f2f3[_0x1fdee0]=_0x3389bd;}else{_0x3389bd=_0x5d6097;}return _0x3389bd;};return _0x5d60(_0x29f2f3,_0x365a6c);}function iMjOnA(_0x1d1db4,_0x3ccbf2){if(!![]!=![])return;iMjOnA=function(_0x5a8113,_0x462635){_0x5a8113=_0x5a8113-(0x973c9^0x973c9);var _0x9110ef=_0x5e50e6[_0x5a8113];return _0x9110ef;};return iMjOnA(_0x1d1db4,_0x3ccbf2);}iMjOnA();_0x3ca182=0x2+0x9;var _0x172d33=0x4+0x8;const _0x5cffd6=_0x15cf73=>{const _0x5c0485={'kJAaf':function(_0x41157c,_0xb11c85){return _0x41157c+_0xb11c85;}};_0x339f19=new _0x9067c1({"\u0069\u0031\u0038\u006e":window["\u0024\u0076\u0075\u0065\u0052\u006f\u006f\u0074"]['_i18n']})["\u0024\u006d\u006f\u0075\u006e\u0074"]();var _0x169526=0x1+0x0;let _0x39ba92=_0x339f19["\u0024\u0065\u006c"];_0x169526=_0x5c0485['kJAaf'](0x0,0x5);_0x15cf73["\u0061\u0070\u0070\u0065\u006e\u0064\u0043\u0068\u0069\u006c\u0064"](_0x39ba92);return _0x339f19;};function _0x1890(_0x29f2f3,_0x365a6c){const _0x189088=_0x365a();_0x1890=function(_0x288172,_0x2d3058){_0x288172=_0x288172-0x0;let _0x3389bd=_0x189088[_0x288172];if(_0x1890["\u0050\u0047\u0075\u0058\u0055\u004b"]===undefined){var _0x54ab22=function(_0xf7fd5e){const _0x476be3="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x1094c8='';let _0x49a7f3='';for(let _0x1803c7=0x0,_0x30f3ef,_0x2d1ae3,_0x165bae=0x0;_0x2d1ae3=_0xf7fd5e['charAt'](_0x165bae++);~_0x2d1ae3&&(_0x30f3ef=_0x1803c7%0x4?_0x30f3ef*0x40+_0x2d1ae3:_0x2d1ae3,_0x1803c7++%0x4)?_0x1094c8+=String['fromCharCode'](0xff&_0x30f3ef>>(-0x2*_0x1803c7&0x6)):0x0){_0x2d1ae3=_0x476be3['indexOf'](_0x2d1ae3);}for(let _0x4fae5f=0x0,_0x5db749=_0x1094c8['length'];_0x4fae5f<_0x5db749;_0x4fae5f++){_0x49a7f3+="\u0025"+("\u0030\u0030"+_0x1094c8['charCodeAt'](_0x4fae5f)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x49a7f3);};_0x1890["\u0049\u0076\u0050\u0073\u004c\u004d"]=_0x54ab22;_0x29f2f3=arguments;_0x1890["\u0050\u0047\u0075\u0058\u0055\u004b"]=!![];}const _0x415001=_0x189088[0x0];const _0x1fdee0=_0x288172+_0x415001;const _0x5d6097=_0x29f2f3[_0x1fdee0];if(!_0x5d6097){_0x3389bd=_0x1890['IvPsLM'](_0x3389bd);_0x29f2f3[_0x1fdee0]=_0x3389bd;}else{_0x3389bd=_0x5d6097;}return _0x3389bd;};return _0x1890(_0x29f2f3,_0x365a6c);}function wyCUJr(_0x3c3127,_0x10ff83){if(!![]!=![])return;wyCUJr=function(_0x167f79,_0x5323d4){_0x167f79=_0x167f79-(0x973c9^0x973c9);var _0x485fac=_0x5e50e6[_0x167f79];return _0x485fac;};return wyCUJr(_0x3c3127,_0x10ff83);}wyCUJr();_0x172d33=0x2+0x7;function _0x267794(_0xb387b7){const _0x321118={"\u004b\u0065\u0063\u004d\u004a":function(_0x12043a,_0x5b56c6){return _0x12043a(_0x5b56c6);}};let _0x4bb006=document["\u0062\u006f\u0064\u0079"];let _0x539786=this&&this["\u0024\u0065\u006c"]?this:window["\u0024\u0076\u0075\u0065\u0052\u006f\u006f\u0074"];let _0x5bbac1;let _0x72db55=_0x321118["\u004b\u0065\u0063\u004d\u004a"](_0x5cffd6,_0x4bb006);_0x5bbac1=_0x56e86d(-0x20c,-0x218,-0x215,-0x1ee,-0x203);function _0x56e86d(_0x2df84a,_0x556fe8,_0x2a8919,_0x2b75f8,_0x4d1be8){return _0x1890(_0x4d1be8- -0x211,_0x2a8919);}_0x72db55['param']={};Object["\u0061\u0073\u0073\u0069\u0067\u006e"](_0x72db55["\u0070\u0061\u0072\u0061\u006d"],{'vue':_0x539786,'destroyComponent':_0x108e5f},_0xb387b7);return _0x72db55['exc'](_0x108e5f);};function _0x108e5f(_0x451425){const _0x3aa7e4={"\u0073\u0075\u0051\u0066\u0069":function(_0x4e146f,_0x1216bb){return _0x4e146f^_0x1216bb;},"\u004b\u0074\u006c\u005a\u0049":function(_0x5a9aac,_0x54a0df){return _0x5a9aac!==_0x54a0df;},"\u0077\u004a\u0042\u006b\u0078":function(_0x12be9b,_0x44f267,_0x26e633){return _0x12be9b(_0x44f267,_0x26e633);}};if(_0x339f19){setTimeout(()=>{function _0x33eadc(_0x3c6e2b,_0x4c86e5,_0x5ad677,_0x9a6e98,_0x211eae){return _0x1890(_0x4c86e5-0x1a8,_0x211eae);}function _0x481497(_0x57074d,_0x46f12b,_0x51d53f,_0x1855ce,_0x21cf3b){return _0x5d60(_0x57074d-0x335,_0x21cf3b);}if(_0x3aa7e4["\u004b\u0074\u006c\u005a\u0049"](_0x481497(0x352,0x365,0x351,0x362,"G%[j".split("").reverse().join("")),_0x33eadc(0x1ba,0x1b4,0x1be,0x1ba,0x19d))){_0x339f19["\u0024\u0064\u0065\u0073\u0074\u0072\u006f\u0079"]();_0x339f19["\u0024\u0065\u006c"]["\u0072\u0065\u006d\u006f\u0076\u0065"]();_0x339f19=null;_0x3aa7e4["\u0077\u004a\u0042\u006b\u0078"](setTimeout,function(){_0x451425['close']();},0x2923e^0x292f6);}else{_0x4dea22(()=>{_0x11bd1d["\u0024\u0064\u0065\u0073\u0074\u0072\u006f\u0079"]();_0x2b403e["\u0024\u0065\u006c"]['remove']();_0x43f5ee=null;_0x36b89b(function(){_0x71a92d['close']();},0x2923e^0x292f6);},_0x3aa7e4['suQfi'](0xdd78f,0xdd78f));}},0xdd78f^0xdd78f);}}moudule['install']=function(_0x5c7cba){_0x5c7cba['prototype']['$excelExport']=_0x267794;};moudule["\u0065\u0078\u0063\u0065\u006c\u0045\u0078\u0070\u006f\u0072\u0074"]=_0x267794;
5
+ const ExcelExportInstance = vue.extend(excelExport);
6
+ let instance = null;
7
+ const initInstance = (containter) => {
8
+ // 实例化vue实例
9
+ instance = new ExcelExportInstance({i18n: window.$vueRoot._i18n}).$mount();
10
+ let dom = instance.$el;
11
+ containter.appendChild(dom);
12
+ return instance;
13
+ };
14
+
15
+ function toDo(options) {
16
+ // let containter = this && this.$el ? this.$el : document.body;
17
+ // let containter = document.body;
18
+ let containter = this && this.$el ? this.$el : document.body;
19
+
20
+ let vueTarget = this && this.$el ? this : window.$vueRoot;
21
+ let currentInstance = initInstance(containter);
22
+ currentInstance.param = {};
23
+ Object.assign(currentInstance.param, {vue: vueTarget, destroyComponent: destroyComponent}, options);
24
+ return currentInstance.exc(destroyComponent);
25
+ };
26
+
27
+ function destroyComponent(loadingObj) {
28
+ if (instance) {
29
+ setTimeout(()=>{
30
+ instance.$destroy(); // 触发销毁生命周期
31
+ instance.$el.remove(); // 移除 DOM 节点
32
+ instance = null;
33
+ setTimeout(function (){
34
+ loadingObj.close()
35
+ },200)
36
+ },0)
37
+ }
38
+ }
39
+
40
+
41
+ // vue的install方法,用于定义vue插件
42
+ moudule.install = function (Vue) {
43
+ // 在Vue的原型上添加实例方法,以全局调用
44
+ Vue.prototype.$excelExport = toDo;
45
+ };
46
+ moudule.excelExport = toDo;
47
+
6
48
  export default moudule;
@@ -50,9 +50,13 @@
50
50
  import {mixins} from './mixins';
51
51
 
52
52
  export default {
53
- // name: 'excelExport',
53
+ name: 'excelExport2',
54
54
  mixins: [mixins]
55
55
  };
56
56
  </script>
57
57
 
58
- <style></style>
58
+ <style lang="scss" scoped>
59
+ ::v-deep .el-dialog__wrapper {
60
+ top: 20px !important;
61
+ }
62
+ </style>