ecinc-cloud-wappaio 9.0.2 → 9.0.4
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/lib/{ecwappone.common.1.js → ecwappaio.common.1.js} +2 -2
- package/lib/{ecwappone.common.2.js → ecwappaio.common.2.js} +2 -2
- package/lib/{ecwappone.common.js → ecwappaio.common.js} +7 -6
- package/lib/{ecwappone.umd.1.js → ecwappaio.umd.1.js} +2 -2
- package/lib/{ecwappone.umd.2.js → ecwappaio.umd.2.js} +2 -2
- package/lib/{ecwappone.umd.js → ecwappaio.umd.js} +9 -8
- package/lib/{ecwappone.umd.min.1.js → ecwappaio.umd.min.1.js} +2 -2
- package/lib/{ecwappone.umd.min.2.js → ecwappaio.umd.min.2.js} +2 -2
- package/lib/{ecwappone.umd.min.js → ecwappaio.umd.min.js} +3 -3
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] || []).push([[1],{
|
|
2
2
|
|
|
3
3
|
/***/ "fc3d":
|
|
4
4
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -31,4 +31,4 @@ webpackContext.id = "fc3d";
|
|
|
31
31
|
/***/ })
|
|
32
32
|
|
|
33
33
|
}]);
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=ecwappaio.common.1.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] || []).push([[2],{
|
|
2
2
|
|
|
3
3
|
/***/ "5a17":
|
|
4
4
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -806,4 +806,4 @@ module.exports = exports;
|
|
|
806
806
|
/***/ })
|
|
807
807
|
|
|
808
808
|
}]);
|
|
809
|
-
//# sourceMappingURL=
|
|
809
|
+
//# sourceMappingURL=ecwappaio.common.2.js.map
|
|
@@ -44,7 +44,7 @@ module.exports =
|
|
|
44
44
|
/******/
|
|
45
45
|
/******/ // script path function
|
|
46
46
|
/******/ function jsonpScriptSrc(chunkId) {
|
|
47
|
-
/******/ return __webpack_require__.p + "
|
|
47
|
+
/******/ return __webpack_require__.p + "ecwappaio.common." + ({}[chunkId]||chunkId) + ".js"
|
|
48
48
|
/******/ }
|
|
49
49
|
/******/
|
|
50
50
|
/******/ // The require function
|
|
@@ -186,7 +186,7 @@ module.exports =
|
|
|
186
186
|
/******/ // on error function for async loading
|
|
187
187
|
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
|
|
188
188
|
/******/
|
|
189
|
-
/******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["
|
|
189
|
+
/******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] || [];
|
|
190
190
|
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
|
191
191
|
/******/ jsonpArray.push = webpackJsonpCallback;
|
|
192
192
|
/******/ jsonpArray = jsonpArray.slice();
|
|
@@ -214963,7 +214963,6 @@ service.interceptors.request.use(function (config) {
|
|
|
214963
214963
|
}
|
|
214964
214964
|
return config;
|
|
214965
214965
|
}, function (error) {
|
|
214966
|
-
// do something with request error
|
|
214967
214966
|
console.log(error); // for debug
|
|
214968
214967
|
return Promise.reject(error);
|
|
214969
214968
|
});
|
|
@@ -215019,6 +215018,8 @@ service.interceptors.response.use(function (response) {
|
|
|
215019
215018
|
return Promise.reject(error);
|
|
215020
215019
|
}
|
|
215021
215020
|
});
|
|
215021
|
+
} else if (error.response && error.response.data && error.response.data.code) {
|
|
215022
|
+
return error.response.data.code;
|
|
215022
215023
|
} else if (error.response && error.response.data) {
|
|
215023
215024
|
var errrst = {
|
|
215024
215025
|
code: 'error',
|
|
@@ -215043,7 +215044,7 @@ service.interceptors.response.use(function (response) {
|
|
|
215043
215044
|
type: 'error'
|
|
215044
215045
|
});
|
|
215045
215046
|
}
|
|
215046
|
-
return Promise.
|
|
215047
|
+
return Promise.reject(errrst.message);
|
|
215047
215048
|
} else {
|
|
215048
215049
|
var _errrst = {
|
|
215049
215050
|
code: 'error',
|
|
@@ -314956,7 +314957,7 @@ __webpack_require__("e792");
|
|
|
314956
314957
|
|
|
314957
314958
|
|
|
314958
314959
|
// 以数组的结构保存组件,便于遍历
|
|
314959
|
-
var components = [app, auth, eventBus, common_user, Basicform, BatchProcessing, BatchProcessing_TaskItemTypeTree, Basicform_DynamicForm, Basicform_FormItem, DataTable, DataTable_Toolbar, DatetimeRange, DoingDialog, InnerTable, LRLayout, LeftPanel, RightPanel, PageHeader, PageContent, PdfTools, ResRoles_ResRoles, ResRoles_RoleInfoForm, ResRoles_RolePermissionForm, Product_Product, ProductRoleMgr, Module["c" /* ModuleIndex */], Module["e" /* SysSetup */], Module["a" /* CopyMenu */], Module["d" /* ModuleMenu */], Module["b" /* FrameLoader */], Organ_ImportPersonOrg, Organ_ImportWorkgroupMember, Organ_OrgPersonMgr, Organ_OrgTreeMgr, Organ_OrgUserList, Organ_ColumnEdit, RichtextEditor, ScrollPane, SelectDialog, SelectGroup, SidebarLogo, SvgIcon, WfNames, BusiformDesigner, FromEventEdit, ListPageDesigner, TableEntityDesigner_DbSearchPanel, TableEntityDesigner_TableEntityBatchAdd, UdmGenerator_UserModuleForm, TableEntityDesigner_TableEntityForm, TableEntityDesigner_TableFieldForm, TableEntityDesigner_TableFieldList, TableEntityDesigner_ImportModuleCode, TableEntityDesigner_ExportModuleCode, PortalPageDesigner, PortalPageDesigner_PageEvent, PortalPageDesigner_ModuleStyle, UdmGenerator, UdmGenerator_UserModuleForm, SystemDesigner, RoleMgr, WfdList, AdminConsole_BusiformList, AdminConsole_BusiformMgr, AdminConsole_ListpageList, AdminConsole_ListpageMgr, AdminConsole_SyncRestfulApi, AdminConsole_TableEntityList, AdminConsole_TableEntityMgr, wfengine, WorkflowDesigner, ImportWf, FlowTrace, Tester, Wflowform_Attachment, Wflowform_BodyFile, Wflowform_CommandBar, Wflowform_HandleIdea, Wflowform_IdeaInputBox, Wflowform_ModifyWflogAddUser, Wflowform_ModifyWflogSubmitFile, Wflowform_ModifyWflogIdea, Wflowform_WriteToReadIdea, Wflowform_ModifyWfNodelog, Wflowform_SelectOuterDeputy, Wflowform_SubmitHandle, Wflowform_SubmitDialog, Wflowform_WfNodelogList, Wflowform_WflowView, Wflowform_ImgView, Wflowform_IdeaSignature, Wflowform_ReplaceFile, Wflowform_ViewBodyFile, TextRecognition_PDFInjector, TextRecognition_TextRecognition];
|
|
314960
|
+
var components = [app, auth, eventBus, common_user, Basicform, BatchProcessing, BatchProcessing_TaskItemTypeTree, Basicform_DynamicForm, Basicform_FormItem, DataTable, DataTable_Toolbar, DatetimeRange, DoingDialog, InnerTable, LRLayout, LeftPanel, RightPanel, PageHeader, PageContent, PdfTools, ResRoles_ResRoles, ResRoles_RoleInfoForm, ResRoles_RolePermissionForm, Product_Product, ProductRoleMgr, Module["c" /* ModuleIndex */], Module["e" /* SysSetup */], Module["a" /* CopyMenu */], Module["d" /* ModuleMenu */], Module["b" /* FrameLoader */], Organ_ImportPersonOrg, Organ_ImportWorkgroupMember, Organ_OrgPersonMgr, Organ_OrgTreeMgr, Organ_JobMatrixMgr, Organ_OrgUserList, Organ_OrgTreeLRLayout, Organ_ColumnEdit, RichtextEditor, ScrollPane, SelectDialog, SelectGroup, SidebarLogo, SvgIcon, WfNames, BusiformDesigner, FromEventEdit, ListPageDesigner, TableEntityDesigner_DbSearchPanel, TableEntityDesigner_TableEntityBatchAdd, UdmGenerator_UserModuleForm, TableEntityDesigner_TableEntityForm, TableEntityDesigner_TableFieldForm, TableEntityDesigner_TableFieldList, TableEntityDesigner_ImportModuleCode, TableEntityDesigner_ExportModuleCode, PortalPageDesigner, PortalPageDesigner_PageEvent, PortalPageDesigner_ModuleStyle, UdmGenerator, UdmGenerator_UserModuleForm, SystemDesigner, RoleMgr, WfdList, AdminConsole_BusiformList, AdminConsole_BusiformMgr, AdminConsole_ListpageList, AdminConsole_ListpageMgr, AdminConsole_SyncRestfulApi, AdminConsole_TableEntityList, AdminConsole_TableEntityMgr, wfengine, WorkflowDesigner, ImportWf, FlowTrace, Tester, Wflowform_Attachment, Wflowform_BodyFile, Wflowform_CommandBar, Wflowform_HandleIdea, Wflowform_IdeaInputBox, Wflowform_ModifyWflogAddUser, Wflowform_ModifyWflogSubmitFile, Wflowform_ModifyWflogIdea, Wflowform_WriteToReadIdea, Wflowform_ModifyWfNodelog, Wflowform_SelectOuterDeputy, Wflowform_SubmitHandle, Wflowform_SubmitDialog, Wflowform_WfNodelogList, Wflowform_WflowView, Wflowform_ImgView, Wflowform_IdeaSignature, Wflowform_ReplaceFile, Wflowform_ViewBodyFile, TextRecognition_PDFInjector, TextRecognition_TextRecognition];
|
|
314960
314961
|
|
|
314961
314962
|
// 定义 install 方法
|
|
314962
314963
|
var wappaio_index_install = function install(Vue) {
|
|
@@ -315335,4 +315336,4 @@ module.exports = exports;
|
|
|
315335
315336
|
/***/ })
|
|
315336
315337
|
|
|
315337
315338
|
/******/ });
|
|
315338
|
-
//# sourceMappingURL=
|
|
315339
|
+
//# sourceMappingURL=ecwappaio.common.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] || []).push([[1],{
|
|
2
2
|
|
|
3
3
|
/***/ "fc3d":
|
|
4
4
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -31,4 +31,4 @@ webpackContext.id = "fc3d";
|
|
|
31
31
|
/***/ })
|
|
32
32
|
|
|
33
33
|
}]);
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=ecwappaio.umd.1.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
((typeof self !== 'undefined' ? self : this)["
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] || []).push([[2],{
|
|
2
2
|
|
|
3
3
|
/***/ "5a17":
|
|
4
4
|
/***/ (function(module, exports, __webpack_require__) {
|
|
@@ -806,4 +806,4 @@ module.exports = exports;
|
|
|
806
806
|
/***/ })
|
|
807
807
|
|
|
808
808
|
}]);
|
|
809
|
-
//# sourceMappingURL=
|
|
809
|
+
//# sourceMappingURL=ecwappaio.umd.2.js.map
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
5
|
define([], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["
|
|
7
|
+
exports["ecwappaio"] = factory(require("vue"));
|
|
8
8
|
else
|
|
9
|
-
root["
|
|
9
|
+
root["ecwappaio"] = factory(root["Vue"]);
|
|
10
10
|
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // install a JSONP callback for chunk loading
|
|
@@ -53,7 +53,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
53
53
|
/******/
|
|
54
54
|
/******/ // script path function
|
|
55
55
|
/******/ function jsonpScriptSrc(chunkId) {
|
|
56
|
-
/******/ return __webpack_require__.p + "
|
|
56
|
+
/******/ return __webpack_require__.p + "ecwappaio.umd." + ({}[chunkId]||chunkId) + ".js"
|
|
57
57
|
/******/ }
|
|
58
58
|
/******/
|
|
59
59
|
/******/ // The require function
|
|
@@ -195,7 +195,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
195
195
|
/******/ // on error function for async loading
|
|
196
196
|
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
|
|
197
197
|
/******/
|
|
198
|
-
/******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["
|
|
198
|
+
/******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpecwappaio"] || [];
|
|
199
199
|
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
|
200
200
|
/******/ jsonpArray.push = webpackJsonpCallback;
|
|
201
201
|
/******/ jsonpArray = jsonpArray.slice();
|
|
@@ -214972,7 +214972,6 @@ service.interceptors.request.use(function (config) {
|
|
|
214972
214972
|
}
|
|
214973
214973
|
return config;
|
|
214974
214974
|
}, function (error) {
|
|
214975
|
-
// do something with request error
|
|
214976
214975
|
console.log(error); // for debug
|
|
214977
214976
|
return Promise.reject(error);
|
|
214978
214977
|
});
|
|
@@ -215028,6 +215027,8 @@ service.interceptors.response.use(function (response) {
|
|
|
215028
215027
|
return Promise.reject(error);
|
|
215029
215028
|
}
|
|
215030
215029
|
});
|
|
215030
|
+
} else if (error.response && error.response.data && error.response.data.code) {
|
|
215031
|
+
return error.response.data.code;
|
|
215031
215032
|
} else if (error.response && error.response.data) {
|
|
215032
215033
|
var errrst = {
|
|
215033
215034
|
code: 'error',
|
|
@@ -215052,7 +215053,7 @@ service.interceptors.response.use(function (response) {
|
|
|
215052
215053
|
type: 'error'
|
|
215053
215054
|
});
|
|
215054
215055
|
}
|
|
215055
|
-
return Promise.
|
|
215056
|
+
return Promise.reject(errrst.message);
|
|
215056
215057
|
} else {
|
|
215057
215058
|
var _errrst = {
|
|
215058
215059
|
code: 'error',
|
|
@@ -314965,7 +314966,7 @@ __webpack_require__("e792");
|
|
|
314965
314966
|
|
|
314966
314967
|
|
|
314967
314968
|
// 以数组的结构保存组件,便于遍历
|
|
314968
|
-
var components = [app, auth, eventBus, common_user, Basicform, BatchProcessing, BatchProcessing_TaskItemTypeTree, Basicform_DynamicForm, Basicform_FormItem, DataTable, DataTable_Toolbar, DatetimeRange, DoingDialog, InnerTable, LRLayout, LeftPanel, RightPanel, PageHeader, PageContent, PdfTools, ResRoles_ResRoles, ResRoles_RoleInfoForm, ResRoles_RolePermissionForm, Product_Product, ProductRoleMgr, Module["c" /* ModuleIndex */], Module["e" /* SysSetup */], Module["a" /* CopyMenu */], Module["d" /* ModuleMenu */], Module["b" /* FrameLoader */], Organ_ImportPersonOrg, Organ_ImportWorkgroupMember, Organ_OrgPersonMgr, Organ_OrgTreeMgr, Organ_OrgUserList, Organ_ColumnEdit, RichtextEditor, ScrollPane, SelectDialog, SelectGroup, SidebarLogo, SvgIcon, WfNames, BusiformDesigner, FromEventEdit, ListPageDesigner, TableEntityDesigner_DbSearchPanel, TableEntityDesigner_TableEntityBatchAdd, UdmGenerator_UserModuleForm, TableEntityDesigner_TableEntityForm, TableEntityDesigner_TableFieldForm, TableEntityDesigner_TableFieldList, TableEntityDesigner_ImportModuleCode, TableEntityDesigner_ExportModuleCode, PortalPageDesigner, PortalPageDesigner_PageEvent, PortalPageDesigner_ModuleStyle, UdmGenerator, UdmGenerator_UserModuleForm, SystemDesigner, RoleMgr, WfdList, AdminConsole_BusiformList, AdminConsole_BusiformMgr, AdminConsole_ListpageList, AdminConsole_ListpageMgr, AdminConsole_SyncRestfulApi, AdminConsole_TableEntityList, AdminConsole_TableEntityMgr, wfengine, WorkflowDesigner, ImportWf, FlowTrace, Tester, Wflowform_Attachment, Wflowform_BodyFile, Wflowform_CommandBar, Wflowform_HandleIdea, Wflowform_IdeaInputBox, Wflowform_ModifyWflogAddUser, Wflowform_ModifyWflogSubmitFile, Wflowform_ModifyWflogIdea, Wflowform_WriteToReadIdea, Wflowform_ModifyWfNodelog, Wflowform_SelectOuterDeputy, Wflowform_SubmitHandle, Wflowform_SubmitDialog, Wflowform_WfNodelogList, Wflowform_WflowView, Wflowform_ImgView, Wflowform_IdeaSignature, Wflowform_ReplaceFile, Wflowform_ViewBodyFile, TextRecognition_PDFInjector, TextRecognition_TextRecognition];
|
|
314969
|
+
var components = [app, auth, eventBus, common_user, Basicform, BatchProcessing, BatchProcessing_TaskItemTypeTree, Basicform_DynamicForm, Basicform_FormItem, DataTable, DataTable_Toolbar, DatetimeRange, DoingDialog, InnerTable, LRLayout, LeftPanel, RightPanel, PageHeader, PageContent, PdfTools, ResRoles_ResRoles, ResRoles_RoleInfoForm, ResRoles_RolePermissionForm, Product_Product, ProductRoleMgr, Module["c" /* ModuleIndex */], Module["e" /* SysSetup */], Module["a" /* CopyMenu */], Module["d" /* ModuleMenu */], Module["b" /* FrameLoader */], Organ_ImportPersonOrg, Organ_ImportWorkgroupMember, Organ_OrgPersonMgr, Organ_OrgTreeMgr, Organ_JobMatrixMgr, Organ_OrgUserList, Organ_OrgTreeLRLayout, Organ_ColumnEdit, RichtextEditor, ScrollPane, SelectDialog, SelectGroup, SidebarLogo, SvgIcon, WfNames, BusiformDesigner, FromEventEdit, ListPageDesigner, TableEntityDesigner_DbSearchPanel, TableEntityDesigner_TableEntityBatchAdd, UdmGenerator_UserModuleForm, TableEntityDesigner_TableEntityForm, TableEntityDesigner_TableFieldForm, TableEntityDesigner_TableFieldList, TableEntityDesigner_ImportModuleCode, TableEntityDesigner_ExportModuleCode, PortalPageDesigner, PortalPageDesigner_PageEvent, PortalPageDesigner_ModuleStyle, UdmGenerator, UdmGenerator_UserModuleForm, SystemDesigner, RoleMgr, WfdList, AdminConsole_BusiformList, AdminConsole_BusiformMgr, AdminConsole_ListpageList, AdminConsole_ListpageMgr, AdminConsole_SyncRestfulApi, AdminConsole_TableEntityList, AdminConsole_TableEntityMgr, wfengine, WorkflowDesigner, ImportWf, FlowTrace, Tester, Wflowform_Attachment, Wflowform_BodyFile, Wflowform_CommandBar, Wflowform_HandleIdea, Wflowform_IdeaInputBox, Wflowform_ModifyWflogAddUser, Wflowform_ModifyWflogSubmitFile, Wflowform_ModifyWflogIdea, Wflowform_WriteToReadIdea, Wflowform_ModifyWfNodelog, Wflowform_SelectOuterDeputy, Wflowform_SubmitHandle, Wflowform_SubmitDialog, Wflowform_WfNodelogList, Wflowform_WflowView, Wflowform_ImgView, Wflowform_IdeaSignature, Wflowform_ReplaceFile, Wflowform_ViewBodyFile, TextRecognition_PDFInjector, TextRecognition_TextRecognition];
|
|
314969
314970
|
|
|
314970
314971
|
// 定义 install 方法
|
|
314971
314972
|
var wappaio_index_install = function install(Vue) {
|
|
@@ -315345,4 +315346,4 @@ module.exports = exports;
|
|
|
315345
315346
|
|
|
315346
315347
|
/******/ });
|
|
315347
315348
|
});
|
|
315348
|
-
//# sourceMappingURL=
|
|
315349
|
+
//# sourceMappingURL=ecwappaio.umd.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpecwappaio"]=("undefined"!==typeof self?self:this)["webpackJsonpecwappaio"]||[]).push([[1],{fc3d:function(e,n,o){var r={"./support/icons/index.vue":"5b63"};function f(e){var n=t(e);return o(n)}function t(e){var n=r[e];if(!(n+1)){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return n}f.keys=function(){return Object.keys(r)},f.resolve=t,e.exports=f,f.id="fc3d"}}]);
|
|
2
|
+
//# sourceMappingURL=ecwappaio.umd.min.1.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpecwappone"]=("undefined"!==typeof self?self:this)["webpackJsonpecwappone"]||[]).push([[2],{"5a17":function(t,e,a){var i=a("faf8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("a3fb204e",i,!0,{sourceMap:!1,shadowMode:!1})},"97ad":function(t,e,a){"use strict";a("5a17")},c9b6:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return t.grids.length>0?e("grid-layout",{ref:"gridLayout",attrs:{id:t.gridLayoutId,layout:t.grids,"col-num":t.colNum,"row-height":t.layoutHeight,"is-draggable":t.isDraggable,"is-resizable":t.isResizable,"is-mirrored":t.isMirrored,"vertical-compact":t.verticalCompact,margin:t.margin,"use-css-transforms":t.useCssTransforms},on:{"update:layout":function(e){t.grids=e},"layout-updated":t.layoutUpdatedEvent,"layout-created":t.layoutCreatedEvent,"layout-before-mount":t.layoutBeforeMountEvent,"layout-mounted":t.layoutMountedEvent,"layout-ready":t.layoutReadyEvent}},[t._l(t.grids,(function(a,i){return e("grid-item",{key:a.i,staticStyle:{transition:"none"},attrs:{x:a.x,y:a.y,w:a.w,h:a.h,i:a.i,"max-w":t.maxW,"min-w":t.minW,"min-h":t.minH,"max-h":t.maxH},on:{move:t.moveEvent,moved:t.movedEvent,resize:t.resizeEvent,resized:t.resizedEvent}},[a.addItemStatus?e("div",{staticClass:"content-item"}):e("div",{staticClass:"content-item",on:{mouseenter:function(e){return t.hoverEnter(e,a.addItemStatus)},mouseleave:t.hoverOut}},[a.gridster&&a.gridster.gridsterModule?e("PortletModule",{attrs:{applets:t.applets,appdata:a,"layout-height":t.layoutHeight}}):e("Portlet",{attrs:{appdata:a,"layout-height":t.layoutHeight}}),e("div",{staticClass:"setting"},["blank"!==a.code&&t.setShow(a)?e("img",{attrs:{src:t.dataType,alt:"",title:"编辑样式"},on:{click:function(e){return t.editPortletStyle(i)}}}):"blank"!==a.code&&a.canRepeat?e("img",{attrs:{src:t.dataType,alt:"",title:"设置数据类别"},on:{click:function(e){return t.setRepeatDataType(i)}}}):t._e(),"blank"!==a.code?e("img",{attrs:{src:t.setting,alt:"",title:"修改组件"},on:{click:function(e){return t.editPortlet(i)}}}):t._e(),"blank"!==a.code?e("img",{attrs:{src:t.del,alt:"",title:"删除组件"},on:{click:function(e){return t.deleteById(i)}}}):t._e()])],1)])})),t.showLayer?e("div",{staticClass:"layer-content",on:{click:function(e){t.showLayer=!1}}}):t._e()],2):t._e()},n=[],o=a("bee9"),r=a("9521"),s=a("2a27"),u=a("7be8"),l=u.GridLayout,d=u.GridItem,p={components:{GridLayout:l,GridItem:d,Portlet:r["a"],PortletModule:s["a"]},props:{gridLayoutId:{type:String,default:function(){return"gridLayout"}},isModule:{type:Boolean,default:function(){return!1}},moduleName:{type:String,default:function(){return""}},applets:{type:Object,default:function(){return[]}},colNum:{type:Number,default:function(){return 24}},minW:{type:Number,default:function(){return 1}},maxH:{type:Number,default:function(){return 1e3}},minH:{type:Number,default:function(){return 2}},layoutHeight:{type:Number,default:function(){return 50}},isDraggable:{type:Boolean,default:function(){return!0}},isResizable:{type:Boolean,default:function(){return!0}},isMirrored:{type:Boolean,default:function(){return!1}},verticalCompact:{type:Boolean,default:function(){return!0}},margin:{type:Object,default:function(){return[10,10]}},useCssTransforms:{type:Boolean,default:function(){return!0}},showLayer:{type:Boolean,default:function(){return!1}},canDelete:{type:Boolean,default:function(){return!0}},layoutType:{type:String,default:function(){return"dataElement"}}},data:function(){return{del:"./images/w-imgs/portal/del2.png",setting:"./images/w-imgs/portal/setting2.png",dataType:"./images/w-imgs/portal/dataType.png",position:{x:0,y:0},maxW:24,layoutData:[],grids:[],appletsCustom:null,compPanel:{},CustomTip:{},defaultColSpan:6,defaultRowSpan:3}},computed:{},watch:{layoutData:function(t){"topElement"===this.layoutType?this.$vnode.context.topElements=t:(console.log(t),this.$bus.emit("setApplets",t))}},created:function(){var t=this;this.maxW=this.colNum,this.applets.forEach((function(e,a){e.x||t.$set(e,"x",e.axisX),e.y||t.$set(e,"y",e.axisY),e.colSpan<t.minW&&t.$set(e,"colSpan",t.minW),e.rowSpan<t.minH&&t.$set(e,"rowSpan",t.minH),e.w||t.$set(e,"w",null===e.colSpan||void 0===e.colSpan?t.defaultColSpan:e.colSpan),e.h||t.$set(e,"h",null===e.rowSpan||void 0===e.rowSpan?t.defaultRowSpan:e.rowSpan),e.i||t.$set(e,"i",a)})),this.layoutData=this.applets,this.layoutData.forEach((function(t){t.gridster=t.repeatDataType&&t.repeatDataType.indexOf("{")>-1?JSON.parse(t.repeatDataType):{}})),this.grids=this.isModule?this.layoutData.filter((function(e){return e.gridster.parentGridster===t.moduleName})):this.layoutData.filter((function(t){return!t.gridster.parentGridster||"gridster"===t.gridster.parentGridster})),0===this.grids.length&&(this.grids.push({axisX:0,axisY:0,code:"blank",icon:"news",name:"空组件栏",rowSpan:this.defaultRowSpan,colSpan:this.defaultColSpan}),this.grids.forEach((function(e,a){t.$set(e,"x",e.axisX),t.$set(e,"y",e.axisY),e.colSpan<t.minW&&t.$set(e,"colSpan",t.minW),e.rowSpan<t.minH&&t.$set(e,"rowSpan",t.minH),t.$set(e,"w",null===e.colSpan||void 0===e.colSpan?t.defaultColSpan:e.colSpan),t.$set(e,"h",null===e.rowSpan||void 0===e.rowSpan?t.defaultRowSpan:e.rowSpan),t.$set(e,"i",a)}))),this.$bus.emit("getCompPanel",this),this.$bus.on("onDraggableStart"+this.moduleName,this.startDrag)},beforeDestroy:function(){this.$bus.off("onDraggableStart"+this.moduleName,this.startDrag),this.$bus.$emit("showNavSearch",!0)},mounted:function(){var t=this;this.$vnode.context.portalPage&&setTimeout((function(){"channel12col"===t.$vnode.context.portalPage.pageTemplate?(t.$bus.emit("showNavSearch",!1),document.querySelector(".tags-view-container").style.borderBottom="1px solid #ececec",document.querySelector(".navbar").style.marginLeft="0px",document.querySelector(".navbar").style.marginRight="0px",document.querySelector(".navbar").style.paddingLeft="10px"):"self"===t.$vnode.context.portalPage.topbarType?t.$bus.emit("setTopbarHeight"):"mini"===t.$vnode.context.portalPage.topbarType&&t.$bus.emit("setTopbarHeight",62)}),0)},methods:{setShow:function(t){return"advertise"===t.repeatType||("articleBlockList"===t.repeatType||("videoList"===t.repeatType||("imageList"===t.repeatType||"gridsterModule"===t.code)))},startDrag:function(t){var e=this,a=t.item.getAttribute("data-type")||"dataElement";if(this.layoutType===a){var i=this;"topElement"===this.layoutType?this.compPanel&&(this.appletsCustom=this.compPanel.pageElements):this.appletsCustom=this.compPanel.portlets,this.CustomTip=this.compPanel.$refs.CustomTip,this.appletsCustom.forEach((function(t){t.colSpan<e.defaultColSpan&&e.$set(t,"colSpan",e.defaultColSpan),t.rowSpan<e.defaultRowSpan&&e.$set(t,"rowSpan",e.defaultRowSpan)})),document.onmousemove=function(e){var a=t.item.getAttribute("data-id");if(""===a)return!1;i.timer||(i.timer=!0,setTimeout((function(){i.allow(t,e),i.timer=!1}),100))},document.onmouseup=function(){i.endfunc(t)}}},allow:function(t,e){var a=e.clientX,i=e.clientY,n=t.item.getAttribute("data-id"),o=this,r=o.$el.getBoundingClientRect().left,s=o.$el.getBoundingClientRect().top,u=r+o.$el.offsetWidth,l=this.CustomTip.getBoundingClientRect().left,d=this.CustomTip.getBoundingClientRect().top,p=l+this.CustomTip.offsetWidth,c=d+this.CustomTip.offsetHeight;if(a>=r&&i>=s&&a<=u&&!(a>=l&&i>=d&&a<=p&&i<=c)){var f=this.layoutData.filter((function(t){return t.id===n}));f.length<1||f[0].canRepeat?(this.isAdd=!0,this.addItem(a,i,r,s,n)):(this.showLayer=!0,this.isAdd=!1)}else this.showLayer=!1,this.isAdd=!1,this.clearItem()},endfunc:function(t){if(this.clearItem(),this.isAdd){var e=t.item.getAttribute("data-id"),a=this.appletsCustom.filter((function(t){if(t.id===e)return t.hidden=0,!0}));if(a.length>0){1===this.grids.length&&"blank"===this.grids[0].code&&this.grids.splice(0,1),this.$set(a[0],"x",this.position.x),this.$set(a[0],"y",this.position.y),this.$set(a[0],"w",a[0].colSpan||this.defaultColSpan),this.$set(a[0],"h",a[0].rowSpan||this.defaultRowSpan),this.$set(a[0],"i",this.layoutData.length),a[0].gridster={parentGridster:this.moduleName},a[0].repeatDataType=JSON.stringify(a[0].gridster);var i=JSON.parse(JSON.stringify(a[0]));this.layoutData.push(i),this.grids.push(i)}this.isAdd=!1,this.setTopbarHeight()}this.showLayer=!1,this.timer=!1,setTimeout((function(){document.querySelector(".layer-content")&&document.querySelector(".layer-content").parentNode.removeChild(document.querySelector(".layer-content"))}),100),document.onmousemove=function(){return!1},document.onmouseup=function(){return!1}},clearItem:function(){this.layoutData=this.layoutData.filter((function(t){return!t.addItemStatus})),this.grids=this.grids.filter((function(t){return!t.addItemStatus}))},addItem:function(t,e,a,i,n){this.clearItem();var o=this.appletsCustom.filter((function(t){return t.id===n}))[0],r=this.layoutData.length,s=this.$el.offsetWidth,u=0;u=this.colNum-Math.floor((t-a)/(s/this.colNum))>=o.colSpan?Math.floor((t-a)/(s/this.colNum)):this.colNum-o.colSpan;var l=Math.floor((e-i)/this.layoutHeight),d={x:u,y:l,w:o.colSpan||this.defaultColSpan,h:o.rowSpan||this.defaultRowSpan,i:r,addItemStatus:!0};this.position.x=u,this.position.y=l,this.layoutData.unshift(d),this.grids.unshift(d)},deleteById:function(t){var e=this,a=this.grids[t];this.$confirm("确认要删除“"+a.name+"”吗?","确认操作",{type:"warning"}).then((function(){"topElement"===a.dataType?e.appletsCustom=e.compPanel.pageElements:e.appletsCustom=e.compPanel.portlets,e.appletsCustom.forEach((function(t){t.id===a.id&&(t.hidden=1)})),e.grids.splice(t,1);var i=0;if(e.layoutData.forEach((function(t,e){t.i=e,t.id===a.id&&t.pppId===a.pppId&&(i=e)})),e.layoutData.splice(i,1),0===e.grids.length){var n=e.minH>e.defaultRowSpan?e.minH:e.defaultRowSpan,o="topElement"===e.layoutType?10:0;e.grids.push({dataType:a.dataType,x:o,y:0,w:e.defaultColSpan,h:n,i:0,axisX:o,axisY:0,code:"blank",icon:"news",name:"空组件栏",rowSpan:n,colSpan:e.defaultColSpan})}"topElement"===a.dataType&&(e.compPanel.$forceUpdate(),e.setTopbarHeight())}))},editPortletStyle:function(t){var e=this.grids[t];e.pppId||(e.pppId=Object(o["k"])());var a={id:e.id,pppId:e.pppId,useArea:e.useArea,code:e.code,repeatType:e.repeatType,busiType:e.busiType,repeatDataType:e.repeatDataType&&e.repeatDataType.indexOf("{")>-1?JSON.parse(e.repeatDataType):{}};this.$bus.emit("editPortletStyle",a)},editPortlet:function(t){var e=this.grids[t];e.pppId||(e.pppId=Object(o["k"])());var a={id:e.id,pppId:e.pppId,useArea:e.useArea};this.$bus.emit("editPortlet",a)},setRepeatDataType:function(t){var e=this.grids[t];e.pppId||(e.pppId=Object(o["k"])());var a={id:e.id,pppId:e.pppId,useArea:e.useArea};this.$bus.emit("setRepeatDataType",a)},hoverEnter:function(t,e){this.canDelete&&!e&&(t.target.children[1].style.display="block")},hoverOut:function(t){this.canDelete&&(t.target.children[1].style.display="none")},moveEvent:function(t,e,a){this.setTopbarHeight()},movedEvent:function(t,e,a){this.setTopbarHeight()},resizeEvent:function(t,e,a){this.setTopbarHeight()},resizedEvent:function(t,e,a){this.setTopbarHeight()},layoutUpdatedEvent:function(){},layoutCreatedEvent:function(){},layoutBeforeMountEvent:function(){},layoutMountedEvent:function(){},layoutReadyEvent:function(){},setTopbarHeight:function(){var t=this;"topElement"!==this.layoutType||this.updateing||(this.updateing=!0,setTimeout((function(){var e=t.$el.offsetHeight;e<60&&(e=60),document.querySelector(".header-container").style.height=e+2+"px",document.querySelector(".header-content-container").style.height=e+"px",t.$bus.emit("setTopbarHeight",e+2),t.updateing=!1}),200))}}},c=p,f=(a("97ad"),a("2877")),h=Object(f["a"])(c,i,n,!1,null,"5afff5f3",null);e["default"]=h.exports},faf8:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"[data-v-5afff5f3]:export{stdMenuBgcolor:#f3f4f4;stdMenuHover:rgba(163,174,177,.419608);stdMenuText:#303133;stdMenuAcitveText:#ff6f4b;stdSubMenuBgcolor:#f9fafc;stdSubMenuHover:rgba(163,174,177,.419608);stdSubMenuActiveText:#ff6f4b;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:#409eff;skinBlue:#438eb9;skinScienceBlue:#1a82e3;skinTaleBlue:#012964;skinBlack:#409eff;skinOrange:#f37d12;skinRed:#9d1414}.vue-grid-item[data-v-5afff5f3]{background:#fff;border:1px solid #e4e7ed;overflow:hidden}.vue-grid-item .content-item[data-v-5afff5f3]{width:100%;height:100%;overflow:hidden;background-color:rgba(83,168,255,.2)!important}.layer-content[data-v-5afff5f3]{background:rgba(83,168,255,.2)}.layer-content[data-v-5afff5f3],.setting[data-v-5afff5f3]{position:absolute;top:0;bottom:0;left:0;right:0}.setting[data-v-5afff5f3]{display:none;height:40px;z-index:400}.setting img[data-v-5afff5f3]{width:32px;height:32px;float:right;cursor:pointer;margin-top:5px;margin-right:5px}",""]),t.exports=e}}]);
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpecwappaio"]=("undefined"!==typeof self?self:this)["webpackJsonpecwappaio"]||[]).push([[2],{"5a17":function(t,e,a){var i=a("faf8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("a3fb204e",i,!0,{sourceMap:!1,shadowMode:!1})},"97ad":function(t,e,a){"use strict";a("5a17")},c9b6:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return t.grids.length>0?e("grid-layout",{ref:"gridLayout",attrs:{id:t.gridLayoutId,layout:t.grids,"col-num":t.colNum,"row-height":t.layoutHeight,"is-draggable":t.isDraggable,"is-resizable":t.isResizable,"is-mirrored":t.isMirrored,"vertical-compact":t.verticalCompact,margin:t.margin,"use-css-transforms":t.useCssTransforms},on:{"update:layout":function(e){t.grids=e},"layout-updated":t.layoutUpdatedEvent,"layout-created":t.layoutCreatedEvent,"layout-before-mount":t.layoutBeforeMountEvent,"layout-mounted":t.layoutMountedEvent,"layout-ready":t.layoutReadyEvent}},[t._l(t.grids,(function(a,i){return e("grid-item",{key:a.i,staticStyle:{transition:"none"},attrs:{x:a.x,y:a.y,w:a.w,h:a.h,i:a.i,"max-w":t.maxW,"min-w":t.minW,"min-h":t.minH,"max-h":t.maxH},on:{move:t.moveEvent,moved:t.movedEvent,resize:t.resizeEvent,resized:t.resizedEvent}},[a.addItemStatus?e("div",{staticClass:"content-item"}):e("div",{staticClass:"content-item",on:{mouseenter:function(e){return t.hoverEnter(e,a.addItemStatus)},mouseleave:t.hoverOut}},[a.gridster&&a.gridster.gridsterModule?e("PortletModule",{attrs:{applets:t.applets,appdata:a,"layout-height":t.layoutHeight}}):e("Portlet",{attrs:{appdata:a,"layout-height":t.layoutHeight}}),e("div",{staticClass:"setting"},["blank"!==a.code&&t.setShow(a)?e("img",{attrs:{src:t.dataType,alt:"",title:"编辑样式"},on:{click:function(e){return t.editPortletStyle(i)}}}):"blank"!==a.code&&a.canRepeat?e("img",{attrs:{src:t.dataType,alt:"",title:"设置数据类别"},on:{click:function(e){return t.setRepeatDataType(i)}}}):t._e(),"blank"!==a.code?e("img",{attrs:{src:t.setting,alt:"",title:"修改组件"},on:{click:function(e){return t.editPortlet(i)}}}):t._e(),"blank"!==a.code?e("img",{attrs:{src:t.del,alt:"",title:"删除组件"},on:{click:function(e){return t.deleteById(i)}}}):t._e()])],1)])})),t.showLayer?e("div",{staticClass:"layer-content",on:{click:function(e){t.showLayer=!1}}}):t._e()],2):t._e()},n=[],o=a("bee9"),r=a("9521"),s=a("2a27"),u=a("7be8"),l=u.GridLayout,d=u.GridItem,p={components:{GridLayout:l,GridItem:d,Portlet:r["a"],PortletModule:s["a"]},props:{gridLayoutId:{type:String,default:function(){return"gridLayout"}},isModule:{type:Boolean,default:function(){return!1}},moduleName:{type:String,default:function(){return""}},applets:{type:Object,default:function(){return[]}},colNum:{type:Number,default:function(){return 24}},minW:{type:Number,default:function(){return 1}},maxH:{type:Number,default:function(){return 1e3}},minH:{type:Number,default:function(){return 2}},layoutHeight:{type:Number,default:function(){return 50}},isDraggable:{type:Boolean,default:function(){return!0}},isResizable:{type:Boolean,default:function(){return!0}},isMirrored:{type:Boolean,default:function(){return!1}},verticalCompact:{type:Boolean,default:function(){return!0}},margin:{type:Object,default:function(){return[10,10]}},useCssTransforms:{type:Boolean,default:function(){return!0}},showLayer:{type:Boolean,default:function(){return!1}},canDelete:{type:Boolean,default:function(){return!0}},layoutType:{type:String,default:function(){return"dataElement"}}},data:function(){return{del:"./images/w-imgs/portal/del2.png",setting:"./images/w-imgs/portal/setting2.png",dataType:"./images/w-imgs/portal/dataType.png",position:{x:0,y:0},maxW:24,layoutData:[],grids:[],appletsCustom:null,compPanel:{},CustomTip:{},defaultColSpan:6,defaultRowSpan:3}},computed:{},watch:{layoutData:function(t){"topElement"===this.layoutType?this.$vnode.context.topElements=t:(console.log(t),this.$bus.emit("setApplets",t))}},created:function(){var t=this;this.maxW=this.colNum,this.applets.forEach((function(e,a){e.x||t.$set(e,"x",e.axisX),e.y||t.$set(e,"y",e.axisY),e.colSpan<t.minW&&t.$set(e,"colSpan",t.minW),e.rowSpan<t.minH&&t.$set(e,"rowSpan",t.minH),e.w||t.$set(e,"w",null===e.colSpan||void 0===e.colSpan?t.defaultColSpan:e.colSpan),e.h||t.$set(e,"h",null===e.rowSpan||void 0===e.rowSpan?t.defaultRowSpan:e.rowSpan),e.i||t.$set(e,"i",a)})),this.layoutData=this.applets,this.layoutData.forEach((function(t){t.gridster=t.repeatDataType&&t.repeatDataType.indexOf("{")>-1?JSON.parse(t.repeatDataType):{}})),this.grids=this.isModule?this.layoutData.filter((function(e){return e.gridster.parentGridster===t.moduleName})):this.layoutData.filter((function(t){return!t.gridster.parentGridster||"gridster"===t.gridster.parentGridster})),0===this.grids.length&&(this.grids.push({axisX:0,axisY:0,code:"blank",icon:"news",name:"空组件栏",rowSpan:this.defaultRowSpan,colSpan:this.defaultColSpan}),this.grids.forEach((function(e,a){t.$set(e,"x",e.axisX),t.$set(e,"y",e.axisY),e.colSpan<t.minW&&t.$set(e,"colSpan",t.minW),e.rowSpan<t.minH&&t.$set(e,"rowSpan",t.minH),t.$set(e,"w",null===e.colSpan||void 0===e.colSpan?t.defaultColSpan:e.colSpan),t.$set(e,"h",null===e.rowSpan||void 0===e.rowSpan?t.defaultRowSpan:e.rowSpan),t.$set(e,"i",a)}))),this.$bus.emit("getCompPanel",this),this.$bus.on("onDraggableStart"+this.moduleName,this.startDrag)},beforeDestroy:function(){this.$bus.off("onDraggableStart"+this.moduleName,this.startDrag),this.$bus.$emit("showNavSearch",!0)},mounted:function(){var t=this;this.$vnode.context.portalPage&&setTimeout((function(){"channel12col"===t.$vnode.context.portalPage.pageTemplate?(t.$bus.emit("showNavSearch",!1),document.querySelector(".tags-view-container").style.borderBottom="1px solid #ececec",document.querySelector(".navbar").style.marginLeft="0px",document.querySelector(".navbar").style.marginRight="0px",document.querySelector(".navbar").style.paddingLeft="10px"):"self"===t.$vnode.context.portalPage.topbarType?t.$bus.emit("setTopbarHeight"):"mini"===t.$vnode.context.portalPage.topbarType&&t.$bus.emit("setTopbarHeight",62)}),0)},methods:{setShow:function(t){return"advertise"===t.repeatType||("articleBlockList"===t.repeatType||("videoList"===t.repeatType||("imageList"===t.repeatType||"gridsterModule"===t.code)))},startDrag:function(t){var e=this,a=t.item.getAttribute("data-type")||"dataElement";if(this.layoutType===a){var i=this;"topElement"===this.layoutType?this.compPanel&&(this.appletsCustom=this.compPanel.pageElements):this.appletsCustom=this.compPanel.portlets,this.CustomTip=this.compPanel.$refs.CustomTip,this.appletsCustom.forEach((function(t){t.colSpan<e.defaultColSpan&&e.$set(t,"colSpan",e.defaultColSpan),t.rowSpan<e.defaultRowSpan&&e.$set(t,"rowSpan",e.defaultRowSpan)})),document.onmousemove=function(e){var a=t.item.getAttribute("data-id");if(""===a)return!1;i.timer||(i.timer=!0,setTimeout((function(){i.allow(t,e),i.timer=!1}),100))},document.onmouseup=function(){i.endfunc(t)}}},allow:function(t,e){var a=e.clientX,i=e.clientY,n=t.item.getAttribute("data-id"),o=this,r=o.$el.getBoundingClientRect().left,s=o.$el.getBoundingClientRect().top,u=r+o.$el.offsetWidth,l=this.CustomTip.getBoundingClientRect().left,d=this.CustomTip.getBoundingClientRect().top,p=l+this.CustomTip.offsetWidth,c=d+this.CustomTip.offsetHeight;if(a>=r&&i>=s&&a<=u&&!(a>=l&&i>=d&&a<=p&&i<=c)){var f=this.layoutData.filter((function(t){return t.id===n}));f.length<1||f[0].canRepeat?(this.isAdd=!0,this.addItem(a,i,r,s,n)):(this.showLayer=!0,this.isAdd=!1)}else this.showLayer=!1,this.isAdd=!1,this.clearItem()},endfunc:function(t){if(this.clearItem(),this.isAdd){var e=t.item.getAttribute("data-id"),a=this.appletsCustom.filter((function(t){if(t.id===e)return t.hidden=0,!0}));if(a.length>0){1===this.grids.length&&"blank"===this.grids[0].code&&this.grids.splice(0,1),this.$set(a[0],"x",this.position.x),this.$set(a[0],"y",this.position.y),this.$set(a[0],"w",a[0].colSpan||this.defaultColSpan),this.$set(a[0],"h",a[0].rowSpan||this.defaultRowSpan),this.$set(a[0],"i",this.layoutData.length),a[0].gridster={parentGridster:this.moduleName},a[0].repeatDataType=JSON.stringify(a[0].gridster);var i=JSON.parse(JSON.stringify(a[0]));this.layoutData.push(i),this.grids.push(i)}this.isAdd=!1,this.setTopbarHeight()}this.showLayer=!1,this.timer=!1,setTimeout((function(){document.querySelector(".layer-content")&&document.querySelector(".layer-content").parentNode.removeChild(document.querySelector(".layer-content"))}),100),document.onmousemove=function(){return!1},document.onmouseup=function(){return!1}},clearItem:function(){this.layoutData=this.layoutData.filter((function(t){return!t.addItemStatus})),this.grids=this.grids.filter((function(t){return!t.addItemStatus}))},addItem:function(t,e,a,i,n){this.clearItem();var o=this.appletsCustom.filter((function(t){return t.id===n}))[0],r=this.layoutData.length,s=this.$el.offsetWidth,u=0;u=this.colNum-Math.floor((t-a)/(s/this.colNum))>=o.colSpan?Math.floor((t-a)/(s/this.colNum)):this.colNum-o.colSpan;var l=Math.floor((e-i)/this.layoutHeight),d={x:u,y:l,w:o.colSpan||this.defaultColSpan,h:o.rowSpan||this.defaultRowSpan,i:r,addItemStatus:!0};this.position.x=u,this.position.y=l,this.layoutData.unshift(d),this.grids.unshift(d)},deleteById:function(t){var e=this,a=this.grids[t];this.$confirm("确认要删除“"+a.name+"”吗?","确认操作",{type:"warning"}).then((function(){"topElement"===a.dataType?e.appletsCustom=e.compPanel.pageElements:e.appletsCustom=e.compPanel.portlets,e.appletsCustom.forEach((function(t){t.id===a.id&&(t.hidden=1)})),e.grids.splice(t,1);var i=0;if(e.layoutData.forEach((function(t,e){t.i=e,t.id===a.id&&t.pppId===a.pppId&&(i=e)})),e.layoutData.splice(i,1),0===e.grids.length){var n=e.minH>e.defaultRowSpan?e.minH:e.defaultRowSpan,o="topElement"===e.layoutType?10:0;e.grids.push({dataType:a.dataType,x:o,y:0,w:e.defaultColSpan,h:n,i:0,axisX:o,axisY:0,code:"blank",icon:"news",name:"空组件栏",rowSpan:n,colSpan:e.defaultColSpan})}"topElement"===a.dataType&&(e.compPanel.$forceUpdate(),e.setTopbarHeight())}))},editPortletStyle:function(t){var e=this.grids[t];e.pppId||(e.pppId=Object(o["k"])());var a={id:e.id,pppId:e.pppId,useArea:e.useArea,code:e.code,repeatType:e.repeatType,busiType:e.busiType,repeatDataType:e.repeatDataType&&e.repeatDataType.indexOf("{")>-1?JSON.parse(e.repeatDataType):{}};this.$bus.emit("editPortletStyle",a)},editPortlet:function(t){var e=this.grids[t];e.pppId||(e.pppId=Object(o["k"])());var a={id:e.id,pppId:e.pppId,useArea:e.useArea};this.$bus.emit("editPortlet",a)},setRepeatDataType:function(t){var e=this.grids[t];e.pppId||(e.pppId=Object(o["k"])());var a={id:e.id,pppId:e.pppId,useArea:e.useArea};this.$bus.emit("setRepeatDataType",a)},hoverEnter:function(t,e){this.canDelete&&!e&&(t.target.children[1].style.display="block")},hoverOut:function(t){this.canDelete&&(t.target.children[1].style.display="none")},moveEvent:function(t,e,a){this.setTopbarHeight()},movedEvent:function(t,e,a){this.setTopbarHeight()},resizeEvent:function(t,e,a){this.setTopbarHeight()},resizedEvent:function(t,e,a){this.setTopbarHeight()},layoutUpdatedEvent:function(){},layoutCreatedEvent:function(){},layoutBeforeMountEvent:function(){},layoutMountedEvent:function(){},layoutReadyEvent:function(){},setTopbarHeight:function(){var t=this;"topElement"!==this.layoutType||this.updateing||(this.updateing=!0,setTimeout((function(){var e=t.$el.offsetHeight;e<60&&(e=60),document.querySelector(".header-container").style.height=e+2+"px",document.querySelector(".header-content-container").style.height=e+"px",t.$bus.emit("setTopbarHeight",e+2),t.updateing=!1}),200))}}},c=p,f=(a("97ad"),a("2877")),h=Object(f["a"])(c,i,n,!1,null,"5afff5f3",null);e["default"]=h.exports},faf8:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"[data-v-5afff5f3]:export{stdMenuBgcolor:#f3f4f4;stdMenuHover:rgba(163,174,177,.419608);stdMenuText:#303133;stdMenuAcitveText:#ff6f4b;stdSubMenuBgcolor:#f9fafc;stdSubMenuHover:rgba(163,174,177,.419608);stdSubMenuActiveText:#ff6f4b;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:#409eff;skinBlue:#438eb9;skinScienceBlue:#1a82e3;skinTaleBlue:#012964;skinBlack:#409eff;skinOrange:#f37d12;skinRed:#9d1414}.vue-grid-item[data-v-5afff5f3]{background:#fff;border:1px solid #e4e7ed;overflow:hidden}.vue-grid-item .content-item[data-v-5afff5f3]{width:100%;height:100%;overflow:hidden;background-color:rgba(83,168,255,.2)!important}.layer-content[data-v-5afff5f3]{background:rgba(83,168,255,.2)}.layer-content[data-v-5afff5f3],.setting[data-v-5afff5f3]{position:absolute;top:0;bottom:0;left:0;right:0}.setting[data-v-5afff5f3]{display:none;height:40px;z-index:400}.setting img[data-v-5afff5f3]{width:32px;height:32px;float:right;cursor:pointer;margin-top:5px;margin-right:5px}",""]),t.exports=e}}]);
|
|
2
|
+
//# sourceMappingURL=ecwappaio.umd.min.2.js.map
|