cloud-web-corejs 1.0.54-dev.541 → 1.0.54-dev.543
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 +6 -9
- package/src/components/baseAlert/index.vue +23 -19
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/{univer → luckysheet}/dialog.vue +61 -32
- package/src/components/luckysheet/export.js +390 -0
- package/src/components/{univer → luckysheet}/index.js +4 -27
- package/src/components/luckysheet/view.vue +298 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1752 -1
- package/src/components/xform/form-render/container-item/data-table-item.vue +6 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +37 -21
- package/src/components/xform/form-render/index.vue +1 -7
- package/src/components/xform/form-render/indexMixin.js +3 -3
- package/src/mixins/tableTree/index.js +199 -4
- package/src/router/modules/customer.js +17 -0
- package/src/components/univer/button.vue +0 -57
- package/src/components/univer/univerSheet.vue +0 -200
- package/src/components/xform/form-designer/form-widget/dialog/univerDialog.vue +0 -200
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.
|
|
4
|
+
"version": "1.0.54-dev.543",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vue-cli-service serve",
|
|
7
7
|
"lint": "eslint --ext .js,.vue src",
|
|
@@ -16,12 +16,6 @@
|
|
|
16
16
|
"publishDev": "npm publish --tag dev"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@univerjs/preset-sheets-core": "^0.15.0",
|
|
20
|
-
"@univerjs/preset-sheets-drawing": "^0.15.0",
|
|
21
|
-
"@univerjs/presets": "^0.15.0",
|
|
22
|
-
"@univerjs/sheets-crosshair-highlight": "^0.15.0",
|
|
23
|
-
"@univerjs/sheets-zen-editor": "^0.15.0",
|
|
24
|
-
"@univerjs/watermark": "^0.15.0",
|
|
25
19
|
"@codemirror/lang-javascript": "^6.1.9",
|
|
26
20
|
"@formulajs/formulajs": "^4.3.1",
|
|
27
21
|
"@vue/preload-webpack-plugin": "^2.0.0",
|
|
@@ -34,6 +28,8 @@
|
|
|
34
28
|
"dhtmlx-gantt": "^9.1.0",
|
|
35
29
|
"element-ui": "^2.15.14",
|
|
36
30
|
"esdk-obs-browserjs": "^3.25.6",
|
|
31
|
+
"exceljs": "^4.4.0",
|
|
32
|
+
"FileSaver": "^0.10.0",
|
|
37
33
|
"html2canvas": "^1.4.1",
|
|
38
34
|
"js-base64": "^3.7.7",
|
|
39
35
|
"js-cookie": "2.2.0",
|
|
@@ -42,6 +38,7 @@
|
|
|
42
38
|
"less": "^4.2.0",
|
|
43
39
|
"less-loader": "^7.0.1",
|
|
44
40
|
"lodash": "4.17.21",
|
|
41
|
+
"luckyexcel": "^1.0.1",
|
|
45
42
|
"moment": "2.29.4",
|
|
46
43
|
"node-polyfill-webpack-plugin": "^4.0.0",
|
|
47
44
|
"normalize.css": "7.0.0",
|
|
@@ -57,7 +54,7 @@
|
|
|
57
54
|
"vue-router": "3.0.2",
|
|
58
55
|
"vuex": "3.1.0",
|
|
59
56
|
"vxe-table": "3.5.9",
|
|
60
|
-
"xlsx": "0.14.1"
|
|
57
|
+
"xlsx": "^0.14.1"
|
|
61
58
|
},
|
|
62
59
|
"devDependencies": {
|
|
63
60
|
"@babel/core": "^7.12.16",
|
|
@@ -158,7 +155,7 @@
|
|
|
158
155
|
"src/components/table",
|
|
159
156
|
"src/components/tempStorage",
|
|
160
157
|
"src/components/Tinymce",
|
|
161
|
-
"src/components/
|
|
158
|
+
"src/components/luckysheet",
|
|
162
159
|
"src/components/obsUpload",
|
|
163
160
|
"src/components/VabUpload",
|
|
164
161
|
"src/components/vb-tabs",
|
|
@@ -1,53 +1,57 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-if="!$baseEventBus.isMobile">
|
|
3
3
|
<el-dialog
|
|
4
|
-
:title="title!=null?title
|
|
4
|
+
:title="title != null ? title : $t2('提示', 'components.baseAlert.title')"
|
|
5
5
|
:visible.sync="showWrap"
|
|
6
6
|
v-if="showWrap"
|
|
7
7
|
:close-on-click-modal="false"
|
|
8
8
|
width="501px"
|
|
9
9
|
custom-class="dialog-style tips-dialog warning"
|
|
10
10
|
v-el-drag-dialog
|
|
11
|
-
@close="
|
|
11
|
+
@close="closeDialog"
|
|
12
12
|
>
|
|
13
13
|
<div class="cont" ref="cont">
|
|
14
14
|
{{ content }}
|
|
15
15
|
</div>
|
|
16
16
|
<span slot="footer" class="dialog-footer">
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
<input
|
|
18
|
+
type="text"
|
|
19
|
+
ref="hbtn"
|
|
20
|
+
style="position: absolute; left: -999px; top: -999px"
|
|
21
|
+
/>
|
|
22
|
+
<el-button type="primary" @click="resolve()" class="button-sty"
|
|
23
|
+
><i class="el-icon-check el-icon"></i
|
|
24
|
+
>{{ $t2("确 定", "system.button.confirm2") }}</el-button
|
|
25
|
+
>
|
|
26
|
+
</span>
|
|
21
27
|
</el-dialog>
|
|
22
28
|
</div>
|
|
23
29
|
<div v-else-if="showWrap">
|
|
24
|
-
<div class="pop-tipsBox" :style="'display: block;z-index:'+zIndex">
|
|
30
|
+
<div class="pop-tipsBox" :style="'display: block;z-index:' + zIndex">
|
|
25
31
|
<div>
|
|
26
32
|
<i class="icon"></i>
|
|
27
33
|
<div class="cont">
|
|
28
|
-
<p class="name">
|
|
34
|
+
<p class="name">
|
|
35
|
+
{{ title != null ? title : $t2("提示", "components.baseAlert.title") }}
|
|
36
|
+
</p>
|
|
29
37
|
<p class="txt" v-html="content"></p>
|
|
30
38
|
</div>
|
|
31
39
|
<div class="btns">
|
|
32
|
-
<el-button type="primary" class="btn" @click="resolve()">{{
|
|
40
|
+
<el-button type="primary" class="btn" @click="resolve()">{{
|
|
41
|
+
$t2("确 定", "system.button.confirm2")
|
|
42
|
+
}}</el-button>
|
|
33
43
|
</div>
|
|
34
44
|
</div>
|
|
35
45
|
</div>
|
|
36
46
|
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
47
|
</template>
|
|
41
48
|
|
|
42
49
|
<script>
|
|
43
|
-
import {
|
|
44
|
-
mixins
|
|
45
|
-
} from './mixins'
|
|
50
|
+
import { mixins } from "./mixins";
|
|
46
51
|
|
|
47
52
|
export default {
|
|
48
|
-
mixins: [mixins]
|
|
49
|
-
}
|
|
53
|
+
mixins: [mixins],
|
|
54
|
+
};
|
|
50
55
|
</script>
|
|
51
56
|
|
|
52
|
-
<style>
|
|
53
|
-
</style>
|
|
57
|
+
<style></style>
|
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
/**version-1.0*/
|
|
2
2
|
let tmixins = {};
|
|
3
3
|
import PopupManager from 'element-ui/src/utils/popup/popup-manager.js'
|
|
4
|
-
function _0x456e05(_0x28bc30,_0x504836,_0x262ebc,_0x295e12,_0x4f89b1){return _0x4b40(_0x262ebc-0x58,_0x28bc30);}function _0x5e48(_0x1a0d02,_0x506a79){var _0x4b40d5=_0x506a();_0x5e48=function(_0x2d646d,_0x18a97d){_0x2d646d=_0x2d646d-0x0;var _0x199dec=_0x4b40d5[_0x2d646d];if(_0x5e48['aEkljB']===undefined){var _0x58d43a=function(_0x187c70){var _0x39f595="\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";var _0x436503='';var _0x36ca8e='';for(var _0x4483bf=0x0,_0x5912eb,_0xd528a5,_0x206585=0x0;_0xd528a5=_0x187c70["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x206585++);~_0xd528a5&&(_0x5912eb=_0x4483bf%0x4?_0x5912eb*0x40+_0xd528a5:_0xd528a5,_0x4483bf++%0x4)?_0x436503+=String['fromCharCode'](0xff&_0x5912eb>>(-0x2*_0x4483bf&0x6)):0x0){_0xd528a5=_0x39f595['indexOf'](_0xd528a5);}for(var _0x53c093=0x0,_0x46eb26=_0x436503["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x53c093<_0x46eb26;_0x53c093++){_0x36ca8e+="\u0025"+("\u0030\u0030"+_0x436503['charCodeAt'](_0x53c093)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x36ca8e);};var _0x2c4e51=function(_0x43796f,_0x41c729){var _0x361f5f=[],_0x5b26aa=0x0,_0x42070d,_0x1d5b83='';_0x43796f=_0x58d43a(_0x43796f);var _0x29de0d;for(_0x29de0d=0x0;_0x29de0d<0x100;_0x29de0d++){_0x361f5f[_0x29de0d]=_0x29de0d;}for(_0x29de0d=0x0;_0x29de0d<0x100;_0x29de0d++){_0x5b26aa=(_0x5b26aa+_0x361f5f[_0x29de0d]+_0x41c729['charCodeAt'](_0x29de0d%_0x41c729["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x42070d=_0x361f5f[_0x29de0d];_0x361f5f[_0x29de0d]=_0x361f5f[_0x5b26aa];_0x361f5f[_0x5b26aa]=_0x42070d;}_0x29de0d=0x0;_0x5b26aa=0x0;for(var _0x4631ac=0x0;_0x4631ac<_0x43796f["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x4631ac++){_0x29de0d=(_0x29de0d+0x1)%0x100;_0x5b26aa=(_0x5b26aa+_0x361f5f[_0x29de0d])%0x100;_0x42070d=_0x361f5f[_0x29de0d];_0x361f5f[_0x29de0d]=_0x361f5f[_0x5b26aa];_0x361f5f[_0x5b26aa]=_0x42070d;_0x1d5b83+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x43796f["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x4631ac)^_0x361f5f[(_0x361f5f[_0x29de0d]+_0x361f5f[_0x5b26aa])%0x100]);}return _0x1d5b83;};_0x5e48["\u005a\u0041\u0065\u006d\u0058\u0047"]=_0x2c4e51;_0x1a0d02=arguments;_0x5e48["\u0061\u0045\u006b\u006c\u006a\u0042"]=!![];}var _0x1131db=_0x4b40d5[0x0];var _0x211511=_0x2d646d+_0x1131db;var _0x5e48ee=_0x1a0d02[_0x211511];if(!_0x5e48ee){if(_0x5e48['rwoMYh']===undefined){_0x5e48["\u0072\u0077\u006f\u004d\u0059\u0068"]=!![];}_0x199dec=_0x5e48["\u005a\u0041\u0065\u006d\u0058\u0047"](_0x199dec,_0x18a97d);_0x1a0d02[_0x211511]=_0x199dec;}else{_0x199dec=_0x5e48ee;}return _0x199dec;};return _0x5e48(_0x1a0d02,_0x506a79);}function yaFKDL(_0x40cb36,_0x415756){if(!![]!=![])return;yaFKDL=function(_0x4cc11a,_0x30751f){_0x4cc11a=_0x4cc11a-(0x973c9^0x973c9);var _0x5f29f0=_0x5e50e6[_0x4cc11a];return _0x5f29f0;};return yaFKDL(_0x40cb36,_0x415756);}yaFKDL();function _0x4b40(_0x1a0d02,_0x506a79){var _0x4b40d5=_0x506a();_0x4b40=function(_0x2d646d,_0x18a97d){_0x2d646d=_0x2d646d-0x0;var _0x199dec=_0x4b40d5[_0x2d646d];if(_0x4b40['tEPnAS']===undefined){var _0x58d43a=function(_0x2c4e51){var _0x187c70="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");var _0x39f595='';var _0x436503='';for(var _0x36ca8e=0x0,_0x4483bf,_0x5912eb,_0xd528a5=0x0;_0x5912eb=_0x2c4e51['charAt'](_0xd528a5++);~_0x5912eb&&(_0x4483bf=_0x36ca8e%0x4?_0x4483bf*0x40+_0x5912eb:_0x5912eb,_0x36ca8e++%0x4)?_0x39f595+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x4483bf>>(-0x2*_0x36ca8e&0x6)):0x0){_0x5912eb=_0x187c70["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x5912eb);}for(var _0x206585=0x0,_0x53c093=_0x39f595['length'];_0x206585<_0x53c093;_0x206585++){_0x436503+="\u0025"+("00".split("").reverse().join("")+_0x39f595["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x206585)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x436503);};_0x4b40["\u0047\u0049\u004b\u0068\u0066\u0056"]=_0x58d43a;_0x1a0d02=arguments;_0x4b40["\u0074\u0045\u0050\u006e\u0041\u0053"]=!![];}var _0x1131db=_0x4b40d5[0x0];var _0x211511=_0x2d646d+_0x1131db;var _0x5e48ee=_0x1a0d02[_0x211511];if(!_0x5e48ee){_0x199dec=_0x4b40['GIKhfV'](_0x199dec);_0x1a0d02[_0x211511]=_0x199dec;}else{_0x199dec=_0x5e48ee;}return _0x199dec;};return _0x4b40(_0x1a0d02,_0x506a79);}function ynaWjs(_0x46eb26,_0x43796f){if(!![]!=![])return;ynaWjs=function(_0x41c729,_0x361f5f){_0x41c729=_0x41c729-(0x973c9^0x973c9);var _0x5b26aa=_0x5e50e6[_0x41c729];return _0x5b26aa;};return ynaWjs(_0x46eb26,_0x43796f);}ynaWjs();(function(_0x6106dc,_0x59e17b){function _0x5b947e(_0x5769bb,_0x21dae5,_0x215d62,_0x309f60,_0x171dfb){return _0x4b40(_0x309f60-0x205,_0x215d62);}function _0x2be7f6(_0x5ce16b,_0x21e64e,_0x257d84,_0x583775,_0x17902a){return _0x5e48(_0x257d84-0x232,_0x17902a);}function _0x341d61(_0x273006,_0x25ce28,_0xe4835a,_0x5cb24b,_0x3b6732){return _0x4b40(_0xe4835a- -0x1f8,_0x5cb24b);}function _0x34c302(_0x18028d,_0x218c77,_0x259ab5,_0xe556b0,_0x252fbd){return _0x5e48(_0x259ab5-0x13a,_0xe556b0);}function _0x50b701(_0x8a32d1,_0xf209ca,_0x5b3314,_0x189e68,_0x12d721){return _0x5e48(_0x12d721-0xca,_0x189e68);}var _0x3de978=_0x6106dc();function _0x201101(_0x4b7634,_0x45f0f9,_0x3bb00f,_0x15d030,_0x4dccb6){return _0x5e48(_0x4b7634- -0x246,_0x3bb00f);}function _0x3a5715(_0x2eabe0,_0x328932,_0x33237b,_0x5e147f,_0x17c3c7){return _0x5e48(_0x328932- -0x39e,_0x2eabe0);}do{try{var _0x102bed=-parseInt(_0x50b701(0xcc,0xd1,0xf2,"\u0035\u0039\u0046\u004e",0xf3))/0x1+parseInt(_0x341d61(-0x1f1,-0x1f4,-0x1ec,-0x1f5,-0x1e2))/0x2+-parseInt(_0x50b701(0xfd,0x115,0xd6,"\u0045\u0066\u0028\u0048",0xf5))/0x3*(parseInt(_0x34c302(0x15e,0x16e,0x15f,"\u007a\u0054\u0078\u005b",0x153))/0x4)+-parseInt(_0x341d61(-0x1e6,-0x1e2,-0x1e6,-0x1d0,-0x1f1))/0x5+parseInt(_0x2be7f6(0x28a,0x26d,0x276,0x29a,"\u005b\u0024\u0040\u0029"))/0x6+parseInt(_0x50b701(0xf6,0xc8,0xea,"\u0043\u006d\u004a\u0061",0xe1))/0x7+parseInt(_0x34c302(0x167,0x150,0x147,"\u0055\u0053\u006a\u0048",0x138))/0x8;if(_0x102bed===_0x59e17b){break;}else{_0x3de978['push'](_0x3de978['shift']());}}catch(_0x305def){_0x3de978["\u0070\u0075\u0073\u0068"](_0x3de978["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0x506a,0xc8fde);tmixins={"\u006e\u0061\u006d\u0065":_0x456e05(0x87,0x9a,0x8b,0x7d,0x69),"\u0070\u0072\u006f\u0070\u0073":{},"\u0063\u0072\u0065\u0061\u0074\u0065\u0064"(){var _0x3579e9={"\u0070\u006a\u0078\u004d\u0043":_0x29c15d("BTxq".split("").reverse().join(""),-0x17a,-0x15a,-0x17f,-0x18e)};function _0x3147ce(_0x4eb62c,_0x38d60b,_0x11aec4,_0x363417,_0x134408){return _0x4b40(_0x363417-0x2e7,_0x38d60b);}function _0x29c15d(_0x5e64f7,_0x5f44f7,_0x552226,_0x2327c8,_0x29215){return _0x5e48(_0x2327c8- -0x19a,_0x5e64f7);}if(this["\u0024\u0062\u0061\u0073\u0065\u0045\u0076\u0065\u006e\u0074\u0042\u0075\u0073"]['isMobile']){if(_0x3579e9['pjxMC']===_0x3147ce(0x310,0x2cd,0x2d3,0x2eb,0x2e8)){if(this["\u0024\u0062\u0061\u0073\u0065\u0045\u0076\u0065\u006e\u0074\u0042\u0075\u0073"]["\u0069\u0073\u004d\u006f\u0062\u0069\u006c\u0065"]){this["\u007a\u0049\u006e\u0064\u0065\u0078"]=_0x206585["\u006e\u0065\u0078\u0074\u005a\u0049\u006e\u0064\u0065\u0078"]();}}else{this["\u007a\u0049\u006e\u0064\u0065\u0078"]=PopupManager["\u006e\u0065\u0078\u0074\u005a\u0049\u006e\u0064\u0065\u0078"]();}}},'data'(){var _0x11261e={"\u0073\u004c\u0078\u005a\u006e":_0x165849(0x260,0x252,0x261,"\u004b\u0037\u0072\u005d",0x261)};function _0x165849(_0x2ad5a7,_0x36f01d,_0x554582,_0x3d9700,_0x323ca5){return _0x5e48(_0x323ca5-0x21e,_0x3d9700);}return{'title':this["\u0024\u0074\u0032"]("\u793A\u63D0".split("").reverse().join(""),_0x11261e['sLxZn']),"\u0063\u006f\u006e\u0074\u0065\u006e\u0074":'','showWrap':![],"\u007a\u0049\u006e\u0064\u0065\u0078":null};},"\u006d\u0065\u0074\u0068\u006f\u0064\u0073":{'claoseDialog'(){this['showWrap']=![];this['removeEnterEvent']();this["\u0072\u0065\u0073\u006f\u006c\u0076\u0065"]();},'keyDown'(_0x46cc00){var _0x4b7207={'veGYB':function(_0x262997,_0x2833c4){return _0x262997!==_0x2833c4;}};function _0x55586a(_0x22799c,_0x3b6c85,_0x45c01d,_0x277906,_0x8f212d){return _0x4b40(_0x22799c-0x28,_0x3b6c85);}function _0x1321a7(_0x5693ea,_0x46d0d7,_0x490afc,_0x48afc2,_0x25410b){return _0x5e48(_0x25410b- -0x138,_0x48afc2);}_0x46cc00["\u0073\u0074\u006f\u0070\u0050\u0072\u006f\u0070\u0061\u0067\u0061\u0074\u0069\u006f\u006e"]();function _0x50b466(_0x56e715,_0x4386a2,_0x2c171f,_0x37d074,_0x266f26){return _0x4b40(_0x4386a2- -0xc0,_0x266f26);}if(_0x46cc00["\u006b\u0065\u0079\u0043\u006f\u0064\u0065"]==(0xb5313^0xb531e)||_0x46cc00["\u006b\u0065\u0079\u0043\u006f\u0064\u0065"]==(0x4deab^0x4deb0)){if(_0x4b7207['veGYB'](_0x55586a(0x71,0x4d,0x66,0x80,0x75),_0x50b466(-0x62,-0x77,-0x71,-0x7c,-0x4f))){_0x415756['removeEventListener'](_0x1321a7(-0x13a,-0x129,-0x127,"FMAC".split("").reverse().join(""),-0x12d),this['keyDown'],!![]);}else{this['claoseDialog']();}}},"\u0061\u0064\u0064\u0045\u006e\u0074\u0065\u0072\u0045\u0076\u0065\u006e\u0074"(){function _0x2d0f64(_0x3642f9,_0x262523,_0x399111,_0x190908,_0x331bff){return _0x5e48(_0x3642f9- -0x1b8,_0x190908);}window["\u0061\u0064\u0064\u0045\u0076\u0065\u006e\u0074\u004c\u0069\u0073\u0074\u0065\u006e\u0065\u0072"](_0x2d0f64(-0x17e,-0x17e,-0x177,"\u0046\u0026\u002a\u004d",-0x15c),this["\u006b\u0065\u0079\u0044\u006f\u0077\u006e"],!![]);},'removeEnterEvent'(){function _0x3eed1d(_0x4f1afe,_0x24ee69,_0x39f73e,_0x31cbe9,_0x16670c){return _0x5e48(_0x4f1afe- -0x3aa,_0x16670c);}window["\u0072\u0065\u006d\u006f\u0076\u0065\u0045\u0076\u0065\u006e\u0074\u004c\u0069\u0073\u0074\u0065\u006e\u0065\u0072"](_0x3eed1d(-0x374,-0x392,-0x381,-0x385,"\u0073\u004f\u0038\u0053"),this["\u006b\u0065\u0079\u0044\u006f\u0077\u006e"],!![]);},"\u0073\u0068\u006f\u0077\u004d\u0073\u0067\u0042\u006f\u0078":function(){var _0x3bfddc={"\u005a\u0044\u004c\u0071\u0063":function(_0x3f09fd,_0x5fd53){return _0x3f09fd!==_0x5fd53;},"\u0061\u0067\u0073\u0072\u0047":_0x52e9ef(0x22b,0x21a,0x234,0x1f7,0x216),"\u0067\u005a\u006e\u0041\u0043":_0x18b586(-0x1a8,-0x1c1,-0x1cb,-0x1d0,-0x1b8),"\u0054\u004d\u004f\u0065\u0073":_0x18b586(-0x192,-0x16b,-0x1ae,-0x17b,-0x1a5),"\u0056\u0073\u0054\u0059\u0065":_0x3a2f91(0xf5,0xee,0xf1,0x115,0x108)};if(this["\u0063\u006f\u006e\u0074\u0065\u006e\u0074"]){if(_0x5a1dd4(0x96,0xbd,0xc7,0xaa,0x97)!==_0x3bfddc['TMOes']){return{"\u0074\u0069\u0074\u006c\u0065":this["\u0024\u0074\u0032"]("\u793A\u63D0".split("").reverse().join(""),_0x52e9ef(0x21a,0x214,0x236,0x203,0x226)),'content':'','showWrap':![],'zIndex':null};}else{this["\u0063\u006f\u006e\u0074\u0065\u006e\u0074"]=this['content']["\u0072\u0065\u0070\u006c\u0061\u0063\u0065"](new RegExp(_0x5a1dd4(0xbe,0xb1,0xaa,0xa3,0xbb),"\u0067\u006d"),_0x3bfddc["\u0056\u0073\u0054\u0059\u0065"]);}}this['showWrap']=!![];this["\u0072\u0065\u006d\u006f\u0076\u0065\u0045\u006e\u0074\u0065\u0072\u0045\u0076\u0065\u006e\u0074"]();function _0x3a2f91(_0x40c5b8,_0x59aec8,_0x28f887,_0x5b733a,_0x3b7303){return _0x4b40(_0x3b7303-0xfe,_0x59aec8);}function _0x5a1dd4(_0x5f2a3b,_0x1b0e12,_0x2776b3,_0x119f4c,_0x89fc00){return _0x4b40(_0x1b0e12-0x75,_0x119f4c);}this["\u0061\u0064\u0064\u0045\u006e\u0074\u0065\u0072\u0045\u0076\u0065\u006e\u0074"]();this["\u0024\u006e\u0065\u0078\u0074\u0054\u0069\u0063\u006b"](()=>{function _0x206a27(_0x51e29e,_0x278339,_0x4b8a8e,_0x43eecf,_0x5c1151){return _0x5e48(_0x43eecf-0x103,_0x278339);}function _0x504e0f(_0x438736,_0x315509,_0x2ebd0c,_0x216c52,_0x583d40){return _0x5e48(_0x438736- -0x279,_0x315509);}var _0xddde5e={'QzICs':_0x206a27(0x134,"\u0039\u004c\u0025\u0023",0x126,0x145,0x163)};if(this["\u0024\u0072\u0065\u0066\u0073"]["\u0068\u0062\u0074\u006e"]){if(_0x3bfddc['ZDLqc'](_0x206a27(0x138,"\u0066\u0074\u0040\u006a",0x150,0x153,0x159),_0x3bfddc['agsrG'])){_0x4631ac["\u0061\u0064\u0064\u0045\u0076\u0065\u006e\u0074\u004c\u0069\u0073\u0074\u0065\u006e\u0065\u0072"](_0xddde5e["\u0051\u007a\u0049\u0043\u0073"],this['keyDown'],!![]);}else{this["\u0024\u0072\u0065\u0066\u0073"]["\u0068\u0062\u0074\u006e"]["\u0066\u006f\u0063\u0075\u0073"]();this["\u0024\u0072\u0065\u0066\u0073"]["\u0068\u0062\u0074\u006e"]['blur']();}}});function _0x58a84b(_0x1b6951,_0x4f4e40,_0x2dd733,_0x4f73bf,_0x571701){return _0x4b40(_0x4f73bf-0x316,_0x1b6951);}this["\u0070\u0072\u006f\u006d\u0069\u0073\u0065"]=new Promise((_0x22b0a8,_0x41cdb6)=>{function _0x28559c(_0x41f2c2,_0x4fcbae,_0x93d143,_0x4f0d0c,_0x16fff2){return _0x5e48(_0x4fcbae-0x21c,_0x93d143);}if(_0x3bfddc['gZnAC']===_0x28559c(0x255,0x244,"\u0071\u0070\u0056\u0031",0x240,0x232)){this["\u007a\u0049\u006e\u0064\u0065\u0078"]=_0x46eb26["\u006e\u0065\u0078\u0074\u005a\u0049\u006e\u0064\u0065\u0078"]();}else{this['resolve']=_0x22b0a8;this["\u0072\u0065\u006a\u0065\u0063\u0074"]=_0x41cdb6;}});function _0x18b586(_0x29fb22,_0x58d5c2,_0x25fbd0,_0x4cf612,_0x410ab5){return _0x4b40(_0x29fb22- -0x1da,_0x25fbd0);}function _0x52e9ef(_0x51001b,_0x5a903b,_0x2afb63,_0x5b189a,_0x1df3f4){return _0x4b40(_0x1df3f4-0x20d,_0x5a903b);}return this["\u0070\u0072\u006f\u006d\u0069\u0073\u0065"];}}};function _0x506a(){var _0x2a722f=["\u0079\u0032\u0039\u0055\u0044\u0067\u0076\u0055\u0044\u0061","Pihx85gx85gxYXfk".split("").reverse().join(""),"OaVcNRWCnPW9kSfvn0C".split("").reverse().join(""),"\u006d\u0053\u006b\u0047\u0057\u0050\u006e\u0064\u0057\u0034\u0075","\u0057\u0051\u004b\u0055\u0057\u0051\u0035\u006c\u0073\u0053\u006b\u0065\u0057\u0035\u0061","\u006a\u0068\u006a\u004c\u007a\u004e\u006d","\u0043\u0032\u0048\u0056\u0044\u0031\u0044\u0059\u0079\u0078\u0061","aE3qgNc/OWjoSv".split("").reverse().join(""),"GD9oCmlkCh3v0VchfLcd6Wwm2Gd/6WwjRWLk8oekSJcldUcpKNchOW".split("").reverse().join(""),"\u0057\u0052\u0064\u0064\u004d\u0058\u0053\u0067\u0057\u0051\u0054\u004e\u0071\u0032\u004a\u0064\u0050\u0064\u0033\u0063\u004e\u006d\u006b\u006e\u0057\u0034\u0075","\u0045\u0064\u0037\u0063\u004e\u006d\u006b\u004a\u0057\u004f\u0068\u0063\u0051\u0031\u0069\u0045\u0057\u0035\u0079\u004f","\u0077\u004b\u0072\u006d\u0043\u0077\u006d","SC4WuaXl5kCe".split("").reverse().join(""),"K3vPPwC".split("").reverse().join(""),"\u0075\u0030\u006a\u0078\u0043\u004d\u0075","4LRWMOvlVOOW5oCa8kCsy1RWskSPdFPW".split("").reverse().join(""),"GGcpRWUoSimkmHclPW".split("").reverse().join(""),"\u0057\u0052\u0054\u006c\u0057\u0050\u0056\u0063\u004a\u004e\u006d","\u0041\u0032\u0076\u0035\u0071\u0032\u0039\u004b\u007a\u0071","\u0079\u0032\u0058\u0048\u0042\u0033\u006e\u004c\u0072\u0067\u004c\u0048\u0042\u0067\u0039\u004e","GslSqus".split("").reverse().join(""),"8IBx1hg".split("").reverse().join(""),"SPWeuOW".split("").reverse().join(""),"\u006c\u0064\u0068\u0064\u0055\u0078\u004f\u0067\u0057\u0050\u006a\u0038\u0077\u006d\u006b\u0063\u0057\u0036\u006e\u0047\u0045\u006d\u006b\u0062\u006c\u0043\u006f\u0061","GB39gr5v2A".split("").reverse().join(""),"0KRdJOWayRW".split("").reverse().join(""),"\u0073\u004e\u006e\u0053\u0077\u004d\u0047","\u0057\u0052\u0075\u0049\u0057\u0035\u004a\u0063\u0050\u0071\u0069\u0041\u0066\u0043\u006f\u0052\u0057\u0034\u0042\u0063\u0051\u0066\u0047","\u0057\u0050\u0064\u0063\u004c\u0066\u0037\u0063\u0050\u0064\u005a\u0063\u0047\u0038\u006b\u0065","\u0041\u0078\u006e\u006e\u0042\u0032\u006a\u0050\u0042\u0067\u0075","\u0079\u0077\u0044\u005a\u0043\u004b\u0043","\u0079\u0076\u004c\u0041\u0044\u0077\u0065","4ZlYjgp".split("").reverse().join(""),"ok8Tc3QWvb5WvO4W".split("").reverse().join(""),"\u006d\u0074\u006d\u0057\u006e\u0064\u0047\u0031\u006e\u004c\u0062\u0058\u0042\u004d\u0039\u004e\u0072\u0071","\u0076\u0053\u006f\u0037\u0043\u0030\u004c\u006e\u0057\u004f\u007a\u0039\u0045\u0066\u0052\u0063\u0050\u0053\u006b\u0055\u0065\u0038\u006f\u0031","4QW/S2Vd7wScd6Wwo8w".split("").reverse().join(""),"4QWd54WToSzm56WuC7WkkmRdFMvvj4WPSOW+COW".split("").reverse().join(""),"GAeb1vR9gnYadnZaZn".split("").reverse().join(""),"\u0078\u0043\u006f\u006a\u007a\u0076\u0062\u0077\u0079\u0061","\u006d\u0074\u0075\u0057\u006e\u005a\u0043\u0057\u006d\u0065\u0039\u006b\u0043\u0076\u0050\u0049\u0072\u0061","\u0057\u0034\u006c\u0064\u0056\u0038\u006b\u0031\u0077\u0067\u0053\u0048\u0057\u0035\u0058\u006d\u0043\u0071\u0039\u0056\u0057\u0036\u0052\u0064\u0050\u0057","\u0057\u0035\u002f\u0063\u0054\u006d\u006f\u0049\u0062\u0059\u0047","OOW8k8lO47WbkSe".split("").reverse().join(""),"\u0042\u004d\u0076\u0034\u0044\u0066\u0050\u006a\u0042\u004d\u0072\u004c\u0045\u0061","\u0043\u0064\u006c\u0063\u004e\u0053\u006b\u004a\u0057\u0037\u004a\u0064\u004c\u005a\u0075\u002f\u0057\u0037\u0065\u0039\u0070\u0047\u0076\u007a","\u0043\u0068\u006a\u0056\u0042\u0077\u004c\u005a\u007a\u0071","\u0079\u0032\u0039\u0054\u0043\u0067\u0039\u0055\u007a\u0077\u0035\u0030\u0043\u0059\u0035\u0049\u0079\u0078\u006e\u004c\u0071\u0077\u0058\u004c\u0043\u004e\u0071\u0055\u0044\u0067\u004c\u0030\u0042\u0067\u0075","m3qjPxu".split("").reverse().join(""),"Wp4kSjYomc".split("").reverse().join(""),"\u0057\u0037\u0033\u0063\u0051\u0059\u0043\u0035\u0057\u0036\u0034","\u006a\u0067\u006a\u0048\u0043\u0032\u0076\u0066\u0044\u004d\u0076\u0055\u0044\u0065\u006a\u0031\u0043\u0057","\u0057\u0037\u0076\u0037\u0057\u0036\u0075\u002b\u0066\u0053\u006f\u006c\u0057\u0035\u006a\u0079\u006a\u0038\u006b\u0077\u0057\u0037\u0033\u0063\u0050\u0057","\u006e\u0058\u002f\u0064\u0048\u0062\u0056\u0064\u004e\u0043\u006f\u0035\u0057\u004f\u0030\u0044\u0057\u0035\u0047\u0072\u0057\u0052\u0047\u004e\u0046\u0067\u0050\u0068\u0057\u0051\u0034","RoCMdtRWUkCIcx2lCa7WRk8tpCQW".split("").reverse().join(""),"GCL5wz0nxAmrNBLzxrKrwy".split("").reverse().join(""),"\u0057\u0051\u006c\u0064\u004a\u0049\u0070\u0064\u004b\u0038\u006f\u0077\u0057\u004f\u0035\u0078\u0057\u0050\u0039\u0071\u0057\u004f\u006d\u0078\u0061\u0043\u006b\u0075","CbxOomvRfXKdBWVdxQWO1OWTL7W8o8x".split("").reverse().join(""),"\u0079\u004d\u0058\u0031\u0043\u0047","WbkkCE7kCIdBRWPk8ycKJm".split("").reverse().join(""),"GDgH5WPuPW+COW".split("").reverse().join(""),"Jy4WsX4WdkSHc3QW".split("").reverse().join(""),"\u0057\u0051\u0052\u0064\u0049\u0072\u006c\u0064\u0052\u0038\u006f\u0076","bkSGd/6W2oCpdkSa/T7WhWYz".split("").reverse().join(""),"\u006a\u0068\u0071\u0059","\u0044\u0065\u002f\u0063\u004d\u0075\u0033\u0064\u004f\u0053\u006f\u0077\u0057\u0050\u004b\u0036\u0057\u0037\u0053\u0035","\u0057\u004f\u0037\u0063\u0048\u006d\u006f\u0063\u0044\u0061\u0053","\u0045\u004b\u004c\u0055\u007a\u0067\u0076\u0034","\u006d\u0074\u0071\u0058\u006f\u0064\u0075\u0034\u006d\u0068\u0044\u0062\u007a\u0075\u004c\u0077\u0044\u0071","iPWEoCjcXRWrq4W".split("").reverse().join(""),"\u0057\u0051\u0069\u0052\u0057\u0050\u0037\u0063\u004e\u0043\u006f\u006a\u0057\u0034\u0076\u0054\u0057\u0037\u0031\u0059\u0057\u0036\u004e\u0063\u004e\u0047\u0065\u0072\u0057\u0036\u004f\u0076\u0069\u004d\u0044\u0038\u0057\u0034\u0071","Wph8fKdNPW396W".split("").reverse().join(""),"\u0042\u0075\u0066\u0063\u0045\u004b\u004f","0jxzSfuzZfMy".split("").reverse().join(""),"VkCOdxRW5oCp3PNA".split("").reverse().join(""),"\u007a\u004d\u0039\u004a\u0044\u0078\u006d","GTdNPWlkCBekSPcZ5W".split("").reverse().join(""),"GB0jgA".split("").reverse().join(""),"\u0077\u0043\u006b\u006c\u0067\u0073\u0035\u0044","\u0057\u0037\u006e\u002b\u0057\u0036\u0043\u0034\u0065\u0053\u006f\u0064\u0057\u004f\u0035\u0049\u0070\u0038\u006b\u0053\u0057\u0037\u0064\u0063\u0053\u006d\u006f\u0053","SsJctdlAWMD".split("").reverse().join("")];_0x506a=function(){return _0x2a722f;};return _0x506a();}
|
|
4
|
+
tmixins = {
|
|
5
|
+
name: 'baseAlert',
|
|
6
|
+
props: {},
|
|
7
|
+
created() {
|
|
8
|
+
if(this.$baseEventBus.isMobile){
|
|
9
|
+
this.zIndex = PopupManager.nextZIndex();
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
title: this.$t2('提示', 'components.baseAlert.title'),
|
|
15
|
+
content: "",
|
|
16
|
+
showWrap: false,
|
|
17
|
+
zIndex:null
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
beforeDestroy() {
|
|
21
|
+
this.removeEnterEvent();
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
closeDialog() {
|
|
25
|
+
this.showWrap = false;
|
|
26
|
+
this.removeEnterEvent();
|
|
27
|
+
this.resolve();
|
|
28
|
+
},
|
|
29
|
+
keyDown(e) {
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
if (e.keyCode == 13 || e.keyCode == 27) {
|
|
32
|
+
this.closeDialog();
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
addEnterEvent() {
|
|
36
|
+
window.addEventListener('keydown', this.keyDown, true);
|
|
37
|
+
},
|
|
38
|
+
removeEnterEvent() {
|
|
39
|
+
window.removeEventListener('keydown', this.keyDown, true);
|
|
40
|
+
},
|
|
41
|
+
showMsgBox: function () {
|
|
42
|
+
let content = (this.content ?? "") + "";
|
|
43
|
+
if(content){
|
|
44
|
+
this.content = content.replace(/(\r\n|\n|\r)/gm, "<br/>");
|
|
45
|
+
}
|
|
46
|
+
this.showWrap = true;
|
|
47
|
+
this.removeEnterEvent();
|
|
48
|
+
this.addEnterEvent();
|
|
49
|
+
this.$nextTick(() => {
|
|
50
|
+
if (this.$refs.hbtn) {
|
|
51
|
+
this.$refs.hbtn.focus();
|
|
52
|
+
this.$refs.hbtn.blur();
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
this.promise = new Promise((resolve, reject) => {
|
|
56
|
+
this.resolve = resolve;
|
|
57
|
+
this.reject = reject;
|
|
58
|
+
});
|
|
59
|
+
// 返回promise对象
|
|
60
|
+
return this.promise;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
5
65
|
export const mixins = tmixins
|
|
@@ -7,19 +7,18 @@
|
|
|
7
7
|
:modalAppendToBody="true"
|
|
8
8
|
:closeOnClickModal="false"
|
|
9
9
|
:modal="false"
|
|
10
|
-
:title="title"
|
|
10
|
+
:title="options.title || 'excel'"
|
|
11
11
|
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
12
12
|
>
|
|
13
|
-
<div class="cont" id="containt" :class="{ nfootBtn: readonly }">
|
|
14
|
-
<
|
|
15
|
-
ref="
|
|
13
|
+
<div class="cont" id="containt" :class="{ nfootBtn: options.readonly }">
|
|
14
|
+
<luckysheet
|
|
15
|
+
ref="luckysheet"
|
|
16
16
|
:data="json"
|
|
17
|
-
v-if="
|
|
18
|
-
:
|
|
19
|
-
|
|
20
|
-
></univer>
|
|
17
|
+
v-if="showLuckysheet"
|
|
18
|
+
:options="options"
|
|
19
|
+
></luckysheet>
|
|
21
20
|
</div>
|
|
22
|
-
<span slot="footer" class="dialog-footer" v-if="!readonly">
|
|
21
|
+
<span slot="footer" class="dialog-footer" v-if="!options.readonly">
|
|
23
22
|
<el-button type="primary" plain class="button-sty" @click="close">
|
|
24
23
|
<i class="el-icon-close el-icon"></i>
|
|
25
24
|
{{ $t2("取 消", "system.button.cancel2") }}
|
|
@@ -33,23 +32,14 @@
|
|
|
33
32
|
</template>
|
|
34
33
|
|
|
35
34
|
<script>
|
|
36
|
-
import
|
|
35
|
+
import luckysheet from "./view.vue";
|
|
37
36
|
|
|
38
37
|
export default {
|
|
39
|
-
name: "
|
|
40
|
-
components: {
|
|
38
|
+
name: "luckysheetDialog",
|
|
39
|
+
components: { luckysheet },
|
|
41
40
|
props: {
|
|
42
41
|
visiable: Boolean,
|
|
43
|
-
|
|
44
|
-
title: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: "excel",
|
|
47
|
-
},
|
|
48
|
-
readonly: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: false,
|
|
51
|
-
},
|
|
52
|
-
univerConfig: {
|
|
42
|
+
options: {
|
|
53
43
|
type: Object,
|
|
54
44
|
default: () => {},
|
|
55
45
|
},
|
|
@@ -58,8 +48,8 @@ export default {
|
|
|
58
48
|
data() {
|
|
59
49
|
return {
|
|
60
50
|
showDialog: true,
|
|
61
|
-
json:
|
|
62
|
-
|
|
51
|
+
json: [],
|
|
52
|
+
showLuckysheet: false,
|
|
63
53
|
};
|
|
64
54
|
},
|
|
65
55
|
computed: {},
|
|
@@ -68,11 +58,21 @@ export default {
|
|
|
68
58
|
},
|
|
69
59
|
methods: {
|
|
70
60
|
init() {
|
|
71
|
-
if (this.data) {
|
|
72
|
-
|
|
61
|
+
if (this.options.data) {
|
|
62
|
+
try {
|
|
63
|
+
let data = JSON.parse(this.options.data);
|
|
64
|
+
if (Array.isArray(data)) {
|
|
65
|
+
this.json = data;
|
|
66
|
+
} else {
|
|
67
|
+
this.json = [];
|
|
68
|
+
}
|
|
69
|
+
} catch (error) {
|
|
70
|
+
this.json = [];
|
|
71
|
+
console.error(error);
|
|
72
|
+
}
|
|
73
73
|
}
|
|
74
74
|
this.$nextTick(() => {
|
|
75
|
-
this.
|
|
75
|
+
this.showLuckysheet = true;
|
|
76
76
|
});
|
|
77
77
|
},
|
|
78
78
|
close() {
|
|
@@ -80,11 +80,40 @@ export default {
|
|
|
80
80
|
this.$emit("update:visiable", false);
|
|
81
81
|
},
|
|
82
82
|
dialogSubmit() {
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this
|
|
87
|
-
|
|
83
|
+
let luckysheetRef = this.$refs.luckysheet;
|
|
84
|
+
let value = luckysheetRef.getValue();
|
|
85
|
+
luckysheetRef.generateExcelFile((file) => {
|
|
86
|
+
this.fileToBase64Async(file).then((base64) => {
|
|
87
|
+
let response = {
|
|
88
|
+
data: JSON.stringify(value),
|
|
89
|
+
json: value,
|
|
90
|
+
file: file,
|
|
91
|
+
base64: base64,
|
|
92
|
+
};
|
|
93
|
+
let onConfirm = this.options.onConfirm;
|
|
94
|
+
if (onConfirm && typeof onConfirm === "function") {
|
|
95
|
+
let result = onConfirm(response, this.close);
|
|
96
|
+
if (result !== false) {
|
|
97
|
+
this.close();
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
this.close();
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
/**
|
|
106
|
+
* file 转Base64 DataURL
|
|
107
|
+
* @param {File} file
|
|
108
|
+
* @returns
|
|
109
|
+
*/
|
|
110
|
+
fileToBase64Async(file) {
|
|
111
|
+
return new Promise((resolve, reject) => {
|
|
112
|
+
let reader = new FileReader();
|
|
113
|
+
reader.readAsDataURL(file);
|
|
114
|
+
reader.onload = (e) => {
|
|
115
|
+
resolve(e.target.result);
|
|
116
|
+
};
|
|
88
117
|
});
|
|
89
118
|
},
|
|
90
119
|
},
|