cloud-web-corejs 1.0.54-dev.735 → 1.0.54-dev.736
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/excelExport/exportFieldDialog.vue +40 -18
- package/src/components/excelExport/index.js +17 -3
- package/src/components/excelExport/index.vue +2 -1
- package/src/components/excelExport/mixins.js +113 -32
- package/src/components/fileLibrary/mixins/indexMixins.js +10 -0
- package/src/components/table/config.js +74 -1
- package/src/components/table/index.js +7 -22
- package/src/components/table/tableFormMixin.js +285 -1
- package/src/components/table/util/index.js +38 -40
- package/src/components/table/vxeFilter/index.js +153 -2
- package/src/components/table/vxeFilter/mixin.js +305 -3
- package/src/components/xform/docs/2026-07 table/344/270/216excelExport/344/277/256/345/244/215/345/217/212/345/257/274/345/207/272/344/274/230/345/214/226.md" +57 -0
- package/src/components/xform/docs/2026-07 /346/216/222/346/237/245/344/277/256/345/244/215/350/256/260/345/275/225.md" +73 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +108 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +288 -6
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +0 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +0 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +0 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +0 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +3 -12
- package/src/components/xform/form-designer/form-widget/indexMixin.js +184 -2
- package/src/components/xform/form-designer/indexMixin.js +0 -1
- package/src/components/xform/form-designer/refMixinDesign.js +27 -1
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +357 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +639 -15
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +290 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +282 -1115
- package/src/components/xform/form-render/container-item/data-table-mixin.js +29 -7
- package/src/components/xform/form-render/dynamicDialogRender.js +238 -3
- package/src/components/xform/form-render/dynamicDrawerRender.js +229 -0
- package/src/components/xform/form-render/indexMixin.js +21 -431
- package/src/components/xform/form-render/refMixin.js +32 -1
- package/src/components/xform/mixins/defaultHandle.js +2 -2
- package/src/components/xform/utils/dynamicSchemaUtil.js +46 -0
- package/src/components/xform/utils/validators.js +186 -2
- package/src/utils/componentDialog.js +322 -0
- package/src/views/user/form/vform/render.vue +4 -21
- package/src/views/user/form/view/list.vue +13 -9
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +0 -971
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +0 -408
- package/src/components/xform/utils/formHttp.js +0 -162
|
@@ -670,7 +670,6 @@ modules = {
|
|
|
670
670
|
},
|
|
671
671
|
handleOnMounted: function () {
|
|
672
672
|
this.handleCustomEvent(this.field.options.onMounted);
|
|
673
|
-
this.autoExcScript();
|
|
674
673
|
},
|
|
675
674
|
registerToRefList: function (e) {
|
|
676
675
|
/* null !== this.refList && this.field.options.name && (this.tableParam && !this.designState ? (e
|
|
@@ -1475,8 +1474,7 @@ modules = {
|
|
|
1475
1474
|
let tableData = searchDialogConfig.tableData || [];
|
|
1476
1475
|
let formModel = this.formModel;
|
|
1477
1476
|
let row = rows && rows.length ? rows[0] : null;
|
|
1478
|
-
let multipleChoices =
|
|
1479
|
-
optionModel.searchDialogConfig.multipleChoices || false;
|
|
1477
|
+
let multipleChoices = searchDialogConfig.multipleChoices || false;
|
|
1480
1478
|
|
|
1481
1479
|
let valueSourceField = trim(searchDialogConfig.valueSourceField);
|
|
1482
1480
|
let labelSourceField = trim(searchDialogConfig.labelSourceField);
|
|
@@ -1586,7 +1584,7 @@ modules = {
|
|
|
1586
1584
|
);
|
|
1587
1585
|
} else if (!multipleChoices) {
|
|
1588
1586
|
tableData.forEach((item) => {
|
|
1589
|
-
let value = row[item.sourceField] ?? null;
|
|
1587
|
+
let value = !isClear && row ? row[item.sourceField] ?? null : null;
|
|
1590
1588
|
// formModel[item.targetField] = value
|
|
1591
1589
|
// this.getWidgetRef(item.targetField).setValue(value);
|
|
1592
1590
|
let targetField = trim(item.targetField);
|
|
@@ -1736,7 +1734,7 @@ modules = {
|
|
|
1736
1734
|
e,
|
|
1737
1735
|
this.field.type,
|
|
1738
1736
|
this.getOptionItemLabelKey(),
|
|
1739
|
-
this.getOptionItemValueKey()
|
|
1737
|
+
this.getOptionItemValueKey()
|
|
1740
1738
|
);
|
|
1741
1739
|
// this.field.options.optionItems = optionItems
|
|
1742
1740
|
this.setOptionItems(optionItems);
|
|
@@ -1894,13 +1892,6 @@ modules = {
|
|
|
1894
1892
|
},
|
|
1895
1893
|
});
|
|
1896
1894
|
},
|
|
1897
|
-
autoExcScript() {
|
|
1898
|
-
if (!this.designState && this.field.options.accessAutoExc) {
|
|
1899
|
-
this.scriptHttp({
|
|
1900
|
-
options: this.field.options,
|
|
1901
|
-
});
|
|
1902
|
-
}
|
|
1903
|
-
},
|
|
1904
1895
|
addInterval(handler, timeout) {
|
|
1905
1896
|
let timer = setInterval(handler, timeout);
|
|
1906
1897
|
this.timerMap[timer] = timer;
|
|
@@ -1,5 +1,187 @@
|
|
|
1
|
-
import i18n from
|
|
1
|
+
import i18n from "../../../../components/xform/utils/i18n";
|
|
2
2
|
|
|
3
3
|
let modules = {};
|
|
4
|
-
function _0x3edf(){const _0x471785=["yYPdZOWhWZPdxwRdpNi".split("").reverse().join(""),"\u0072\u0077\u0047\u006c\u0057\u0050\u002f\u0064\u0055\u004b\u0068\u0063\u0048\u0057\u002f\u0063\u0053\u004b\u0052\u0063\u0052\u0038\u006b\u004c\u0057\u0035\u0030","quioCMdpNRdBhfDo8h5omdikSc".split("").reverse().join(""),"\u0073\u0043\u006f\u0068\u0057\u0050\u0056\u0064\u0049\u0073\u004f\u0059","\u0063\u0043\u006f\u004b\u007a\u006d\u006f\u006f\u0057\u0035\u005a\u0064\u0047\u0062\u0075\u0030\u0045\u0043\u006b\u0038","WaaoSOc3PWJkCkgj6W".split("").reverse().join(""),"aVd7WKcBRW".split("").reverse().join(""),"\u0043\u0032\u0076\u0030\u0075\u0032\u0076\u0053\u007a\u0077\u006e\u0030\u007a\u0077\u0071","Gz6GdHdBPWvoCc".split("").reverse().join(""),"\u0057\u0051\u0052\u0064\u0051\u0038\u006f\u0079\u0043\u0038\u006b\u0051\u0063\u0038\u006b\u0048\u0076\u0061","\u0043\u0032\u0076\u0053\u007a\u0077\u006e\u0030\u007a\u0077\u0072\u0078\u0041\u0077\u0072\u004e\u007a\u0078\u0072\u006f\u0079\u0077\u0031\u004c","\u0043\u0032\u004c\u0036\u007a\u0071","\u007a\u0032\u0076\u0030\u0074\u0067\u0066\u0035\u0042\u0033\u0076\u0030\u0076\u0068\u004c\u0057\u007a\u0071","\u0042\u004d\u0076\u0033\u0073\u0077\u0035\u004b\u007a\u0078\u0047","sv3AtXgsZKZm4atn".split("").reverse().join(""),"ivEOr2ArvZm".split("").reverse().join(""),"390IcRXPdF4WQomD".split("").reverse().join(""),"\u0057\u0037\u002f\u0063\u0055\u0053\u006f\u0048\u0046\u0038\u006b\u0079\u0069\u0038\u006b\u004a\u0071\u0061","m1SchOWcjrGdpQWkeRW".split("").reverse().join(""),"qlho8rSCuPd/PW".split("").reverse().join(""),"\u0044\u0062\u0070\u0064\u004b\u0053\u006f\u004c\u0057\u0037\u0070\u0063\u0053\u0075\u0046\u0064\u004f\u0047","GUdpRWxoSC09xVdt1zhb6W3k8d".split("").reverse().join(""),"GBVLgDPn3BqXwzIfgB".split("").reverse().join(""),"GaMd/PW0oSq+9tOcxZpAyRWNoCu".split("").reverse().join(""),"\u0041\u0075\u0058\u006f\u0075\u0033\u0061","\u0043\u0033\u0072\u0056\u0043\u0066\u0062\u0059\u0042\u0033\u0062\u0048\u007a\u0032\u0066\u0030\u0041\u0077\u0039\u0055","\u0057\u0051\u0046\u0064\u0048\u006d\u006f\u0032\u0057\u0035\u002f\u0064\u004c\u004b\u0030\u0072\u0057\u0050\u0052\u0064\u0048\u0071","\u007a\u0077\u0031\u0050\u0044\u0065\u0048\u0050\u0043\u0033\u0072\u0056\u0043\u004e\u004c\u0064\u0041\u0067\u0066\u0055\u007a\u0032\u0075","qhh3avo".split("").reverse().join(""),"\u0063\u0043\u006f\u0049\u0043\u0038\u006f\u0070\u0057\u0037\u0056\u0063\u0047\u0047\u0047\u0033\u0046\u006d\u006b\u002b\u0057\u0037\u0064\u0063\u004a\u0033\u0061\u0030","MvNuV9eD4Ktm5qtn".split("").reverse().join(""),"\u0057\u0037\u0038\u0049\u0071\u0030\u002f\u0064\u004e\u004e\u0070\u0064\u0049\u0064\u0057","GUdl5WQomF".split("").reverse().join(""),"\u0041\u0074\u0065\u0034\u0042\u004e\u0071","\u0042\u0067\u0039\u0048\u007a\u0066\u0062\u0059\u007a\u0078\u006e\u004c\u0044\u0065\u006e\u005a\u0043\u0030\u006e\u0056\u007a\u0067\u0075","C7WTo8TcR5WZK4W7omNdBMKd/5W".split("").reverse().join(""),"qKRdV7WsomScZ7WtG5WPomLd7eLdZ5W".split("").reverse().join(""),"aCVjhr0XwDHzwzeH3BMvMCPzuzSjwyZLgz".split("").reverse().join(""),"\u0044\u0068\u004c\u0057\u007a\u0071","\u0057\u0050\u0071\u006b\u0057\u0051\u004e\u0064\u0049\u0038\u006b\u0062\u0057\u0052\u0046\u0064\u0052\u004c\u0071\u0078\u0057\u0036\u002f\u0063\u004d\u0071","\u0057\u0037\u0079\u0070\u0076\u006d\u006b\u0044\u0067\u004e\u0070\u0064\u0055\u005a\u0057\u002b\u0074\u0038\u006f\u0033\u0076\u0047\u0075","GrEkSzNomSdFWNchQW".split("").reverse().join(""),"\u006d\u0074\u0043\u0033\u006d\u0031\u0072\u0048\u0073\u004b\u004c\u0035\u0042\u0061","0kmzAk8UddYpIo8iLbOWrf7W".split("").reverse().join(""),"SsIcBGIdBQWFoSC4SOWni1LcZPW".split("").reverse().join(""),"qy0fgrU9wA0b3B".split("").reverse().join(""),"\u006d\u0064\u005a\u0064\u004f\u004b\u004b\u0031\u0073\u006d\u006b\u0062\u0077\u0031\u004e\u0063\u0048\u0071","amxoCoMoSeyGGj".split("").reverse().join(""),"MjNydjfs1KZm3mJm".split("").reverse().join(""),"\u0057\u0035\u004c\u002b\u0068\u0030\u0035\u0032\u0077\u0043\u006f\u0049\u0076\u0031\u0033\u0063\u004e\u0058\u0068\u0063\u004a\u004e\u0061","CwAM52BdjxzUDwAZvgr0v2z".split("").reverse().join(""),"\u0072\u0064\u0071\u004a\u006a\u0058\u0062\u0073\u0046\u0047","\u007a\u004d\u0039\u0059\u0042\u0075\u0031\u0056\u007a\u0067\u0076\u0053","ixzUDwAZvgz".split("").reverse().join(""),"\u006e\u0064\u0047\u0059\u006e\u004a\u0072\u0069\u0077\u0075\u0058\u0052\u0044\u004e\u0043","\u0044\u0032\u004c\u004b\u007a\u0032\u0076\u0030\u0075\u004d\u0076\u004d\u0074\u0067\u004c\u005a\u0044\u0061","\u0057\u0035\u0061\u0067\u0079\u004b\u0033\u0064\u004f\u0057","\u006f\u0078\u0061\u0054\u007a\u0053\u006f\u006e\u0042\u006d\u006f\u002b\u006f\u0049\u0056\u0064\u0052\u0068\u0037\u0064\u0054\u0061","\u0041\u0032\u0076\u0035\u0043\u0057","qzWLhv0v2zYfgD".split("").reverse().join(""),"\u0062\u0043\u006b\u0035\u0057\u0037\u0062\u0070\u0073\u0067\u0056\u0064\u0056\u0067\u0050\u0030\u0079\u0071","qGdtMh/kSqjC6W".split("").reverse().join(""),"\u006c\u0066\u0061\u0047\u0062\u0077\u0070\u0063\u0051\u0043\u006f\u0061\u0057\u0037\u0064\u0064\u0049\u0053\u006b\u004c\u0062\u0066\u0044\u0054\u0057\u0037\u0079","\u0041\u0077\u0035\u0050\u0044\u0065\u0072\u004c\u0043\u0032\u004c\u004e\u0042\u004d\u0076\u0059","\u0057\u0034\u004e\u0064\u004b\u004b\u0037\u0064\u0049\u0047","EoSbEfZKcJOWhkSIc3fa".split("").reverse().join(""),"\u0057\u0036\u0079\u0064\u0072\u006d\u006b\u002b\u0067\u004e\u0074\u0064\u0047\u0064\u0034\u0032\u007a\u0053\u006f\u0053\u007a\u0048\u0035\u0050\u0057\u004f\u007a\u0074\u0045\u0071","qMdBto3o8zNomxROho".split("").reverse().join(""),"\u0044\u0031\u0031\u0074\u0073\u006d\u006b\u0034\u007a\u006d\u006f\u0036\u006c\u004b\u0062\u0030\u0071\u0053\u006f\u0063","\u0057\u004f\u0068\u0064\u004f\u004b\u0043\u0055\u0077\u0053\u006f\u0038\u0062\u0030\u0034\u005a\u007a\u0061","0v2zKL2vTj3Bgjxz0nxANvMC".split("").reverse().join(""),"\u0057\u0035\u0039\u0070\u0057\u0035\u002f\u0063\u004c\u005a\u0079\u0079\u0071\u0064\u0074\u0063\u0050\u004c\u0046\u0063\u0053\u0047\u005a\u0063\u0051\u0071","\u0073\u0032\u0050\u0050\u0064\u0061","\u0078\u0038\u006b\u0034\u006f\u004a\u0070\u0064\u0054\u006d\u006f\u0037\u0057\u0037\u0070\u0063\u0049\u0043\u006b\u0063\u0043\u0057","\u0057\u0037\u0079\u006c\u0057\u0052\u005a\u0064\u004f\u006d\u006b\u004f\u0057\u0052\u0068\u0064\u004f\u0057","\u0043\u004d\u0076\u0055\u007a\u0067\u0076\u0059\u006c\u004d\u0048\u0050\u0042\u004e\u0071\u0055\u0043\u004d\u0076\u004d\u0074\u004d\u0039\u0030\u0072\u004d\u0039\u0031\u0042\u004d\u0071","4OWAXaRdZ1VcZJbnfQWH8uA7omENm4W".split("").reverse().join(""),"\u0057\u0034\u006c\u0063\u0053\u0058\u0066\u002f\u0063\u0038\u006f\u0061\u0065\u004d\u0053\u0052\u007a\u0053\u006f\u0054","\u006e\u0064\u006d\u0034\u006e\u004a\u0069\u0057\u006d\u0067\u007a\u0069\u0075\u0077\u007a\u004e\u0044\u0047","\u006d\u004a\u0065\u0030\u006f\u0064\u0071\u0058\u006d\u005a\u006e\u004a\u0072\u0065\u0050\u0064\u0074\u0065\u006d","GLd71Gcx7W1zQW".split("").reverse().join(""),"05wz2veDP1wz".split("").reverse().join(""),"WzPzMBVnuBY9Mz".split("").reverse().join(""),"iKOd7OWlkmKdxRWPyQW".split("").reverse().join(""),"qgEkmo".split("").reverse().join(""),"\u007a\u004d\u004c\u0059\u007a\u0077\u007a\u0056\u0045\u0061","y6Wno8RclgguCXB".split("").reverse().join(""),"\u0057\u0037\u0042\u0063\u0055\u006d\u006b\u0074\u0069\u0053\u006b\u0034\u0069\u006d\u006b\u0052\u0043\u0038\u006b\u006b\u0062\u0047","\u006d\u0074\u0072\u006b\u007a\u0076\u0076\u0067\u007a\u0032\u0079","\u0072\u0064\u0071\u004a\u0064\u005a\u006a\u0045\u0045\u0066\u0056\u0064\u004c\u0072\u0071","\u006e\u0065\u0044\u0036\u0077\u0075\u0072\u0072\u007a\u0061","\u0057\u0052\u0048\u0071\u0043\u006d\u006f\u0050\u0063\u0062\u004f\u006b\u0057\u0036\u0057","\u0065\u0038\u006b\u004b\u0057\u0036\u0044\u0072\u0042\u004e\u0064\u0064\u004b\u0078\u0039\u0055\u0072\u0043\u006f\u0072\u0057\u0052\u004a\u0064\u0053\u0071","\u0071\u0074\u006d\u0030\u0061\u0072\u0050\u004d\u0046\u0031\u004e\u0064\u004d\u0058\u007a\u0043\u0057\u0037\u004e\u0064\u0051\u0078\u006c\u0063\u0055\u0071","W5WxoCtPLgIclHUdF4W6o8C".split("").reverse().join(""),"\u0057\u0036\u0071\u006c\u0077\u0043\u006b\u006f\u006e\u0032\u0037\u0064\u004d\u0049\u0030\u0033\u0043\u0043\u006f\u004e\u007a\u0048\u004c\u004d\u0057\u004f\u0035\u0044\u0045\u0057"];_0x3edf=function(){return _0x471785;};return _0x3edf();}function _0x48ec(_0x397a39,_0x3edf2f){const _0x286349=_0x3edf();_0x48ec=function(_0xf1e522,_0x3719ff){_0xf1e522=_0xf1e522-0x0;let _0x19bb1f=_0x286349[_0xf1e522];if(_0x48ec['wrmejp']===undefined){var _0x2994c1=function(_0x474d93){const _0x4314c0="\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 _0xd16519='';let _0x1aaa8d='';for(let _0x15cb69=0x0,_0x542a2c,_0x1f0c8f,_0x58d845=0x0;_0x1f0c8f=_0x474d93["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x58d845++);~_0x1f0c8f&&(_0x542a2c=_0x15cb69%0x4?_0x542a2c*0x40+_0x1f0c8f:_0x1f0c8f,_0x15cb69++%0x4)?_0xd16519+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x542a2c>>(-0x2*_0x15cb69&0x6)):0x0){_0x1f0c8f=_0x4314c0['indexOf'](_0x1f0c8f);}for(let _0x45e934=0x0,_0x281d40=_0xd16519["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x45e934<_0x281d40;_0x45e934++){_0x1aaa8d+="\u0025"+("\u0030\u0030"+_0xd16519['charCodeAt'](_0x45e934)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1aaa8d);};const _0x2e644d=function(_0x228c5f,_0x3cec06){let _0xd37437=[],_0xe9bf52=0x0,_0x424979,_0x52126e='';_0x228c5f=_0x2994c1(_0x228c5f);let _0x1163f7;for(_0x1163f7=0x0;_0x1163f7<0x100;_0x1163f7++){_0xd37437[_0x1163f7]=_0x1163f7;}for(_0x1163f7=0x0;_0x1163f7<0x100;_0x1163f7++){_0xe9bf52=(_0xe9bf52+_0xd37437[_0x1163f7]+_0x3cec06['charCodeAt'](_0x1163f7%_0x3cec06['length']))%0x100;_0x424979=_0xd37437[_0x1163f7];_0xd37437[_0x1163f7]=_0xd37437[_0xe9bf52];_0xd37437[_0xe9bf52]=_0x424979;}_0x1163f7=0x0;_0xe9bf52=0x0;for(let _0x100698=0x0;_0x100698<_0x228c5f['length'];_0x100698++){_0x1163f7=(_0x1163f7+0x1)%0x100;_0xe9bf52=(_0xe9bf52+_0xd37437[_0x1163f7])%0x100;_0x424979=_0xd37437[_0x1163f7];_0xd37437[_0x1163f7]=_0xd37437[_0xe9bf52];_0xd37437[_0xe9bf52]=_0x424979;_0x52126e+=String['fromCharCode'](_0x228c5f['charCodeAt'](_0x100698)^_0xd37437[(_0xd37437[_0x1163f7]+_0xd37437[_0xe9bf52])%0x100]);}return _0x52126e;};_0x48ec["\u0054\u0052\u006b\u005a\u0047\u0049"]=_0x2e644d;_0x397a39=arguments;_0x48ec["\u0077\u0072\u006d\u0065\u006a\u0070"]=!![];}const _0x3f33db=_0x286349[0x0];const _0x1f59f6=_0xf1e522+_0x3f33db;const _0x48eced=_0x397a39[_0x1f59f6];if(!_0x48eced){if(_0x48ec["\u0071\u0057\u006d\u0054\u0064\u004f"]===undefined){_0x48ec['qWmTdO']=!![];}_0x19bb1f=_0x48ec["\u0054\u0052\u006b\u005a\u0047\u0049"](_0x19bb1f,_0x3719ff);_0x397a39[_0x1f59f6]=_0x19bb1f;}else{_0x19bb1f=_0x48eced;}return _0x19bb1f;};return _0x48ec(_0x397a39,_0x3edf2f);}function zMKhol(_0x4cbd04,_0x5d938d){if(!![]!=![])return;zMKhol=function(_0x1513e5,_0x1befc5){_0x1513e5=_0x1513e5-(0x973c9^0x973c9);var _0x1c0aaf=_0x5e50e6[_0x1513e5];return _0x1c0aaf;};return zMKhol(_0x4cbd04,_0x5d938d);}zMKhol();function _0x104c13(_0x2f0b0b,_0x15d377,_0x4688ce,_0x478c55,_0x4f305e){return _0x48ec(_0x4688ce- -0x6f,_0x4f305e);}(function(_0x570746,_0x2dacdb){function _0x168301(_0x308258,_0x4218b1,_0x39907c,_0x4e3a06,_0x111134){return _0x48ec(_0x111134- -0x2db,_0x308258);}function _0x40fa08(_0xa07e14,_0x377ff0,_0x4160d4,_0x2dd02a,_0x375f3d){return _0x2863(_0x2dd02a-0x363,_0xa07e14);}function _0x32a183(_0x2f905d,_0x3b9d49,_0x5d0d16,_0x513f33,_0x5eee16){return _0x48ec(_0x2f905d-0x16f,_0x5eee16);}function _0x118d9d(_0x49db12,_0x2050c5,_0x416a6f,_0x1bcf76,_0x579a15){return _0x48ec(_0x49db12-0x21f,_0x1bcf76);}const _0x43e684=_0x570746();function _0x1c0d4f(_0x1c3669,_0x11f58b,_0x3ce224,_0x4b6611,_0x4499e3){return _0x2863(_0x11f58b- -0x220,_0x3ce224);}function _0x2c1048(_0x4d3c6e,_0x15e550,_0x4b18c1,_0x51f170,_0x3103f7){return _0x48ec(_0x4d3c6e-0x2e5,_0x4b18c1);}function _0x3533d6(_0x3660dd,_0x443623,_0x29eb9d,_0x159223,_0x490631){return _0x48ec(_0x490631-0x1cd,_0x3660dd);}function _0x5206eb(_0x5353ba,_0xafbbd0,_0x49cd34,_0xba9cb5,_0x1d3297){return _0x2863(_0xba9cb5- -0x3b6,_0xafbbd0);}function _0x2b6dfc(_0x27654c,_0x58f7f0,_0x3ca70a,_0x584bb6,_0x4232ac){return _0x2863(_0x3ca70a-0x2c,_0x27654c);}do{try{const _0x57e8cc=-parseInt(_0x2c1048(0x30f,0x308,"\u006a\u0045\u0064\u006d",0x2e9,0x2ff))/0x1+-parseInt(_0x5206eb(-0x38f,-0x374,-0x3a8,-0x378,-0x348))/0x2*(parseInt(_0x118d9d(0x252,0x252,0x24c,"[De(".split("").reverse().join(""),0x23e))/0x3)+-parseInt(_0x2c1048(0x315,0x2e5,"\u0077\u0058\u0039\u005d",0x2fe,0x2eb))/0x4*(-parseInt(_0x118d9d(0x230,0x207,0x23e,"O[ZV".split("").reverse().join(""),0x21f))/0x5)+parseInt(_0x40fa08(0x37e,0x371,0x338,0x367,0x38a))/0x6*(-parseInt(_0x3533d6("@hPr".split("").reverse().join(""),0x22b,0x1e0,0x1e0,0x209))/0x7)+parseInt(_0x168301("FTao".split("").reverse().join(""),-0x284,-0x295,-0x2b5,-0x29e))/0x8*(-parseInt(_0x1c0d4f(-0x212,-0x210,-0x1f5,-0x22f,-0x240))/0x9)+-parseInt(_0x2b6dfc(0x75,0x89,0x60,0x50,0x40))/0xa+parseInt(_0x32a183(0x1cc,0x1e5,0x1f1,0x1d6,"G8eu".split("").reverse().join("")))/0xb;if(_0x57e8cc===_0x2dacdb){break;}else{_0x43e684['push'](_0x43e684["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0xa8f0fe){_0x43e684["\u0070\u0075\u0073\u0068"](_0x43e684["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0x3edf,0x41c22);function _0x2133b4(_0x435797,_0x5a7b78,_0x4ee2ec,_0x2c9ba3,_0x161186){return _0x2863(_0x2c9ba3- -0xec,_0x435797);}const baseRefUtil={"\u0069\u0031\u0038\u006e":i18n};function _0x2863(_0x397a39,_0x3edf2f){const _0x286349=_0x3edf();_0x2863=function(_0xf1e522,_0x3719ff){_0xf1e522=_0xf1e522-0x0;let _0x19bb1f=_0x286349[_0xf1e522];if(_0x2863['ZJdJnS']===undefined){var _0x2994c1=function(_0x2e644d){const _0x474d93="\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 _0x4314c0='';let _0xd16519='';for(let _0x1aaa8d=0x0,_0x15cb69,_0x542a2c,_0x1f0c8f=0x0;_0x542a2c=_0x2e644d["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x1f0c8f++);~_0x542a2c&&(_0x15cb69=_0x1aaa8d%0x4?_0x15cb69*0x40+_0x542a2c:_0x542a2c,_0x1aaa8d++%0x4)?_0x4314c0+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x15cb69>>(-0x2*_0x1aaa8d&0x6)):0x0){_0x542a2c=_0x474d93['indexOf'](_0x542a2c);}for(let _0x58d845=0x0,_0x45e934=_0x4314c0['length'];_0x58d845<_0x45e934;_0x58d845++){_0xd16519+="\u0025"+("00".split("").reverse().join("")+_0x4314c0["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x58d845)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0xd16519);};_0x2863["\u0047\u0064\u0056\u006d\u0065\u004e"]=_0x2994c1;_0x397a39=arguments;_0x2863["\u005a\u004a\u0064\u004a\u006e\u0053"]=!![];}const _0x3f33db=_0x286349[0x0];const _0x1f59f6=_0xf1e522+_0x3f33db;const _0x48eced=_0x397a39[_0x1f59f6];if(!_0x48eced){_0x19bb1f=_0x2863["\u0047\u0064\u0056\u006d\u0065\u004e"](_0x19bb1f);_0x397a39[_0x1f59f6]=_0x19bb1f;}else{_0x19bb1f=_0x48eced;}return _0x19bb1f;};return _0x2863(_0x397a39,_0x3edf2f);}function iEowIr(_0x281d40,_0x228c5f){if(!![]!=![])return;iEowIr=function(_0x3cec06,_0xd37437){_0x3cec06=_0x3cec06-(0x973c9^0x973c9);var _0xe9bf52=_0x5e50e6[_0x3cec06];return _0xe9bf52;};return iEowIr(_0x281d40,_0x228c5f);}iEowIr();modules={'componentName':_0x104c13(-0x46,-0x7b,-0x62,-0x7d,"]9Xw".split("").reverse().join("")),'mixins':[baseRefUtil["\u0069\u0031\u0038\u006e"]],"\u0070\u0072\u006f\u0070\u0073":{"\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072":Object,'formConfig':Object,"\u006f\u0070\u0074\u0069\u006f\u006e\u0044\u0061\u0074\u0061":{'type':Object,"\u0064\u0065\u0066\u0061\u0075\u006c\u0074":function(){return{};}},'globalDsv':{"\u0074\u0079\u0070\u0065":Object,"\u0064\u0065\u0066\u0061\u0075\u006c\u0074":function(){return{};}}},"\u0070\u0072\u006f\u0076\u0069\u0064\u0065"(){var _0x2ad1dd=this;return{"\u0072\u0065\u0066\u004c\u0069\u0073\u0074":this["\u0077\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066\u004c\u0069\u0073\u0074"],"\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067":function(){return _0x2ad1dd["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"];},"\u0067\u0065\u0074\u0047\u006c\u006f\u0062\u0061\u006c\u0044\u0073\u0076":function(){return _0x2ad1dd["\u0067\u006c\u006f\u0062\u0061\u006c\u0044\u0073\u0076"];},'globalOptionData':this["\u006f\u0070\u0074\u0069\u006f\u006e\u0044\u0061\u0074\u0061"],"\u0067\u0065\u0074\u004f\u0070\u0074\u0069\u006f\u006e\u0044\u0061\u0074\u0061":function(){return _0x2ad1dd["\u006f\u0070\u0074\u0069\u006f\u006e\u0044\u0061\u0074\u0061"];},"\u0067\u0065\u0074\u0052\u0065\u0061\u0064\u004d\u006f\u0064\u0065":function(){return!(0xad762^0xad763);},'globalModel':{"\u0066\u006f\u0072\u006d\u004d\u006f\u0064\u0065\u006c":this['formModel']},"\u0067\u0065\u0074\u0053\u0075\u0062\u0046\u006f\u0072\u006d\u0046\u0069\u0065\u006c\u0064\u0046\u006c\u0061\u0067":function(){return!(0x9daf4^0x9daf5);},"\u0067\u0065\u0074\u0053\u0075\u0062\u0046\u006f\u0072\u006d\u004e\u0061\u006d\u0065":function(){return'';},'getObjectFieldFlag':()=>!(0xee28c^0xee28d),"\u0067\u0065\u0074\u004f\u0062\u006a\u0065\u0063\u0074\u004e\u0061\u006d\u0065":()=>''};},'inject':[_0x2133b4(-0xbc,-0xba,-0xae,-0xd4,-0xac)],"\u0064\u0061\u0074\u0061"(){return{"\u0066\u006f\u0072\u006d\u004d\u006f\u0064\u0065\u006c":{},"\u0077\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066\u004c\u0069\u0073\u0074":{}};},"\u0063\u006f\u006d\u0070\u0075\u0074\u0065\u0064":{"\u006c\u0061\u0062\u0065\u006c\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e"(){function _0x4c4d87(_0x305968,_0x43a896,_0x4e8d73,_0x11f56f,_0x5b824e){return _0x48ec(_0x4e8d73-0x22a,_0x5b824e);}const _0xc17420={"\u004b\u0041\u0052\u006b\u005a":_0x4c4d87(0x208,0x245,0x230,0x226,"\u0078\u005a\u0040\u0064")};if(!!this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]['formConfig']&&!!this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"]["\u006c\u0061\u0062\u0065\u006c\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e"]){return this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]['formConfig']['labelPosition'];}return _0xc17420["\u004b\u0041\u0052\u006b\u005a"];},"\u0073\u0069\u007a\u0065"(){if(!!this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"]&&!!this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"]["\u0073\u0069\u007a\u0065"]){return this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"]["\u0073\u0069\u007a\u0065"];}function _0x27c902(_0x1ff897,_0xf19139,_0x32eb00,_0xf4e38d,_0x1c6d12){return _0x48ec(_0xf4e38d-0x153,_0xf19139);}return _0x27c902(0x174,"\u0034\u0043\u0071\u006c",0x16f,0x19c,0x1b9);},"\u0063\u0075\u0073\u0074\u006f\u006d\u0043\u006c\u0061\u0073\u0073"(){return this['designer']["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"]["\u0063\u0075\u0073\u0074\u006f\u006d\u0043\u006c\u0061\u0073\u0073"]||'';},"\u006c\u0061\u0079\u006f\u0075\u0074\u0054\u0079\u0070\u0065"(){return this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]['getLayoutType']();}},"\u0077\u0061\u0074\u0063\u0068":{"\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072\u002e\u0077\u0069\u0064\u0067\u0065\u0074\u004c\u0069\u0073\u0074":{"\u0064\u0065\u0065\u0070":!![],"\u0068\u0061\u006e\u0064\u006c\u0065\u0072"(_0x5cd4c2){}},"\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072\u002e\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067":{"\u0064\u0065\u0065\u0070":!![],"\u0068\u0061\u006e\u0064\u006c\u0065\u0072"(_0x3396f0){}}},"\u0063\u0072\u0065\u0061\u0074\u0065\u0064"(){this['designer']['initDesigner'](!!this["\u0067\u0065\u0074\u0044\u0065\u0073\u0069\u0067\u006e\u0065\u0072\u0043\u006f\u006e\u0066\u0069\u0067"]()["\u0072\u0065\u0073\u0065\u0074\u0046\u006f\u0072\u006d\u004a\u0073\u006f\u006e"]);this['designer']['loadPresetCssCode'](this["\u0067\u0065\u0074\u0044\u0065\u0073\u0069\u0067\u006e\u0065\u0072\u0043\u006f\u006e\u0066\u0069\u0067"]()["\u0070\u0072\u0065\u0073\u0065\u0074\u0043\u0073\u0073\u0043\u006f\u0064\u0065"]);},'mounted'(){this["\u0064\u0069\u0073\u0061\u0062\u006c\u0065\u0046\u0069\u0072\u0065\u0066\u006f\u0078\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0044\u0072\u006f\u0070"]();this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]['registerFormWidget'](this);},'methods':{'getWidgetName'(_0x17f081){function _0x4178d7(_0x12e538,_0xf3218b,_0x464f24,_0x3f23b8,_0x1352e4){return _0x48ec(_0x464f24-0xda,_0x3f23b8);}const _0x493baf={"\u0069\u004c\u004e\u0053\u0070":function(_0xb0d671,_0x11ee30){return _0xb0d671+_0x11ee30;}};return _0x493baf["\u0069\u004c\u004e\u0053\u0070"](_0x17f081['targetType']||_0x17f081["\u0074\u0079\u0070\u0065"],_0x4178d7(0x12b,0x144,0x128,"\u0034\u0043\u0071\u006c",0x10f));},'disableFirefoxDefaultDrop'(){function _0x298b47(_0x447f9f,_0x2f50ed,_0x32abab,_0x4a2c07,_0x17b03c){return _0x2863(_0x447f9f- -0x77,_0x32abab);}let _0x3a8bf2=navigator["\u0075\u0073\u0065\u0072\u0041\u0067\u0065\u006e\u0074"]["\u0074\u006f\u004c\u006f\u0077\u0065\u0072\u0043\u0061\u0073\u0065"]()['indexOf'](_0x298b47(-0x3c,-0x3b,-0x17,-0x21,-0x1f))!==-(0x30548^0x30549);if(_0x3a8bf2){document["\u0062\u006f\u0064\u0079"]["\u006f\u006e\u0064\u0072\u006f\u0070"]=function(_0x1e0bca){_0x1e0bca["\u0073\u0074\u006f\u0070\u0050\u0072\u006f\u0070\u0061\u0067\u0061\u0074\u0069\u006f\u006e"]();_0x1e0bca["\u0070\u0072\u0065\u0076\u0065\u006e\u0074\u0044\u0065\u0066\u0061\u0075\u006c\u0074"]();};}},"\u006f\u006e\u0044\u0072\u0061\u0067\u0045\u006e\u0064"(_0x43e371){},'onDragAdd'(_0x23cb7e){const _0x466699=_0x23cb7e["\u006e\u0065\u0077\u0049\u006e\u0064\u0065\u0078"];if(!!this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]["\u0077\u0069\u0064\u0067\u0065\u0074\u004c\u0069\u0073\u0074"][_0x466699]){this['designer']['setSelected'](this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]['widgetList'][_0x466699]);}function _0x34f78d(_0x2dc802,_0x58e289,_0x216aa1,_0x37f68c,_0x2242a9){return _0x48ec(_0x2242a9-0x323,_0x37f68c);}this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]["\u0065\u006d\u0069\u0074\u0048\u0069\u0073\u0074\u006f\u0072\u0079\u0043\u0068\u0061\u006e\u0067\u0065"]();this['designer']['emitEvent'](_0x34f78d(0x30e,0x2fe,0x2fe,"\u0035\u004e\u0048\u0076",0x326),null);},'onDragUpdate'(){this["\u0064\u0065\u0073\u0069\u0067\u006e\u0065\u0072"]["\u0065\u006d\u0069\u0074\u0048\u0069\u0073\u0074\u006f\u0072\u0079\u0043\u0068\u0061\u006e\u0067\u0065"]();},"\u0063\u0068\u0065\u0063\u006b\u004d\u006f\u0076\u0065"(_0x2cf01b){return this['designer']['checkWidgetMove'](_0x2cf01b);},'getFormData'(){return this["\u0066\u006f\u0072\u006d\u004d\u006f\u0064\u0065\u006c"];},"\u0067\u0065\u0074\u0057\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066"(_0x7464e8,_0x42dc1a=![]){function _0x1d79cf(_0x478f5a,_0x1a9389,_0xe239ef,_0x160fee,_0x49d6ac){return _0x2863(_0xe239ef- -0x1a5,_0x49d6ac);}let _0x31b6c7=this["\u0077\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066\u004c\u0069\u0073\u0074"][_0x7464e8];if(!_0x31b6c7&&!!_0x42dc1a){this["\u0024\u006d\u0065\u0073\u0073\u0061\u0067\u0065"]['error'](this["\u0069\u0031\u0038\u006e\u0074"](_0x1d79cf(-0x161,-0x17e,-0x174,-0x17b,-0x170))+_0x7464e8);}return _0x31b6c7;},'getSelectedWidgetRef'(){let _0x2f0e9d=this['designer']["\u0073\u0065\u006c\u0065\u0063\u0074\u0065\u0064\u0057\u0069\u0064\u0067\u0065\u0074\u004e\u0061\u006d\u0065"];return this["\u0067\u0065\u0074\u0057\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066"](_0x2f0e9d);},"\u0063\u006c\u0065\u0061\u0072\u0057\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066\u004c\u0069\u0073\u0074"(){Object['keys'](this["\u0077\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066\u004c\u0069\u0073\u0074"])["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](_0x13fd21=>{delete this['widgetRefList'][_0x13fd21];});},'deleteWidgetRef'(_0xf943f8,_0x2fce60){function _0x373fef(_0x3bd6e0,_0x5cb15d,_0x39b846,_0x2b5578,_0xfe9070){return _0x48ec(_0xfe9070- -0xc5,_0x5cb15d);}_0x2fce60?delete this['widgetRefList'][_0xf943f8+_0x373fef(-0xb3,"\u002a\u0048\u0042\u0070",-0x66,-0x9a,-0x8b)+_0x2fce60]:delete this["\u0077\u0069\u0064\u0067\u0065\u0074\u0052\u0065\u0066\u004c\u0069\u0073\u0074"][_0xf943f8];},"\u0064\u0065\u006c\u0065\u0074\u0065\u0064\u0043\u0068\u0069\u006c\u0064\u0072\u0065\u006e\u0052\u0065\u0066"(_0x159970){_0x159970["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](_0x260305=>{delete this['widgetRefList'][_0x260305];});}}};
|
|
4
|
+
const baseRefUtil = {
|
|
5
|
+
i18n,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
modules = {
|
|
9
|
+
componentName: "VFormWidget",
|
|
10
|
+
mixins: [baseRefUtil.i18n],
|
|
11
|
+
props: {
|
|
12
|
+
designer: Object,
|
|
13
|
+
formConfig: Object,
|
|
14
|
+
optionData: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: function () {
|
|
17
|
+
return {};
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
globalDsv: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: function () {
|
|
23
|
+
return {};
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
provide() {
|
|
28
|
+
var e = this;
|
|
29
|
+
return {
|
|
30
|
+
refList: this.widgetRefList,
|
|
31
|
+
getFormConfig: function () {
|
|
32
|
+
return e.formConfig;
|
|
33
|
+
},
|
|
34
|
+
getGlobalDsv: function () {
|
|
35
|
+
return e.globalDsv;
|
|
36
|
+
},
|
|
37
|
+
globalOptionData: this.optionData,
|
|
38
|
+
getOptionData: function () {
|
|
39
|
+
return e.optionData;
|
|
40
|
+
},
|
|
41
|
+
getReadMode: function () {
|
|
42
|
+
return !1;
|
|
43
|
+
},
|
|
44
|
+
globalModel: {
|
|
45
|
+
formModel: this.formModel,
|
|
46
|
+
},
|
|
47
|
+
getSubFormFieldFlag: function () {
|
|
48
|
+
return !1;
|
|
49
|
+
},
|
|
50
|
+
getSubFormName: function () {
|
|
51
|
+
return "";
|
|
52
|
+
},
|
|
53
|
+
getObjectFieldFlag: () => !1,
|
|
54
|
+
getObjectName: () => "",
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
inject: ["getDesignerConfig"],
|
|
58
|
+
data() {
|
|
59
|
+
return {
|
|
60
|
+
formModel: {},
|
|
61
|
+
widgetRefList: {},
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
computed: {
|
|
65
|
+
labelPosition() {
|
|
66
|
+
if (
|
|
67
|
+
!!this.designer.formConfig &&
|
|
68
|
+
!!this.designer.formConfig.labelPosition
|
|
69
|
+
) {
|
|
70
|
+
return this.designer.formConfig.labelPosition;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return "left";
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
size() {
|
|
77
|
+
if (!!this.designer.formConfig && !!this.designer.formConfig.size) {
|
|
78
|
+
return this.designer.formConfig.size;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return "medium";
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
customClass() {
|
|
85
|
+
return this.designer.formConfig.customClass || "";
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
layoutType() {
|
|
89
|
+
return this.designer.getLayoutType();
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
watch: {
|
|
93
|
+
"designer.widgetList": {
|
|
94
|
+
deep: true,
|
|
95
|
+
handler(val) {
|
|
96
|
+
//
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
"designer.formConfig": {
|
|
101
|
+
deep: true,
|
|
102
|
+
handler(val) {
|
|
103
|
+
//
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
created() {
|
|
108
|
+
this.designer.initDesigner(!!this.getDesignerConfig().resetFormJson);
|
|
109
|
+
this.designer.loadPresetCssCode(this.getDesignerConfig().presetCssCode);
|
|
110
|
+
},
|
|
111
|
+
mounted() {
|
|
112
|
+
this.disableFirefoxDefaultDrop(); /* 禁用Firefox默认拖拽搜索功能!! */
|
|
113
|
+
this.designer.registerFormWidget(this);
|
|
114
|
+
},
|
|
115
|
+
methods: {
|
|
116
|
+
getWidgetName(widget) {
|
|
117
|
+
return (widget.targetType || widget.type) + "-widget";
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
disableFirefoxDefaultDrop() {
|
|
121
|
+
let isFirefox =
|
|
122
|
+
navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
|
|
123
|
+
if (isFirefox) {
|
|
124
|
+
document.body.ondrop = function (event) {
|
|
125
|
+
event.stopPropagation();
|
|
126
|
+
event.preventDefault();
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
onDragEnd(evt) {
|
|
132
|
+
//console.log('drag end000', evt)
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
onDragAdd(evt) {
|
|
136
|
+
const newIndex = evt.newIndex;
|
|
137
|
+
if (!!this.designer.widgetList[newIndex]) {
|
|
138
|
+
this.designer.setSelected(this.designer.widgetList[newIndex]);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
this.designer.emitHistoryChange();
|
|
142
|
+
this.designer.emitEvent("field-selected", null);
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
onDragUpdate() {
|
|
146
|
+
/* 在VueDraggable内拖拽组件发生位置变化时会触发update,未发生组件位置变化不会触发!! */
|
|
147
|
+
this.designer.emitHistoryChange();
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
checkMove(evt) {
|
|
151
|
+
return this.designer.checkWidgetMove(evt);
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
getFormData() {
|
|
155
|
+
return this.formModel;
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
getWidgetRef(widgetName, showError = false) {
|
|
159
|
+
let foundRef = this.widgetRefList[widgetName];
|
|
160
|
+
if (!foundRef && !!showError) {
|
|
161
|
+
this.$message.error(this.i18nt("render.hint.refNotFound") + widgetName);
|
|
162
|
+
}
|
|
163
|
+
return foundRef;
|
|
164
|
+
},
|
|
165
|
+
getSelectedWidgetRef() {
|
|
166
|
+
let wName = this.designer.selectedWidgetName;
|
|
167
|
+
return this.getWidgetRef(wName);
|
|
168
|
+
},
|
|
169
|
+
clearWidgetRefList() {
|
|
170
|
+
Object.keys(this.widgetRefList).forEach((o) => {
|
|
171
|
+
delete this.widgetRefList[o];
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
deleteWidgetRef(o, e) {
|
|
175
|
+
e
|
|
176
|
+
? delete this.widgetRefList[o + "@sf" + e]
|
|
177
|
+
: delete this.widgetRefList[o];
|
|
178
|
+
},
|
|
179
|
+
deletedChildrenRef(o) {
|
|
180
|
+
o.forEach((e) => {
|
|
181
|
+
delete this.widgetRefList[e];
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
|
|
5
187
|
export default modules;
|
|
@@ -149,7 +149,6 @@ modules = {
|
|
|
149
149
|
saveReportTemplate: this.saveReportTemplate,
|
|
150
150
|
getReportTemplate: () => this.reportTemplate,
|
|
151
151
|
getFormTemplateTableDTOs: this.getFormTemplateTableDTOs,
|
|
152
|
-
scriptHttp: () => {},
|
|
153
152
|
getObjectFieldFlag: () => !1,
|
|
154
153
|
getObjectName: () => "",
|
|
155
154
|
getHasWf: () => false,
|
|
@@ -1 +1,27 @@
|
|
|
1
|
-
function _0x38fa(_0x1721bf,_0x43f710){const _0x38fa2c=_0x43f7();_0x38fa=function(_0x2258b6,_0xc361dd){_0x2258b6=_0x2258b6-0x0;let _0x4fa6a8=_0x38fa2c[_0x2258b6];if(_0x38fa["\u0078\u004a\u004c\u0074\u0069\u006a"]===undefined){var _0x487e91=function(_0x24d532){const _0x32aadf="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x4b68eb='';let _0x22d145='';for(let _0x599f07=0x0,_0x1b9ccf,_0x3aa02b,_0x2c6ac7=0x0;_0x3aa02b=_0x24d532['charAt'](_0x2c6ac7++);~_0x3aa02b&&(_0x1b9ccf=_0x599f07%0x4?_0x1b9ccf*0x40+_0x3aa02b:_0x3aa02b,_0x599f07++%0x4)?_0x4b68eb+=String['fromCharCode'](0xff&_0x1b9ccf>>(-0x2*_0x599f07&0x6)):0x0){_0x3aa02b=_0x32aadf["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x3aa02b);}for(let _0x5b1d2d=0x0,_0x5de0af=_0x4b68eb["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x5b1d2d<_0x5de0af;_0x5b1d2d++){_0x22d145+="\u0025"+("\u0030\u0030"+_0x4b68eb["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x5b1d2d)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x22d145);};_0x38fa['Hzsixv']=_0x487e91;_0x1721bf=arguments;_0x38fa['xJLtij']=!![];}const _0x68068f=_0x38fa2c[0x0];const _0x157fef=_0x2258b6+_0x68068f;const _0x456b8e=_0x1721bf[_0x157fef];if(!_0x456b8e){_0x4fa6a8=_0x38fa['Hzsixv'](_0x4fa6a8);_0x1721bf[_0x157fef]=_0x4fa6a8;}else{_0x4fa6a8=_0x456b8e;}return _0x4fa6a8;};return _0x38fa(_0x1721bf,_0x43f710);}function sgRNdl(_0x5195d2,_0x26855b){if(!![]!=![])return;sgRNdl=function(_0x434b09,_0x46b508){_0x434b09=_0x434b09-(0x973c9^0x973c9);var _0x1976af=_0x5e50e6[_0x434b09];return _0x1976af;};return sgRNdl(_0x5195d2,_0x26855b);}function _0x456b(_0x1721bf,_0x43f710){const _0x38fa2c=_0x43f7();_0x456b=function(_0x2258b6,_0xc361dd){_0x2258b6=_0x2258b6-0x0;let _0x4fa6a8=_0x38fa2c[_0x2258b6];if(_0x456b['QuxGYQ']===undefined){var _0x487e91=function(_0x32aadf){const _0x4b68eb="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x22d145='';let _0x599f07='';for(let _0x1b9ccf=0x0,_0x3aa02b,_0x2c6ac7,_0x5b1d2d=0x0;_0x2c6ac7=_0x32aadf["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x5b1d2d++);~_0x2c6ac7&&(_0x3aa02b=_0x1b9ccf%0x4?_0x3aa02b*0x40+_0x2c6ac7:_0x2c6ac7,_0x1b9ccf++%0x4)?_0x22d145+=String['fromCharCode'](0xff&_0x3aa02b>>(-0x2*_0x1b9ccf&0x6)):0x0){_0x2c6ac7=_0x4b68eb['indexOf'](_0x2c6ac7);}for(let _0x5de0af=0x0,_0x5195d2=_0x22d145["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x5de0af<_0x5195d2;_0x5de0af++){_0x599f07+="\u0025"+("\u0030\u0030"+_0x22d145["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x5de0af)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x599f07);};const _0x24d532=function(_0x26855b,_0x434b09){let _0x46b508=[],_0x1976af=0x0,_0x47a605,_0x1ce9ad='';_0x26855b=_0x487e91(_0x26855b);let _0x185ddf;for(_0x185ddf=0x0;_0x185ddf<0x100;_0x185ddf++){_0x46b508[_0x185ddf]=_0x185ddf;}for(_0x185ddf=0x0;_0x185ddf<0x100;_0x185ddf++){_0x1976af=(_0x1976af+_0x46b508[_0x185ddf]+_0x434b09["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x185ddf%_0x434b09["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x47a605=_0x46b508[_0x185ddf];_0x46b508[_0x185ddf]=_0x46b508[_0x1976af];_0x46b508[_0x1976af]=_0x47a605;}_0x185ddf=0x0;_0x1976af=0x0;for(let _0x29189b=0x0;_0x29189b<_0x26855b["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x29189b++){_0x185ddf=(_0x185ddf+0x1)%0x100;_0x1976af=(_0x1976af+_0x46b508[_0x185ddf])%0x100;_0x47a605=_0x46b508[_0x185ddf];_0x46b508[_0x185ddf]=_0x46b508[_0x1976af];_0x46b508[_0x1976af]=_0x47a605;_0x1ce9ad+=String['fromCharCode'](_0x26855b['charCodeAt'](_0x29189b)^_0x46b508[(_0x46b508[_0x185ddf]+_0x46b508[_0x1976af])%0x100]);}return _0x1ce9ad;};_0x456b['XOkSNB']=_0x24d532;_0x1721bf=arguments;_0x456b["\u0051\u0075\u0078\u0047\u0059\u0051"]=!![];}const _0x68068f=_0x38fa2c[0x0];const _0x157fef=_0x2258b6+_0x68068f;const _0x456b8e=_0x1721bf[_0x157fef];if(!_0x456b8e){if(_0x456b["\u0048\u0077\u006e\u0044\u004d\u006e"]===undefined){_0x456b["\u0048\u0077\u006e\u0044\u004d\u006e"]=!![];}_0x4fa6a8=_0x456b['XOkSNB'](_0x4fa6a8,_0xc361dd);_0x1721bf[_0x157fef]=_0x4fa6a8;}else{_0x4fa6a8=_0x456b8e;}return _0x4fa6a8;};return _0x456b(_0x1721bf,_0x43f710);}function uBPsWp(_0x524d71,_0x30ba24){if(!![]!=![])return;uBPsWp=function(_0x2122b5,_0x4218a6){_0x2122b5=_0x2122b5-(0x973c9^0x973c9);var _0x4ed369=_0x5e50e6[_0x2122b5];return _0x4ed369;};return uBPsWp(_0x524d71,_0x30ba24);}uBPsWp();sgRNdl();function _0x43f7(){const _0x160007=["\u006e\u004d\u0072\u004a\u0045\u004d\u006a\u004e\u0042\u0061","00pkX6W".split("").reverse().join(""),"\u0057\u0051\u0069\u006b\u0057\u0034\u0057\u0069\u0062\u0053\u006f\u0056","\u006d\u0074\u0079\u0030\u006d\u0074\u0075\u0030\u006e\u0065\u006e\u004c\u0042\u004d\u0050\u004d\u007a\u0047","qJdFgwUk8wooSs".split("").reverse().join(""),"\u0057\u0036\u0050\u006d\u0057\u0036\u0056\u0063\u004e\u0073\u0030\u0075\u006b\u0057","\u0065\u0053\u006b\u006c\u0057\u004f\u0048\u0052\u006f\u0074\u004a\u0063\u0048\u0038\u006f\u006e\u0057\u0050\u0048\u004c\u0070\u0057","\u0067\u0038\u006b\u0069\u0061\u0043\u006b\u0032\u0057\u0037\u005a\u0063\u0049\u0048\u004c\u006e\u0057\u004f\u0078\u0064\u0048\u0053\u006b\u002b\u0057\u0036\u0047","\u0043\u004d\u0076\u004d\u0074\u0067\u004c\u005a\u0044\u0061","\u0075\u006d\u006b\u0053\u0057\u0035\u0048\u0072\u007a\u0057","CfsRmPWb1QWzaPW".split("").reverse().join(""),"\u0062\u006d\u006b\u006c\u0067\u004e\u0066\u0037\u0057\u0036\u006e\u0043\u0044\u0048\u0046\u0064\u0051\u0074\u0035\u006c\u0057\u0035\u0043","\u0076\u0038\u006f\u0042\u0073\u0043\u006b\u006c\u0078\u004e\u0052\u0064\u0049\u0047","\u0057\u004f\u0053\u0064\u0073\u005a\u0074\u0063\u004d\u0059\u0068\u0064\u0049\u0043\u006b\u0079\u0042\u0062\u0038\u0053\u0066\u0071","\u0057\u0037\u0064\u0063\u0053\u0038\u006b\u007a\u0057\u0037\u0068\u0063\u0053\u0063\u0068\u0064\u0048\u0047\u004f","WkmPcdOWkv6Wmkmf".split("").reverse().join(""),"\u0042\u0033\u0062\u0030\u0041\u0077\u0039\u0055\u0043\u0057","aQd/qnDrHbNSPW".split("").reverse().join(""),"\u0057\u0035\u0058\u0068\u0069\u0065\u006c\u0064\u004e\u0071","\u006b\u0043\u006f\u004e\u0072\u0053\u006f\u0068\u0068\u0053\u006f\u0059\u0063\u0063\u0042\u0064\u0052\u0047\u004e\u0063\u0051\u0047","\u0057\u0036\u0065\u004f\u0057\u0034\u0062\u0063\u0057\u0037\u0039\u006b\u0057\u0051\u004f","\u0069\u0038\u006b\u004d\u0057\u0036\u0056\u0064\u0054\u004b\u0056\u0063\u0050\u0043\u006b\u004c\u0057\u0052\u006c\u0064\u0056\u0038\u006b\u0073\u0061\u0031\u0069","GswPxsRTgm1ato0itm".split("").reverse().join(""),"oj0sn12r1Kto2GZn".split("").reverse().join(""),"\u0043\u004d\u0076\u0055\u007a\u0067\u0076\u0059\u006c\u004d\u0048\u0050\u0042\u004e\u0071\u0055\u0043\u004d\u0076\u004d\u0074\u004d\u0039\u0030\u0072\u004d\u0039\u0031\u0042\u004d\u0071","\u006d\u005a\u0062\u0055\u0044\u0031\u007a\u0067\u0041\u004d\u0047","u2zHn3CL1gj".split("").reverse().join(""),"qzTfMB".split("").reverse().join(""),"\u0062\u006d\u006b\u0070\u0067\u004e\u004c\u002b\u0057\u0036\u006a\u0079\u0078\u0048\u004e\u0064\u004a\u0049\u0035\u0037\u0057\u0037\u0053","i3BYjxz".split("").reverse().join(""),"S6WOoScJ44WgCQW".split("").reverse().join(""),"\u006e\u0074\u0079\u005a\u006e\u0074\u0061\u0033\u0073\u0076\u0066\u0074\u0073\u0033\u007a\u0065","O6Wcb7WHS7W".split("").reverse().join(""),"\u006d\u004a\u0065\u0030\u006d\u0066\u007a\u0073\u0071\u004c\u0076\u006a\u0075\u0071","\u0044\u0032\u004c\u004b\u007a\u0032\u0076\u0030","\u0074\u0043\u006f\u006c\u0074\u0043\u006f\u004f\u0057\u0051\u0042\u0064\u004b\u0047\u0034","WHkdWPW".split("").reverse().join(""),"WzRHNrwHxo".split("").reverse().join("")];_0x43f7=function(){return _0x160007;};return _0x43f7();}(function(_0x3137ae,_0x2b7b6c){function _0x2344dd(_0x586b49,_0x376bc0,_0x2a055f,_0x39c8ab,_0x1e1b1f){return _0x456b(_0x39c8ab-0x3dc,_0x586b49);}function _0x29df6e(_0x43e55a,_0x24a49c,_0x127c7c,_0x1b1d4e,_0x239462){return _0x456b(_0x43e55a-0x39c,_0x1b1d4e);}const _0x2369cc=_0x3137ae();function _0x1d8c17(_0x4052aa,_0x3ee36f,_0x529d16,_0x554787,_0x132a20){return _0x38fa(_0x4052aa- -0x23f,_0x3ee36f);}function _0x4bb46e(_0x2a6e18,_0x2bd61b,_0x4a58b2,_0x5f27d3,_0x32acb3){return _0x38fa(_0x2bd61b-0x240,_0x32acb3);}function _0x476f64(_0x353122,_0x18f900,_0x1c6371,_0x55dfcd,_0x3a3312){return _0x456b(_0x55dfcd- -0xe2,_0x1c6371);}function _0x1c7cc7(_0x5571a5,_0x395e2e,_0x603cbe,_0x3beb44,_0x49905e){return _0x456b(_0x5571a5-0xcc,_0x3beb44);}function _0x4605e1(_0xddf39f,_0x52ff26,_0x122ede,_0x2123bc,_0x25168c){return _0x38fa(_0x25168c- -0x1e9,_0x52ff26);}function _0x4d929a(_0x53f6e1,_0x37b13d,_0x581c37,_0x51275c,_0x52b6de){return _0x38fa(_0x53f6e1- -0x332,_0x37b13d);}function _0x296c19(_0x1d3ea0,_0x31da4d,_0x45f935,_0x39cea6,_0x4b11ce){return _0x38fa(_0x45f935- -0x1db,_0x4b11ce);}do{try{const _0x5099ee=-parseInt(_0x476f64(-0xda,-0xd2,"EdWg".split("").reverse().join(""),-0xcf,-0xc3))/0x1+-parseInt(_0x4605e1(-0x1b5,-0x1cc,-0x1c9,-0x1bc,-0x1c8))/0x2*(-parseInt(_0x4605e1(-0x1dd,-0x1eb,-0x1ee,-0x1f5,-0x1e9))/0x3)+parseInt(_0x29df6e(0x3a3,0x3a2,0x39b,"ibZ3".split("").reverse().join(""),0x39a))/0x4+-parseInt(_0x296c19(-0x1ba,-0x1b8,-0x1c5,-0x1d3,-0x1c7))/0x5+-parseInt(_0x29df6e(0x3aa,0x3b4,0x3b0,"h1!P".split("").reverse().join(""),0x3ac))/0x6*(parseInt(_0x4bb46e(0x25b,0x25f,0x257,0x24e,0x260))/0x7)+parseInt(_0x4bb46e(0x246,0x243,0x23b,0x248,0x240))/0x8*(parseInt(_0x296c19(-0x1b6,-0x1a5,-0x1b6,-0x1aa,-0x1bc))/0x9)+-parseInt(_0x2344dd("3rPD".split("").reverse().join(""),0x3ea,0x3f5,0x3e6,0x3e7))/0xa*(-parseInt(_0x1d8c17(-0x228,-0x239,-0x21c,-0x231,-0x21b))/0xb);if(_0x5099ee===_0x2b7b6c){break;}else{_0x2369cc["\u0070\u0075\u0073\u0068"](_0x2369cc["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x50f883){_0x2369cc["\u0070\u0075\u0073\u0068"](_0x2369cc["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0x43f7,0x203dd);export default{'methods':{"\u0069\u006e\u0069\u0074\u0052\u0065\u0066\u004c\u0069\u0073\u0074"(){const _0x32bdb5={'nwSAs':function(_0x187d48,_0x433549){return _0x187d48!==_0x433549;}};if(_0x32bdb5["\u006e\u0077\u0053\u0041\u0073"](this['refList'],null)&&!!this["\u0077\u0069\u0064\u0067\u0065\u0074"]['options']["\u006e\u0061\u006d\u0065"]){this["\u0072\u0065\u0066\u004c\u0069\u0073\u0074"][this['widget']['options']["\u006e\u0061\u006d\u0065"]]=this;}},'getWidgetRef'(_0x4354a6,_0x421f60=![]){const _0x9b55c6={"\u0075\u0079\u0044\u0069\u007a":_0x49eec5(0x1a2,0x18f,0x190,0x1a8,0x1a7)};let _0x349004=this["\u0072\u0065\u0066\u004c\u0069\u0073\u0074"][_0x4354a6];function _0x49eec5(_0x54d84a,_0x4ed00d,_0x179be6,_0x4f289e,_0x10cfe6){return _0x38fa(_0x54d84a-0x18a,_0x179be6);}if(!_0x349004&&!!_0x421f60){this['$message']['error'](this["\u0069\u0031\u0038\u006e\u0074"](_0x9b55c6['uyDiz'])+_0x4354a6);}return _0x349004;},"\u0072\u0065\u0067\u0069\u0073\u0074\u0065\u0072\u0054\u006f\u0052\u0065\u0066\u004c\u0069\u0073\u0074"(_0x14d340){if(this["\u0072\u0065\u0066\u004c\u0069\u0073\u0074"]!==null&&!!this["\u0077\u0069\u0064\u0067\u0065\u0074"]["\u006f\u0070\u0074\u0069\u006f\u006e\u0073"]['name']){if(!!_0x14d340){delete this["\u0072\u0065\u0066\u004c\u0069\u0073\u0074"][_0x14d340];}this['refList'][this["\u0077\u0069\u0064\u0067\u0065\u0074"]["\u006f\u0070\u0074\u0069\u006f\u006e\u0073"]["\u006e\u0061\u006d\u0065"]]=this;}}}};
|
|
1
|
+
export default {
|
|
2
|
+
methods: {
|
|
3
|
+
initRefList() {
|
|
4
|
+
if (this.refList !== null && !!this.widget.options.name) {
|
|
5
|
+
this.refList[this.widget.options.name] = this;
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
getWidgetRef(widgetName, showError = false) {
|
|
10
|
+
let foundRef = this.refList[widgetName];
|
|
11
|
+
if (!foundRef && !!showError) {
|
|
12
|
+
this.$message.error(this.i18nt("render.hint.refNotFound") + widgetName);
|
|
13
|
+
}
|
|
14
|
+
return foundRef;
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
/* 该方法用于组件重名检查!! */
|
|
18
|
+
registerToRefList(oldRefName) {
|
|
19
|
+
if (this.refList !== null && !!this.widget.options.name) {
|
|
20
|
+
if (!!oldRefName) {
|
|
21
|
+
delete this.refList[oldRefName];
|
|
22
|
+
}
|
|
23
|
+
this.refList[this.widget.options.name] = this;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|