cloud-web-corejs 1.0.54-dev.113 → 1.0.54-dev.115
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/form-widget/field-widget/checkbox-widget.vue +10 -5
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +40 -3
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +54 -14
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +9 -4
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +86 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +39 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +15 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +2 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +35 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1926 -1
- package/src/components/xform/form-render/indexMixin.js +11 -0
- package/src/components/xform/mixins/defaultHandle.js +1 -0
- package/src/components/xform/mixins/scriptHttp.js +82 -1
- package/src/components/xform/utils/util.js +2 -2
- package/src/layout/components/Sidebar/default.vue +35 -3
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +188 -0
- package/src/views/bd/setting/form_script/edit1.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +2 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +2 -1
- package/src/views/bd/setting/form_template/edit.vue +9 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +12 -2
- package/src/views/bd/setting/table_model/mixins/edit.js +20 -4
- package/src/views/user/form/vform/designer.vue +5 -1
- package/src/views/user/home/default.vue +15 -11
@@ -1323,6 +1323,17 @@ modules = {
|
|
1323
1323
|
};
|
1324
1324
|
formTemplateTableDTOs.push(formTemplateTable);
|
1325
1325
|
}
|
1326
|
+
} else if (widget.type == 'project-tag') {
|
1327
|
+
if (submitFlag) {
|
1328
|
+
let formTemplateTable = {
|
1329
|
+
tableAlias: widgetName,
|
1330
|
+
name: widgetName,
|
1331
|
+
formCode: formCode,
|
1332
|
+
tableType: 1,
|
1333
|
+
uniqueName,
|
1334
|
+
};
|
1335
|
+
formTemplateTableDTOs.push(formTemplateTable);
|
1336
|
+
}
|
1326
1337
|
} else if (widget.type == 'table2') {
|
1327
1338
|
if (submitFlag) {
|
1328
1339
|
let formTemplateTable = {
|
@@ -2,5 +2,86 @@ import {initWf} from '../../../components/wf/wfUtil'
|
|
2
2
|
import {getReportGlobalMap} from "../../../components/xform/utils/util";
|
3
3
|
|
4
4
|
let modules = {};
|
5
|
-
(function(_0x3c9b8e,_0x53a347){function _0x4352df(_0x190f53,_0x4e2656,_0x2c033a,_0x392833,_0x596715){return _0x1851(_0x4e2656-0x1a8,_0x2c033a);}function _0x46c003(_0x2c837e,_0x3103cb,_0x5a71e7,_0x3dfae5,_0x5ed495){return _0x1a26(_0x5a71e7- -0x332,_0x3103cb);}const _0x3e393b=_0x3c9b8e();function _0x5b026b(_0x681e6e,_0x19aa7c,_0x101d2d,_0x44f448,_0x593e8f){return _0x1851(_0x681e6e-0x23d,_0x19aa7c);}function _0x51e3b2(_0x573413,_0x29f74d,_0x174653,_0x11cf30,_0x1cf7f1){return _0x1851(_0x573413- -0x15a,_0x11cf30);}function _0x238dba(_0x4453a0,_0x194f7e,_0x46d44c,_0xd242a7,_0x1f683e){return _0x1a26(_0x46d44c- -0x1a0,_0x4453a0);}function _0x3ac262(_0x249871,_0x4419d0,_0x5b1131,_0x3e8037,_0x2d2db4){return _0x1a26(_0x5b1131- -0x5d,_0x2d2db4);}function _0x4ad5d3(_0x1f82d0,_0x8b8e6f,_0x38972b,_0x300b3f,_0x2b4eaf){return _0x1a26(_0x8b8e6f-0xd1,_0x1f82d0);}function _0x232887(_0x29a94b,_0x3e9f68,_0x5bf0b8,_0xd32682,_0x1f058e){return _0x1851(_0x1f058e- -0x1a3,_0x5bf0b8);}function _0x4aa7db(_0x5577d7,_0x389508,_0x3278dc,_0x1cc6fc,_0x5d3201){return _0x1851(_0x389508- -0x6b,_0x1cc6fc);}function _0x1896d2(_0x723a63,_0x1d3fb9,_0x2af89e,_0x349928,_0x107089){return _0x1a26(_0x2af89e- -0x14c,_0x349928);}do{try{const _0x12b00e=-parseInt(_0x1896d2(-0x128,-0xfe,-0x117,"rPza".split("").reverse().join(""),-0x138))/0x1*(-parseInt(_0x232887(-0x166,-0x16c,-0x160,-0x168,-0x16f))/0x2)+-parseInt(_0x1896d2(-0xff,-0x127,-0x11c,"\u0062\u0041\u0070\u005e",-0x104))/0x3+-parseInt(_0x232887(-0x19f,-0x184,-0x196,-0x1b1,-0x1a0))/0x4*(-parseInt(_0x232887(-0x168,-0x17b,-0x16a,-0x18d,-0x16c))/0x5)+parseInt(_0x238dba("\u006e\u0034\u0067\u0039",-0x17f,-0x18b,-0x1a0,-0x180))/0x6*(parseInt(_0x5b026b(0x25e,0x266,0x26d,0x27f,0x270))/0x7)+parseInt(_0x3ac262(-0x47,-0x2c,-0x43,-0x62,"\u0067\u0069\u0024\u0028"))/0x8*(parseInt(_0x4352df(0x1b0,0x1b3,0x1bc,0x1a6,0x19e))/0x9)+parseInt(_0x51e3b2(-0x142,-0x161,-0x157,-0x137,-0x13f))/0xa*(-parseInt(_0x1896d2(-0x150,-0x151,-0x145,"#pFj".split("").reverse().join(""),-0x129))/0xb)+-parseInt(_0x4ad5d3("o]eP".split("").reverse().join(""),0xf1,0xe3,0x10c,0x110))/0xc;if(_0x12b00e===_0x53a347){break;}else{_0x3e393b["\u0070\u0075\u0073\u0068"](_0x3e393b['shift']());}}catch(_0x45caec){_0x3e393b['push'](_0x3e393b['shift']());}}while(!![]);})(_0x2cf5,0x3b680);function _0x1a26(_0x4e3ff3,_0x2cf552){const _0x1851ba=_0x2cf5();_0x1a26=function(_0x319628,_0x1255da){_0x319628=_0x319628-0x0;let _0x1645ba=_0x1851ba[_0x319628];if(_0x1a26["\u0050\u0043\u004c\u004f\u0074\u0049"]===undefined){var _0x3b81c7=function(_0x32d091){const _0x22e693="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x126b1f='';let _0x45b9b9='';for(let _0x5f32b6=0x0,_0x46ce0d,_0x3b4f8d,_0xb6b467=0x0;_0x3b4f8d=_0x32d091['charAt'](_0xb6b467++);~_0x3b4f8d&&(_0x46ce0d=_0x5f32b6%0x4?_0x46ce0d*0x40+_0x3b4f8d:_0x3b4f8d,_0x5f32b6++%0x4)?_0x126b1f+=String['fromCharCode'](0xff&_0x46ce0d>>(-0x2*_0x5f32b6&0x6)):0x0){_0x3b4f8d=_0x22e693["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x3b4f8d);}for(let _0x241637=0x0,_0x275dcd=_0x126b1f["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x241637<_0x275dcd;_0x241637++){_0x45b9b9+="\u0025"+("\u0030\u0030"+_0x126b1f["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x241637)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x45b9b9);};const _0x24758c=function(_0x3f0be7,_0x15375d){let _0xfc920d=[],_0x3e69f6=0x0,_0x411e2b,_0x37c118='';_0x3f0be7=_0x3b81c7(_0x3f0be7);let _0x1a3266;for(_0x1a3266=0x0;_0x1a3266<0x100;_0x1a3266++){_0xfc920d[_0x1a3266]=_0x1a3266;}for(_0x1a3266=0x0;_0x1a3266<0x100;_0x1a3266++){_0x3e69f6=(_0x3e69f6+_0xfc920d[_0x1a3266]+_0x15375d["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x1a3266%_0x15375d["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x411e2b=_0xfc920d[_0x1a3266];_0xfc920d[_0x1a3266]=_0xfc920d[_0x3e69f6];_0xfc920d[_0x3e69f6]=_0x411e2b;}_0x1a3266=0x0;_0x3e69f6=0x0;for(let _0x390916=0x0;_0x390916<_0x3f0be7["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x390916++){_0x1a3266=(_0x1a3266+0x1)%0x100;_0x3e69f6=(_0x3e69f6+_0xfc920d[_0x1a3266])%0x100;_0x411e2b=_0xfc920d[_0x1a3266];_0xfc920d[_0x1a3266]=_0xfc920d[_0x3e69f6];_0xfc920d[_0x3e69f6]=_0x411e2b;_0x37c118+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x3f0be7["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x390916)^_0xfc920d[(_0xfc920d[_0x1a3266]+_0xfc920d[_0x3e69f6])%0x100]);}return _0x37c118;};_0x1a26["\u004b\u0076\u0062\u0046\u0047\u0054"]=_0x24758c;_0x4e3ff3=arguments;_0x1a26["\u0050\u0043\u004c\u004f\u0074\u0049"]=!![];}const _0x186812=_0x1851ba[0x0];const _0x5c75b4=_0x319628+_0x186812;const _0x1a2608=_0x4e3ff3[_0x5c75b4];if(!_0x1a2608){if(_0x1a26["\u0053\u004c\u0066\u0072\u0079\u0078"]===undefined){_0x1a26['SLfryx']=!![];}_0x1645ba=_0x1a26['KvbFGT'](_0x1645ba,_0x1255da);_0x4e3ff3[_0x5c75b4]=_0x1645ba;}else{_0x1645ba=_0x1a2608;}return _0x1645ba;};return _0x1a26(_0x4e3ff3,_0x2cf552);}function tBtkMZ(_0x18f269,_0x45c6cd){if(!![]!=![])return;tBtkMZ=function(_0x56a98d,_0x1a6e29){_0x56a98d=_0x56a98d-(0x973c9^0x973c9);var _0x20dcf0=_0x5e50e6[_0x56a98d];return _0x20dcf0;};return tBtkMZ(_0x18f269,_0x45c6cd);}tBtkMZ();function _0x1851(_0x4e3ff3,_0x2cf552){const _0x1851ba=_0x2cf5();_0x1851=function(_0x319628,_0x1255da){_0x319628=_0x319628-0x0;let _0x1645ba=_0x1851ba[_0x319628];if(_0x1851["\u0076\u0046\u0063\u0049\u0066\u004d"]===undefined){var _0x3b81c7=function(_0x24758c){const _0x32d091="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x22e693='';let _0x126b1f='';for(let _0x45b9b9=0x0,_0x5f32b6,_0x46ce0d,_0x3b4f8d=0x0;_0x46ce0d=_0x24758c['charAt'](_0x3b4f8d++);~_0x46ce0d&&(_0x5f32b6=_0x45b9b9%0x4?_0x5f32b6*0x40+_0x46ce0d:_0x46ce0d,_0x45b9b9++%0x4)?_0x22e693+=String['fromCharCode'](0xff&_0x5f32b6>>(-0x2*_0x45b9b9&0x6)):0x0){_0x46ce0d=_0x32d091["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x46ce0d);}for(let _0xb6b467=0x0,_0x241637=_0x22e693['length'];_0xb6b467<_0x241637;_0xb6b467++){_0x126b1f+="\u0025"+("00".split("").reverse().join("")+_0x22e693['charCodeAt'](_0xb6b467)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x126b1f);};_0x1851['sSzkqM']=_0x3b81c7;_0x4e3ff3=arguments;_0x1851['vFcIfM']=!![];}const _0x186812=_0x1851ba[0x0];const _0x5c75b4=_0x319628+_0x186812;const _0x1a2608=_0x4e3ff3[_0x5c75b4];if(!_0x1a2608){_0x1645ba=_0x1851["\u0073\u0053\u007a\u006b\u0071\u004d"](_0x1645ba);_0x4e3ff3[_0x5c75b4]=_0x1645ba;}else{_0x1645ba=_0x1a2608;}return _0x1645ba;};return _0x1851(_0x4e3ff3,_0x2cf552);}function BjmGnY(_0x275dcd,_0x3f0be7){if(!![]!=![])return;BjmGnY=function(_0x15375d,_0xfc920d){_0x15375d=_0x15375d-(0x973c9^0x973c9);var _0x3e69f6=_0x5e50e6[_0x15375d];return _0x3e69f6;};return BjmGnY(_0x275dcd,_0x3f0be7);}BjmGnY();function _0x2cf5(){const _0x1685c9=["\u0067\u0071\u0071\u0048\u0057\u004f\u0053\u0073\u0065\u006d\u006f\u006b\u006b\u0038\u006b\u0078\u0057\u0034\u006d\u004b\u0063\u006d\u006b\u002b","\u006d\u0074\u0065\u0030\u006d\u004a\u0065\u0059\u0075\u0031\u006e\u005a\u007a\u004d\u0076\u0041","6kStFk8RcJxB9bRW".split("").reverse().join(""),"\u0042\u0032\u0048\u0053\u007a\u0032\u0072\u0052","\u0043\u0032\u0076\u0059\u0044\u004d\u004c\u004a\u007a\u0075\u0035\u0048\u0042\u0077\u0075","\u007a\u0033\u006a\u0069\u0043\u0067\u0043","\u0057\u0037\u0079\u004f\u0076\u004c\u0037\u0063\u0052\u0043\u006b\u0072\u0077\u0043\u006b\u004f\u0057\u004f\u0030\u0042\u0057\u0050\u006d\u006c\u0057\u0052\u0078\u0064\u0050\u0061","\u0057\u0051\u0076\u0054\u0044\u0043\u006f\u007a\u0079\u0057","i4WX5IA7nhPdJPWvKPW".split("").reverse().join(""),"\u0044\u0076\u006e\u0067\u0074\u0068\u006d","\u0057\u0051\u0043\u0069\u0062\u0059\u0056\u0064\u0050\u0053\u006f\u0071\u0075\u0074\u0056\u0064\u004a\u0074\u0069","\u0046\u0033\u0047\u006a\u0078\u0053\u006b\u0072\u0057\u0051\u006c\u0063\u0047\u004d\u0062\u006b\u0072\u0071","\u007a\u0067\u0066\u0030\u0079\u0071","qOWFomwjkCrTk8RdpOW".split("").reverse().join(""),"jCJzUk8Vdp1GcF7W".split("").reverse().join(""),"aRdV5WSkCRd34W".split("").reverse().join(""),"WkSHd7fhlkCQd/rIdttmJkms".split("").reverse().join(""),"\u006d\u0074\u0075\u0057\u0044\u0065\u0035\u006d\u0073\u0068\u006e\u0052","\u0057\u0050\u004b\u0074\u0057\u0050\u004a\u0064\u0055\u0032\u0050\u0053\u0074\u0061\u0039\u0030\u0057\u0034\u0050\u0032","\u0057\u0037\u0066\u0044\u0071\u0058\u0033\u0064\u004f\u0053\u006f\u006e\u0072\u0064\u002f\u0064\u004f\u0061","WAsv0yMHfo5Ctn".split("").reverse().join(""),"\u0057\u0052\u004e\u0063\u0054\u0043\u006f\u007a\u0072\u006d\u006b\u0056\u0042\u0032\u0076\u0052\u0057\u0035\u0075","GzLjvBY9Mr0v2z".split("").reverse().join(""),"\u006d\u004a\u0069\u0031\u006e\u0064\u0069\u0034\u006e\u0076\u007a\u0076\u0045\u0076\u006e\u0072\u0073\u0061","\u0079\u0075\u006a\u006c\u0074\u0030\u0069","\u0076\u0048\u0074\u0063\u004d\u0038\u006f\u006d\u0073\u0071","\u0057\u0034\u0070\u0064\u0048\u0048\u0079\u0035\u0057\u0050\u0076\u006a\u0057\u0034\u006c\u0063\u004c\u0057","\u0057\u0050\u005a\u0064\u0047\u0043\u006b\u006e\u0057\u0050\u0033\u0063\u0053\u0038\u006b\u0031\u0057\u004f\u0056\u0064\u0050\u0038\u006f\u0068\u0046\u0043\u006b\u0068\u0046\u0030\u004f","WOdteGd77Wyk8TdN4W".split("").reverse().join(""),"\u0057\u0035\u0078\u0064\u0048\u0048\u0043\u0047","u2zHn3CL1gj".split("").reverse().join(""),"4WGdZ6Wm87WlkCQcpRWfvRW".split("").reverse().join(""),"u1zvvxA".split("").reverse().join(""),"\u007a\u004d\u0039\u0059\u0042\u0075\u006e\u0056\u007a\u0067\u0075","ayQWau7WDomhfoCn".split("").reverse().join(""),"qEK9My".split("").reverse().join(""),"WCZv2yJv3C".split("").reverse().join(""),"\u006e\u0066\u0066\u0066\u0044\u004c\u0066\u0066\u0072\u0057","\u0043\u004d\u0076\u0057\u0042\u0033\u006a\u0030\u0076\u0067\u0076\u0054\u0043\u0067\u0058\u0048\u0044\u0067\u0075","GBLHgD".split("").reverse().join(""),"TjxAM52BdnxA".split("").reverse().join(""),"\u0064\u004c\u0070\u0064\u0056\u006d\u006b\u0079\u006b\u0073\u004e\u0064\u004a\u0066\u0038\u0066\u0057\u0034\u0068\u0063\u0049\u0047\u0062\u0079","O7WkSfUcJ4W".split("").reverse().join(""),"\u006f\u0031\u0064\u0064\u0050\u0049\u0033\u0063\u004a\u0030\u0064\u0064\u0055\u0048\u006c\u0063\u004b\u0053\u006f\u0056","eeD29gD".split("").reverse().join(""),"\u006d\u005a\u006d\u0032\u006d\u005a\u0043\u0031\u007a\u0075\u004c\u0058\u0072\u0032\u0076\u006a","mQWDadDPoSpUoCRcxHy6o8qBjQW".split("").reverse().join(""),"\u006f\u0074\u0043\u0057\u006e\u0074\u0061\u0035\u0076\u004d\u006a\u006d\u0041\u0033\u006a\u0050","\u006a\u0068\u0062\u0048\u0043\u004d\u0076\u0055\u0044\u0061","\u006a\u0043\u006f\u0041\u0057\u004f\u0076\u006a\u0064\u0058\u0079\u0061\u0042\u0071\u0037\u0063\u0051\u0071","JT2yS5MB".split("").reverse().join(""),"\u0057\u0037\u004a\u0063\u004a\u0077\u0061\u0071\u0062\u0059\u0064\u0063\u004d\u0047","aDUvgDU92y".split("").reverse().join(""),"BomateqId7If".split("").reverse().join(""),"\u0057\u0037\u0044\u0076\u0073\u0031\u0074\u0063\u0056\u0038\u006b\u0075\u0063\u0063\u006c\u0064\u004d\u0058\u0046\u0064\u0055\u004d\u0071\u0043","\u0057\u004f\u0056\u0063\u0054\u0038\u006f\u006c\u0057\u0036\u004e\u0064\u0051\u0033\u0056\u0064\u004d\u0063\u004e\u0064\u0047\u0061","\u0079\u0078\u006e\u005a\u0041\u0077\u0044\u0055","0kSHdZLnhkmKdxgNclhy2oCv".split("").reverse().join(""),"uNBxPwCsbtm".split("").reverse().join(""),"ahD0Hgj".split("").reverse().join(""),"\u0057\u0052\u0074\u0064\u004c\u0076\u0056\u0064\u004d\u0043\u006b\u0057\u0045\u0048\u0030\u007a","\u0057\u0036\u0052\u0063\u0052\u0032\u0071\u0052\u0057\u0036\u0079","KLuzJLMDYv2C".split("").reverse().join(""),"\u0057\u0036\u0061\u0053\u0075\u004c\u0061","\u006b\u0073\u0062\u0045\u0061\u006d\u006b\u0047\u0057\u0052\u0042\u0063\u004a\u0068\u0066\u0039\u0076\u0053\u006f\u0035","JkmA5H6W".split("").reverse().join("")];_0x2cf5=function(){return _0x1685c9;};return _0x2cf5();}modules={"\u006d\u0065\u0074\u0068\u006f\u0064\u0073":{'formHttp'(_0x4a95eb){function _0x1c84e4(_0x3929db,_0x438265,_0x165811,_0xed117c,_0x72dca){return _0x1851(_0x438265- -0x152,_0x165811);}function _0x359d21(_0x585a02,_0x5ac1ef,_0x436ba5,_0x5ba9fa,_0x38081d){return _0x1a26(_0x585a02- -0x116,_0x5ac1ef);}const _0xee0ae={"\u0061\u0042\u004b\u004f\u0042":_0x1c84e4(-0x14f,-0x148,-0x155,-0x159,-0x12c),"\u0075\u0053\u0046\u004c\u0073":function(_0x1ea6e9,_0x4ea118){return _0x1ea6e9+_0x4ea118;},'UxhgU':function(_0x237291,_0x24184c){return _0x237291+_0x24184c;},'grHpg':function(_0x315fc0){return _0x315fc0();}};function _0x1f7c74(_0x23ec5b,_0x49c12,_0x4066a2,_0x5ddd0f,_0x1f45ed){return _0x1851(_0x23ec5b- -0xab,_0x49c12);}let _0x35c202;function _0x396b10(_0x1b4511,_0x541fc8,_0x1ddd0e,_0x3b892d,_0x334bb3){return _0x1a26(_0x3b892d-0x324,_0x334bb3);}let _0x71452a=()=>{var _0x2cadc1=_0xee0ae["\u0075\u0053\u0046\u004c\u0073"](0x9,0x3);let _0x231383=_0x4a95eb['data'];_0x2cadc1=_0x497491(0x101,0xdc,0xcd,0xe7,0xea);let _0x40b663=_0x4a95eb["\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065"];let _0x2562ad=_0x4a95eb["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"];delete _0x4a95eb['data'];delete _0x4a95eb["\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065"];delete _0x4a95eb['formCode'];delete _0x4a95eb["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"];let _0x5eae69;_0x5eae69=_0x231383;let _0x33bb68=getReportGlobalMap()||{};var _0x362f6b=0x0+0x2;let _0x46fcda=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']()["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"]:this['reportTemplate'];_0x362f6b=_0xee0ae['UxhgU'](0x1,0x5);function _0x2ab440(_0xb17765,_0xc3cc6c,_0x1f1ec9,_0x5493bb,_0x1dcb45){return _0x1a26(_0xc3cc6c- -0x174,_0x1f1ec9);}let _0x43ee00=_0x46fcda["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"];let _0x286c29;function _0x497491(_0x472f7a,_0x10b138,_0x29974e,_0x48c2be,_0x8bc8b1){return _0x1851(_0x8bc8b1-0xda,_0x472f7a);}let _0x4cb251=_0xee0ae['uSFLs']("\u002f",_0x46fcda["\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u004e\u0061\u006d\u0065"])+(_0x2ab440(-0x191,-0x174,"\u0073\u004f\u004d\u0063",-0x157,-0x169)+_0x43ee00+"\u002f"+_0x40b663);function _0x1322a4(_0x2d6bbf,_0x5d247b,_0x707862,_0x5e87e5,_0x208fae){return _0x1a26(_0x5d247b-0x289,_0x707862);}_0x286c29=0x7;return this["\u0024\u0068\u0074\u0074\u0070"]({'aes':!![],"\u0075\u0072\u006c":_0x4cb251,"\u006d\u0065\u0074\u0068\u006f\u0064":_0x2ab440(-0x12a,-0x137,"\u0021\u0054\u005b\u0032",-0x125,-0x136),'loadingTarget':document['body'],"\u006c\u006f\u0061\u0064\u0069\u006e\u0067":!![],..._0x4a95eb,"\u0064\u0061\u0074\u0061":{'fixeData':_0x33bb68,..._0x5eae69},"\u0073\u0075\u0063\u0063\u0065\u0073\u0073":_0x371a3d=>{function _0x244c20(_0x2b0b59,_0x291d96,_0x37b1aa,_0x588477,_0x255282){return _0x1a26(_0x2b0b59-0x2b5,_0x255282);}function _0x283e6f(_0x25d485,_0x32fcee,_0x51713b,_0x4a2f05,_0xd73af7){return _0x1851(_0x4a2f05- -0x2eb,_0x51713b);}if(_0x283e6f(-0x2df,-0x2ed,-0x2f3,-0x2e1,-0x2c8)!==_0xee0ae["\u0061\u0042\u004b\u004f\u0042"]){return _0x50a73d();}else{if(_0x4a95eb["\u0073\u0075\u0063\u0063\u0065\u0073\u0073\u004d\u0073\u0067"]){this["\u0024\u006d\u0065\u0073\u0073\u0061\u0067\u0065"]({'message':_0x371a3d['content'],"\u0074\u0079\u0070\u0065":_0x244c20(0x2c8,0x2b5,0x2b8,0x2e1,"\u0076\u006f\u0077\u0030"),"\u0064\u0075\u0072\u0061\u0074\u0069\u006f\u006e":0x3e8});}_0x2562ad&&_0x2562ad(_0x371a3d);if(_0x4a95eb["\u0077\u0066\u0043\u006f\u006e\u0066\u0069\u0067"]){let _0x41b220;let _0x3d819f=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']():this;_0x41b220=0x8+0x3;var _0x3fa972=0x8+0x9;let _0x11072d=_0x4a95eb['wfConfig'](_0x371a3d);_0x3fa972=_0xee0ae['uSFLs'](0x4,0x3);if(_0x11072d){let _0x1f8ba2=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']()["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"]:this["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"];let _0x12808c=_0x11072d["\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u0049\u0064"]||_0x1f8ba2?.["emaNecivres".split("").reverse().join("")];let _0x1f5b3f=Object["\u0061\u0073\u0073\u0069\u0067\u006e"]({},_0x11072d,{"\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u0049\u0064":_0x12808c});initWf["\u0063\u0061\u006c\u006c"](_0x3d819f['$parent'],_0x1f5b3f);}}}}});};_0x35c202=_0x1c84e4(-0x119,-0x12f,-0x13c,-0x126,-0x144);if(_0x4a95eb['isConfirm']){this['$baseConfirm'](_0x4a95eb["\u0063\u006f\u006e\u0066\u0069\u0072\u006d\u0054\u0065\u0078\u0074"])["\u0074\u0068\u0065\u006e"](()=>{function _0x1ff84d(_0x5a9779,_0x53190f,_0x560ef4,_0x54022c,_0x14f5bf){return _0x1a26(_0x5a9779- -0x33,_0x53190f);}function _0x196eea(_0x213cef,_0x726044,_0x5e30e6,_0x43fa69,_0x2020d9){return _0x1851(_0x213cef- -0x1c1,_0x2020d9);}function _0x54d210(_0x42a6b5,_0x23319b,_0x3b329,_0x3175f2,_0x1051d2){return _0x1a26(_0x42a6b5- -0x153,_0x3175f2);}if(_0x196eea(-0x181,-0x19b,-0x196,-0x17f,-0x193)===_0x54d210(-0x11a,-0x124,-0x131,"\u006a\u0046\u0070\u0023",-0x133)){return _0x71452a();}else{this["\u0024\u006d\u0065\u0073\u0073\u0061\u0067\u0065"]({'message':_0x3f0d25['content'],"\u0074\u0079\u0070\u0065":_0x54d210(-0x117,-0x127,-0x119,"9g4n".split("").reverse().join(""),-0x12d),"\u0064\u0075\u0072\u0061\u0074\u0069\u006f\u006e":0x3e8});}});}else{if(_0x359d21(-0xfb,"\u0029\u005d\u0058\u0078",-0xf6,-0x10b,-0x117)===_0x396b10(0x366,0x355,0x333,0x353,"\u006e\u0034\u0067\u0039")){return _0xee0ae['grHpg'](_0x71452a);}else{return _0x2ce234();}}}}};
|
5
|
+
modules = {
|
6
|
+
methods: {
|
7
|
+
/*formScriptHttp(opts){
|
8
|
+
return this.formHttp({
|
9
|
+
...opts
|
10
|
+
});
|
11
|
+
},*/
|
12
|
+
formHttp(opts) {
|
13
|
+
let toDo = () => {
|
14
|
+
let data = opts.data;
|
15
|
+
let scriptCode = opts.scriptCode;
|
16
|
+
let success = opts.success;
|
17
|
+
delete opts.data
|
18
|
+
delete opts.scriptCode
|
19
|
+
delete opts.formCode
|
20
|
+
delete opts.success
|
21
|
+
|
22
|
+
let reqData;
|
23
|
+
reqData = data;
|
24
|
+
/*if (opts.url) {
|
25
|
+
reqData = data;
|
26
|
+
} else {
|
27
|
+
reqData = {
|
28
|
+
scriptCode: scriptCode,
|
29
|
+
conditions: data
|
30
|
+
};
|
31
|
+
}*/
|
32
|
+
|
33
|
+
let reportGlobalMap = getReportGlobalMap() || {};
|
34
|
+
|
35
|
+
let reportTemplate = this.getFormRef ? this.getFormRef().reportTemplate : this.reportTemplate;
|
36
|
+
let formCode = reportTemplate.formCode;
|
37
|
+
let url = "/" + reportTemplate.serviceName + `/bd_api/${formCode}/${scriptCode}`;
|
38
|
+
// let url = BD_PREFIX + `/formScript/exeScript`;
|
39
|
+
return this.$http({
|
40
|
+
// aes: true,
|
41
|
+
url: url,
|
42
|
+
method: `post`,
|
43
|
+
loadingTarget: document.body,
|
44
|
+
loading: true,
|
45
|
+
...opts,
|
46
|
+
data: {
|
47
|
+
// scriptCode: scriptCode,
|
48
|
+
fixeData: reportGlobalMap,
|
49
|
+
...reqData
|
50
|
+
},
|
51
|
+
success: res => {
|
52
|
+
if (opts.successMsg) {
|
53
|
+
this.$message({
|
54
|
+
message: res.content,
|
55
|
+
type: 'success',
|
56
|
+
duration: 1000
|
57
|
+
});
|
58
|
+
}
|
59
|
+
success && success(res);
|
60
|
+
if (opts.wfConfig) {
|
61
|
+
let formTarget = this.getFormRef ? this.getFormRef() : this;
|
62
|
+
let wfConfig = opts.wfConfig(res);
|
63
|
+
if (wfConfig) {
|
64
|
+
let reportTemplate = this.getFormRef ? this.getFormRef().reportTemplate : this.reportTemplate;
|
65
|
+
let serviceId = wfConfig.serviceId || reportTemplate?.serviceName;
|
66
|
+
let opt2 = Object.assign({}, wfConfig, {
|
67
|
+
serviceId: serviceId
|
68
|
+
});
|
69
|
+
//初始化流程
|
70
|
+
|
71
|
+
initWf.call(formTarget.$parent, opt2);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
});
|
76
|
+
}
|
77
|
+
if (opts.isConfirm) {
|
78
|
+
this.$baseConfirm(opts.confirmText).then(() => {
|
79
|
+
return toDo();
|
80
|
+
});
|
81
|
+
} else {
|
82
|
+
return toDo();
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
6
87
|
export default modules;
|
@@ -25,6 +25,17 @@
|
|
25
25
|
<i class="iconfont icon-liuchengdaiban" @click="$router.push('/basic/wf/wf_manage/list')"/>
|
26
26
|
</el-tooltip>
|
27
27
|
</div>
|
28
|
+
<div class="item" v-if="isDev">
|
29
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('获取提取码')" :placement="direction">
|
30
|
+
<i class="el-icon-setting" @click="showExtractedCodeCreateDialog=true"/>
|
31
|
+
</el-tooltip>
|
32
|
+
</div>
|
33
|
+
<div class="item">
|
34
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('查看提取码')" :placement="direction">
|
35
|
+
<i class="el-icon-tickets" @click="showExtractedCodeQueryDialog=true"/>
|
36
|
+
</el-tooltip>
|
37
|
+
</div>
|
38
|
+
|
28
39
|
<div class="item" @click="logout()">
|
29
40
|
<el-tooltip :enterable="false" effect="dark" :content="$t1('退出')" :placement="direction">
|
30
41
|
<i class="el-icon-switch-button"/>
|
@@ -130,8 +141,8 @@
|
|
130
141
|
</span> -->
|
131
142
|
</el-dialog>
|
132
143
|
|
133
|
-
<!-- <infoIframeDialog v-if="showInfoIframeDialog" :visiable.sync="showInfoIframeDialog"
|
134
|
-
|
144
|
+
<!-- <infoIframeDialog v-if="showInfoIframeDialog" :visiable.sync="showInfoIframeDialog"
|
145
|
+
:dataId="userInfo.id"></infoIframeDialog>-->
|
135
146
|
<userInfo v-if="!isFormDev && showUserInfoDialog" :visiable.sync="showUserInfoDialog" :_dataId="userInfo.id"
|
136
147
|
topValue="128px"
|
137
148
|
@reload="userInfoReload"></userInfo>
|
@@ -139,6 +150,10 @@
|
|
139
150
|
topValue="128px"
|
140
151
|
@reload="userInfoReload"></userFormInfo>
|
141
152
|
<onlineTalk></onlineTalk>
|
153
|
+
<extractedCodeCreateDialog v-if="showExtractedCodeCreateDialog" :visiable.sync="showExtractedCodeCreateDialog"
|
154
|
+
></extractedCodeCreateDialog>
|
155
|
+
<extractedCodeQueryDialog v-if="showExtractedCodeQueryDialog" :visiable.sync="showExtractedCodeQueryDialog"
|
156
|
+
></extractedCodeQueryDialog>
|
142
157
|
</div>
|
143
158
|
</template>
|
144
159
|
|
@@ -155,6 +170,11 @@ import indexUtil from "@base/utils/index.js"
|
|
155
170
|
import langTool from "../langTool.vue";
|
156
171
|
import {initPddLog} from "@base/utils/pddLog";
|
157
172
|
|
173
|
+
import extractedCodeCreateDialog from "../extractedCode/createDialog.vue";
|
174
|
+
import extractedCodeQueryDialog from "../extractedCode/queryDialog.vue";
|
175
|
+
import {getBdFlag} from "@/api/user";
|
176
|
+
|
177
|
+
|
158
178
|
export default {
|
159
179
|
props: {
|
160
180
|
option: Object
|
@@ -188,9 +208,13 @@ export default {
|
|
188
208
|
firstMenuHeight: 0, // 第一个菜单的高度
|
189
209
|
eveyMenuHeight: 48, // 每一个菜单的高度
|
190
210
|
isFormDev: false,
|
211
|
+
|
212
|
+
showExtractedCodeCreateDialog: false,
|
213
|
+
showExtractedCodeQueryDialog: false,
|
214
|
+
isDev: false
|
191
215
|
};
|
192
216
|
},
|
193
|
-
components: {userInfo, userFormInfo, onlineTalk, langTool},
|
217
|
+
components: {userInfo, userFormInfo, onlineTalk, langTool, extractedCodeCreateDialog, extractedCodeQueryDialog},
|
194
218
|
computed: {
|
195
219
|
...mapGetters(['permission_routes', 'sidebar', 'sidebarRouters', 'isBdAdmin', 'userFlag']),
|
196
220
|
activeMenu() {
|
@@ -237,8 +261,16 @@ export default {
|
|
237
261
|
}
|
238
262
|
initPddLog();//初始化拼多多日志
|
239
263
|
this.initIsFormDev();
|
264
|
+
this.getBdEnv();
|
240
265
|
},
|
241
266
|
methods: {
|
267
|
+
getBdEnv() {
|
268
|
+
getBdFlag({
|
269
|
+
success: res => {
|
270
|
+
this.isDev = res.objx == 1
|
271
|
+
}
|
272
|
+
});
|
273
|
+
},
|
242
274
|
initIsFormDev() {
|
243
275
|
let userFlag = this.userFlag
|
244
276
|
this.isFormDev = userFlag == 6 || userFlag == 7 || userFlag == 8;
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('获取提取码')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="false"
|
7
|
+
:visible.sync="showDialog"
|
8
|
+
:modal="false"
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
10
|
+
width="350px"
|
11
|
+
v-el-drag-dialog
|
12
|
+
v-el-dialog-center
|
13
|
+
@close="dialogClose"
|
14
|
+
>
|
15
|
+
<div class="cont">
|
16
|
+
<el-form ref="editCategoryForm" :model="formData" label-width="102px" class="adSearchForm" style="min-height: 150px; width: auto;">
|
17
|
+
<el-form-item :label="$t1('类型')">
|
18
|
+
<el-select v-model="formData.objType" class="all-width">
|
19
|
+
<el-option value="FormTemplate" :label="$t1('表单')"></el-option>
|
20
|
+
<el-option value="FormScript" :label="$t1('表单脚本')"></el-option>
|
21
|
+
<el-option value="TableTemplate" :label="$t1('数据表')"></el-option>
|
22
|
+
</el-select>
|
23
|
+
</el-form-item>
|
24
|
+
<el-form-item :label="$t1('唯一标识')">
|
25
|
+
<el-input v-model="formData.sid" clearable class="all-width"/>
|
26
|
+
</el-form-item>
|
27
|
+
<el-form-item :label="$t1('提取码')">
|
28
|
+
<span>{{ extractedCode }}</span>
|
29
|
+
</el-form-item>
|
30
|
+
</el-form>
|
31
|
+
</div>
|
32
|
+
<span slot="footer" class="dialog-footer">
|
33
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
34
|
+
<i class="el-icon-close el-icon"></i>
|
35
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
36
|
+
</el-button>
|
37
|
+
<el-button type="primary" @click="dialogConfirm" class="button-sty">
|
38
|
+
<i class="el-icon-check el-icon"></i>
|
39
|
+
{{ $t1('生成提取码') }}
|
40
|
+
</el-button>
|
41
|
+
</span>
|
42
|
+
</el-dialog>
|
43
|
+
</template>
|
44
|
+
<script>
|
45
|
+
export default {
|
46
|
+
name: "createDialog",
|
47
|
+
data() {
|
48
|
+
return {
|
49
|
+
showDialog: true,
|
50
|
+
formData: {
|
51
|
+
objType: "FormTemplate",
|
52
|
+
sid: null
|
53
|
+
},
|
54
|
+
extractedCode: null
|
55
|
+
}
|
56
|
+
},
|
57
|
+
methods: {
|
58
|
+
dialogConfirm() {
|
59
|
+
this.extractedCode = null;
|
60
|
+
if (!this.formData.sid) {
|
61
|
+
this.$baseAlert("唯一标识不能为空");
|
62
|
+
return
|
63
|
+
}
|
64
|
+
this.$http({
|
65
|
+
aes: true,
|
66
|
+
url: USER_PREFIX + `/form_develop/getExtractedCodeData`,
|
67
|
+
method: `post`,
|
68
|
+
data: this.formData,
|
69
|
+
isLoading: true,
|
70
|
+
success: res => {
|
71
|
+
let rows = res.objx || []
|
72
|
+
if (rows.length) {
|
73
|
+
let row = rows[0];
|
74
|
+
this.extractedCode = row.extractedCode
|
75
|
+
}
|
76
|
+
}
|
77
|
+
})
|
78
|
+
},
|
79
|
+
dialogClose() {
|
80
|
+
this.showDialog = false;
|
81
|
+
this.$emit('update:visiable', false)
|
82
|
+
},
|
83
|
+
}
|
84
|
+
}
|
85
|
+
</script>
|
86
|
+
|
87
|
+
|
88
|
+
<style scoped>
|
89
|
+
::v-deep .el-select.all-width .el-input{
|
90
|
+
width: 100% !important;
|
91
|
+
}
|
92
|
+
</style>
|
@@ -0,0 +1,96 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('查询提取码')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="false"
|
7
|
+
:visible.sync="showDialog"
|
8
|
+
:modal="false"
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
10
|
+
width="350px"
|
11
|
+
v-el-drag-dialog
|
12
|
+
:before-close="dialogClose"
|
13
|
+
>
|
14
|
+
<div class="cont">
|
15
|
+
<el-form ref="editCategoryForm" :model="formData" label-width="102px" class="adSearchForm" style="height: auto; width: auto;">
|
16
|
+
<el-form-item :label="$t1('提取码')">
|
17
|
+
<el-input v-model="formData.extractedCode" clearable class="all-width"/>
|
18
|
+
</el-form-item>
|
19
|
+
</el-form>
|
20
|
+
</div>
|
21
|
+
<span slot="footer" class="dialog-footer">
|
22
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
23
|
+
<i class="el-icon-close el-icon"></i>
|
24
|
+
{{ $t2('取 消', 'system.button.cancel2') }}
|
25
|
+
</el-button>
|
26
|
+
<el-button type="primary" @click="dialogConfirm" class="button-sty">
|
27
|
+
<i class="el-icon-check el-icon"></i>
|
28
|
+
{{ $t1('确定') }}
|
29
|
+
</el-button>
|
30
|
+
</span>
|
31
|
+
<viewDialog v-if="showViewDialog" :visiable.sync="showViewDialog" @close="dialogClose"
|
32
|
+
:extractedObj="extractedObj"></viewDialog>
|
33
|
+
</el-dialog>
|
34
|
+
</template>
|
35
|
+
<script>
|
36
|
+
import viewDialog from "./viewDialog.vue";
|
37
|
+
|
38
|
+
export default {
|
39
|
+
name: "createDialog",
|
40
|
+
components: {
|
41
|
+
viewDialog
|
42
|
+
},
|
43
|
+
data() {
|
44
|
+
return {
|
45
|
+
showDialog: true,
|
46
|
+
formData: {
|
47
|
+
extractedCode: null
|
48
|
+
},
|
49
|
+
showViewDialog: false,
|
50
|
+
extractedObj: {}
|
51
|
+
}
|
52
|
+
},
|
53
|
+
methods: {
|
54
|
+
dialogConfirm() {
|
55
|
+
if (!this.formData.extractedCode) {
|
56
|
+
this.$baseAlert(this.$t1("提取码不能为空"));
|
57
|
+
return
|
58
|
+
}
|
59
|
+
this.$http({
|
60
|
+
aes: true,
|
61
|
+
url: USER_PREFIX + `/form_develop/getExtractedObjData`,
|
62
|
+
method: `post`,
|
63
|
+
data: {
|
64
|
+
stringOne: this.formData.extractedCode
|
65
|
+
},
|
66
|
+
isLoading: true,
|
67
|
+
success: res => {
|
68
|
+
let rows = res.objx || []
|
69
|
+
if (rows.length) {
|
70
|
+
let row = rows[0];
|
71
|
+
let obj = row.obj
|
72
|
+
if (!obj) {
|
73
|
+
this.$baseAlert(this.$t1("提取对象为空"));
|
74
|
+
return
|
75
|
+
}
|
76
|
+
this.extractedObj = row;
|
77
|
+
this.showDialog = false;
|
78
|
+
this.showViewDialog = true;
|
79
|
+
} else {
|
80
|
+
this.$baseAlert(this.$t1("无效提取码"));
|
81
|
+
}
|
82
|
+
}
|
83
|
+
})
|
84
|
+
},
|
85
|
+
dialogClose() {
|
86
|
+
this.showDialog = false;
|
87
|
+
this.$emit('update:visiable', false)
|
88
|
+
},
|
89
|
+
}
|
90
|
+
}
|
91
|
+
</script>
|
92
|
+
|
93
|
+
|
94
|
+
<style scoped>
|
95
|
+
|
96
|
+
</style>
|
@@ -0,0 +1,188 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('查看单据流程')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="false"
|
7
|
+
:visible.sync="showWfDialog"
|
8
|
+
:modal="false"
|
9
|
+
custom-class="el-dialog dialog-style designer-dialog indexUse"
|
10
|
+
width="100%"
|
11
|
+
height="100%"
|
12
|
+
top="0px"
|
13
|
+
bottom="0px"
|
14
|
+
:destroy-on-close="true"
|
15
|
+
@close="wfClose"
|
16
|
+
>
|
17
|
+
<div id="containt">
|
18
|
+
<component
|
19
|
+
v-if="showWfContent && wfContent"
|
20
|
+
:is="wfContent"
|
21
|
+
visible-key="showWfContent"
|
22
|
+
v-bind="param"
|
23
|
+
:parent-target="_self"
|
24
|
+
:defaultShowWfContent="true"
|
25
|
+
:_viewType="1"
|
26
|
+
@reload="$reloadHandle"
|
27
|
+
@openDesignDialog="openDesingerDialogByChild"
|
28
|
+
></component>
|
29
|
+
<el-drawer :title="$t1('表单设计({formName})',{formName})" :visible.sync="showDesingerDialog" :modal="false"
|
30
|
+
:destroy-on-close="true"
|
31
|
+
size="100%" direction="rtl" :before-close="closeFormDesignwinEvent" :append-to-body="false"
|
32
|
+
class="designer-drawer" :class="[isFullscreen ? 'is-fullscreen' : '']" @close="handleFormDesignClose">
|
33
|
+
<el-tabs v-model="formDesTabs" type="card" class="tab-boxOnly" :stretch="true">
|
34
|
+
<el-tab-pane :label="$t1('设计器')" name="first">
|
35
|
+
<designer ref="designer" :formCode.sync="formCode" :readonly="true"
|
36
|
+
@reflushTemplateList="reflushTemplateList"></designer>
|
37
|
+
</el-tab-pane>
|
38
|
+
</el-tabs>
|
39
|
+
<el-button class="isFullIcon" v-if="!isFullscreen" @click="handleFullscreen">
|
40
|
+
<el-tooltip effect="dark" :content="$t1('全屏')" placement="top">
|
41
|
+
<i class="iconfont icon-quanping"></i>
|
42
|
+
</el-tooltip>
|
43
|
+
|
44
|
+
</el-button>
|
45
|
+
<el-button class="isFullIcon" v-else @click="handleFullscreen">
|
46
|
+
<el-tooltip effect="dark" :content="$t1('缩小')" placement="top">
|
47
|
+
<i class="iconfont icon-suoxiao"></i>
|
48
|
+
</el-tooltip>
|
49
|
+
</el-button>
|
50
|
+
</el-drawer>
|
51
|
+
</div>
|
52
|
+
</el-dialog>
|
53
|
+
</template>
|
54
|
+
|
55
|
+
<script>
|
56
|
+
|
57
|
+
|
58
|
+
import indexUtil from "@base/utils";
|
59
|
+
import designer from "@base/views/user/form/vform/designer.vue";
|
60
|
+
|
61
|
+
export default {
|
62
|
+
name: "wfContentDialog",
|
63
|
+
props: {
|
64
|
+
extractedObj: Object,
|
65
|
+
},
|
66
|
+
components: {designer},
|
67
|
+
data() {
|
68
|
+
return {
|
69
|
+
param: {},
|
70
|
+
wfContent: null,
|
71
|
+
showWfContent: false,
|
72
|
+
showWfDialog: true,
|
73
|
+
|
74
|
+
showDesingerDialog: false,
|
75
|
+
formCode: null,
|
76
|
+
formName: null,
|
77
|
+
isFullscreen: false,
|
78
|
+
formDesTabs: 'first',
|
79
|
+
};
|
80
|
+
},
|
81
|
+
mounted() {
|
82
|
+
this.$nextTick(() => {
|
83
|
+
this.openWfDialog();
|
84
|
+
})
|
85
|
+
},
|
86
|
+
methods: {
|
87
|
+
wfClose() {
|
88
|
+
this.showWfDialog = false;
|
89
|
+
this.$emit('update:visible', false);
|
90
|
+
this.$emit('close');
|
91
|
+
},
|
92
|
+
openWfDialog() {
|
93
|
+
let extractedObj = this.extractedObj;
|
94
|
+
let objType = extractedObj.objType;
|
95
|
+
let obj = extractedObj.obj;
|
96
|
+
let id = obj.id;
|
97
|
+
let wfDataId = id;
|
98
|
+
let param = {
|
99
|
+
readonly: true
|
100
|
+
};
|
101
|
+
|
102
|
+
let url;
|
103
|
+
if (objType == "FormTemplate") {
|
104
|
+
url = "/bd/setting/form_template/edit.vue"
|
105
|
+
wfDataId = obj.formCode;
|
106
|
+
} else if (objType == "FormScript") {
|
107
|
+
if (obj.scriptType == 1) {
|
108
|
+
url = "/bd/setting/form_script/edit1.vue"
|
109
|
+
} else {
|
110
|
+
url = "/bd/setting/form_script/edit.vue"
|
111
|
+
}
|
112
|
+
} else if (objType == "TableTemplate") {
|
113
|
+
url = "/bd/setting/table_model/edit.vue"
|
114
|
+
}
|
115
|
+
this.param = Object.assign(param, {
|
116
|
+
_dataId: wfDataId
|
117
|
+
});
|
118
|
+
this.wfContent = require('@base/views' + url).default;
|
119
|
+
|
120
|
+
this.showWfContent = true;
|
121
|
+
},
|
122
|
+
|
123
|
+
handleFormDesignClose() {
|
124
|
+
this.formDesTabs = 'first';
|
125
|
+
this.showFormScriptList = false;
|
126
|
+
},
|
127
|
+
openDesingerDialog(row, callback) {
|
128
|
+
this.formCode = row.formCode;
|
129
|
+
this.formName = row.formName;
|
130
|
+
this.currentFormTemplate = row;
|
131
|
+
this.isFullscreen = false;
|
132
|
+
this.showDesingerDialog = true;
|
133
|
+
this.designerSaveCallback = callback ?? null;
|
134
|
+
},
|
135
|
+
openDesingerDialogByChild({row, callback}) {
|
136
|
+
this.openDesingerDialog(row, callback)
|
137
|
+
},
|
138
|
+
reflushTemplateList() {
|
139
|
+
// this.searchEvent();
|
140
|
+
this.designerSaveCallback && this.designerSaveCallback();
|
141
|
+
},
|
142
|
+
handleFullscreen() {
|
143
|
+
let isFullscreen = this.isFullscreen;
|
144
|
+
if (!isFullscreen) {
|
145
|
+
indexUtil.addClass(document.body, "hideMenu");
|
146
|
+
} else {
|
147
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
148
|
+
}
|
149
|
+
this.isFullscreen = !isFullscreen;
|
150
|
+
},
|
151
|
+
closeFormDesignwinEvent(done) {
|
152
|
+
this.$baseConfirm(this.$t1('请确认"已保存"报表模板,是否继续关闭?')).then(() => {
|
153
|
+
indexUtil.removeClass(document.body, "hideMenu");
|
154
|
+
done && done();
|
155
|
+
});
|
156
|
+
},
|
157
|
+
|
158
|
+
}
|
159
|
+
}
|
160
|
+
</script>
|
161
|
+
|
162
|
+
<style scoped>
|
163
|
+
::v-deep .tab-boxOnly > .el-tabs__header {
|
164
|
+
position: absolute;
|
165
|
+
right: 130px;
|
166
|
+
top: 0;
|
167
|
+
}
|
168
|
+
|
169
|
+
::v-deep .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
170
|
+
.detail-wrap .d-cont {
|
171
|
+
height: calc(100vh - 158px) !important
|
172
|
+
}
|
173
|
+
|
174
|
+
.grid-height {
|
175
|
+
height: calc(100vh - 126px) !important
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
::v-deep .designer-drawer.is-fullscreen .tab-boxOnly > .el-tabs__content .el-tab-pane .el-tab-pane {
|
180
|
+
.detail-wrap .d-cont {
|
181
|
+
height: calc(100vh - 116px) !important
|
182
|
+
}
|
183
|
+
|
184
|
+
.grid-height {
|
185
|
+
height: calc(100vh - 84px) !important
|
186
|
+
}
|
187
|
+
}
|
188
|
+
</style>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
{{ $t1('重置') }}
|
12
12
|
</el-button>
|
13
13
|
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData"
|
14
|
-
v-if="isDev && menuKindAuth.editAuth===1">{{ $t1('保存') }}
|
14
|
+
v-if="isDev && menuKindAuth.editAuth===1 && !readonly">{{ $t1('保存') }}
|
15
15
|
</el-button>
|
16
16
|
</div>
|
17
17
|
</div>
|
@@ -11,7 +11,8 @@ modules = {
|
|
11
11
|
_dataId: [String, Number],
|
12
12
|
formCode: String,
|
13
13
|
formTemplate: Object,
|
14
|
-
currentFormType: Object
|
14
|
+
currentFormType: Object,
|
15
|
+
readonly: Boolean
|
15
16
|
},
|
16
17
|
components: {formOplogTable, preformDialog, projectTagView, MenuKindDialog},
|
17
18
|
data() {
|
@@ -11,7 +11,8 @@ modules = {
|
|
11
11
|
_dataId: [String, Number],
|
12
12
|
formCode: String,
|
13
13
|
formTemplate: Object,
|
14
|
-
currentFormType: Object
|
14
|
+
currentFormType: Object,
|
15
|
+
readonly: Boolean
|
15
16
|
},
|
16
17
|
components: {formOplogTable, preformDialog, projectTagView, MenuKindDialog},
|
17
18
|
data() {
|