ecinc-cloud-moabase 9.7.1 → 9.7.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/lib/ecmoabase.common.js +86 -70
- package/lib/ecmoabase.umd.js +86 -70
- package/lib/ecmoabase.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmoabase.common.js
CHANGED
|
@@ -984,7 +984,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".AppFieldCell[data-v-1049d23a]{padding
|
|
|
984
984
|
|
|
985
985
|
/***/ }),
|
|
986
986
|
|
|
987
|
-
/***/
|
|
987
|
+
/***/ 805:
|
|
988
988
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
989
989
|
|
|
990
990
|
"use strict";
|
|
@@ -998,7 +998,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
998
998
|
|
|
999
999
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
1000
1000
|
// Module
|
|
1001
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".App-nav-bar[data-v-
|
|
1001
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".App-nav-bar[data-v-f6df5292]{position:fixed;top:0;left:0;right:0;z-index:9999}.App-nav-bar .App-center[data-v-f6df5292]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:auto}.App-nav-bar .App-center[data-v-f6df5292]::-webkit-scrollbar{display:none}.App-nav-bar .App-center-img[data-v-f6df5292],.App-nav-bar .App-left-img[data-v-f6df5292]{width:24px;margin-right:2px}.App-nav-bar .App-center-chat-status[data-v-f6df5292]{text-align:center;display:inline-block;width:7px;height:7px;border-radius:50%;background:radial-gradient(circle,#dfdfdf,#8a8a8a);margin-left:5px}.App-nav-bar .App-center-chat-status.on-line[data-v-f6df5292]{background:radial-gradient(circle,#26d189,#0ea04d)}.App-nav-bar[data-v-f6df5292] .van-nav-bar__title{font-weight:600;font-size:16px}.App-nav-bar__noBottomLine[data-v-f6df5292]:after{border-bottom-width:0}", ""]);
|
|
1002
1002
|
// Exports
|
|
1003
1003
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1004
1004
|
|
|
@@ -1341,7 +1341,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-09be0001] .wflow-attach .van-c
|
|
|
1341
1341
|
|
|
1342
1342
|
/***/ }),
|
|
1343
1343
|
|
|
1344
|
-
/***/
|
|
1344
|
+
/***/ 4424:
|
|
1345
1345
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1346
1346
|
|
|
1347
1347
|
"use strict";
|
|
@@ -1355,7 +1355,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1355
1355
|
|
|
1356
1356
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
1357
1357
|
// Module
|
|
1358
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".water[data-v-
|
|
1358
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".water[data-v-338fab4c]{position:absolute;top:0;pointer-events:none}.waterList[data-v-338fab4c]{position:relative;width:100vw;height:100vh}.Watermark[data-v-338fab4c],.waterList[data-v-338fab4c]{pointer-events:none;overflow:hidden}.Watermark[data-v-338fab4c]{position:absolute;color:#666;white-space:nowrap;z-index:99999;line-height:40px}", ""]);
|
|
1359
1359
|
// Exports
|
|
1360
1360
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1361
1361
|
|
|
@@ -25828,19 +25828,19 @@ var update = add("72d28922", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
25828
25828
|
|
|
25829
25829
|
/***/ }),
|
|
25830
25830
|
|
|
25831
|
-
/***/
|
|
25831
|
+
/***/ 1743:
|
|
25832
25832
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25833
25833
|
|
|
25834
25834
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
25835
25835
|
|
|
25836
25836
|
// load the styles
|
|
25837
|
-
var content = __webpack_require__(
|
|
25837
|
+
var content = __webpack_require__(805);
|
|
25838
25838
|
if(content.__esModule) content = content.default;
|
|
25839
25839
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
25840
25840
|
if(content.locals) module.exports = content.locals;
|
|
25841
25841
|
// add the styles to the DOM
|
|
25842
25842
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
25843
|
-
var update = add("
|
|
25843
|
+
var update = add("682ac270", content, true, {"sourceMap":false,"shadowMode":false});
|
|
25844
25844
|
|
|
25845
25845
|
/***/ }),
|
|
25846
25846
|
|
|
@@ -26100,19 +26100,19 @@ var update = add("35e8d780", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26100
26100
|
|
|
26101
26101
|
/***/ }),
|
|
26102
26102
|
|
|
26103
|
-
/***/
|
|
26103
|
+
/***/ 4074:
|
|
26104
26104
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
26105
26105
|
|
|
26106
26106
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26107
26107
|
|
|
26108
26108
|
// load the styles
|
|
26109
|
-
var content = __webpack_require__(
|
|
26109
|
+
var content = __webpack_require__(4424);
|
|
26110
26110
|
if(content.__esModule) content = content.default;
|
|
26111
26111
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
26112
26112
|
if(content.locals) module.exports = content.locals;
|
|
26113
26113
|
// add the styles to the DOM
|
|
26114
26114
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
26115
|
-
var update = add("
|
|
26115
|
+
var update = add("bdcadcbe", content, true, {"sourceMap":false,"shadowMode":false});
|
|
26116
26116
|
|
|
26117
26117
|
/***/ }),
|
|
26118
26118
|
|
|
@@ -133885,14 +133885,14 @@ var AppFieldCell_component = normalizeComponent(
|
|
|
133885
133885
|
)
|
|
133886
133886
|
|
|
133887
133887
|
/* harmony default export */ var AppFieldCell = (AppFieldCell_component.exports);
|
|
133888
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=template&id=
|
|
133888
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=template&id=f6df5292&scoped=true
|
|
133889
133889
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
133890
133890
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
133891
133891
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
133892
133892
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
133893
133893
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
133894
133894
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
133895
|
-
var
|
|
133895
|
+
var AppHeadervue_type_template_id_f6df5292_scoped_true_render = function render() {
|
|
133896
133896
|
var _vm = this,
|
|
133897
133897
|
_c = _vm._self._c;
|
|
133898
133898
|
return _c('div', [_vm.isLoaded && _vm.isShow ? _c('van-nav-bar', {
|
|
@@ -133999,7 +133999,7 @@ var AppHeadervue_type_template_id_1d94df83_scoped_true_render = function render(
|
|
|
133999
133999
|
}
|
|
134000
134000
|
})], 1) : _vm._e()], 1);
|
|
134001
134001
|
};
|
|
134002
|
-
var
|
|
134002
|
+
var AppHeadervue_type_template_id_f6df5292_scoped_true_staticRenderFns = [];
|
|
134003
134003
|
|
|
134004
134004
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=script&lang=js
|
|
134005
134005
|
function AppHeadervue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return AppHeadervue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, AppHeadervue_type_script_lang_js_typeof(o); }
|
|
@@ -134050,14 +134050,12 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134050
134050
|
}
|
|
134051
134051
|
if (flag) {
|
|
134052
134052
|
document.body.style.setProperty('--headerHeight', 46 + this.appPadding - 1 + 'px');
|
|
134053
|
-
|
|
134053
|
+
this.applyHeaderStatusHeight();
|
|
134054
134054
|
window.headerHeight = 46 + this.appPadding - 1;
|
|
134055
|
-
window.headerStatusHeight = this.appPadding;
|
|
134056
134055
|
} else {
|
|
134057
134056
|
document.body.style.setProperty('--headerHeight', '0px');
|
|
134058
|
-
|
|
134057
|
+
this.applyHeaderStatusHeight();
|
|
134059
134058
|
window.headerHeight = 0;
|
|
134060
|
-
window.headerStatusHeight = this.appPadding;
|
|
134061
134059
|
}
|
|
134062
134060
|
return flag;
|
|
134063
134061
|
},
|
|
@@ -134123,7 +134121,9 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134123
134121
|
case 12:
|
|
134124
134122
|
_this.handleHeaderLineConfig(val);
|
|
134125
134123
|
_this.isLoaded = true;
|
|
134126
|
-
|
|
134124
|
+
// appPadding 就绪后,重新设置 CSS 变量覆盖首次默认值
|
|
134125
|
+
_this.applyHeaderStatusHeight();
|
|
134126
|
+
case 15:
|
|
134127
134127
|
case "end":
|
|
134128
134128
|
return _context.stop();
|
|
134129
134129
|
}
|
|
@@ -134145,33 +134145,38 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134145
134145
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
134146
134146
|
while (1) switch (_context2.prev = _context2.next) {
|
|
134147
134147
|
case 0:
|
|
134148
|
+
// 【关键修复】在 appPadding 异步获取之前,立即给 CSS 变量设置一个安全默认值(24px),
|
|
134149
|
+
// 避免首次渲染时 --headerStatusHeight 为 '0px' 导致 workHead 等兄弟组件与系统状态栏重叠。
|
|
134150
|
+
// 24px 是典型 Android 状态栏高度,后续异步获取到实际值后会覆盖。
|
|
134151
|
+
document.body.style.setProperty('--headerStatusHeight', '24px');
|
|
134152
|
+
window.headerStatusHeight = 24;
|
|
134148
134153
|
if (!(window.wxCfg && navigator.userAgent.indexOf('Android') !== -1)) {
|
|
134149
|
-
_context2.next =
|
|
134154
|
+
_context2.next = 6;
|
|
134150
134155
|
break;
|
|
134151
134156
|
}
|
|
134152
134157
|
if (window.wxgobakMode === 'topbarBtn') {
|
|
134153
134158
|
//安卓微信版本,显示顶部导航栏,但是不需要预留顶部系统状态栏空间
|
|
134154
134159
|
_this3.appPadding = 0;
|
|
134155
134160
|
}
|
|
134156
|
-
_context2.next =
|
|
134161
|
+
_context2.next = 13;
|
|
134157
134162
|
break;
|
|
134158
|
-
case
|
|
134163
|
+
case 6:
|
|
134159
134164
|
if (!((window.layout === 'H5' || window.flutter_inappwebview) && (_this3.appPadding === 0 || _this3.appPadding === 24))) {
|
|
134160
|
-
_context2.next =
|
|
134165
|
+
_context2.next = 13;
|
|
134161
134166
|
break;
|
|
134162
134167
|
}
|
|
134163
|
-
_context2.next =
|
|
134168
|
+
_context2.next = 9;
|
|
134164
134169
|
return _this3.$wv.getSystemStatusBarHeight();
|
|
134165
|
-
case
|
|
134170
|
+
case 9:
|
|
134166
134171
|
_context2.t0 = _context2.sent;
|
|
134167
134172
|
if (_context2.t0) {
|
|
134168
|
-
_context2.next =
|
|
134173
|
+
_context2.next = 12;
|
|
134169
134174
|
break;
|
|
134170
134175
|
}
|
|
134171
134176
|
_context2.t0 = 24;
|
|
134172
|
-
case
|
|
134177
|
+
case 12:
|
|
134173
134178
|
_this3.appPadding = _context2.t0;
|
|
134174
|
-
case
|
|
134179
|
+
case 13:
|
|
134175
134180
|
_this3.$bus.on('setTitle', _this3.handleSetTitle);
|
|
134176
134181
|
_this3.$bus.on('setCenterImage', _this3.handleSetCenterImage);
|
|
134177
134182
|
_this3.$bus.on('setLeftText', _this3.handleSetLeftText);
|
|
@@ -134180,7 +134185,7 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134180
134185
|
_this3.$bus.on('setRightImage', _this3.handleSetRightImage);
|
|
134181
134186
|
_this3.$bus.on('showBack', _this3.handleShowBack);
|
|
134182
134187
|
_this3.$bus.on('basicformOpened', _this3.setWxGobackFloatBtn);
|
|
134183
|
-
case
|
|
134188
|
+
case 21:
|
|
134184
134189
|
case "end":
|
|
134185
134190
|
return _context2.stop();
|
|
134186
134191
|
}
|
|
@@ -134351,14 +134356,20 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134351
134356
|
handleShowBack: function handleShowBack(data) {
|
|
134352
134357
|
this.isCustomBackButton = true;
|
|
134353
134358
|
this.showBackBtn = !!data;
|
|
134359
|
+
},
|
|
134360
|
+
// 统一应用 headerStatusHeight CSS 变量(供 workHead 等兄弟组件使用)
|
|
134361
|
+
applyHeaderStatusHeight: function applyHeaderStatusHeight() {
|
|
134362
|
+
var h = this.appPadding;
|
|
134363
|
+
document.body.style.setProperty('--headerStatusHeight', h + 'px');
|
|
134364
|
+
window.headerStatusHeight = h;
|
|
134354
134365
|
}
|
|
134355
134366
|
}
|
|
134356
134367
|
});
|
|
134357
134368
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=script&lang=js
|
|
134358
134369
|
/* harmony default export */ var App_AppHeadervue_type_script_lang_js = (AppHeadervue_type_script_lang_js);
|
|
134359
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=style&index=0&id=
|
|
134360
|
-
var
|
|
134361
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=style&index=0&id=
|
|
134370
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=style&index=0&id=f6df5292&prod&lang=scss&scoped=true
|
|
134371
|
+
var AppHeadervue_type_style_index_0_id_f6df5292_prod_lang_scss_scoped_true = __webpack_require__(1743);
|
|
134372
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=style&index=0&id=f6df5292&prod&lang=scss&scoped=true
|
|
134362
134373
|
|
|
134363
134374
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue
|
|
134364
134375
|
|
|
@@ -134371,11 +134382,11 @@ var AppHeadervue_type_style_index_0_id_1d94df83_prod_lang_scss_scoped_true = __w
|
|
|
134371
134382
|
|
|
134372
134383
|
var AppHeader_component = normalizeComponent(
|
|
134373
134384
|
App_AppHeadervue_type_script_lang_js,
|
|
134374
|
-
|
|
134375
|
-
|
|
134385
|
+
AppHeadervue_type_template_id_f6df5292_scoped_true_render,
|
|
134386
|
+
AppHeadervue_type_template_id_f6df5292_scoped_true_staticRenderFns,
|
|
134376
134387
|
false,
|
|
134377
134388
|
null,
|
|
134378
|
-
"
|
|
134389
|
+
"f6df5292",
|
|
134379
134390
|
null
|
|
134380
134391
|
|
|
134381
134392
|
)
|
|
@@ -134601,8 +134612,8 @@ var AppListPage_component = normalizeComponent(
|
|
|
134601
134612
|
)
|
|
134602
134613
|
|
|
134603
134614
|
/* harmony default export */ var AppListPage = (AppListPage_component.exports);
|
|
134604
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=template&id=
|
|
134605
|
-
var
|
|
134615
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=template&id=338fab4c&scoped=true
|
|
134616
|
+
var Watermarkvue_type_template_id_338fab4c_scoped_true_render = function render() {
|
|
134606
134617
|
var _vm = this,
|
|
134607
134618
|
_c = _vm._self._c;
|
|
134608
134619
|
return _vm.show ? _c('div', {
|
|
@@ -134630,7 +134641,7 @@ var Watermarkvue_type_template_id_1343231e_scoped_true_render = function render(
|
|
|
134630
134641
|
}), 0);
|
|
134631
134642
|
}), 0)]) : _vm._e();
|
|
134632
134643
|
};
|
|
134633
|
-
var
|
|
134644
|
+
var Watermarkvue_type_template_id_338fab4c_scoped_true_staticRenderFns = [];
|
|
134634
134645
|
|
|
134635
134646
|
;// CONCATENATED MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
134636
134647
|
/*!
|
|
@@ -135812,46 +135823,51 @@ function Watermarkvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Wa
|
|
|
135812
135823
|
content: {},
|
|
135813
135824
|
countX: 12,
|
|
135814
135825
|
countY: 12,
|
|
135815
|
-
isOne: true,
|
|
135816
135826
|
show: false,
|
|
135817
|
-
waterTimer: ''
|
|
135827
|
+
waterTimer: '',
|
|
135828
|
+
personId: ''
|
|
135818
135829
|
};
|
|
135819
135830
|
},
|
|
135820
135831
|
computed: Watermarkvue_type_script_lang_js_objectSpread({}, mapGetters(['loginUser'])),
|
|
135821
|
-
watch: {
|
|
135822
|
-
$route: function $route(route) {
|
|
135823
|
-
if (!this.loginUser) {
|
|
135824
|
-
this.show = false;
|
|
135825
|
-
} else if (!this.show && this.loginUser.orgCode && this.isOne) {
|
|
135826
|
-
this.isOne = false;
|
|
135827
|
-
this.getWaterMarkConfig();
|
|
135828
|
-
}
|
|
135829
|
-
}
|
|
135830
|
-
},
|
|
135831
135832
|
created: function created() {
|
|
135832
|
-
|
|
135833
|
-
this.getWaterMarkConfig();
|
|
135834
|
-
}
|
|
135833
|
+
var _this = this;
|
|
135835
135834
|
this.$bus.on('getWaterMarkConfig', this.getWaterMarkConfig);
|
|
135835
|
+
this._unwatchStore = this.$store.subscribe(function (mutation) {
|
|
135836
|
+
if (mutation.type === 'user/SET_AVATAR') {
|
|
135837
|
+
if (!_this.loginUser) {
|
|
135838
|
+
_this.show = false;
|
|
135839
|
+
} else if (!_this.show && _this.loginUser.personId !== _this.personId) {
|
|
135840
|
+
_this.personId = _this.loginUser.personId;
|
|
135841
|
+
setTimeout(function () {
|
|
135842
|
+
_this.getWaterMarkConfig();
|
|
135843
|
+
}, 100);
|
|
135844
|
+
}
|
|
135845
|
+
}
|
|
135846
|
+
});
|
|
135836
135847
|
},
|
|
135837
135848
|
beforeDestroy: function beforeDestroy() {
|
|
135838
135849
|
this.$bus.off('getWaterMarkConfig', this.getWaterMarkConfig);
|
|
135839
135850
|
window.removeEventListener('resize', this.getMoreWater);
|
|
135851
|
+
if (this._unwatchStore) {
|
|
135852
|
+
this._unwatchStore();
|
|
135853
|
+
this._unwatchStore = null;
|
|
135854
|
+
}
|
|
135840
135855
|
},
|
|
135841
135856
|
mounted: function mounted() {
|
|
135842
135857
|
window.addEventListener('resize', this.getMoreWater);
|
|
135843
135858
|
},
|
|
135844
135859
|
methods: {
|
|
135845
135860
|
getMoreWater: function getMoreWater() {
|
|
135846
|
-
var
|
|
135861
|
+
var _this2 = this;
|
|
135847
135862
|
clearTimeout(this.waterTimer);
|
|
135848
135863
|
this.waterTimer = setTimeout(function () {
|
|
135849
|
-
|
|
135850
|
-
|
|
135864
|
+
_this2.countX = Math.ceil(Number(document.getElementById('mapp').clientWidth) / (_this2.content.mbXSpace || _this2.content.xSpace));
|
|
135865
|
+
_this2.countY = Math.ceil(Number(document.getElementById('mapp').clientHeight) / (_this2.content.mbYSpace || _this2.content.ySpace));
|
|
135851
135866
|
}, 500);
|
|
135852
135867
|
},
|
|
135853
135868
|
getWaterMarkConfig: function getWaterMarkConfig() {
|
|
135854
|
-
var
|
|
135869
|
+
var _this3 = this;
|
|
135870
|
+
console.log('getWaterMarkConfig');
|
|
135855
135871
|
this.$http({
|
|
135856
135872
|
method: 'GET',
|
|
135857
135873
|
contentType: 'application/x-www-form-urlencoded',
|
|
@@ -135861,19 +135877,19 @@ function Watermarkvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Wa
|
|
|
135861
135877
|
var vo = res.body.vo;
|
|
135862
135878
|
vo.pellucidity = Number(vo.pellucidity) / 100;
|
|
135863
135879
|
vo.space = Number(vo.space);
|
|
135864
|
-
|
|
135865
|
-
|
|
135866
|
-
|
|
135867
|
-
js_cookie_default().set('WaterMarkConfig-' +
|
|
135880
|
+
_this3.countX = Math.ceil(Number(document.getElementById('mapp').clientWidth) / (vo.mbXSpace || vo.xSpace));
|
|
135881
|
+
_this3.countY = Math.ceil(Number(document.getElementById('mapp').clientHeight) / (vo.mbYSpace || vo.ySpace));
|
|
135882
|
+
_this3.content = vo;
|
|
135883
|
+
js_cookie_default().set('WaterMarkConfig-' + _this3.loginUser.orgCode, vo.scope);
|
|
135868
135884
|
|
|
135869
135885
|
//vo.scope==1,仅文件预览显示水印
|
|
135870
|
-
if (
|
|
135871
|
-
|
|
135886
|
+
if (_this3.loginUser && _this3.loginUser.orgCode && vo.scope !== 1) {
|
|
135887
|
+
_this3.show = true;
|
|
135872
135888
|
} else {
|
|
135873
|
-
|
|
135889
|
+
_this3.show = false;
|
|
135874
135890
|
}
|
|
135875
135891
|
} else {
|
|
135876
|
-
|
|
135892
|
+
_this3.show = false;
|
|
135877
135893
|
}
|
|
135878
135894
|
});
|
|
135879
135895
|
}
|
|
@@ -135881,9 +135897,9 @@ function Watermarkvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Wa
|
|
|
135881
135897
|
});
|
|
135882
135898
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=script&lang=js
|
|
135883
135899
|
/* harmony default export */ var components_Watermarkvue_type_script_lang_js = (Watermarkvue_type_script_lang_js);
|
|
135884
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=style&index=0&id=
|
|
135885
|
-
var
|
|
135886
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=style&index=0&id=
|
|
135900
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=style&index=0&id=338fab4c&prod&scoped=true&lang=scss
|
|
135901
|
+
var Watermarkvue_type_style_index_0_id_338fab4c_prod_scoped_true_lang_scss = __webpack_require__(4074);
|
|
135902
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=style&index=0&id=338fab4c&prod&scoped=true&lang=scss
|
|
135887
135903
|
|
|
135888
135904
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue
|
|
135889
135905
|
|
|
@@ -135896,11 +135912,11 @@ var Watermarkvue_type_style_index_0_id_1343231e_prod_scoped_true_lang_scss = __w
|
|
|
135896
135912
|
|
|
135897
135913
|
var Watermark_component = normalizeComponent(
|
|
135898
135914
|
components_Watermarkvue_type_script_lang_js,
|
|
135899
|
-
|
|
135900
|
-
|
|
135915
|
+
Watermarkvue_type_template_id_338fab4c_scoped_true_render,
|
|
135916
|
+
Watermarkvue_type_template_id_338fab4c_scoped_true_staticRenderFns,
|
|
135901
135917
|
false,
|
|
135902
135918
|
null,
|
|
135903
|
-
"
|
|
135919
|
+
"338fab4c",
|
|
135904
135920
|
null
|
|
135905
135921
|
|
|
135906
135922
|
)
|