cloud-web-corejs 1.0.54-dev.674 → 1.0.54-dev.676
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 +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +164 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +15 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +7 -0
- package/src/components/xform/form-render/container-item/data-table-item.vue +0 -9
- package/src/components/xform/form-render/container-item/data-table-mixin.js +503 -26
- package/src/components/xform/form-render/indexMixin.js +15 -9
- package/src/components/xform/mixins/scriptHttp.js +176 -5
- package/src/components/xform/utils/util.js +11 -0
- package/src/utils/vab.js +87 -107
|
@@ -1,8 +1,179 @@
|
|
|
1
|
-
import {initWf} from
|
|
2
|
-
import {getReportGlobalMap} from "../../../components/xform/utils/util";
|
|
3
|
-
import {decrypt} from "@base/utils/aes";
|
|
4
|
-
|
|
1
|
+
import { initWf } from "../../../components/wf/wfUtil";
|
|
2
|
+
import { getReportGlobalMap } from "../../../components/xform/utils/util";
|
|
3
|
+
import { decrypt } from "@base/utils/aes";
|
|
5
4
|
|
|
6
5
|
let modules = {};
|
|
7
|
-
function _0x5046(_0x53112d,_0x3197a8){const _0x5046ff=_0x3197();_0x5046=function(_0x1d0562,_0x3a81b6){_0x1d0562=_0x1d0562-0x0;let _0x346f2f=_0x5046ff[_0x1d0562];if(_0x5046["\u0076\u0071\u0062\u0075\u0047\u004f"]===undefined){var _0x301952=function(_0xfe37b7){const _0xf85ffa="\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 _0x19b57a='';let _0x58173a='';for(let _0x131c58=0x0,_0x3bc18c,_0x147550,_0x36d8d9=0x0;_0x147550=_0xfe37b7["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x36d8d9++);~_0x147550&&(_0x3bc18c=_0x131c58%0x4?_0x3bc18c*0x40+_0x147550:_0x147550,_0x131c58++%0x4)?_0x19b57a+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x3bc18c>>(-0x2*_0x131c58&0x6)):0x0){_0x147550=_0xf85ffa["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x147550);}for(let _0x29dd1f=0x0,_0xccc4c1=_0x19b57a["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x29dd1f<_0xccc4c1;_0x29dd1f++){_0x58173a+="\u0025"+("00".split("").reverse().join("")+_0x19b57a["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x29dd1f)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x58173a);};_0x5046["\u004a\u0058\u006b\u0072\u004f\u0056"]=_0x301952;_0x53112d=arguments;_0x5046['vqbuGO']=!![];}const _0x161e26=_0x5046ff[0x0];const _0x10cd64=_0x1d0562+_0x161e26;const _0x12e6ce=_0x53112d[_0x10cd64];if(!_0x12e6ce){_0x346f2f=_0x5046["\u004a\u0058\u006b\u0072\u004f\u0056"](_0x346f2f);_0x53112d[_0x10cd64]=_0x346f2f;}else{_0x346f2f=_0x12e6ce;}return _0x346f2f;};return _0x5046(_0x53112d,_0x3197a8);}function pFCAmj(_0x579458,_0xfaaab7){if(!![]!=![])return;pFCAmj=function(_0x453bcd,_0x1d0138){_0x453bcd=_0x453bcd-(0x973c9^0x973c9);var _0x16278c=_0x5e50e6[_0x453bcd];return _0x16278c;};return pFCAmj(_0x579458,_0xfaaab7);}function _0x12e6(_0x53112d,_0x3197a8){const _0x5046ff=_0x3197();_0x12e6=function(_0x1d0562,_0x3a81b6){_0x1d0562=_0x1d0562-0x0;let _0x346f2f=_0x5046ff[_0x1d0562];if(_0x12e6['ZeMeDg']===undefined){var _0x301952=function(_0xf85ffa){const _0x19b57a="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x58173a='';let _0x131c58='';for(let _0x3bc18c=0x0,_0x147550,_0x36d8d9,_0x29dd1f=0x0;_0x36d8d9=_0xf85ffa["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x29dd1f++);~_0x36d8d9&&(_0x147550=_0x3bc18c%0x4?_0x147550*0x40+_0x36d8d9:_0x36d8d9,_0x3bc18c++%0x4)?_0x58173a+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x147550>>(-0x2*_0x3bc18c&0x6)):0x0){_0x36d8d9=_0x19b57a["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x36d8d9);}for(let _0xccc4c1=0x0,_0x579458=_0x58173a["\u006c\u0065\u006e\u0067\u0074\u0068"];_0xccc4c1<_0x579458;_0xccc4c1++){_0x131c58+="\u0025"+("\u0030\u0030"+_0x58173a['charCodeAt'](_0xccc4c1)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x131c58);};const _0xfe37b7=function(_0xfaaab7,_0x453bcd){let _0x1d0138=[],_0x16278c=0x0,_0x2abe4e,_0x2778a7='';_0xfaaab7=_0x301952(_0xfaaab7);let _0x30b6a6;for(_0x30b6a6=0x0;_0x30b6a6<0x100;_0x30b6a6++){_0x1d0138[_0x30b6a6]=_0x30b6a6;}for(_0x30b6a6=0x0;_0x30b6a6<0x100;_0x30b6a6++){_0x16278c=(_0x16278c+_0x1d0138[_0x30b6a6]+_0x453bcd['charCodeAt'](_0x30b6a6%_0x453bcd["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x2abe4e=_0x1d0138[_0x30b6a6];_0x1d0138[_0x30b6a6]=_0x1d0138[_0x16278c];_0x1d0138[_0x16278c]=_0x2abe4e;}_0x30b6a6=0x0;_0x16278c=0x0;for(let _0xca329f=0x0;_0xca329f<_0xfaaab7["\u006c\u0065\u006e\u0067\u0074\u0068"];_0xca329f++){_0x30b6a6=(_0x30b6a6+0x1)%0x100;_0x16278c=(_0x16278c+_0x1d0138[_0x30b6a6])%0x100;_0x2abe4e=_0x1d0138[_0x30b6a6];_0x1d0138[_0x30b6a6]=_0x1d0138[_0x16278c];_0x1d0138[_0x16278c]=_0x2abe4e;_0x2778a7+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0xfaaab7['charCodeAt'](_0xca329f)^_0x1d0138[(_0x1d0138[_0x30b6a6]+_0x1d0138[_0x16278c])%0x100]);}return _0x2778a7;};_0x12e6['ZTtcLe']=_0xfe37b7;_0x53112d=arguments;_0x12e6['ZeMeDg']=!![];}const _0x161e26=_0x5046ff[0x0];const _0x10cd64=_0x1d0562+_0x161e26;const _0x12e6ce=_0x53112d[_0x10cd64];if(!_0x12e6ce){if(_0x12e6["\u0074\u004f\u0056\u0067\u0065\u006a"]===undefined){_0x12e6['tOVgej']=!![];}_0x346f2f=_0x12e6["\u005a\u0054\u0074\u0063\u004c\u0065"](_0x346f2f,_0x3a81b6);_0x53112d[_0x10cd64]=_0x346f2f;}else{_0x346f2f=_0x12e6ce;}return _0x346f2f;};return _0x12e6(_0x53112d,_0x3197a8);}function iioWkG(_0x3ea5a3,_0x3fc616){if(!![]!=![])return;iioWkG=function(_0x15b40d,_0x17c1c1){_0x15b40d=_0x15b40d-(0x973c9^0x973c9);var _0x25ee84=_0x5e50e6[_0x15b40d];return _0x25ee84;};return iioWkG(_0x3ea5a3,_0x3fc616);}iioWkG();pFCAmj();(function(_0xa4bc63,_0x53c6fc){function _0x7d8dc5(_0x56d2a6,_0x3785f2,_0x2b3452,_0x38d1f4,_0x465117){return _0x5046(_0x56d2a6- -0x2cc,_0x2b3452);}function _0xd73585(_0x8b9f51,_0x1f30cd,_0x3b7b63,_0x5b913b,_0x4f5088){return _0x5046(_0x8b9f51-0x9a,_0x3b7b63);}function _0x34f2ab(_0x11bfdf,_0x45ca67,_0x1ff18d,_0xa7aae7,_0x558094){return _0x12e6(_0x558094- -0x1c,_0x45ca67);}function _0x13b484(_0x40878f,_0x165317,_0x46e249,_0x5b838e,_0x13cc1c){return _0x12e6(_0x165317-0x2ef,_0x40878f);}function _0x1d8c14(_0x41f4e2,_0x2747a1,_0x1e5906,_0xa24d16,_0x2dcf75){return _0x5046(_0x2747a1- -0x217,_0xa24d16);}function _0x2ceb1a(_0x2a6136,_0x5e0413,_0x37dde2,_0x2d6fce,_0x468b08){return _0x5046(_0x2a6136-0x2df,_0x5e0413);}function _0x4f65f8(_0x259720,_0x495922,_0x71a775,_0x5e28fa,_0x596131){return _0x5046(_0x71a775-0x3d2,_0x259720);}const _0x63a2d8=_0xa4bc63();function _0x4e55c1(_0x7a0714,_0x5bb527,_0x44b1ab,_0x6885b0,_0x5d93fc){return _0x12e6(_0x6885b0- -0x9a,_0x5d93fc);}function _0x1f031b(_0xbd6772,_0x405c43,_0x415c01,_0x91594a,_0x1b17a9){return _0x12e6(_0xbd6772- -0x2c0,_0x91594a);}function _0x1fa866(_0x3a4640,_0x36d6a0,_0x3db788,_0x5d1162,_0x2bc003){return _0x12e6(_0x2bc003- -0x36b,_0x36d6a0);}do{try{const _0x3e8ddd=-parseInt(_0x34f2ab(-0x3d,"\u0021\u0024\u004a\u0029",0x1c,-0x35,-0x15))/0x1+-parseInt(_0x34f2ab(0x16,"\u0043\u005b\u0056\u0053",-0x25,0x9,-0xf))/0x2*(-parseInt(_0x4f65f8(0x40f,0x3d8,0x3dd,0x3dd,0x3b7))/0x3)+-parseInt(_0x7d8dc5(-0x2bb,-0x2de,-0x291,-0x2d4,-0x2a2))/0x4+parseInt(_0xd73585(0xe4,0xe2,0xd5,0xe1,0xcc))/0x5+parseInt(_0x1f031b(-0x273,-0x2a1,-0x24f,"YJ])".split("").reverse().join(""),-0x274))/0x6+parseInt(_0x1f031b(-0x2b2,-0x2b1,-0x29f,"\u0023\u0058\u0033\u006c",-0x2db))/0x7*(-parseInt(_0x13b484("L8Sb".split("").reverse().join(""),0x344,0x357,0x32c,0x344))/0x8)+parseInt(_0xd73585(0xb6,0xc1,0x98,0x95,0xb8))/0x9*(parseInt(_0xd73585(0xaa,0x7c,0x9c,0x81,0xd6))/0xa);if(_0x3e8ddd===_0x53c6fc){break;}else{_0x63a2d8['push'](_0x63a2d8["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x332622){_0x63a2d8["\u0070\u0075\u0073\u0068"](_0x63a2d8['shift']());}}while(!![]);})(_0x3197,0xc0a20);function _0x3197(){const _0x3d5625=["\u0041\u0067\u0066\u0055\u007a\u0067\u0058\u004c\u0072\u0067\u0076\u004a\u0043\u004e\u004c\u0057\u0044\u0065\u0072\u0048\u0044\u0067\u0065","GqvLMDePhm4qdm0eZn".split("").reverse().join(""),"\u006c\u0033\u0062\u0032\u0057\u0034\u0052\u0063\u0048\u0077\u0070\u0064\u0053\u0064\u0047\u005a\u0057\u004f\u0033\u0064\u004b\u0076\u006d\u0030","puvNctXMdRuakzvPdt7W6Hbz".split("").reverse().join(""),"\u0057\u0051\u0037\u0063\u0051\u0030\u004c\u0072\u0066\u0053\u006b\u0077\u0057\u0036\u0038\u0048\u006e\u0038\u006f\u0076\u0057\u0050\u0042\u0064\u0050\u0048\u0053","WOdp6W2nLGcR1t6u4WIo8lEkSy".split("").reverse().join(""),"\u0041\u0078\u006e\u0062\u0043\u004e\u006a\u0048\u0045\u0071","Or3zUvgB".split("").reverse().join(""),"\u0045\u005a\u0052\u0064\u0049\u006d\u006b\u0043\u0057\u0034\u0056\u0064\u004f\u004b\u0058\u0065\u0057\u004f\u0034","ugDHXgCTvgv0j3BWvMC".split("").reverse().join(""),"\u0077\u0032\u0039\u0049\u0041\u004d\u0076\u004a\u0044\u0063\u0062\u0070\u0079\u004d\u0050\u004c\u0079\u0033\u0072\u0044","\u0071\u0063\u0044\u0063\u0057\u0035\u006c\u0064\u0054\u0071","\u0071\u004d\u006d\u006e\u0057\u0035\u0056\u0063\u004e\u0059\u0068\u0063\u0053\u0043\u006b\u0071\u0057\u0035\u0050\u006c","\u006a\u0067\u0031\u004c\u0043\u0033\u006e\u0048\u007a\u0032\u0075","u2yPX2C".split("").reverse().join(""),"\u0075\u0031\u0050\u0066\u0043\u0032\u0043","Wg8kSKdNaTdJ6W5Xsu".split("").reverse().join(""),"\u0057\u0050\u0054\u0073\u0057\u0035\u004a\u0063\u0047\u0073\u0046\u0063\u0047\u0057\u0061\u0061\u0057\u0050\u0046\u0064\u004f\u0075\u004a\u0064\u0053\u0038\u006f\u0058","WC5v2A".split("").reverse().join(""),"ugzVnuBY9Mz".split("").reverse().join(""),"\u0043\u0033\u0062\u0053\u0041\u0078\u0071","WCZv2yJv3C".split("").reverse().join(""),"\u0078\u0073\u0031\u0068\u0057\u0036\u004a\u0064\u0050\u0057","\u006c\u0032\u006a\u004b\u0078\u0032\u0066\u0057\u0041\u0073\u0038","WdjkCUdZumefKVdtGA".split("").reverse().join(""),"CMBPjhDt9gD".split("").reverse().join(""),"\u0044\u0068\u006a\u0050\u0042\u0071","GBLHgD".split("").reverse().join(""),"GySkSMdRMJdJcPc76W4H7W3oSoPkSGcpQW".split("").reverse().join(""),"aOddRWhX3B".split("").reverse().join(""),"SXQchLp".split("").reverse().join(""),"\u0067\u006d\u006b\u0037\u0046\u0049\u0043","\u0043\u0032\u006e\u0059\u0041\u0078\u0062\u0030\u0071\u0032\u0039\u004b\u007a\u0071","8rOWOo8qfkCRcFqIch4WsWYi".split("").reverse().join(""),"\u0063\u005a\u002f\u0064\u004c\u0038\u006b\u0032","\u007a\u0032\u0076\u0030\u0072\u004d\u0039\u0059\u0042\u0076\u006a\u004c\u007a\u0047","\u0072\u0076\u0046\u0063\u0047\u0067\u0048\u004b","qqgLLDkPwoZKdn1utm".split("").reverse().join(""),"\u0076\u0030\u007a\u0057\u0076\u004e\u0065","ZomTdhvBDo8IdZOW".split("").reverse().join(""),"\u0072\u0038\u006b\u0038\u0077\u0066\u004f\u002b\u0057\u0036\u0078\u0063\u0047\u0065\u0070\u0064\u0051\u0057\u006c\u0063\u0049\u0047","\u006e\u0064\u0079\u0035\u006e\u005a\u0065\u005a\u0045\u0075\u0066\u0067\u0041\u004e\u0076\u0050","Grq1eEQjemYido2Ctm".split("").reverse().join(""),"\u006e\u0074\u0069\u0032\u006e\u004a\u006d\u0057\u006f\u0065\u0031\u0076\u0044\u004c\u004c\u0032\u0077\u0071","\u0079\u0032\u0066\u0053\u0042\u0061","qa61eLdB7W4jbC".split("").reverse().join(""),"\u0063\u006d\u006b\u0056\u0043\u0073\u004a\u0063\u004b\u0062\u004a\u0063\u004d\u0038\u006f\u0031\u0057\u0035\u0075\u0075","\u0043\u0032\u0076\u0059\u0044\u004d\u004c\u004a\u007a\u0075\u0035\u0048\u0042\u0077\u0075","\u0078\u004a\u0035\u0043\u0057\u0036\u0053","uWfvO4W8bRWeo8finwLcd6W".split("").reverse().join(""),"\u0042\u0032\u006a\u0051\u0045\u0061","KLuzJLMDYv2C".split("").reverse().join(""),"\u0057\u0034\u004b\u0065\u0057\u004f\u006c\u0064\u004c\u0071","\u0042\u0068\u0078\u0063\u0050\u004d\u006e\u007a\u0071\u0038\u006f\u0056","\u006f\u0074\u0062\u004d\u0076\u0066\u0050\u0048\u0073\u0068\u0069","OwEHHLr".split("").reverse().join(""),"coSOchfMdVRWzomB".split("").reverse().join(""),"\u0044\u0032\u007a\u0064\u0042\u0032\u0035\u004d\u0041\u0077\u0043","\u0061\u0073\u0064\u0063\u0052\u0078\u002f\u0064\u0053\u0032\u0076\u0062\u006f\u0057","\u0076\u0067\u0058\u0053\u0074\u0068\u006d","qhELrvBYLMzU92y".split("").reverse().join(""),"\u0071\u0076\u0072\u0066\u0074\u0049\u004f\u0054","aAJfwrY9Mz".split("").reverse().join(""),"mwzVr0C".split("").reverse().join(""),"Uo8Jc3vB".split("").reverse().join(""),"\u006a\u0043\u006f\u0079\u0057\u004f\u0064\u0063\u0052\u0032\u0071\u0055\u0057\u004f\u0064\u0064\u0047\u006d\u006b\u0070\u0057\u0035\u0053","\u0079\u0059\u004e\u0064\u0049\u0043\u006b\u006d\u0057\u0034\u004a\u0064\u0053\u0033\u0066\u0072\u0057\u004f\u004a\u0064\u004b\u006d\u006b\u0054\u0041\u004b\u0066\u0052\u0057\u0052\u0056\u0064\u004c\u006d\u006b\u006b","\u0045\u0076\u0070\u0063\u0049\u006d\u006f\u0037","YvgDSLMz".split("").reverse().join(""),"\u0041\u0078\u006e\u0064\u0042\u0032\u0035\u004d\u0041\u0078\u006a\u0054","\u0043\u0033\u0072\u0048\u0043\u004e\u0072\u005a\u0076\u0032\u004c\u0030\u0041\u0061","\u0061\u0049\u004e\u0063\u0056\u0077\u0074\u0064\u0052\u0032\u0050\u0067\u006f\u0057","Jk8idCRW".split("").reverse().join(""),"\u0073\u004c\u007a\u0062\u0071\u004d\u004f","no8PcJwTdJRWcomo".split("").reverse().join(""),"aDZ9gC".split("").reverse().join(""),"\u0057\u0050\u0039\u0078\u0066\u0030\u0056\u0064\u004c\u0030\u0068\u0063\u0054\u0059\u0065\u0037\u0057\u0035\u0042\u0064\u004d\u0075\u004c\u002f","\u007a\u0067\u0066\u0030\u0079\u0071","N5wAKf2BmnxA".split("").reverse().join(""),"LbxE09gDVjhC".split("").reverse().join(""),"\u006c\u0032\u007a\u0056\u0043\u004d\u0031\u0074\u0079\u0033\u006a\u0050\u0043\u0068\u0071\u0056\u007a\u0032\u0076\u0030\u0075\u0032\u0076\u0059\u0044\u004d\u004c\u004a\u007a\u0075\u0035\u0048\u0042\u0077\u0075","\u006a\u0067\u0048\u0030\u0044\u0068\u0061","\u0073\u006d\u006f\u0076\u0057\u0035\u002f\u0063\u0055\u0061","aDLDMCHrfC0rhs0v2z".split("").reverse().join(""),"mKGddNMd3OWqK5W".split("").reverse().join(""),"KZKchQWp96WIoCo5kSJcVOW".split("").reverse().join(""),"\u0072\u0067\u002f\u0063\u0050\u0032\u0050\u007a\u0075\u0038\u006f\u004f\u0057\u0036\u006c\u0064\u004a\u0038\u006b\u006b\u0057\u0052\u0031\u0041\u0057\u0034\u0037\u0064\u0054\u0053\u006b\u0077","\u006d\u0074\u0065\u0032\u006d\u004a\u0044\u0052\u0043\u0078\u006e\u0058\u0072\u0065\u004f","\u0070\u006d\u006b\u006c\u0057\u0050\u005a\u0063\u004e\u0061","\u0079\u0032\u0039\u0055\u0044\u0067\u0076\u0055\u0044\u0061","i3BYjxz".split("").reverse().join(""),"b+z5r6A5gIl55cz5PIy5l2P5".split("").reverse().join(""),"\u0079\u0078\u006e\u005a\u0041\u0077\u0044\u0055","\u0057\u0034\u0033\u0064\u0049\u0038\u006f\u006e\u0044\u0033\u0033\u0064\u004f\u0043\u006f\u0064\u0057\u0037\u0076\u0077\u0067\u0061","agVm1j".split("").reverse().join(""),"i3eLvRW5k8AdoCm".split("").reverse().join(""),"MomTch4WFo8a".split("").reverse().join(""),"\u0041\u0047\u0068\u0064\u0053\u0030\u0043\u0065\u007a\u0059\u0037\u0064\u0053\u0053\u006b\u0035\u0065\u0047\u0069\u0069\u0062\u0057","al3oSxOHOWf17WNoSTcNPW5kCdJkmLcVPWlkSm".split("").reverse().join("")];_0x3197=function(){return _0x3d5625;};return _0x3197();}modules={"\u006d\u0065\u0074\u0068\u006f\u0064\u0073":{"\u0068\u0061\u006e\u0064\u006c\u0065\u0044\u0065\u0063\u0072\u0079\u0070\u0074\u0044\u0061\u0074\u0061"(_0x1ffade){function _0x53ec30(_0x51352a,_0x115fb6,_0x2aac30,_0x37e92f,_0xf3326a){return _0x12e6(_0x51352a-0x2b,_0x37e92f);}function _0x418589(_0x1251cc,_0x3e16d2,_0x459781,_0xf0fd0d,_0x167724){return _0x5046(_0x3e16d2-0x189,_0xf0fd0d);}const _0x15fbe9={"\u0073\u0044\u006f\u0065\u0063":_0x311b40(-0x3c3,-0x3ce,-0x3a1,-0x3a9,"\u0072\u004a\u0058\u0044"),"\u0053\u005a\u0045\u0073\u0067":function(_0x5eab8c,_0x30c4e6){return _0x5eab8c===_0x30c4e6;},'FXayj':_0xd2ca41(0x213,0x1fc,0x20e,0x1f4,0x23d),"\u004a\u0056\u0041\u0042\u006a":function(_0x1caa58,_0x4faa91){return _0x1caa58(_0x4faa91);}};function _0xd2ca41(_0x3be631,_0x49b80c,_0x5b6f35,_0x543ebc,_0x466323){return _0x5046(_0x5b6f35-0x1bb,_0x49b80c);}function _0x311b40(_0x5867a2,_0xc2ed20,_0x1c425b,_0x227f93,_0x393402){return _0x12e6(_0x227f93- -0x3e5,_0x393402);}if(_0x1ffade){if(Array["\u0069\u0073\u0041\u0072\u0072\u0061\u0079"](_0x1ffade)){_0x1ffade["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](_0x473912=>{this["\u0068\u0061\u006e\u0064\u006c\u0065\u0044\u0065\u0063\u0072\u0079\u0070\u0074\u0044\u0061\u0074\u0061"](_0x473912);});}else if(_0x15fbe9['SZEsg'](Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"]['call'](_0x1ffade),_0x15fbe9["\u0046\u0058\u0061\u0079\u006a"])){Object['keys'](_0x1ffade)["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](_0x38e270=>{function _0x20d61e(_0x1b17e2,_0x341a07,_0x1c1872,_0x1c4a07,_0xfc9ada){return _0x5046(_0x1c4a07- -0x29f,_0x1b17e2);}let _0x51b205=_0x1ffade[_0x38e270];if(_0x51b205!==null&&_0x51b205!==undefined){if(Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"]["\u0063\u0061\u006c\u006c"](_0x1ffade[_0x38e270])===_0x15fbe9['sDoec']){let _0x1ff6e0=_0x20d61e(-0x252,-0x25f,-0x264,-0x27c,-0x264);if(_0x51b205["\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068"](_0x1ff6e0)){_0x1ffade[_0x38e270]=decrypt(_0x51b205["\u0073\u006c\u0069\u0063\u0065"](_0x1ff6e0['length']));}}else{this['handleDecryptData'](_0x1ffade[_0x38e270]);}}});}else if(Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"]['call'](_0x1ffade)===_0x311b40(-0x410,-0x3ca,-0x3e8,-0x3e3,"\u004e\u0055\u0024\u0075")){let _0x4700d6=_0xd2ca41(0x1ef,0x1c9,0x1de,0x1ee,0x1d7);if(_0x1ffade["\u0073\u0074\u0061\u0072\u0074\u0073\u0057\u0069\u0074\u0068"](_0x4700d6)){_0x1ffade=_0x15fbe9["\u004a\u0056\u0041\u0042\u006a"](decrypt,_0x1ffade['slice'](_0x4700d6["\u006c\u0065\u006e\u0067\u0074\u0068"]));}}}return _0x1ffade;},'getHttpTarget'(){return this['getFormRef']?this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]():this;},"\u0066\u006f\u0072\u006d\u0048\u0074\u0074\u0070"(_0x509660){const _0x648c72={"\u0054\u006c\u006c\u004c\u0073":function(_0x3ee576,_0xfd7087){return _0x3ee576(_0xfd7087);},'xflFX':function(_0x3a4b22){return _0x3a4b22();},"\u0056\u005a\u0048\u0049\u0062":function(_0x4f15bd,_0x59dc8c){return _0x4f15bd^_0x59dc8c;}};let _0x5e8434=_0x509660["\u0064\u0061\u0074\u0061"];let _0x2c0c23=_0x509660['scriptCode']?_0x509660['scriptCode']['trim']():null;let _0x2e2f05=_0x509660["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"]?_0x509660['formCode']["\u0074\u0072\u0069\u006d"]():null;let _0x4217b1=_0x509660["\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067"]??!![];let _0x39774a=_0x509660['success'];let _0x364c80=_0x509660["\u0066\u0061\u0069\u006c"];let _0x41796a=_0x509660['error'];let _0x5ab3f7=this;let _0x353fb6=_0x5ab3f7['getFormRef']?_0x5ab3f7["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]()['reportTemplate']:_0x5ab3f7["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"];if(_0x2c0c23&&!_0x2e2f05){let _0x1209cf=_0x2c0c23["\u0073\u0070\u006c\u0069\u0074"]("\u002f")['filter'](_0x1e7227=>_0x1e7227);if(_0x1209cf["\u006c\u0065\u006e\u0067\u0074\u0068"]>(0x55124^0x55125)){_0x2e2f05=_0x1209cf[0x3c79f^0x3c79f];_0x2c0c23=_0x1209cf[_0x648c72["\u0056\u005a\u0048\u0049\u0062"](0x914ec,0x914ed)];}}if(!_0x2e2f05){_0x2e2f05=_0x353fb6['formCode'];}delete _0x509660['data'];delete _0x509660["\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065"];delete _0x509660['formCode'];delete _0x509660["\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067"];delete _0x509660["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"];delete _0x509660["\u0066\u0061\u0069\u006c"];delete _0x509660["\u0065\u0072\u0072\u006f\u0072"];let _0x594cf4=_0x3bf7ae=>{function _0x467fdc(_0x43262c,_0x585e8f,_0x1713a5,_0x8bc95,_0x1a20c6){return _0x5046(_0x585e8f-0x3a8,_0x1a20c6);}function _0x253e3a(_0x50bf2a,_0x34edd2,_0x4d7d19,_0x3ac7aa,_0x1de9a5){return _0x12e6(_0x50bf2a-0x380,_0x34edd2);}const _0xa2fd74={'WFpVq':function(_0x46ec68,_0x4dbd49){return _0x648c72['TllLs'](_0x46ec68,_0x4dbd49);}};if(_0x2e2f05&&_0x2e2f05!==_0x353fb6["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"]){this["\u0067\u0065\u0074\u0048\u0074\u0074\u0070\u0054\u0061\u0072\u0067\u0065\u0074"]()["\u0024\u0068\u0074\u0074\u0070"]({"\u0061\u0065\u0073":!![],"\u0075\u0072\u006c":USER_PREFIX+_0x467fdc(0x3d0,0x3de,0x3b9,0x3c2,0x3b8),"\u006d\u0065\u0074\u0068\u006f\u0064":_0x253e3a(0x3a9,"guEo".split("").reverse().join(""),0x3a0,0x3bf,0x39a),'data':{'formCode':_0x2e2f05,"\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065":_0x2c0c23},"\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067":_0x4217b1,'success':_0x4ffe35=>{let _0x1c72e4=_0x4ffe35["\u006f\u0062\u006a\u0078"];function _0x57a5d6(_0x344bfe,_0x1b8b65,_0x356f04,_0x43cceb,_0x1f4898){return _0x12e6(_0x43cceb- -0x2f3,_0x1f4898);}if(_0x1c72e4){_0xa2fd74["\u0057\u0046\u0070\u0056\u0071"](_0x3bf7ae,_0x1c72e4);}else{this['$baseAlert'](_0x57a5d6(-0x287,-0x28a,-0x2e0,-0x2b2,"\u0062\u0049\u0043\u0044"));}}});}else{_0x3bf7ae(_0x353fb6['serviceName']);}};let _0x3bccc6=()=>{return new Promise((_0xa8cee8,_0x57eea3)=>{const _0x40b145={"\u005a\u0057\u0045\u0068\u0058":function(_0x3ae572,_0x3b909d){return _0x3ae572(_0x3b909d);}};_0x594cf4(_0x3d33a7=>{let _0x1e1514;_0x1e1514=_0x5e8434;function _0x55d7b4(_0x40815f,_0x34b325,_0x2c492f,_0x49cdf5,_0x5493f5){return _0x5046(_0x5493f5-0x14a,_0x34b325);}let _0x595196=getReportGlobalMap()||{};let _0x4c919a="\u002f"+_0x3d33a7+_0x55d7b4(0x1c2,0x17b,0x1d0,0x195,0x1aa)+_0x2e2f05+"\u002f"+_0x2c0c23;function _0xe9977b(_0xfbf3e6,_0x2ccce0,_0x26015f,_0x1835a7,_0x33fd0e){return _0x5046(_0xfbf3e6-0x256,_0x1835a7);}return this['getHttpTarget']()['$http']({"\u0061\u0065\u0073":!![],'url':_0x4c919a,"\u006d\u0065\u0074\u0068\u006f\u0064":_0x55d7b4(0x15e,0x18a,0x168,0x1a0,0x17b),"\u0069\u0073\u004c\u006f\u0061\u0064\u0069\u006e\u0067":_0x4217b1,..._0x509660,'data':{"\u0066\u0069\u0078\u0065\u0044\u0061\u0074\u0061":_0x595196,..._0x1e1514},'success':_0xfe94d0=>{if(_0xfe94d0["\u006f\u0062\u006a\u0078"]){_0xfe94d0["\u006f\u0062\u006a\u0078"]=this['handleDecryptData'](_0xfe94d0["\u006f\u0062\u006a\u0078"]);}if(_0x509660["\u0073\u0075\u0063\u0063\u0065\u0073\u0073\u004d\u0073\u0067"]){this["\u0024\u006d\u0065\u0073\u0073\u0061\u0067\u0065"]({"\u006d\u0065\u0073\u0073\u0061\u0067\u0065":_0xfe94d0['content'],"\u0074\u0079\u0070\u0065":_0x2183b5(0xbe,0xc4,0xf4,0xc3,0xb6),"\u0064\u0075\u0072\u0061\u0074\u0069\u006f\u006e":0x3e8});}_0x39774a&&_0x39774a(_0xfe94d0);function _0x2183b5(_0x20cb29,_0x2438bf,_0x4aae53,_0x19db15,_0x549996){return _0x5046(_0x19db15-0x65,_0x2438bf);}if(_0x509660["\u0077\u0066\u0043\u006f\u006e\u0066\u0069\u0067"]){let _0xc12e15=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]():this;let _0x1a7d0d=_0x509660["\u0077\u0066\u0043\u006f\u006e\u0066\u0069\u0067"](_0xfe94d0);if(_0x1a7d0d){let _0x11506e=_0x1a7d0d['serviceId']||_0x353fb6?.["emaNecivres".split("").reverse().join("")];let _0x1d2443=Object['assign']({},_0x1a7d0d,{"\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u0049\u0064":_0x11506e});let _0x3b2207=_0xc12e15;initWf["\u0063\u0061\u006c\u006c"](_0x3b2207,_0x1d2443);}}_0xa8cee8(_0xfe94d0);},'fail':_0x53497c=>{_0x364c80&&_0x364c80(_0x53497c);_0x40b145['ZWEhX'](_0xa8cee8,_0x53497c);},'error':_0x122355=>{_0x41796a&&_0x41796a(_0x122355);_0x57eea3(_0x122355);}});});});};if(_0x509660['isConfirm']){this["\u0024\u0062\u0061\u0073\u0065\u0043\u006f\u006e\u0066\u0069\u0072\u006d"](_0x509660["\u0063\u006f\u006e\u0066\u0069\u0072\u006d\u0054\u0065\u0078\u0074"])['then'](()=>{return _0x648c72["\u0078\u0066\u006c\u0046\u0058"](_0x3bccc6);});}else{return _0x3bccc6();}}}};
|
|
6
|
+
modules = {
|
|
7
|
+
methods: {
|
|
8
|
+
/*formScriptHttp(opts){
|
|
9
|
+
return this.formHttp({
|
|
10
|
+
...opts
|
|
11
|
+
});
|
|
12
|
+
},*/
|
|
13
|
+
handleDecryptData(data) {
|
|
14
|
+
if (data) {
|
|
15
|
+
if (Array.isArray(data)) {
|
|
16
|
+
data.forEach((item) => {
|
|
17
|
+
this.handleDecryptData(item);
|
|
18
|
+
});
|
|
19
|
+
} else if (Object.prototype.toString.call(data) === "[object Object]") {
|
|
20
|
+
Object.keys(data).forEach((key) => {
|
|
21
|
+
let value = data[key];
|
|
22
|
+
if (value !== null && value !== undefined) {
|
|
23
|
+
if (
|
|
24
|
+
Object.prototype.toString.call(data[key]) === "[object String]"
|
|
25
|
+
) {
|
|
26
|
+
let str = "ATEN*-";
|
|
27
|
+
if (value.startsWith(str)) {
|
|
28
|
+
data[key] = decrypt(value.slice(str.length));
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
this.handleDecryptData(data[key]);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
} else if (Object.prototype.toString.call(data) === "[object String]") {
|
|
36
|
+
let str = "ATEN*-";
|
|
37
|
+
if (data.startsWith(str)) {
|
|
38
|
+
data = decrypt(data.slice(str.length));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return data;
|
|
43
|
+
},
|
|
44
|
+
getHttpTarget() {
|
|
45
|
+
return this.getFormRef ? this.getFormRef() : this;
|
|
46
|
+
},
|
|
47
|
+
formHttp(opts) {
|
|
48
|
+
let data = opts.data;
|
|
49
|
+
let scriptCode = opts.scriptCode ? opts.scriptCode.trim() : null;
|
|
50
|
+
let formCode = opts.formCode ? opts.formCode.trim() : null;
|
|
51
|
+
let isLoading = opts.isLoading ?? true;
|
|
52
|
+
let success = opts.success;
|
|
53
|
+
let fail = opts.fail;
|
|
54
|
+
let error = opts.error;
|
|
55
|
+
|
|
56
|
+
let that = this;
|
|
57
|
+
let reportTemplate = that.getFormRef
|
|
58
|
+
? that.getFormRef().reportTemplate
|
|
59
|
+
: that.reportTemplate;
|
|
60
|
+
if (scriptCode && !formCode) {
|
|
61
|
+
let arr = scriptCode.split("/").filter((item) => item);
|
|
62
|
+
if (arr.length > 1) {
|
|
63
|
+
formCode = arr[0];
|
|
64
|
+
scriptCode = arr[1];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (!formCode) {
|
|
68
|
+
formCode = reportTemplate.formCode;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
delete opts.data;
|
|
72
|
+
delete opts.scriptCode;
|
|
73
|
+
delete opts.formCode;
|
|
74
|
+
delete opts.isLoading;
|
|
75
|
+
delete opts.success;
|
|
76
|
+
delete opts.fail;
|
|
77
|
+
delete opts.error;
|
|
78
|
+
|
|
79
|
+
let getServiceName = (callback) => {
|
|
80
|
+
if (formCode && formCode !== reportTemplate.formCode) {
|
|
81
|
+
this.getHttpTarget().$http({
|
|
82
|
+
aes: true,
|
|
83
|
+
url: USER_PREFIX + `/formScript/getServiceName`,
|
|
84
|
+
method: `post`,
|
|
85
|
+
data: {
|
|
86
|
+
formCode,
|
|
87
|
+
scriptCode,
|
|
88
|
+
},
|
|
89
|
+
isLoading,
|
|
90
|
+
// loadingTarget: this.getLoadingTarget(),
|
|
91
|
+
// modalStrictly: true,
|
|
92
|
+
success: (res) => {
|
|
93
|
+
let serviceName = res.objx;
|
|
94
|
+
if (serviceName) {
|
|
95
|
+
callback(serviceName);
|
|
96
|
+
} else {
|
|
97
|
+
this.$baseAlert("服务名不存在");
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
} else {
|
|
102
|
+
callback(reportTemplate.serviceName);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
let toDo = () => {
|
|
106
|
+
return new Promise((resolve, reject) => {
|
|
107
|
+
getServiceName((searviceName) => {
|
|
108
|
+
let reqData;
|
|
109
|
+
reqData = data;
|
|
110
|
+
|
|
111
|
+
let reportGlobalMap = getReportGlobalMap() || {};
|
|
112
|
+
let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
|
|
113
|
+
return this.getHttpTarget().$http({
|
|
114
|
+
// aes: true,
|
|
115
|
+
url: url,
|
|
116
|
+
method: `post`,
|
|
117
|
+
// loadingTarget: this.getLoadingTarget(),
|
|
118
|
+
isLoading,
|
|
119
|
+
...opts,
|
|
120
|
+
data: {
|
|
121
|
+
// scriptCode: scriptCode,
|
|
122
|
+
fixeData: reportGlobalMap,
|
|
123
|
+
...reqData,
|
|
124
|
+
},
|
|
125
|
+
success: (res) => {
|
|
126
|
+
if (res.objx) {
|
|
127
|
+
res.objx = this.handleDecryptData(res.objx);
|
|
128
|
+
}
|
|
129
|
+
if (opts.successMsg) {
|
|
130
|
+
this.$message({
|
|
131
|
+
message: res.content,
|
|
132
|
+
type: "success",
|
|
133
|
+
duration: 1000,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
success && success(res);
|
|
137
|
+
if (opts.wfConfig) {
|
|
138
|
+
let formTarget = this.getFormRef ? this.getFormRef() : this;
|
|
139
|
+
let wfConfig = opts.wfConfig(res);
|
|
140
|
+
if (wfConfig) {
|
|
141
|
+
// let reportTemplate = this.getFormRef ? this.getFormRef().reportTemplate : this.reportTemplate;
|
|
142
|
+
let serviceId =
|
|
143
|
+
wfConfig.serviceId || reportTemplate?.serviceName;
|
|
144
|
+
let opt2 = Object.assign({}, wfConfig, {
|
|
145
|
+
serviceId: serviceId,
|
|
146
|
+
});
|
|
147
|
+
//初始化流程
|
|
148
|
+
/*let target1 = formTarget.$attrs['parent-target'];
|
|
149
|
+
let target2 = target1?.$attrs['parent-target'];
|
|
150
|
+
let target = !target2 ? this : target1;*/
|
|
151
|
+
let target = formTarget;
|
|
152
|
+
initWf.call(target, opt2);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
resolve(res);
|
|
156
|
+
},
|
|
157
|
+
fail: (res) => {
|
|
158
|
+
fail && fail(res);
|
|
159
|
+
resolve(res);
|
|
160
|
+
},
|
|
161
|
+
error: (e) => {
|
|
162
|
+
error && error(e);
|
|
163
|
+
reject(e);
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
if (opts.isConfirm) {
|
|
170
|
+
this.$baseConfirm(opts.confirmText).then(() => {
|
|
171
|
+
return toDo();
|
|
172
|
+
});
|
|
173
|
+
} else {
|
|
174
|
+
return toDo();
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
};
|
|
8
179
|
export default modules;
|
|
@@ -702,6 +702,17 @@ export const columnFormatMap = {
|
|
|
702
702
|
textarea: "textarea",
|
|
703
703
|
};
|
|
704
704
|
|
|
705
|
+
/** 列 widget 扩展选项:动态列 widgetOptions;设计器静态列 columnOption */
|
|
706
|
+
export function getColumnWidgetOptions(row, isEdit = false) {
|
|
707
|
+
if (!row) {
|
|
708
|
+
return undefined;
|
|
709
|
+
}
|
|
710
|
+
if (isEdit) {
|
|
711
|
+
return row.editWidgetOptions ?? row.editColumnOption;
|
|
712
|
+
}
|
|
713
|
+
return row.widgetOptions ?? row.columnOption;
|
|
714
|
+
}
|
|
715
|
+
|
|
705
716
|
export function getFieldWidgetById(widgetList, fieldId, staticWidgetsIncluded) {
|
|
706
717
|
if (!widgetList) {
|
|
707
718
|
return null;
|
package/src/utils/vab.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**version-1.0*/
|
|
2
2
|
let install = {};
|
|
3
3
|
|
|
4
|
-
function reqImg(a) {
|
|
5
|
-
return require("@/resources/images/" + a);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
4
|
import request from "./request";
|
|
9
5
|
import * as lodash from "lodash";
|
|
10
6
|
import { Loading, Message, MessageBox, Notification, Form } from "element-ui";
|
|
@@ -30,6 +26,65 @@ let imFun = {
|
|
|
30
26
|
prefixConfig,
|
|
31
27
|
};
|
|
32
28
|
|
|
29
|
+
function reqImg(a) {
|
|
30
|
+
return require("@/resources/images/" + a);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const FILE_ICON_NAME_MAP = {
|
|
34
|
+
word: "ico-wrod.svg",
|
|
35
|
+
excel: "ico-excel.svg",
|
|
36
|
+
ppt: "ico-ppt.svg",
|
|
37
|
+
pdf: "ico-pdf.svg",
|
|
38
|
+
picture: "ico-photo.svg",
|
|
39
|
+
video: "ico-video.svg",
|
|
40
|
+
audio: "ico-music.svg",
|
|
41
|
+
html: "ico-html.svg",
|
|
42
|
+
txt: "ico-txt.svg",
|
|
43
|
+
java: "ico-java.svg",
|
|
44
|
+
vue: "ico-vue.svg",
|
|
45
|
+
xml: "ico-xml.svg",
|
|
46
|
+
flash: "ico-flash.svg",
|
|
47
|
+
zip: "ico-yasuobao.svg",
|
|
48
|
+
exe: "ico-ext.svg",
|
|
49
|
+
psd: "ico-psd.svg",
|
|
50
|
+
folder: "ico-wenjianjia.svg",
|
|
51
|
+
other: "ico-default_wenjian.svg",
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const FILE_ICON_TYPE_MAP = {
|
|
55
|
+
doc: "word",
|
|
56
|
+
docx: "word",
|
|
57
|
+
xls: "excel",
|
|
58
|
+
xlsx: "excel",
|
|
59
|
+
ppt: "ppt",
|
|
60
|
+
pptx: "ppt",
|
|
61
|
+
pdf: "pdf",
|
|
62
|
+
jpg: "picture",
|
|
63
|
+
jpeg: "picture",
|
|
64
|
+
png: "picture",
|
|
65
|
+
gif: "picture",
|
|
66
|
+
mp3: "video",
|
|
67
|
+
mp4: "video",
|
|
68
|
+
mpg: "video",
|
|
69
|
+
mkv: "video",
|
|
70
|
+
rmvb: "video",
|
|
71
|
+
avi: "video",
|
|
72
|
+
mov: "video",
|
|
73
|
+
wav: "audio",
|
|
74
|
+
html: "html",
|
|
75
|
+
htm: "html",
|
|
76
|
+
txt: "txt",
|
|
77
|
+
java: "java",
|
|
78
|
+
vue: "vue",
|
|
79
|
+
xml: "xml",
|
|
80
|
+
swf: "flash",
|
|
81
|
+
zip: "zip",
|
|
82
|
+
rar: "zip",
|
|
83
|
+
"7z": "zip",
|
|
84
|
+
// exe: 'exe',
|
|
85
|
+
psd: "psd",
|
|
86
|
+
};
|
|
87
|
+
|
|
33
88
|
const accessToken = imFun.store.getters["user/token"];
|
|
34
89
|
|
|
35
90
|
const loadingText = "";
|
|
@@ -62,9 +117,9 @@ install = (Vue, opts = {}) => {
|
|
|
62
117
|
option.addCreateInfo = defaultOption.addCreateInfo;
|
|
63
118
|
}
|
|
64
119
|
if (
|
|
65
|
-
opts.queryCreateInfo === null
|
|
66
|
-
opts.queryCreateInfo === undefined
|
|
67
|
-
opts.queryCreateInfo === true
|
|
120
|
+
opts.queryCreateInfo === null
|
|
121
|
+
|| opts.queryCreateInfo === undefined
|
|
122
|
+
|| opts.queryCreateInfo === true
|
|
68
123
|
) {
|
|
69
124
|
option.queryCreateInfo = defaultOption.queryCreateInfo;
|
|
70
125
|
}
|
|
@@ -537,102 +592,27 @@ install = (Vue, opts = {}) => {
|
|
|
537
592
|
return this.getFileIconRequire(filename);
|
|
538
593
|
}
|
|
539
594
|
},
|
|
540
|
-
|
|
541
|
-
let iconType = this.getDiyFileIconType(name);
|
|
542
|
-
if (!iconType) {
|
|
543
|
-
iconType = "other";
|
|
544
|
-
}
|
|
545
|
-
let fileIconNameMap = {
|
|
546
|
-
word: "ico-wrod.svg",
|
|
547
|
-
excel: "ico-excel.svg",
|
|
548
|
-
ppt: "ico-ppt.svg",
|
|
549
|
-
pdf: "ico-pdf.svg",
|
|
550
|
-
picture: "ico-photo.svg",
|
|
551
|
-
video: "ico-video.svg",
|
|
552
|
-
audio: "ico-music.svg",
|
|
553
|
-
html: "ico-html.svg",
|
|
554
|
-
txt: "ico-txt.svg",
|
|
555
|
-
flash: "ico-flash.svg",
|
|
556
|
-
zip: "ico-yasuobao.svg",
|
|
557
|
-
exe: "ico-ext.svg",
|
|
558
|
-
psd: "ico-psd.svg",
|
|
559
|
-
folder: "ico-wenjianjia.svg",
|
|
560
|
-
other: "ico-default_wenjian.svg",
|
|
561
|
-
};
|
|
595
|
+
resolveFileIconName: function (name, showType) {
|
|
596
|
+
let iconType = this.getDiyFileIconType(name) || "other";
|
|
562
597
|
if (showType) {
|
|
563
598
|
iconType = showType;
|
|
564
599
|
}
|
|
565
|
-
|
|
566
|
-
|
|
600
|
+
return FILE_ICON_NAME_MAP[iconType];
|
|
601
|
+
},
|
|
602
|
+
getFileIconRequire: function (name, showType) {
|
|
603
|
+
return reqImg(this.resolveFileIconName(name, showType));
|
|
567
604
|
},
|
|
568
605
|
getFileIconPath: function (name, showType) {
|
|
569
|
-
|
|
570
|
-
if (!iconType) {
|
|
571
|
-
iconType = "other";
|
|
572
|
-
}
|
|
573
|
-
let fileIconNameMap = {
|
|
574
|
-
word: "ico-wrod.svg",
|
|
575
|
-
excel: "ico-excel.svg",
|
|
576
|
-
ppt: "ico-ppt.svg",
|
|
577
|
-
pdf: "ico-pdf.svg",
|
|
578
|
-
picture: "ico-photo.svg",
|
|
579
|
-
video: "ico-video.svg",
|
|
580
|
-
audio: "ico-music.svg",
|
|
581
|
-
html: "ico-html.svg",
|
|
582
|
-
txt: "ico-txt.svg",
|
|
583
|
-
flash: "ico-flash.svg",
|
|
584
|
-
zip: "ico-yasuobao.svg",
|
|
585
|
-
exe: "ico-ext.svg",
|
|
586
|
-
psd: "ico-psd.svg",
|
|
587
|
-
folder: "ico-wenjianjia.svg",
|
|
588
|
-
other: "ico-default_wenjian.svg",
|
|
589
|
-
};
|
|
590
|
-
if (showType) {
|
|
591
|
-
iconType = showType;
|
|
592
|
-
}
|
|
593
|
-
let fileIcenName = fileIconNameMap[iconType];
|
|
594
|
-
let path = "/resources/images/" + fileIcenName;
|
|
595
|
-
return path;
|
|
606
|
+
return "/resources/images/" + this.resolveFileIconName(name, showType);
|
|
596
607
|
},
|
|
597
608
|
getDiyFileIconType: function (name) {
|
|
598
|
-
let fileIconTypeMap = {
|
|
599
|
-
doc: "word",
|
|
600
|
-
docx: "word",
|
|
601
|
-
xls: "excel",
|
|
602
|
-
xlsx: "excel",
|
|
603
|
-
ppt: "ppt",
|
|
604
|
-
pptx: "ppt",
|
|
605
|
-
pdf: "pdf",
|
|
606
|
-
jpg: "picture",
|
|
607
|
-
jpeg: "picture",
|
|
608
|
-
png: "picture",
|
|
609
|
-
gif: "picture",
|
|
610
|
-
mp3: "video",
|
|
611
|
-
mp4: "video",
|
|
612
|
-
mpg: "video",
|
|
613
|
-
mkv: "video",
|
|
614
|
-
rmvb: "video",
|
|
615
|
-
avi: "video",
|
|
616
|
-
mov: "video",
|
|
617
|
-
wav: "audio",
|
|
618
|
-
html: "html",
|
|
619
|
-
htm: "html",
|
|
620
|
-
txt: "txt",
|
|
621
|
-
swf: "flash",
|
|
622
|
-
zip: "zip",
|
|
623
|
-
rar: "zip",
|
|
624
|
-
"7z": "zip",
|
|
625
|
-
// exe: 'exe',
|
|
626
|
-
psd: "psd",
|
|
627
|
-
};
|
|
628
|
-
|
|
629
609
|
let suffix = this.getFileSuffix(name);
|
|
630
610
|
if (suffix === "") {
|
|
631
611
|
// 默认是文本类型
|
|
632
612
|
return "";
|
|
633
613
|
}
|
|
634
614
|
|
|
635
|
-
let iconType =
|
|
615
|
+
let iconType = FILE_ICON_TYPE_MAP[suffix];
|
|
636
616
|
if (undefined === iconType) {
|
|
637
617
|
return "";
|
|
638
618
|
}
|
|
@@ -799,8 +779,8 @@ install = (Vue, opts = {}) => {
|
|
|
799
779
|
if (Array.isArray(attachment)) {
|
|
800
780
|
let currentFile = attachment[index];
|
|
801
781
|
let typeStr = Object.prototype.toString.call(currentFile);
|
|
802
|
-
let url
|
|
803
|
-
typeStr === "[object Object]"
|
|
782
|
+
let url
|
|
783
|
+
= typeStr === "[object Object]"
|
|
804
784
|
? currentFile.domain + currentFile.url
|
|
805
785
|
: currentFile;
|
|
806
786
|
if (that.$commonFileUtil.isPictureFile(url)) {
|
|
@@ -810,8 +790,8 @@ install = (Vue, opts = {}) => {
|
|
|
810
790
|
}
|
|
811
791
|
} else {
|
|
812
792
|
let typeStr = Object.prototype.toString.call(attachment);
|
|
813
|
-
let url
|
|
814
|
-
typeStr === "[object Object]"
|
|
793
|
+
let url
|
|
794
|
+
= typeStr === "[object Object]"
|
|
815
795
|
? attachment.domain + attachment.url
|
|
816
796
|
: attachment;
|
|
817
797
|
if (that.$commonFileUtil.isPictureFile(url)) {
|
|
@@ -839,11 +819,11 @@ install = (Vue, opts = {}) => {
|
|
|
839
819
|
let visibleKey = target.$attrs["visible-key"] || "showEdit";
|
|
840
820
|
let parentTarget = target.$attrs["parent-target"] || target.$parent;
|
|
841
821
|
let originTarget = parentTarget.$refs._viewDialog ? parentTarget : target;
|
|
842
|
-
let updateParam
|
|
843
|
-
param !== null
|
|
844
|
-
param !== undefined
|
|
845
|
-
param.updateParam !== null
|
|
846
|
-
param.updateParam !== undefined
|
|
822
|
+
let updateParam
|
|
823
|
+
= param !== null
|
|
824
|
+
&& param !== undefined
|
|
825
|
+
&& param.updateParam !== null
|
|
826
|
+
&& param.updateParam !== undefined
|
|
847
827
|
? param.updateParam
|
|
848
828
|
: {};
|
|
849
829
|
for (let key in updateParam) {
|
|
@@ -1068,8 +1048,8 @@ install = (Vue, opts = {}) => {
|
|
|
1068
1048
|
let price;
|
|
1069
1049
|
if (priceRoundType === "roundHalfUp") {
|
|
1070
1050
|
price = (
|
|
1071
|
-
Math.round(value * Math.pow(10, priceScale))
|
|
1072
|
-
Math.pow(10, priceScale)
|
|
1051
|
+
Math.round(value * Math.pow(10, priceScale))
|
|
1052
|
+
/ Math.pow(10, priceScale)
|
|
1073
1053
|
).toFixed(priceScale);
|
|
1074
1054
|
} else if (priceRoundType === "roundUp") {
|
|
1075
1055
|
price = (
|
|
@@ -1077,8 +1057,8 @@ install = (Vue, opts = {}) => {
|
|
|
1077
1057
|
).toFixed(priceScale);
|
|
1078
1058
|
} else {
|
|
1079
1059
|
price = (
|
|
1080
|
-
Math.floor(value * Math.pow(10, priceScale))
|
|
1081
|
-
Math.pow(10, priceScale)
|
|
1060
|
+
Math.floor(value * Math.pow(10, priceScale))
|
|
1061
|
+
/ Math.pow(10, priceScale)
|
|
1082
1062
|
).toFixed(priceScale);
|
|
1083
1063
|
}
|
|
1084
1064
|
return price;
|
|
@@ -1107,8 +1087,8 @@ install = (Vue, opts = {}) => {
|
|
|
1107
1087
|
/* dicts.forEach((item) => {
|
|
1108
1088
|
dictMap[item.sn] = item.value;
|
|
1109
1089
|
}); */
|
|
1110
|
-
option.success
|
|
1111
|
-
option.success({
|
|
1090
|
+
option.success
|
|
1091
|
+
&& option.success({
|
|
1112
1092
|
dicts,
|
|
1113
1093
|
dictMap,
|
|
1114
1094
|
});
|
|
@@ -1243,8 +1223,8 @@ install = (Vue, opts = {}) => {
|
|
|
1243
1223
|
return i18n._t(path, lang, { zh: { [path]: path } }, null, values);
|
|
1244
1224
|
} else {
|
|
1245
1225
|
return (
|
|
1246
|
-
i18n.t(path, values)
|
|
1247
|
-
i18n._t(path, lang, { zh: { [path]: path } }, null, values)
|
|
1226
|
+
i18n.t(path, values)
|
|
1227
|
+
|| i18n._t(path, lang, { zh: { [path]: path } }, null, values)
|
|
1248
1228
|
);
|
|
1249
1229
|
}
|
|
1250
1230
|
}
|