ecinc-cloud-wappaio 9.0.1 → 9.0.3
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/README.md +5 -5
- 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} +19 -19
- 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} +21 -21
- 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} +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# 易臣智慧云平台
|
|
1
|
+
# 易臣智慧云平台9.0
|
|
2
2
|
|
|
3
3
|
> 基于Vue的前端组件库,在element-ui、vant基础上,封装前后端接口交互处理逻辑,提供表单、列表、对话框、报表等常用复合组件功能。
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ Vue.use(ecxxx)
|
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## 注意
|
|
21
|
-
1. 本系列组件依赖于易臣智慧云平台
|
|
22
|
-
2. 手机H5版应用需要安装ecinc-cloud-
|
|
23
|
-
3. 云办公PC版应用需要安装ecinc-cloud-
|
|
24
|
-
4. 云门户PC版应用需要安装ecinc-cloud-
|
|
21
|
+
1. 本系列组件依赖于易臣智慧云平台9.0版;
|
|
22
|
+
2. 手机H5版应用需要安装ecinc-cloud-mappaio;
|
|
23
|
+
3. 云办公PC版应用需要安装ecinc-cloud-wappaio;
|
|
24
|
+
4. 云门户PC版应用需要安装ecinc-cloud-wportal。
|
|
@@ -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();
|
|
@@ -314902,13 +314902,13 @@ var _i18n = new vue_i18n_esm({
|
|
|
314902
314902
|
});
|
|
314903
314903
|
_i18n.generateTitle = lang["a" /* generateTitle */];
|
|
314904
314904
|
/* harmony default export */ var i18n = (_i18n);
|
|
314905
|
-
// CONCATENATED MODULE: ./packages/
|
|
314906
|
-
function
|
|
314907
|
-
function
|
|
314908
|
-
function
|
|
314909
|
-
function
|
|
314910
|
-
function
|
|
314911
|
-
function
|
|
314905
|
+
// CONCATENATED MODULE: ./packages/wappaio.index.js
|
|
314906
|
+
function wappaio_index_typeof(obj) { "@babel/helpers - typeof"; return wappaio_index_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, wappaio_index_typeof(obj); }
|
|
314907
|
+
function wappaio_index_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
314908
|
+
function wappaio_index_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? wappaio_index_ownKeys(Object(source), !0).forEach(function (key) { wappaio_index_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : wappaio_index_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
314909
|
+
function wappaio_index_defineProperty(obj, key, value) { key = wappaio_index_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
314910
|
+
function wappaio_index_toPropertyKey(arg) { var key = wappaio_index_toPrimitive(arg, "string"); return wappaio_index_typeof(key) === "symbol" ? key : String(key); }
|
|
314911
|
+
function wappaio_index_toPrimitive(input, hint) { if (wappaio_index_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (wappaio_index_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
314912
314912
|
__webpack_require__("e792");
|
|
314913
314913
|
|
|
314914
314914
|
// 导入单个组件
|
|
@@ -314959,7 +314959,7 @@ __webpack_require__("e792");
|
|
|
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
314960
|
|
|
314961
314961
|
// 定义 install 方法
|
|
314962
|
-
var
|
|
314962
|
+
var wappaio_index_install = function install(Vue) {
|
|
314963
314963
|
if (install.installed) return;
|
|
314964
314964
|
install.installed = true;
|
|
314965
314965
|
// 遍历并注册全局组件
|
|
@@ -314968,28 +314968,28 @@ var wappone_index_install = function install(Vue) {
|
|
|
314968
314968
|
});
|
|
314969
314969
|
};
|
|
314970
314970
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
314971
|
-
|
|
314971
|
+
wappaio_index_install(window.Vue);
|
|
314972
314972
|
setTimeout(function () {
|
|
314973
314973
|
window.$alert = window.Vue.prototype.$alert;
|
|
314974
314974
|
}, 0);
|
|
314975
314975
|
}
|
|
314976
314976
|
|
|
314977
|
-
var
|
|
314978
|
-
/* harmony default export */ var
|
|
314977
|
+
var wappaio_index_i18n = i18n;
|
|
314978
|
+
/* harmony default export */ var wappaio_index = (wappaio_index_objectSpread({
|
|
314979
314979
|
// 导出的对象必须具备一个 install 方法
|
|
314980
|
-
install:
|
|
314980
|
+
install: wappaio_index_install
|
|
314981
314981
|
}, components));
|
|
314982
314982
|
|
|
314983
314983
|
|
|
314984
314984
|
var httpRequest = request;
|
|
314985
|
-
var
|
|
314985
|
+
var wappaio_index_store = store["a" /* default */];
|
|
314986
314986
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
314987
|
-
/* concated harmony reexport i18n */__webpack_require__.d(__webpack_exports__, "i18n", function() { return
|
|
314987
|
+
/* concated harmony reexport i18n */__webpack_require__.d(__webpack_exports__, "i18n", function() { return wappaio_index_i18n; });
|
|
314988
314988
|
/* concated harmony reexport httpRequest */__webpack_require__.d(__webpack_exports__, "httpRequest", function() { return httpRequest; });
|
|
314989
|
-
/* concated harmony reexport store */__webpack_require__.d(__webpack_exports__, "store", function() { return
|
|
314989
|
+
/* concated harmony reexport store */__webpack_require__.d(__webpack_exports__, "store", function() { return wappaio_index_store; });
|
|
314990
314990
|
|
|
314991
314991
|
|
|
314992
|
-
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (
|
|
314992
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (wappaio_index);
|
|
314993
314993
|
|
|
314994
314994
|
|
|
314995
314995
|
|
|
@@ -315335,4 +315335,4 @@ module.exports = exports;
|
|
|
315335
315335
|
/***/ })
|
|
315336
315336
|
|
|
315337
315337
|
/******/ });
|
|
315338
|
-
//# sourceMappingURL=
|
|
315338
|
+
//# 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();
|
|
@@ -314911,13 +314911,13 @@ var _i18n = new vue_i18n_esm({
|
|
|
314911
314911
|
});
|
|
314912
314912
|
_i18n.generateTitle = lang["a" /* generateTitle */];
|
|
314913
314913
|
/* harmony default export */ var i18n = (_i18n);
|
|
314914
|
-
// CONCATENATED MODULE: ./packages/
|
|
314915
|
-
function
|
|
314916
|
-
function
|
|
314917
|
-
function
|
|
314918
|
-
function
|
|
314919
|
-
function
|
|
314920
|
-
function
|
|
314914
|
+
// CONCATENATED MODULE: ./packages/wappaio.index.js
|
|
314915
|
+
function wappaio_index_typeof(obj) { "@babel/helpers - typeof"; return wappaio_index_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, wappaio_index_typeof(obj); }
|
|
314916
|
+
function wappaio_index_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
314917
|
+
function wappaio_index_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? wappaio_index_ownKeys(Object(source), !0).forEach(function (key) { wappaio_index_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : wappaio_index_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
314918
|
+
function wappaio_index_defineProperty(obj, key, value) { key = wappaio_index_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
314919
|
+
function wappaio_index_toPropertyKey(arg) { var key = wappaio_index_toPrimitive(arg, "string"); return wappaio_index_typeof(key) === "symbol" ? key : String(key); }
|
|
314920
|
+
function wappaio_index_toPrimitive(input, hint) { if (wappaio_index_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (wappaio_index_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
314921
314921
|
__webpack_require__("e792");
|
|
314922
314922
|
|
|
314923
314923
|
// 导入单个组件
|
|
@@ -314968,7 +314968,7 @@ __webpack_require__("e792");
|
|
|
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
314969
|
|
|
314970
314970
|
// 定义 install 方法
|
|
314971
|
-
var
|
|
314971
|
+
var wappaio_index_install = function install(Vue) {
|
|
314972
314972
|
if (install.installed) return;
|
|
314973
314973
|
install.installed = true;
|
|
314974
314974
|
// 遍历并注册全局组件
|
|
@@ -314977,28 +314977,28 @@ var wappone_index_install = function install(Vue) {
|
|
|
314977
314977
|
});
|
|
314978
314978
|
};
|
|
314979
314979
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
314980
|
-
|
|
314980
|
+
wappaio_index_install(window.Vue);
|
|
314981
314981
|
setTimeout(function () {
|
|
314982
314982
|
window.$alert = window.Vue.prototype.$alert;
|
|
314983
314983
|
}, 0);
|
|
314984
314984
|
}
|
|
314985
314985
|
|
|
314986
|
-
var
|
|
314987
|
-
/* harmony default export */ var
|
|
314986
|
+
var wappaio_index_i18n = i18n;
|
|
314987
|
+
/* harmony default export */ var wappaio_index = (wappaio_index_objectSpread({
|
|
314988
314988
|
// 导出的对象必须具备一个 install 方法
|
|
314989
|
-
install:
|
|
314989
|
+
install: wappaio_index_install
|
|
314990
314990
|
}, components));
|
|
314991
314991
|
|
|
314992
314992
|
|
|
314993
314993
|
var httpRequest = request;
|
|
314994
|
-
var
|
|
314994
|
+
var wappaio_index_store = store["a" /* default */];
|
|
314995
314995
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
314996
|
-
/* concated harmony reexport i18n */__webpack_require__.d(__webpack_exports__, "i18n", function() { return
|
|
314996
|
+
/* concated harmony reexport i18n */__webpack_require__.d(__webpack_exports__, "i18n", function() { return wappaio_index_i18n; });
|
|
314997
314997
|
/* concated harmony reexport httpRequest */__webpack_require__.d(__webpack_exports__, "httpRequest", function() { return httpRequest; });
|
|
314998
|
-
/* concated harmony reexport store */__webpack_require__.d(__webpack_exports__, "store", function() { return
|
|
314998
|
+
/* concated harmony reexport store */__webpack_require__.d(__webpack_exports__, "store", function() { return wappaio_index_store; });
|
|
314999
314999
|
|
|
315000
315000
|
|
|
315001
|
-
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (
|
|
315001
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (wappaio_index);
|
|
315002
315002
|
|
|
315003
315003
|
|
|
315004
315004
|
|
|
@@ -315345,4 +315345,4 @@ module.exports = exports;
|
|
|
315345
315345
|
|
|
315346
315346
|
/******/ });
|
|
315347
315347
|
});
|
|
315348
|
-
//# sourceMappingURL=
|
|
315348
|
+
//# 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
|