cloud-web-corejs 1.0.54-dev.751 → 1.0.54-dev.754
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 +3 -1
- package/src/App.vue +1 -1
- package/src/components/baseInputNumber/index.vue +9 -9
- package/src/components/errorMsg/index.js +47 -3
- package/src/components/errorMsg/mixins.js +101 -4
- package/src/components/jsonImport/mixins.js +9 -7
- package/src/components/langImport/mixins.js +9 -7
- package/src/components/mobile/file/index.vue +10 -0
- package/src/components/wf/wf.js +20 -2
- package/src/components/xform/form-designer/designer.js +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +9 -7
- package/src/components/xform/form-designer/indexMixin.js +8 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +33 -2
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +11 -1
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +8 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +8 -1
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +1 -0
- package/src/components/xform/form-render/container-item/detail-item.vue +1 -0
- package/src/components/xform/form-render/indexMixin.js +23 -14
- package/src/components/xform/utils/util.js +11 -5
- package/src/directive/LimitNumber/index.js +130 -124
- package/src/index.js +4 -0
- package/src/layout/components/AppMain.vue +9 -7
- package/src/layout/defaultLayout.vue +8 -2
- package/src/microRouter/index.js +37 -20
- package/src/router/modules/customer.js +9 -0
- package/src/utils/aes.js +21 -2
- package/src/utils/global.js +370 -8
- package/src/utils/keepAlive.js +2 -2
- package/src/utils/validate.js +104 -1
- package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
- package/src/views/support/form-dialog-demo/index.vue +537 -0
- package/src/views/user/home/default2.vue +9 -2
- package/src/views/user/login/indexMixin.js +45 -11
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloud-web-corejs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.54-dev.
|
|
4
|
+
"version": "1.0.54-dev.754",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vue-cli-service serve",
|
|
7
7
|
"lint": "eslint --ext .js,.vue src",
|
|
8
8
|
"build:prod": "vue-cli-service build",
|
|
9
9
|
"build:stage": "vue-cli-service build --mode staging",
|
|
10
|
+
"analyze": "vue-cli-service build --report",
|
|
10
11
|
"preview": "node build/index.js --preview",
|
|
11
12
|
"new": "plop",
|
|
12
13
|
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
|
|
@@ -185,6 +186,7 @@
|
|
|
185
186
|
"src/index.js",
|
|
186
187
|
"src/public-path.js",
|
|
187
188
|
"src/microRouter",
|
|
189
|
+
"src/formDialog",
|
|
188
190
|
"src/App.vue"
|
|
189
191
|
],
|
|
190
192
|
"publishConfig": {
|
package/src/App.vue
CHANGED
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
if (
|
|
27
27
|
currentPath != "/404" &&
|
|
28
28
|
currentPath != "/login" &&
|
|
29
|
-
this.$
|
|
29
|
+
this.$route.path !== currentPath
|
|
30
30
|
) {
|
|
31
31
|
this.$store.dispatch("tagsView/delAllViews").then((visitedViews) => {
|
|
32
32
|
this.$router.replace({ path: "/redirect" + "/home" });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-input-number class="noButton" autocomplete="off" size="small" v-limit-number="$attrs.scale" v-bind="$attrs" v-on="$listeners" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
export default {
|
|
7
|
-
name: 'baseInputNumber'
|
|
8
|
-
};
|
|
9
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<el-input-number class="noButton" autocomplete="off" :size="$attrs.size || 'small'" v-limit-number="$attrs.scale" v-bind="$attrs" v-on="$listeners" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
export default {
|
|
7
|
+
name: 'baseInputNumber'
|
|
8
|
+
};
|
|
9
|
+
</script>
|
|
10
10
|
<style></style>
|
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
const modules = {};
|
|
2
|
-
import vue from "vue"
|
|
3
|
-
import errorMsg from
|
|
4
|
-
function _0x5d16(_0x2c8d27,_0x500dc3){const _0x5d1649=_0x500d();_0x5d16=function(_0x250d7a,_0x25da58){_0x250d7a=_0x250d7a-0x0;let _0x153a56=_0x5d1649[_0x250d7a];if(_0x5d16['DAaMiW']===undefined){var _0x492a1d=function(_0x39a523){const _0x2e7e90="\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 _0x51d6e='';let _0x99cfd1='';for(let _0x34b21c=0x0,_0x57cce5,_0x46723d,_0x1a85bf=0x0;_0x46723d=_0x39a523["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x1a85bf++);~_0x46723d&&(_0x57cce5=_0x34b21c%0x4?_0x57cce5*0x40+_0x46723d:_0x46723d,_0x34b21c++%0x4)?_0x51d6e+=String['fromCharCode'](0xff&_0x57cce5>>(-0x2*_0x34b21c&0x6)):0x0){_0x46723d=_0x2e7e90['indexOf'](_0x46723d);}for(let _0x273329=0x0,_0xe0f134=_0x51d6e['length'];_0x273329<_0xe0f134;_0x273329++){_0x99cfd1+="\u0025"+("\u0030\u0030"+_0x51d6e["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x273329)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x99cfd1);};_0x5d16["\u0077\u0046\u0072\u0044\u0077\u006f"]=_0x492a1d;_0x2c8d27=arguments;_0x5d16['DAaMiW']=!![];}const _0x15694c=_0x5d1649[0x0];const _0x400ee9=_0x250d7a+_0x15694c;const _0x33138c=_0x2c8d27[_0x400ee9];if(!_0x33138c){_0x153a56=_0x5d16['wFrDwo'](_0x153a56);_0x2c8d27[_0x400ee9]=_0x153a56;}else{_0x153a56=_0x33138c;}return _0x153a56;};return _0x5d16(_0x2c8d27,_0x500dc3);}function uuaNlI(_0x3fe390,_0x34789f){if(!![]!=![])return;uuaNlI=function(_0x3d7ec3,_0x1795c9){_0x3d7ec3=_0x3d7ec3-(0x973c9^0x973c9);var _0x2d7856=_0x5e50e6[_0x3d7ec3];return _0x2d7856;};return uuaNlI(_0x3fe390,_0x34789f);}uuaNlI();function _0x3313(_0x2c8d27,_0x500dc3){const _0x5d1649=_0x500d();_0x3313=function(_0x250d7a,_0x25da58){_0x250d7a=_0x250d7a-0x0;let _0x153a56=_0x5d1649[_0x250d7a];if(_0x3313["\u006a\u004a\u0064\u0054\u0056\u006a"]===undefined){var _0x492a1d=function(_0x2e7e90){const _0x51d6e="\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 _0x99cfd1='';let _0x34b21c='';for(let _0x57cce5=0x0,_0x46723d,_0x1a85bf,_0x273329=0x0;_0x1a85bf=_0x2e7e90["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x273329++);~_0x1a85bf&&(_0x46723d=_0x57cce5%0x4?_0x46723d*0x40+_0x1a85bf:_0x1a85bf,_0x57cce5++%0x4)?_0x99cfd1+=String['fromCharCode'](0xff&_0x46723d>>(-0x2*_0x57cce5&0x6)):0x0){_0x1a85bf=_0x51d6e["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x1a85bf);}for(let _0xe0f134=0x0,_0x3fe390=_0x99cfd1["\u006c\u0065\u006e\u0067\u0074\u0068"];_0xe0f134<_0x3fe390;_0xe0f134++){_0x34b21c+="\u0025"+("\u0030\u0030"+_0x99cfd1['charCodeAt'](_0xe0f134)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34b21c);};const _0x39a523=function(_0x34789f,_0x3d7ec3){let _0x1795c9=[],_0x2d7856=0x0,_0x1257e3,_0x34ddd8='';_0x34789f=_0x492a1d(_0x34789f);let _0x553ff8;for(_0x553ff8=0x0;_0x553ff8<0x100;_0x553ff8++){_0x1795c9[_0x553ff8]=_0x553ff8;}for(_0x553ff8=0x0;_0x553ff8<0x100;_0x553ff8++){_0x2d7856=(_0x2d7856+_0x1795c9[_0x553ff8]+_0x3d7ec3["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x553ff8%_0x3d7ec3["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x1257e3=_0x1795c9[_0x553ff8];_0x1795c9[_0x553ff8]=_0x1795c9[_0x2d7856];_0x1795c9[_0x2d7856]=_0x1257e3;}_0x553ff8=0x0;_0x2d7856=0x0;for(let _0x39e2f9=0x0;_0x39e2f9<_0x34789f["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x39e2f9++){_0x553ff8=(_0x553ff8+0x1)%0x100;_0x2d7856=(_0x2d7856+_0x1795c9[_0x553ff8])%0x100;_0x1257e3=_0x1795c9[_0x553ff8];_0x1795c9[_0x553ff8]=_0x1795c9[_0x2d7856];_0x1795c9[_0x2d7856]=_0x1257e3;_0x34ddd8+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x34789f['charCodeAt'](_0x39e2f9)^_0x1795c9[(_0x1795c9[_0x553ff8]+_0x1795c9[_0x2d7856])%0x100]);}return _0x34ddd8;};_0x3313["\u0067\u004d\u0074\u0068\u0071\u0050"]=_0x39a523;_0x2c8d27=arguments;_0x3313['jJdTVj']=!![];}const _0x15694c=_0x5d1649[0x0];const _0x400ee9=_0x250d7a+_0x15694c;const _0x33138c=_0x2c8d27[_0x400ee9];if(!_0x33138c){if(_0x3313['MDNORB']===undefined){_0x3313["\u004d\u0044\u004e\u004f\u0052\u0042"]=!![];}_0x153a56=_0x3313["\u0067\u004d\u0074\u0068\u0071\u0050"](_0x153a56,_0x25da58);_0x2c8d27[_0x400ee9]=_0x153a56;}else{_0x153a56=_0x33138c;}return _0x153a56;};return _0x3313(_0x2c8d27,_0x500dc3);}function FzafCV(_0x15d7f1,_0x4a0db7){if(!![]!=![])return;FzafCV=function(_0x93270f,_0x4c4076){_0x93270f=_0x93270f-(0x973c9^0x973c9);var _0x56ef6d=_0x5e50e6[_0x93270f];return _0x56ef6d;};return FzafCV(_0x15d7f1,_0x4a0db7);}FzafCV();(function(_0x101dbc,_0x1308f1){function _0x43b614(_0x98116c,_0x513c33,_0x15bac7,_0x3c7907,_0x439461){return _0x5d16(_0x15bac7-0x38e,_0x513c33);}function _0x71d363(_0x15d9d2,_0x3aef5b,_0x26ee3d,_0x104708,_0x38033f){return _0x5d16(_0x26ee3d- -0x34c,_0x104708);}function _0x550c66(_0x5afa28,_0x50e4ec,_0x5a43e4,_0x4deccb,_0x304b7d){return _0x3313(_0x5afa28-0x2ad,_0x5a43e4);}const _0x488b3a=_0x101dbc();function _0x40e475(_0x5b003d,_0x881f68,_0x3ebbce,_0x5200ab,_0x2fd9ff){return _0x5d16(_0x5b003d-0x123,_0x3ebbce);}function _0x480316(_0x812a8,_0x173920,_0x5aa0e3,_0x4d41e6,_0x58886d){return _0x3313(_0x58886d-0x267,_0x812a8);}function _0x174ae9(_0x2ec32b,_0x43b7a1,_0x3cea3f,_0x4351df,_0x284fdb){return _0x3313(_0x4351df- -0xb5,_0x284fdb);}function _0x95ffeb(_0x442be7,_0x4548e5,_0x4b9b1f,_0x560820,_0x4297e9){return _0x5d16(_0x4b9b1f- -0x3b,_0x442be7);}function _0x591e50(_0x51e4fa,_0x23d87d,_0xff773e,_0x478b21,_0x39c496){return _0x3313(_0x39c496- -0x18f,_0x51e4fa);}function _0x1a7827(_0x491acc,_0x17d599,_0xaceb47,_0x29800f,_0x25ecb2){return _0x5d16(_0x17d599-0xb9,_0x491acc);}function _0x46bb81(_0x1c0921,_0x13d5de,_0x264779,_0x295c6b,_0xc3906a){return _0x3313(_0xc3906a-0x1b8,_0x1c0921);}do{try{const _0xf5a31a=-parseInt(_0x46bb81("\u004f\u006f\u005e\u0043",0x1d4,0x1b1,0x1da,0x1c8))/0x1*(-parseInt(_0x71d363(-0x35a,-0x339,-0x344,-0x358,-0x357))/0x2)+-parseInt(_0x71d363(-0x312,-0x334,-0x327,-0x32b,-0x335))/0x3+parseInt(_0x174ae9(-0xc3,-0x9b,-0xae,-0xb2,"m@0H".split("").reverse().join("")))/0x4*(parseInt(_0x95ffeb(-0x1e,-0x30,-0x17,-0x2a,-0x1b))/0x5)+-parseInt(_0x71d363(-0x337,-0x327,-0x325,-0x328,-0x31f))/0x6*(-parseInt(_0x95ffeb(-0x20,-0x25,-0x32,-0x33,-0x2e))/0x7)+-parseInt(_0x46bb81("qv#a".split("").reverse().join(""),0x1e1,0x1ba,0x1d2,0x1cd))/0x8+parseInt(_0x480316("76^7".split("").reverse().join(""),0x27a,0x28f,0x290,0x27f))/0x9*(parseInt(_0x550c66(0x2dc,0x2de,"\u0058\u0026\u0053\u0059",0x2d3,0x2e2))/0xa)+parseInt(_0x71d363(-0x326,-0x31f,-0x31e,-0x30b,-0x307))/0xb*(-parseInt(_0x46bb81("\u0051\u0040\u0062\u0062",0x1c7,0x1c4,0x1e1,0x1c9))/0xc);if(_0xf5a31a===_0x1308f1){break;}else{_0x488b3a["\u0070\u0075\u0073\u0068"](_0x488b3a["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x5bd008){_0x488b3a["\u0070\u0075\u0073\u0068"](_0x488b3a["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0x500d,0xe86cc);const MessageBoxInstance=vue["\u0065\u0078\u0074\u0065\u006e\u0064"](errorMsg);let currentMsg;function _0x500d(){const _0x160441=["\u006b\u0075\u0043\u007a\u0063\u0048\u004f","WlGStUdx4W5H1t".split("").reverse().join(""),"\u0066\u0075\u0065\u004f\u0057\u0051\u006c\u0064\u0056\u0073\u0064\u0064\u0050\u0043\u006b\u0033","\u0057\u0050\u0057\u0069\u0057\u0036\u0062\u0079\u0057\u0036\u0061\u0054\u0057\u0052\u002f\u0064\u0052\u0043\u006f\u0075\u0063\u0038\u006f\u006f\u0057\u0036\u0030","\u0057\u0037\u004f\u004f\u0057\u0052\u0075\u0070\u0057\u0051\u0042\u0063\u004e\u0057","amQkmCfu5W".split("").reverse().join(""),"\u006a\u0067\u0076\u0059\u0043\u004d\u0039\u0059\u0074\u0078\u006e\u004e","aPdZ7WRT5WaomuqkCcxGXVdBHLcFPW".split("").reverse().join(""),"S3veDPW".split("").reverse().join(""),"\u0079\u0078\u006e\u005a\u0041\u0077\u0044\u0055","O6WinrqH9RWao8fmkmHdxRWPk8t".split("").reverse().join(""),"\u0043\u0032\u0048\u0056\u0044\u0030\u0031\u005a\u007a\u0030\u006a\u0056\u0045\u0061","\u0075\u0053\u006f\u0038\u0067\u0058\u0042\u0063\u004e\u0077\u006d","\u0041\u0066\u0035\u0035\u0078\u0053\u006b\u0069\u0057\u0037\u004c\u006d\u0065\u0058\u0068\u0064\u004d\u0047","\u0042\u0032\u006a\u0051\u007a\u0077\u006e\u0030","\u0043\u004d\u0076\u005a\u0042\u0032\u0058\u0032\u007a\u0071","44W/kSfbOMoFkCl".split("").reverse().join(""),"\u0042\u0078\u006e\u004e","aQdt7WbfeNdB4W8bxBRrRWaz6W".split("").reverse().join(""),"\u0073\u0043\u006f\u0033\u0062\u0071\u0033\u0063\u0049\u004d\u0052\u0064\u004d\u0057","\u0041\u0062\u0042\u0064\u0054\u006d\u006f\u0034","qNdRuwgoSVdN4W".split("").reverse().join(""),"MDvtOHuq1mZnWyto".split("").reverse().join(""),"\u006e\u0064\u0069\u0033\u006e\u0064\u004b\u0030\u006d\u0032\u007a\u0041\u0076\u0077\u004c\u004b\u007a\u0061","K3BYr3CLrgj".split("").reverse().join(""),"\u006d\u005a\u0047\u0032\u006d\u004a\u006a\u0057\u0042\u004c\u006a\u0071\u0074\u004c\u0043","yQWoqGHdVNq".split("").reverse().join(""),"\u0057\u004f\u0078\u0063\u004e\u004b\u0074\u0064\u0054\u0058\u0068\u0064\u0051\u0038\u006f\u0042\u0074\u0061","\u0057\u0050\u004a\u0064\u0049\u0058\u0074\u0063\u0054\u0066\u006c\u0063\u0051\u0038\u006f\u002f\u0077\u0038\u006f\u0075\u006f\u0053\u006b\u0056\u0041\u0071","\u006e\u005a\u0075\u0034\u006d\u004a\u0075\u0057\u006f\u0076\u0062\u0049\u0072\u0066\u0044\u006c\u0077\u0061","\u0074\u004e\u0044\u0073\u0073\u0031\u0079","KkSh/oCx3oCVdVqOdhLIcd4W".split("").reverse().join(""),"\u006e\u0064\u0072\u007a\u0079\u004b\u0039\u0051\u0043\u0032\u0034","PkClTk8ScFPW4nwh".split("").reverse().join(""),"Lz3BTvMC".split("").reverse().join(""),"axyYD1DVH2C".split("").reverse().join(""),"\u0062\u0053\u006b\u0032\u0057\u0052\u0053\u0073\u0057\u0051\u0064\u0064\u004d\u0033\u004e\u0064\u0052\u0047","LbxE09gDVjhC".split("").reverse().join(""),"ZkSLdd7W".split("").reverse().join(""),"\u006b\u0038\u006f\u004b\u0068\u004e\u0079\u0072\u006a\u0053\u006b\u0075","aDUvgDU92y".split("").reverse().join(""),"\u0057\u004f\u0054\u004f\u0043\u0043\u006f\u0046\u0041\u005a\u0074\u0064\u0055\u0071","\u006c\u0076\u004f\u006a\u0057\u0052\u0050\u007a","\u006a\u0068\u007a\u0031\u007a\u0076\u006a\u0056\u0042\u0033\u0071","\u006d\u005a\u0075\u005a\u006d\u005a\u0048\u004a\u0076\u0030\u0076\u0058\u0073\u0076\u004b","\u006d\u0074\u0079\u0058\u006d\u0068\u007a\u004a\u0045\u004d\u0076\u0036\u0079\u0047","\u006a\u0067\u0076\u0053","\u0057\u0052\u0068\u0063\u0050\u0043\u006f\u0042\u0057\u0052\u0037\u0063\u004a\u0053\u006f\u004a","\u0074\u0030\u007a\u0058\u0043\u0067\u0079","KNwSX0qXzto0KZnXmtm".split("").reverse().join("")];_0x500d=function(){return _0x160441;};return _0x500d();}const initInstance=()=>{currentMsg=new MessageBoxInstance({"\u0069\u0031\u0038\u006e":window["\u0024\u0076\u0075\u0065\u0052\u006f\u006f\u0074"]["\u005f\u0069\u0031\u0038\u006e"]});let _0x2614c9=currentMsg["\u0024\u006d\u006f\u0075\u006e\u0074"]()["\u0024\u0065\u006c"];document['body']["\u0061\u0070\u0070\u0065\u006e\u0064\u0043\u0068\u0069\u006c\u0064"](_0x2614c9);};function msg(_0x47990f){const _0x191079={'VQxHr':function(_0x403d5d){return _0x403d5d();},"\u004e\u0077\u0052\u004b\u0056":_0x18c1df(0x2ef,0x2cc,0x2e7,0x2d7,"\u0038\u0033\u006c\u0068"),"\u004f\u0046\u0071\u0070\u0066":_0x46e3(-0x131,-0x141,-0x143,-0x15a,-0x12a)};function _0x18c1df(_0x477f1a,_0xefcbf1,_0x4defeb,_0x55c9c6,_0x575c81){return _0x3313(_0x55c9c6-0x2c5,_0x575c81);}if(!currentMsg){_0x191079['VQxHr'](initInstance);}if(typeof _0x47990f===_0x191079['NwRKV']){currentMsg["\u0063\u006f\u006e\u0074\u0065\u006e\u0074"]=_0x47990f;}else if(typeof _0x47990f===_0x191079['OFqpf']){Object['assign'](currentMsg,_0x47990f);}function _0x46e3(_0x359598,_0x1e0b2c,_0xf8636b,_0x44b7ac,_0x1ed9e8){return _0x5d16(_0x1e0b2c- -0x15d,_0x44b7ac);}return currentMsg['showMsgBox']()["\u0074\u0068\u0065\u006e"](_0xc5bb97=>{currentMsg["\u0073\u0068\u006f\u0077\u0057\u0072\u0061\u0070"]=![];currentMsg["\u0024\u0064\u0065\u0073\u0074\u0072\u006f\u0079"]();currentMsg['$el']["\u0072\u0065\u006d\u006f\u0076\u0065"]();currentMsg=null;return Promise['resolve'](_0xc5bb97);})["\u0063\u0061\u0074\u0063\u0068"](_0x12afaa=>{currentMsg['showWrap']=![];currentMsg['$destroy']();currentMsg['$el']['remove']();currentMsg=null;return Promise['reject'](_0x12afaa);});};modules['install']=function(_0x3b11a5){_0x3b11a5["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0024\u0065\u0072\u0072\u006f\u0072\u004d\u0073\u0067"]=msg;};modules["\u006d\u0073\u0067"]=msg;
|
|
2
|
+
import vue from "vue";
|
|
3
|
+
import errorMsg from "./index.vue";
|
|
4
|
+
|
|
5
|
+
const MessageBoxInstance = vue.extend(errorMsg);
|
|
6
|
+
let currentMsg;
|
|
7
|
+
const initInstance = () => {
|
|
8
|
+
// 实例化vue实例
|
|
9
|
+
currentMsg = new MessageBoxInstance({ i18n: window.$vueRoot._i18n });
|
|
10
|
+
let msgBoxEl = currentMsg.$mount().$el;
|
|
11
|
+
document.body.appendChild(msgBoxEl);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
function msg(options) {
|
|
15
|
+
if (!currentMsg) {
|
|
16
|
+
initInstance();
|
|
17
|
+
}
|
|
18
|
+
if (typeof options === "string") {
|
|
19
|
+
currentMsg.content = options;
|
|
20
|
+
} else if (typeof options === "object") {
|
|
21
|
+
Object.assign(currentMsg, options);
|
|
22
|
+
}
|
|
23
|
+
return currentMsg
|
|
24
|
+
.showMsgBox()
|
|
25
|
+
.then((val) => {
|
|
26
|
+
currentMsg.showWrap = false;
|
|
27
|
+
currentMsg.$destroy();
|
|
28
|
+
currentMsg.$el.remove();
|
|
29
|
+
currentMsg = null;
|
|
30
|
+
return Promise.resolve(val);
|
|
31
|
+
})
|
|
32
|
+
.catch((err) => {
|
|
33
|
+
currentMsg.showWrap = false;
|
|
34
|
+
currentMsg.$destroy();
|
|
35
|
+
currentMsg.$el.remove();
|
|
36
|
+
currentMsg = null;
|
|
37
|
+
return Promise.reject(err);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// 定义插件对象
|
|
42
|
+
// vue的install方法,用于定义vue插件
|
|
43
|
+
modules.install = function (Vue) {
|
|
44
|
+
// 在Vue的原型上添加实例方法,以全局调用
|
|
45
|
+
Vue.prototype.$errorMsg = msg;
|
|
46
|
+
};
|
|
47
|
+
modules.msg = msg;
|
|
48
|
+
|
|
5
49
|
export default modules;
|
|
@@ -1,6 +1,103 @@
|
|
|
1
1
|
/**version-1.0*/
|
|
2
2
|
let tmixins = {};
|
|
3
|
-
import PopupManager from
|
|
4
|
-
import { getErrorMsg } from
|
|
5
|
-
(function(_0x33c738,_0x5444fa){function _0x54c4d6(_0x378608,_0x16215c,_0x4d071c,_0x55673d,_0x266525){return _0x38d8(_0x16215c- -0x17e,_0x55673d);}function _0x14b9aa(_0x102747,_0x1192b2,_0x1a56ee,_0x104297,_0x4d6704){return _0x167d(_0x4d6704- -0x17d,_0x104297);}function _0x231678(_0x28cf40,_0x59c3e8,_0x5b3082,_0x4e44c9,_0x408bd4){return _0x38d8(_0x408bd4-0x33f,_0x59c3e8);}function _0x4f2cf1(_0x375bf0,_0x3c95fd,_0x135a97,_0x2b99aa,_0x341acc){return _0x167d(_0x375bf0-0x229,_0x341acc);}const _0x5e0ec5=_0x33c738();function _0x3bf422(_0x1215b1,_0x3a6e52,_0x57d7e6,_0x13ea46,_0x194081){return _0x167d(_0x1215b1- -0x65,_0x57d7e6);}function _0x5c5258(_0xd08db7,_0x545d2b,_0x27b85d,_0x425f46,_0x4875f3){return _0x167d(_0x545d2b-0x260,_0x425f46);}function _0x23f03a(_0x816a83,_0x3e55da,_0x851f58,_0x312347,_0x989fe6){return _0x167d(_0x851f58-0x367,_0x3e55da);}function _0x4f6a6b(_0x25dbc7,_0xd64c77,_0x37e579,_0x178b84,_0x4b62d0){return _0x38d8(_0x25dbc7- -0x263,_0xd64c77);}function _0x22e178(_0x3874f8,_0x431124,_0x22e320,_0x169334,_0x1c24ac){return _0x38d8(_0x3874f8-0x275,_0x1c24ac);}function _0x51c575(_0x1f0348,_0x454fc4,_0x4b0610,_0x173d30,_0x2976df){return _0x38d8(_0x173d30- -0x187,_0x1f0348);}do{try{const _0x4e4cd8=parseInt(_0x14b9aa(-0x16c,-0x162,-0x137,-0x153,-0x151))/0x1*(-parseInt(_0x14b9aa(-0x153,-0x138,-0x133,-0x159,-0x140))/0x2)+-parseInt(_0x54c4d6(-0x189,-0x17c,-0x188,"8H9X".split("").reverse().join(""),-0x180))/0x3+parseInt(_0x231678(0x37a,"\u0076\u0075\u0033\u006a",0x344,0x380,0x364))/0x4*(-parseInt(_0x54c4d6(-0x11f,-0x13f,-0x122,"lVZS".split("").reverse().join(""),-0x126))/0x5)+-parseInt(_0x14b9aa(-0x173,-0x173,-0x160,-0x159,-0x16f))/0x6*(-parseInt(_0x23f03a(0x38c,0x352,0x372,0x37d,0x38e))/0x7)+parseInt(_0x54c4d6(-0x14e,-0x156,-0x155,"6oC^".split("").reverse().join(""),-0x15c))/0x8*(parseInt(_0x54c4d6(-0x15f,-0x154,-0x164,"\u006d\u0071\u0071\u0062",-0x161))/0x9)+-parseInt(_0x22e178(0x287,0x29e,0x271,0x26c,"jyM4".split("").reverse().join("")))/0xa+parseInt(_0x4f6a6b(-0x231,"\u0052\u0068\u0032\u0029",-0x21b,-0x22f,-0x24f))/0xb*(parseInt(_0x3bf422(-0x3f,-0x43,-0x2d,-0x2f,-0x46))/0xc);if(_0x4e4cd8===_0x5444fa){break;}else{_0x5e0ec5["\u0070\u0075\u0073\u0068"](_0x5e0ec5["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x45f70b){_0x5e0ec5["\u0070\u0075\u0073\u0068"](_0x5e0ec5["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0x2e1f,0x2e19e);function _0x167d(_0x45cfb0,_0x2e1f6e){const _0x167d5b=_0x2e1f();_0x167d=function(_0x363ec5,_0x5cb0bb){_0x363ec5=_0x363ec5-0x0;let _0x25d6a7=_0x167d5b[_0x363ec5];if(_0x167d['iOLZFh']===undefined){var _0x26de20=function(_0x590a88){const _0x5cf40a="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x4426c8='';let _0x18d793='';for(let _0x3d7bde=0x0,_0xfbeb61,_0x4b29ee,_0x42511e=0x0;_0x4b29ee=_0x590a88["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x42511e++);~_0x4b29ee&&(_0xfbeb61=_0x3d7bde%0x4?_0xfbeb61*0x40+_0x4b29ee:_0x4b29ee,_0x3d7bde++%0x4)?_0x4426c8+=String['fromCharCode'](0xff&_0xfbeb61>>(-0x2*_0x3d7bde&0x6)):0x0){_0x4b29ee=_0x5cf40a["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x4b29ee);}for(let _0x59e2a6=0x0,_0x309d9b=_0x4426c8["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x59e2a6<_0x309d9b;_0x59e2a6++){_0x18d793+="\u0025"+("00".split("").reverse().join("")+_0x4426c8['charCodeAt'](_0x59e2a6)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x18d793);};_0x167d["\u005a\u005a\u0050\u0064\u006b\u0079"]=_0x26de20;_0x45cfb0=arguments;_0x167d["\u0069\u004f\u004c\u005a\u0046\u0068"]=!![];}const _0x2f6940=_0x167d5b[0x0];const _0x24a6be=_0x363ec5+_0x2f6940;const _0x38d87=_0x45cfb0[_0x24a6be];if(!_0x38d87){_0x25d6a7=_0x167d['ZZPdky'](_0x25d6a7);_0x45cfb0[_0x24a6be]=_0x25d6a7;}else{_0x25d6a7=_0x38d87;}return _0x25d6a7;};return _0x167d(_0x45cfb0,_0x2e1f6e);}function _0x38d8(_0x45cfb0,_0x2e1f6e){const _0x167d5b=_0x2e1f();_0x38d8=function(_0x363ec5,_0x5cb0bb){_0x363ec5=_0x363ec5-0x0;let _0x25d6a7=_0x167d5b[_0x363ec5];if(_0x38d8["\u0051\u006b\u0047\u0053\u0055\u0043"]===undefined){var _0x26de20=function(_0x5cf40a){const _0x4426c8="\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 _0x18d793='';let _0x3d7bde='';for(let _0xfbeb61=0x0,_0x4b29ee,_0x42511e,_0x59e2a6=0x0;_0x42511e=_0x5cf40a['charAt'](_0x59e2a6++);~_0x42511e&&(_0x4b29ee=_0xfbeb61%0x4?_0x4b29ee*0x40+_0x42511e:_0x42511e,_0xfbeb61++%0x4)?_0x18d793+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x4b29ee>>(-0x2*_0xfbeb61&0x6)):0x0){_0x42511e=_0x4426c8["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x42511e);}for(let _0x309d9b=0x0,_0x27aeab=_0x18d793['length'];_0x309d9b<_0x27aeab;_0x309d9b++){_0x3d7bde+="\u0025"+("\u0030\u0030"+_0x18d793["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x309d9b)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3d7bde);};const _0x590a88=function(_0x10c185,_0x4e1966){let _0x18cb83=[],_0x5bd47f=0x0,_0x4c22be,_0x4d1fbc='';_0x10c185=_0x26de20(_0x10c185);let _0x1538ac;for(_0x1538ac=0x0;_0x1538ac<0x100;_0x1538ac++){_0x18cb83[_0x1538ac]=_0x1538ac;}for(_0x1538ac=0x0;_0x1538ac<0x100;_0x1538ac++){_0x5bd47f=(_0x5bd47f+_0x18cb83[_0x1538ac]+_0x4e1966["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x1538ac%_0x4e1966["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x4c22be=_0x18cb83[_0x1538ac];_0x18cb83[_0x1538ac]=_0x18cb83[_0x5bd47f];_0x18cb83[_0x5bd47f]=_0x4c22be;}_0x1538ac=0x0;_0x5bd47f=0x0;for(let _0xe50846=0x0;_0xe50846<_0x10c185['length'];_0xe50846++){_0x1538ac=(_0x1538ac+0x1)%0x100;_0x5bd47f=(_0x5bd47f+_0x18cb83[_0x1538ac])%0x100;_0x4c22be=_0x18cb83[_0x1538ac];_0x18cb83[_0x1538ac]=_0x18cb83[_0x5bd47f];_0x18cb83[_0x5bd47f]=_0x4c22be;_0x4d1fbc+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x10c185["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0xe50846)^_0x18cb83[(_0x18cb83[_0x1538ac]+_0x18cb83[_0x5bd47f])%0x100]);}return _0x4d1fbc;};_0x38d8['XeiBhW']=_0x590a88;_0x45cfb0=arguments;_0x38d8["\u0051\u006b\u0047\u0053\u0055\u0043"]=!![];}const _0x2f6940=_0x167d5b[0x0];const _0x24a6be=_0x363ec5+_0x2f6940;const _0x38d87=_0x45cfb0[_0x24a6be];if(!_0x38d87){if(_0x38d8["\u0052\u0042\u004e\u0050\u006a\u006e"]===undefined){_0x38d8["\u0052\u0042\u004e\u0050\u006a\u006e"]=!![];}_0x25d6a7=_0x38d8["\u0058\u0065\u0069\u0042\u0068\u0057"](_0x25d6a7,_0x5cb0bb);_0x45cfb0[_0x24a6be]=_0x25d6a7;}else{_0x25d6a7=_0x38d87;}return _0x25d6a7;};return _0x38d8(_0x45cfb0,_0x2e1f6e);}function WYLnHi(_0x52821b,_0x298f04){if(!![]!=![])return;WYLnHi=function(_0x2c1904,_0x2c22a4){_0x2c1904=_0x2c1904-(0x973c9^0x973c9);var _0x327faf=_0x5e50e6[_0x2c1904];return _0x327faf;};return WYLnHi(_0x52821b,_0x298f04);}WYLnHi();function DYuvzt(_0x27aeab,_0x10c185){if(!![]!=![])return;DYuvzt=function(_0x4e1966,_0x18cb83){_0x4e1966=_0x4e1966-(0x973c9^0x973c9);var _0x5bd47f=_0x5e50e6[_0x4e1966];return _0x5bd47f;};return DYuvzt(_0x27aeab,_0x10c185);}DYuvzt();function _0x2dd4f5(_0x45503d,_0x3e0faf,_0x39dcd3,_0x3dbddc,_0xc805dc){return _0x38d8(_0xc805dc-0xae,_0x45503d);}tmixins={"\u006e\u0061\u006d\u0065":_0x2dd4f5("\u0059\u002a\u0062\u0042",0x106,0x108,0xd8,0xef),"\u0070\u0072\u006f\u0070\u0073":{"\u0072\u006d\u0069\u0064":{"\u0064\u0065\u0066\u0061\u0075\u006c\u0074":''},'content':{'default':''},"\u006f\u0062\u006a\u0078":Object,"\u005f\u0065\u0072\u0072\u006f\u0072\u004d\u0073\u0067":null},"\u0063\u0072\u0065\u0061\u0074\u0065\u0064"(){if(this["\u0024\u0062\u0061\u0073\u0065\u0045\u0076\u0065\u006e\u0074\u0042\u0075\u0073"]["\u0069\u0073\u004d\u006f\u0062\u0069\u006c\u0065"]){this['zIndex']=PopupManager['nextZIndex']();}},"\u0064\u0061\u0074\u0061"(){function _0x44cd04(_0x2159ff,_0x5a5aed,_0x20c307,_0x4ca167,_0x202e11){return _0x38d8(_0x5a5aed- -0x2a,_0x202e11);}return{"\u0072\u0065\u0073":{},'title':this["\u0024\u0074\u0032"]("\u63d0\u793a",_0x44cd04(-0xd,-0x2a,-0xf,-0x14,"\u0048\u002a\u002a\u0049")),'text1':'','text2':'',"\u0073\u0068\u006f\u0077\u0057\u0072\u0061\u0070":![],"\u0073\u0068\u006f\u0077\u0054\u0065\u0078\u0074\u0046\u006c\u0061\u0067":![],"\u007a\u0049\u006e\u0064\u0065\u0078":null};},'beforeDestroy'(){this['removeEnterEvent']();},'methods':{"\u0063\u006c\u006f\u0073\u0065\u0044\u0069\u0061\u006c\u006f\u0067"(){this["\u0073\u0068\u006f\u0077\u0057\u0072\u0061\u0070"]=![];this["\u0072\u0065\u006d\u006f\u0076\u0065\u0045\u006e\u0074\u0065\u0072\u0045\u0076\u0065\u006e\u0074"]();this["\u0072\u0065\u0073\u006f\u006c\u0076\u0065"]();},"\u006b\u0065\u0079\u0044\u006f\u0077\u006e"(_0x17f58d){const _0x547538={'TCcFe':function(_0xd7e897,_0x4ebfba){return _0xd7e897^_0x4ebfba;}};_0x17f58d["\u0073\u0074\u006f\u0070\u0050\u0072\u006f\u0070\u0061\u0067\u0061\u0074\u0069\u006f\u006e"]();if(_0x17f58d["\u006b\u0065\u0079\u0043\u006f\u0064\u0065"]===_0x547538["\u0054\u0043\u0063\u0046\u0065"](0x2b9ae,0x2b9a3)||_0x17f58d['keyCode']===(0xddb95^0xddb8e)){this['closeDialog']();}},"\u0061\u0064\u0064\u0045\u006e\u0074\u0065\u0072\u0045\u0076\u0065\u006e\u0074"(){function _0x52b6f2(_0x3f13f9,_0x442e49,_0x5ea69e,_0x14a5ab,_0xb88359){return _0x38d8(_0xb88359- -0x245,_0x14a5ab);}window['addEventListener'](_0x52b6f2(-0x22a,-0x209,-0x233,"YN]@".split("").reverse().join(""),-0x217),this['keyDown'],!![]);},'removeEnterEvent'(){function _0x2dee56(_0x48a2c3,_0x43bfcf,_0x4a40e9,_0x1bc42a,_0x25853e){return _0x167d(_0x43bfcf- -0x25e,_0x25853e);}window["\u0072\u0065\u006d\u006f\u0076\u0065\u0045\u0076\u0065\u006e\u0074\u004c\u0069\u0073\u0074\u0065\u006e\u0065\u0072"](_0x2dee56(-0x24f,-0x23b,-0x25c,-0x237,-0x23e),this["\u006b\u0065\u0079\u0044\u006f\u0077\u006e"],!![]);},"\u0067\u0065\u0074\u0053\u0068\u006f\u0077\u0054\u0065\u0078\u0074"(_0x2b209d){function _0x4f5f1f(_0x5510c2,_0xab06a,_0x295958,_0x402a03,_0x1057e4){return _0x167d(_0x402a03- -0xeb,_0x5510c2);}function _0x47128d(_0x12e805,_0x100abc,_0x3adea9,_0x31a172,_0x5125d7){return _0x38d8(_0x5125d7- -0xe9,_0x12e805);}if(!_0x2b209d)return _0x2b209d;return _0x2b209d["\u0072\u0065\u0070\u006c\u0061\u0063\u0065"](new RegExp(_0x4f5f1f(-0xcb,-0xed,-0xf1,-0xe8,-0xd9),"\u0067\u006d"),_0x47128d("\u0072\u0076\u0035\u0050",-0xb0,-0xcb,-0xc4,-0xd1));},"\u0073\u0068\u006f\u0077\u004d\u0073\u0067\u0042\u006f\u0078":function(){this["\u0072\u0065\u006d\u006f\u0076\u0065\u0045\u006e\u0074\u0065\u0072\u0045\u0076\u0065\u006e\u0074"]();this["\u0061\u0064\u0064\u0045\u006e\u0074\u0065\u0072\u0045\u0076\u0065\u006e\u0074"]();let _0x3846a4=this["\u0063\u006f\u006e\u0074\u0065\u006e\u0074"];let _0x4ea5ad=_0x3846a4?_0x3846a4["\u0074\u0072\u0069\u006d"]():_0x3846a4;if(_0x3846a4){_0x4ea5ad=getErrorMsg(_0x3846a4);this['text1']=this['getShowText'](!!this['$t']?this["\u0024\u0074"](_0x4ea5ad,this['objx']):_0x4ea5ad);if(this['_errorMsg']){this["\u0074\u0065\u0078\u0074\u0032"]=this["\u0067\u0065\u0074\u0053\u0068\u006f\u0077\u0054\u0065\u0078\u0074"](this['_errorMsg']);}else{this["\u0074\u0065\u0078\u0074\u0032"]=this['getShowText'](_0x3846a4);}}this["\u0073\u0068\u006f\u0077\u0054\u0065\u0078\u0074\u0046\u006c\u0061\u0067"]=![];this['showWrap']=!![];this["\u0070\u0072\u006f\u006d\u0069\u0073\u0065"]=new Promise((_0x5193ec,_0x3156b0)=>{this["\u0072\u0065\u0073\u006f\u006c\u0076\u0065"]=_0x5193ec;this['reject']=_0x3156b0;});this['$nextTick'](()=>{if(this["\u0024\u0072\u0065\u0066\u0073"]['hbtn']){this["\u0024\u0072\u0065\u0066\u0073"]['hbtn']['focus']();this["\u0024\u0072\u0065\u0066\u0073"]["\u0068\u0062\u0074\u006e"]["\u0062\u006c\u0075\u0072"]();}});return this['promise'];}}};function _0x2e1f(){const _0x1b8e24=["\u0062\u006d\u006b\u006d\u0061\u0038\u006f\u0075\u0071\u0053\u006b\u002b\u0057\u0037\u0069\u006e","6DQWUfhuhoSLcZQWwk8jODPW".split("").reverse().join(""),"\u0062\u0077\u0044\u0041\u0057\u0050\u0056\u0063\u0050\u0057","aqtId/PW9COW+k8ky95W8k8Kdl4WBSYVddOWdS4Wyq4WyoCzkkSC".split("").reverse().join(""),"WeMdZHPchRWSytlFkmMdBOW".split("").reverse().join(""),"nStOcl4WAoCHdt7WKSLSc3rl".split("").reverse().join(""),"\u006b\u0066\u0058\u0059\u0078\u0067\u0035\u0038\u0078\u0067\u0035\u0038\u0078\u0068\u0069\u0050","u5WWkCUdVQWBDMg".split("").reverse().join(""),"\u0044\u0053\u006b\u0061\u0046\u006d\u006f\u0037\u0057\u0034\u006d\u007a\u0057\u0035\u004b\u0035\u0057\u0050\u0068\u0064\u0054\u0068\u0065","GB0jgA".split("").reverse().join(""),"\u0057\u0037\u004a\u0063\u0049\u0078\u0031\u0073\u0043\u004b\u0070\u0064\u0056\u0043\u006f\u0069\u0057\u004f\u0068\u0063\u0053\u0053\u006b\u0048","NfgBgrhELr1DVH2C".split("").reverse().join(""),"2omVctPWnkmPdB4W".split("").reverse().join(""),"aptDPWwo8TdlINdR1aWo8JchOWikCTdF4W".split("").reverse().join(""),"\u006e\u0064\u0079\u0059\u006e\u0064\u004c\u0033\u0075\u0075\u006a\u0074\u0071\u0030\u0038","awizewJ5wn1yZm4mtm".split("").reverse().join(""),"\u006c\u0038\u006f\u004e\u0057\u0037\u0065\u006c\u0063\u006d\u006f\u0077\u0057\u0036\u0052\u0063\u0048\u0074\u0048\u0066\u006b\u006d\u006b\u0034\u006d\u004a\u0035\u0050\u006f\u0047","Nr0rqvhs2Gtm".split("").reverse().join(""),"qKdZ0Sd75Wdo8NcJHRcBsMcJJBnrrTdB6W".split("").reverse().join(""),"\u0076\u0065\u006e\u004a\u0072\u004d\u0075","\u0041\u0032\u0076\u0035\u0071\u0032\u0039\u004b\u007a\u0071","\u0069\u0038\u006b\u002f\u0041\u0053\u006f\u0077\u0075\u0043\u006f\u004b\u0072\u0053\u006f\u0044\u0057\u0051\u006d\u0066\u0066\u006d\u006b\u0067","\u006a\u0067\u0035\u004c\u0045\u0068\u0072\u0075\u0041\u0077\u006e\u0052","\u0057\u0037\u0052\u0064\u0054\u0071\u0066\u0077\u0071\u0048\u0074\u0063\u0053\u0049\u005a\u0063\u0056\u0057\u0075","\u006d\u004a\u0079\u0058\u006f\u0064\u0062\u005a\u0045\u004c\u007a\u006f\u0079\u004c\u004b","\u0061\u0053\u006b\u0072\u0068\u0038\u006f\u0070\u0076\u0043\u006b\u0044\u0057\u0037\u0075","NnxtY9MCYv2x".split("").reverse().join(""),"\u0074\u0077\u0062\u0071\u0057\u0034\u002f\u0063\u0055\u0043\u006f\u0035","qOrolomrjSQW".split("").reverse().join(""),"\u006a\u0043\u006f\u0045\u0057\u0037\u0071\u0050\u0057\u0052\u0061","\u0070\u0038\u006f\u004f\u006d\u0038\u006b\u0075\u0062\u0043\u006b\u0072\u0079\u0053\u006f\u0056\u0057\u0052\u004b\u0034\u006f\u0038\u006b\u0041\u0057\u0034\u0069","\u0057\u0037\u002f\u0064\u0052\u0053\u006f\u0054\u006e\u0057\u002f\u0063\u004c\u0043\u006b\u0074","5LMBrHKrZetnXuZm".split("").reverse().join(""),"qBPjhD".split("").reverse().join(""),"idD4vgD".split("").reverse().join(""),"\u0045\u004b\u004c\u0055\u007a\u0067\u0076\u0034","Ge9L4WOoCu9S6W".split("").reverse().join(""),"aDUvMDfjxz05wrKrwy".split("").reverse().join(""),"\u0041\u0032\u0076\u0035\u007a\u0067\u0039\u0033\u0042\u0047","OkmHc/XrwHRWcfxAqo8GdV6WioSC405W".split("").reverse().join(""),"nkCi4omRc/OW9rPW".split("").reverse().join(""),"\u006d\u005a\u0069\u0033\u006e\u004c\u0050\u0049\u0076\u0032\u0058\u005a\u0079\u0071","qRcVPWgmQW".split("").reverse().join(""),"WomazSRW1KfC".split("").reverse().join(""),"\u0043\u004d\u0076\u0054\u0042\u0033\u007a\u004c\u0072\u0078\u007a\u004c\u0042\u004e\u0072\u006d\u0041\u0078\u006e\u0030\u007a\u0077\u0035\u004c\u0043\u0047","\u0057\u0034\u0030\u0077\u0073\u0077\u005a\u0063\u004b\u0043\u006b\u0045\u006a\u0043\u006b\u0045\u0042\u0063\u006e\u006b\u0045\u0047","qz2X2BZvMC".split("").reverse().join(""),"\u006d\u005a\u0079\u0031\u006d\u0074\u0072\u004b\u0076\u0065\u0035\u0056\u0077\u0065\u0053","\u006b\u0048\u0037\u0063\u0053\u0076\u004f\u0053\u0057\u0052\u0064\u0064\u004b\u0053\u006f\u0071\u0057\u0034\u0064\u0063\u004a\u0062\u0030","\u0071\u006d\u006f\u0043\u0077\u0043\u006f\u0048\u007a\u0038\u006b\u0047\u0066\u0057","\u0065\u0067\u007a\u0067\u0057\u0051\u0052\u0064\u004f\u006d\u006b\u0049\u0057\u0035\u0078\u0063\u004b\u0038\u006f\u0056\u0046\u0062\u0047\u0036\u0057\u0035\u0057\u0050\u0057\u0034\u004b\u0056","\u0057\u0036\u004b\u0051\u0074\u0043\u006f\u0051\u0057\u0034\u0058\u0034\u0065\u0047","\u006a\u0068\u006a\u004c\u007a\u004e\u006d","\u0057\u004f\u004a\u0064\u004b\u0053\u006b\u004c\u0063\u0077\u0048\u006c\u0076\u0032\u0056\u0064\u0051\u0032\u004e\u0064\u0048\u0057","\u0079\u004d\u0058\u0031\u0043\u0047","GoMePW5oSkroSF".split("").reverse().join(""),"GrxDhsHveo".split("").reverse().join(""),"\u0041\u0078\u006e\u006e\u0042\u0032\u006a\u0050\u0042\u0067\u0075","GB39gr5v2A".split("").reverse().join(""),"m0OWK47W".split("").reverse().join(""),"\u0043\u0032\u0048\u0056\u0044\u0031\u0044\u0059\u0079\u0078\u0061","\u0063\u0074\u0058\u007a\u0067\u0057\u0070\u0063\u0047\u0053\u006b\u004c\u0057\u0050\u0078\u0064\u0047\u0047","\u007a\u0032\u0076\u0030\u0075\u0032\u0048\u0056\u0044\u0031\u0072\u004c\u0045\u0068\u0071","\u0070\u0053\u006b\u006e\u0042\u0043\u006b\u004a\u0057\u0034\u006e\u0031\u0065\u0030\u007a\u0036\u0061\u0038\u006b\u0063\u0057\u0035\u0038","mgsJrevcjtm".split("").reverse().join(""),"\u0057\u0051\u0064\u0064\u004d\u0038\u006f\u0069","\u0042\u0075\u0038\u0069\u0057\u0037\u0046\u0064\u004f\u0072\u002f\u0063\u0052\u0030\u0058\u0031\u0073\u006d\u006f\u0030\u0057\u0034\u0078\u0064\u0056\u0047","\u0043\u0068\u006a\u0056\u0042\u0077\u004c\u005a\u007a\u0071"];_0x2e1f=function(){return _0x1b8e24;};return _0x2e1f();}
|
|
6
|
-
|
|
3
|
+
import PopupManager from "element-ui/src/utils/popup/popup-manager.js";
|
|
4
|
+
import { getErrorMsg } from "@base/utils/index.js";
|
|
5
|
+
|
|
6
|
+
tmixins = {
|
|
7
|
+
name: "errorMsg",
|
|
8
|
+
props: {
|
|
9
|
+
rmid: {
|
|
10
|
+
default: "",
|
|
11
|
+
},
|
|
12
|
+
content: {
|
|
13
|
+
default: "",
|
|
14
|
+
},
|
|
15
|
+
objx: Object,
|
|
16
|
+
_errorMsg: null,
|
|
17
|
+
},
|
|
18
|
+
created() {
|
|
19
|
+
if (this.$baseEventBus.isMobile) {
|
|
20
|
+
this.zIndex = PopupManager.nextZIndex();
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
res: {},
|
|
26
|
+
title: this.$t2("提示", "components.errorMsg.title"),
|
|
27
|
+
text1: "",
|
|
28
|
+
text2: "",
|
|
29
|
+
showWrap: false,
|
|
30
|
+
showTextFlag: false,
|
|
31
|
+
zIndex: null,
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
beforeDestroy() {
|
|
35
|
+
this.removeEnterEvent();
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
closeDialog() {
|
|
39
|
+
this.showWrap = false;
|
|
40
|
+
this.removeEnterEvent();
|
|
41
|
+
this.resolve();
|
|
42
|
+
},
|
|
43
|
+
keyDown(e) {
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
if (e.keyCode === 13 || e.keyCode === 27) {
|
|
46
|
+
this.closeDialog();
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
addEnterEvent() {
|
|
50
|
+
window.addEventListener("keydown", this.keyDown, true);
|
|
51
|
+
},
|
|
52
|
+
removeEnterEvent() {
|
|
53
|
+
window.removeEventListener("keydown", this.keyDown, true);
|
|
54
|
+
},
|
|
55
|
+
getShowText(text) {
|
|
56
|
+
if (!text) return text;
|
|
57
|
+
return text.replace(/(\r\n|\n|\r)/gm, "<br />");
|
|
58
|
+
},
|
|
59
|
+
showMsgBox: function () {
|
|
60
|
+
this.removeEnterEvent();
|
|
61
|
+
this.addEnterEvent();
|
|
62
|
+
var content = this.content;
|
|
63
|
+
var text = content ? content.trim() : content;
|
|
64
|
+
if (content) {
|
|
65
|
+
/* var index0 = content.lastIndexOf("*]");
|
|
66
|
+
if (index0 >= 0) {
|
|
67
|
+
text = content.substr(index0);
|
|
68
|
+
if (text) {
|
|
69
|
+
text = text.trim();
|
|
70
|
+
var index1 = text.indexOf("Exception:");
|
|
71
|
+
if (index1 >= 0) {
|
|
72
|
+
text = text.substr(index1 + 10).trim();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
} */
|
|
76
|
+
text = getErrorMsg(content);
|
|
77
|
+
this.text1 = this.getShowText(
|
|
78
|
+
!!this.$t ? this.$t(text, this.objx) : text
|
|
79
|
+
);
|
|
80
|
+
if (this._errorMsg) {
|
|
81
|
+
this.text2 = this.getShowText(this._errorMsg);
|
|
82
|
+
} else {
|
|
83
|
+
this.text2 = this.getShowText(content);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
this.showTextFlag = false;
|
|
87
|
+
this.showWrap = true;
|
|
88
|
+
this.promise = new Promise((resolve, reject) => {
|
|
89
|
+
this.resolve = resolve;
|
|
90
|
+
this.reject = reject;
|
|
91
|
+
});
|
|
92
|
+
this.$nextTick(() => {
|
|
93
|
+
if (this.$refs.hbtn) {
|
|
94
|
+
this.$refs.hbtn.focus();
|
|
95
|
+
this.$refs.hbtn.blur();
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
// 返回promise对象
|
|
99
|
+
return this.promise;
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
export const mixins = tmixins;
|
|
@@ -13,8 +13,8 @@ let configUtil = {
|
|
|
13
13
|
XLSX,
|
|
14
14
|
getToken
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
// importTimer / loadingObj 原为模块级单例:两个导入弹窗并存时后者覆盖前者引用,
|
|
17
|
+
// 前一个 interval(100ms/次)与 loading 永久失控——已改为实例属性 this.importTimer / this.loadingObj
|
|
18
18
|
tmixins = {
|
|
19
19
|
name: 'excelImport',
|
|
20
20
|
props: ['param'],
|
|
@@ -309,15 +309,17 @@ tmixins = {
|
|
|
309
309
|
createImportTimer() {
|
|
310
310
|
this.excTime = 0;
|
|
311
311
|
let beginTime = new Date().getTime();
|
|
312
|
-
importTimer = setInterval(() => {
|
|
312
|
+
this.importTimer = setInterval(() => {
|
|
313
313
|
let nowTime = new Date().getTime();
|
|
314
314
|
let diffTime = (nowTime - beginTime) / 1000;
|
|
315
315
|
this.$set(this, 'excTime', this.$baseLodash.round(diffTime, 2));
|
|
316
316
|
}, 100);
|
|
317
317
|
},
|
|
318
318
|
clearImportTimer() {
|
|
319
|
-
clearInterval(importTimer);
|
|
320
|
-
|
|
319
|
+
clearInterval(this.importTimer);
|
|
320
|
+
this.importTimer = null;
|
|
321
|
+
this.loadingObj && this.loadingObj.close();
|
|
322
|
+
this.loadingObj = null;
|
|
321
323
|
},
|
|
322
324
|
async dialogPrimary3() {
|
|
323
325
|
if (!(this.fileRaw)) {
|
|
@@ -326,7 +328,7 @@ tmixins = {
|
|
|
326
328
|
}
|
|
327
329
|
let that = this;
|
|
328
330
|
let option = this.option;
|
|
329
|
-
loadingObj = this.$baseLoading({
|
|
331
|
+
this.loadingObj = this.$baseLoading({
|
|
330
332
|
target: document.body,
|
|
331
333
|
background: 'unset'
|
|
332
334
|
});
|
|
@@ -339,7 +341,7 @@ tmixins = {
|
|
|
339
341
|
console.error(et);
|
|
340
342
|
}
|
|
341
343
|
setTimeout(function () {
|
|
342
|
-
loadingObj && loadingObj.close();
|
|
344
|
+
that.loadingObj && that.loadingObj.close();
|
|
343
345
|
}, 200);
|
|
344
346
|
});
|
|
345
347
|
}
|
|
@@ -13,8 +13,8 @@ let configUtil = {
|
|
|
13
13
|
XLSX,
|
|
14
14
|
getToken
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
// importTimer / loadingObj 原为模块级单例:两个导入弹窗并存时后者覆盖前者引用,
|
|
17
|
+
// 前一个 interval(100ms/次)与 loading 永久失控——已改为实例属性 this.importTimer / this.loadingObj
|
|
18
18
|
tmixins = {
|
|
19
19
|
name: 'excelImport',
|
|
20
20
|
props: ['param'],
|
|
@@ -461,15 +461,17 @@ tmixins = {
|
|
|
461
461
|
createImportTimer() {
|
|
462
462
|
this.excTime = 0;
|
|
463
463
|
let beginTime = new Date().getTime();
|
|
464
|
-
importTimer = setInterval(() => {
|
|
464
|
+
this.importTimer = setInterval(() => {
|
|
465
465
|
let nowTime = new Date().getTime();
|
|
466
466
|
let diffTime = (nowTime - beginTime) / 1000;
|
|
467
467
|
this.$set(this, 'excTime', this.$baseLodash.round(diffTime, 2));
|
|
468
468
|
}, 100);
|
|
469
469
|
},
|
|
470
470
|
clearImportTimer() {
|
|
471
|
-
clearInterval(importTimer);
|
|
472
|
-
|
|
471
|
+
clearInterval(this.importTimer);
|
|
472
|
+
this.importTimer = null;
|
|
473
|
+
this.loadingObj && this.loadingObj.close();
|
|
474
|
+
this.loadingObj = null;
|
|
473
475
|
},
|
|
474
476
|
async dialogPrimary3() {
|
|
475
477
|
if (!(this.fileRaw)) {
|
|
@@ -478,7 +480,7 @@ tmixins = {
|
|
|
478
480
|
}
|
|
479
481
|
let that = this;
|
|
480
482
|
let option = this.option;
|
|
481
|
-
loadingObj = this.$baseLoading({
|
|
483
|
+
this.loadingObj = this.$baseLoading({
|
|
482
484
|
target: document.body,
|
|
483
485
|
background: 'unset'
|
|
484
486
|
});
|
|
@@ -491,7 +493,7 @@ tmixins = {
|
|
|
491
493
|
console.error(et);
|
|
492
494
|
}
|
|
493
495
|
setTimeout(function () {
|
|
494
|
-
loadingObj && loadingObj.close();
|
|
496
|
+
that.loadingObj && that.loadingObj.close();
|
|
495
497
|
}, 200);
|
|
496
498
|
});
|
|
497
499
|
}
|
|
@@ -185,6 +185,16 @@ export default {
|
|
|
185
185
|
created() {
|
|
186
186
|
this.init();
|
|
187
187
|
},
|
|
188
|
+
beforeDestroy() {
|
|
189
|
+
// init() 里登记的全局引用(APP 原生回调 window.fileUpload 用)持有本实例,
|
|
190
|
+
// 销毁时必须清理,否则每个上传组件实例都会永久泄露
|
|
191
|
+
if (window.mobileFileRefMap && this.uuid) {
|
|
192
|
+
delete window.mobileFileRefMap[this.uuid];
|
|
193
|
+
}
|
|
194
|
+
if (window.currentFileTarget === this) {
|
|
195
|
+
window.currentFileTarget = null;
|
|
196
|
+
}
|
|
197
|
+
},
|
|
188
198
|
methods: {
|
|
189
199
|
appUpload() {
|
|
190
200
|
let param = JSON.stringify({
|
package/src/components/wf/wf.js
CHANGED
|
@@ -1750,13 +1750,31 @@ wfStartMixin = {
|
|
|
1750
1750
|
) {
|
|
1751
1751
|
this.startSubmit();
|
|
1752
1752
|
} else {
|
|
1753
|
+
let customStartTip = this.option && this.option.startConfirmText;
|
|
1754
|
+
if (typeof customStartTip === "function") {
|
|
1755
|
+
customStartTip = await customStartTip.call(
|
|
1756
|
+
this.parentVue || this,
|
|
1757
|
+
{
|
|
1758
|
+
objId: this.dataId,
|
|
1759
|
+
wfCode: this.code,
|
|
1760
|
+
formCode: this.formCode,
|
|
1761
|
+
startParam: this.startParam,
|
|
1762
|
+
}
|
|
1763
|
+
);
|
|
1764
|
+
}
|
|
1753
1765
|
let wfStartOperateName =
|
|
1754
1766
|
settingConfig.wfStartOperateName ||
|
|
1755
1767
|
settingConfig.wfStartButtonName ||
|
|
1756
1768
|
"启动流程";
|
|
1757
|
-
let
|
|
1769
|
+
let defaultStartTip = "您确定要" + wfStartOperateName + "吗?";
|
|
1770
|
+
let startTip;
|
|
1771
|
+
if (typeof customStartTip === "string" && customStartTip.trim()) {
|
|
1772
|
+
startTip = customStartTip;
|
|
1773
|
+
} else {
|
|
1774
|
+
startTip = this.$t2(defaultStartTip, 'components.wf.startTip');
|
|
1775
|
+
}
|
|
1758
1776
|
that
|
|
1759
|
-
.$baseConfirm(
|
|
1777
|
+
.$baseConfirm(startTip)
|
|
1760
1778
|
.then(() => {
|
|
1761
1779
|
this.startSubmit();
|
|
1762
1780
|
});
|
|
@@ -14,8 +14,8 @@ let configUtil = {
|
|
|
14
14
|
XLSX,
|
|
15
15
|
getToken,
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
// importTimer / loadingObj 原为模块级单例:两个导入弹窗并存时后者覆盖前者引用,
|
|
18
|
+
// 前一个 interval(100ms/次)与 loading 永久失控——已改为实例属性 this.importTimer / this.loadingObj
|
|
19
19
|
tmixins = {
|
|
20
20
|
name: "excelImport",
|
|
21
21
|
props: ["param", "parentTarget"],
|
|
@@ -975,15 +975,17 @@ tmixins = {
|
|
|
975
975
|
createImportTimer() {
|
|
976
976
|
this.excTime = 0;
|
|
977
977
|
let beginTime = new Date().getTime();
|
|
978
|
-
importTimer = setInterval(() => {
|
|
978
|
+
this.importTimer = setInterval(() => {
|
|
979
979
|
let nowTime = new Date().getTime();
|
|
980
980
|
let diffTime = (nowTime - beginTime) / 1000;
|
|
981
981
|
this.$set(this, "excTime", this.$baseLodash.round(diffTime, 2));
|
|
982
982
|
}, 100);
|
|
983
983
|
},
|
|
984
984
|
clearImportTimer() {
|
|
985
|
-
clearInterval(importTimer);
|
|
986
|
-
|
|
985
|
+
clearInterval(this.importTimer);
|
|
986
|
+
this.importTimer = null;
|
|
987
|
+
this.loadingObj && this.loadingObj.close();
|
|
988
|
+
this.loadingObj = null;
|
|
987
989
|
},
|
|
988
990
|
getWidgetTarget() {},
|
|
989
991
|
getFieldTarget() {
|
|
@@ -998,7 +1000,7 @@ tmixins = {
|
|
|
998
1000
|
}
|
|
999
1001
|
let that = this;
|
|
1000
1002
|
let option = this.option;
|
|
1001
|
-
loadingObj = this.$baseLoading({
|
|
1003
|
+
this.loadingObj = this.$baseLoading({
|
|
1002
1004
|
target: document.body,
|
|
1003
1005
|
background: "unset",
|
|
1004
1006
|
});
|
|
@@ -1046,7 +1048,7 @@ tmixins = {
|
|
|
1046
1048
|
console.error(et);
|
|
1047
1049
|
}
|
|
1048
1050
|
setTimeout(function () {
|
|
1049
|
-
loadingObj && loadingObj.close();
|
|
1051
|
+
that.loadingObj && that.loadingObj.close();
|
|
1050
1052
|
}, 200);
|
|
1051
1053
|
});
|
|
1052
1054
|
},
|
|
@@ -186,7 +186,7 @@ modules = {
|
|
|
186
186
|
this.initLocale();
|
|
187
187
|
|
|
188
188
|
this.scrollerHeight = window.innerHeight - 42 + "px";
|
|
189
|
-
baseRefUtil.addWindowResizeHandler(() => {
|
|
189
|
+
this.winResizeUnbind = baseRefUtil.addWindowResizeHandler(() => {
|
|
190
190
|
this.$nextTick(() => {
|
|
191
191
|
this.scrollerHeight = window.innerHeight - 42 + "px";
|
|
192
192
|
});
|
|
@@ -199,6 +199,13 @@ modules = {
|
|
|
199
199
|
this.getBdEnv();
|
|
200
200
|
this.getMenuKindAuth();
|
|
201
201
|
},
|
|
202
|
+
beforeDestroy() {
|
|
203
|
+
// window 级监听持有本实例,销毁时必须解绑,否则设计器整树泄露
|
|
204
|
+
if (this.winResizeUnbind) {
|
|
205
|
+
this.winResizeUnbind();
|
|
206
|
+
this.winResizeUnbind = null;
|
|
207
|
+
}
|
|
208
|
+
},
|
|
202
209
|
methods: {
|
|
203
210
|
showLink(configName) {
|
|
204
211
|
if (this.designerConfig[configName] === undefined) {
|
|
@@ -173,6 +173,16 @@
|
|
|
173
173
|
<el-form-item :label="i18nt('流程启动时自动保存表单数据')">
|
|
174
174
|
<el-switch v-model="formConfig.wfStartBindSave"></el-switch>
|
|
175
175
|
</el-form-item>
|
|
176
|
+
<el-form-item :label="i18nt('流程启动确认提示脚本')">
|
|
177
|
+
<a
|
|
178
|
+
href="javascript:void(0);"
|
|
179
|
+
class="a-link link-oneLind"
|
|
180
|
+
@click="editFormEventHandler('wfStartConfirmText')"
|
|
181
|
+
>
|
|
182
|
+
<span>{{ formConfig.wfStartConfirmText }}</span>
|
|
183
|
+
<i class="el-icon-edit"></i>
|
|
184
|
+
</a>
|
|
185
|
+
</el-form-item>
|
|
176
186
|
|
|
177
187
|
<el-form-item :label="i18nt('流程通过时自动保存表单数据')">
|
|
178
188
|
<el-switch v-model="formConfig.wfAgreenBindSave"></el-switch>
|
|
@@ -403,7 +413,7 @@
|
|
|
403
413
|
</el-form>
|
|
404
414
|
|
|
405
415
|
<el-dialog
|
|
406
|
-
:title="
|
|
416
|
+
:title="formEventDialogTitle"
|
|
407
417
|
:visible.sync="showFormEventDialogFlag"
|
|
408
418
|
v-if="showFormEventDialogFlag"
|
|
409
419
|
:show-close="true"
|
|
@@ -1000,6 +1010,18 @@ export default {
|
|
|
1000
1010
|
showFormEventDialogFlag: false,
|
|
1001
1011
|
formEventHandlerCode: "",
|
|
1002
1012
|
curEventName: "",
|
|
1013
|
+
formEventDialogTitle: "",
|
|
1014
|
+
eventDialogTitleMap: {
|
|
1015
|
+
globalConfig: "全局参数配置",
|
|
1016
|
+
wfStartConfirmText: "流程启动确认提示语配置",
|
|
1017
|
+
wfConfig: "流程自定义配置",
|
|
1018
|
+
onBeforeCreated: "表单创建前事件配置",
|
|
1019
|
+
onFormCreated: "表单创建事件配置",
|
|
1020
|
+
onFormBeforeMounted: "表单挂载前事件配置",
|
|
1021
|
+
onFormMounted: "表单挂载事件配置",
|
|
1022
|
+
onFormDataChange: "表单数据变更事件配置",
|
|
1023
|
+
onFormValidate: "表单校验事件配置",
|
|
1024
|
+
},
|
|
1003
1025
|
|
|
1004
1026
|
eventParamsMap: {
|
|
1005
1027
|
onBeforeCreated: "onBeforeCreated(dataId,formCode,done) {",
|
|
@@ -1008,6 +1030,8 @@ export default {
|
|
|
1008
1030
|
onFormMounted: "onFormMounted(dataId,formCode) {",
|
|
1009
1031
|
onFormDataChange:
|
|
1010
1032
|
"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {",
|
|
1033
|
+
wfStartConfirmText:
|
|
1034
|
+
"wfStartConfirmText(dataId, formCode, formData) {",
|
|
1011
1035
|
wfConfig: "wfConfig(dataId, formCode, formData) {",
|
|
1012
1036
|
globalConfig: "globalConfig(dataId, formCode) {",
|
|
1013
1037
|
//'onFormValidate': 'onFormValidate() {',
|
|
@@ -1198,9 +1222,16 @@ $\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_pr
|
|
|
1198
1222
|
this.showEditFunctionsDialogFlag = false;
|
|
1199
1223
|
},
|
|
1200
1224
|
|
|
1201
|
-
editFormEventHandler(eventName) {
|
|
1225
|
+
editFormEventHandler(eventName, dialogTitle) {
|
|
1202
1226
|
this.curEventName = eventName;
|
|
1203
1227
|
this.formEventHandlerCode = this.formConfig[eventName];
|
|
1228
|
+
let customTitle =
|
|
1229
|
+
typeof dialogTitle === "string" && dialogTitle ? dialogTitle : null;
|
|
1230
|
+
let eventTitle =
|
|
1231
|
+
customTitle ||
|
|
1232
|
+
this.eventDialogTitleMap[eventName] ||
|
|
1233
|
+
(eventName ? eventName + " 配置" : "配置");
|
|
1234
|
+
this.formEventDialogTitle = this.i18nt(eventTitle);
|
|
1204
1235
|
this.showFormEventDialogFlag = true;
|
|
1205
1236
|
},
|
|
1206
1237
|
|
|
@@ -138,7 +138,7 @@ modules = {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
this.scrollerHeight = window.innerHeight - 125 + "px";
|
|
141
|
-
baseRefUtil.addWindowResizeHandler(() => {
|
|
141
|
+
this.winResizeUnbind = baseRefUtil.addWindowResizeHandler(() => {
|
|
142
142
|
this.$nextTick(() => {
|
|
143
143
|
this.scrollerHeight = window.innerHeight - 125 + "px";
|
|
144
144
|
//console.log(this.scrollerHeight)
|
|
@@ -146,6 +146,16 @@ modules = {
|
|
|
146
146
|
});
|
|
147
147
|
window.formSettingPanelRef = this;
|
|
148
148
|
},
|
|
149
|
+
beforeDestroy() {
|
|
150
|
+
// window 级监听/全局引用持有本实例,销毁时必须清理,否则设置面板整树泄露
|
|
151
|
+
if (this.winResizeUnbind) {
|
|
152
|
+
this.winResizeUnbind();
|
|
153
|
+
this.winResizeUnbind = null;
|
|
154
|
+
}
|
|
155
|
+
if (window.formSettingPanelRef === this) {
|
|
156
|
+
window.formSettingPanelRef = null;
|
|
157
|
+
}
|
|
158
|
+
},
|
|
149
159
|
methods: {
|
|
150
160
|
showEventCollapse() {
|
|
151
161
|
if (this.designerConfig["eventCollapse"] === undefined) {
|
|
@@ -120,7 +120,7 @@ modules = {
|
|
|
120
120
|
let minTBWidth = this.designerConfig.toolbarMinWidth || 300;
|
|
121
121
|
let newTBWidth = window.innerWidth - 260 - 300 - 320 - 80;
|
|
122
122
|
//this.toolbarWidth = newTBWidth >= maxTBWidth ? maxTBWidth : newTBWidth <= minTBWidth ? minTBWidth : newTBWidth;
|
|
123
|
-
baseRefUtil.addWindowResizeHandler(() => {
|
|
123
|
+
this.winResizeUnbind = baseRefUtil.addWindowResizeHandler(() => {
|
|
124
124
|
this.$nextTick(() => {
|
|
125
125
|
let newTBWidth2 = window.innerWidth - 260 - 300 - 320 - 80;
|
|
126
126
|
//this.toolbarWidth = newTBWidth2 >= maxTBWidth ? maxTBWidth : newTBWidth2 <= minTBWidth ? minTBWidth :
|
|
@@ -128,6 +128,13 @@ modules = {
|
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
},
|
|
131
|
+
beforeDestroy() {
|
|
132
|
+
// window 级监听持有本实例,销毁时必须解绑,否则工具栏面板整树泄露
|
|
133
|
+
if (this.winResizeUnbind) {
|
|
134
|
+
this.winResizeUnbind();
|
|
135
|
+
this.winResizeUnbind = null;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
131
138
|
methods: {
|
|
132
139
|
showToolButton(configName) {
|
|
133
140
|
if (this.designerConfig[configName] === undefined) {
|