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.umd.js
CHANGED
|
@@ -994,7 +994,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".AppFieldCell[data-v-1049d23a]{padding
|
|
|
994
994
|
|
|
995
995
|
/***/ }),
|
|
996
996
|
|
|
997
|
-
/***/
|
|
997
|
+
/***/ 9155:
|
|
998
998
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
999
999
|
|
|
1000
1000
|
"use strict";
|
|
@@ -1008,7 +1008,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1008
1008
|
|
|
1009
1009
|
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()));
|
|
1010
1010
|
// Module
|
|
1011
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".App-nav-bar[data-v-
|
|
1011
|
+
___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}", ""]);
|
|
1012
1012
|
// Exports
|
|
1013
1013
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1014
1014
|
|
|
@@ -1351,7 +1351,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-09be0001] .wflow-attach .van-c
|
|
|
1351
1351
|
|
|
1352
1352
|
/***/ }),
|
|
1353
1353
|
|
|
1354
|
-
/***/
|
|
1354
|
+
/***/ 4390:
|
|
1355
1355
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1356
1356
|
|
|
1357
1357
|
"use strict";
|
|
@@ -1365,7 +1365,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1365
1365
|
|
|
1366
1366
|
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()));
|
|
1367
1367
|
// Module
|
|
1368
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".water[data-v-
|
|
1368
|
+
___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}", ""]);
|
|
1369
1369
|
// Exports
|
|
1370
1370
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1371
1371
|
|
|
@@ -25838,19 +25838,19 @@ var update = add("3cbb1a22", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
25838
25838
|
|
|
25839
25839
|
/***/ }),
|
|
25840
25840
|
|
|
25841
|
-
/***/
|
|
25841
|
+
/***/ 548:
|
|
25842
25842
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
25843
25843
|
|
|
25844
25844
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
25845
25845
|
|
|
25846
25846
|
// load the styles
|
|
25847
|
-
var content = __webpack_require__(
|
|
25847
|
+
var content = __webpack_require__(9155);
|
|
25848
25848
|
if(content.__esModule) content = content.default;
|
|
25849
25849
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
25850
25850
|
if(content.locals) module.exports = content.locals;
|
|
25851
25851
|
// add the styles to the DOM
|
|
25852
25852
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
25853
|
-
var update = add("
|
|
25853
|
+
var update = add("0fd3efc8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
25854
25854
|
|
|
25855
25855
|
/***/ }),
|
|
25856
25856
|
|
|
@@ -26110,19 +26110,19 @@ var update = add("28f4e540", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26110
26110
|
|
|
26111
26111
|
/***/ }),
|
|
26112
26112
|
|
|
26113
|
-
/***/
|
|
26113
|
+
/***/ 8385:
|
|
26114
26114
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
26115
26115
|
|
|
26116
26116
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26117
26117
|
|
|
26118
26118
|
// load the styles
|
|
26119
|
-
var content = __webpack_require__(
|
|
26119
|
+
var content = __webpack_require__(4390);
|
|
26120
26120
|
if(content.__esModule) content = content.default;
|
|
26121
26121
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
26122
26122
|
if(content.locals) module.exports = content.locals;
|
|
26123
26123
|
// add the styles to the DOM
|
|
26124
26124
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
26125
|
-
var update = add("
|
|
26125
|
+
var update = add("7db7babe", content, true, {"sourceMap":false,"shadowMode":false});
|
|
26126
26126
|
|
|
26127
26127
|
/***/ }),
|
|
26128
26128
|
|
|
@@ -133895,14 +133895,14 @@ var AppFieldCell_component = normalizeComponent(
|
|
|
133895
133895
|
)
|
|
133896
133896
|
|
|
133897
133897
|
/* harmony default export */ var AppFieldCell = (AppFieldCell_component.exports);
|
|
133898
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
133898
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
133899
133899
|
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); }
|
|
133900
133900
|
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; }
|
|
133901
133901
|
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; }
|
|
133902
133902
|
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; }
|
|
133903
133903
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
133904
133904
|
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); }
|
|
133905
|
-
var
|
|
133905
|
+
var AppHeadervue_type_template_id_f6df5292_scoped_true_render = function render() {
|
|
133906
133906
|
var _vm = this,
|
|
133907
133907
|
_c = _vm._self._c;
|
|
133908
133908
|
return _c('div', [_vm.isLoaded && _vm.isShow ? _c('van-nav-bar', {
|
|
@@ -134009,7 +134009,7 @@ var AppHeadervue_type_template_id_1d94df83_scoped_true_render = function render(
|
|
|
134009
134009
|
}
|
|
134010
134010
|
})], 1) : _vm._e()], 1);
|
|
134011
134011
|
};
|
|
134012
|
-
var
|
|
134012
|
+
var AppHeadervue_type_template_id_f6df5292_scoped_true_staticRenderFns = [];
|
|
134013
134013
|
|
|
134014
134014
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
134015
134015
|
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); }
|
|
@@ -134060,14 +134060,12 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134060
134060
|
}
|
|
134061
134061
|
if (flag) {
|
|
134062
134062
|
document.body.style.setProperty('--headerHeight', 46 + this.appPadding - 1 + 'px');
|
|
134063
|
-
|
|
134063
|
+
this.applyHeaderStatusHeight();
|
|
134064
134064
|
window.headerHeight = 46 + this.appPadding - 1;
|
|
134065
|
-
window.headerStatusHeight = this.appPadding;
|
|
134066
134065
|
} else {
|
|
134067
134066
|
document.body.style.setProperty('--headerHeight', '0px');
|
|
134068
|
-
|
|
134067
|
+
this.applyHeaderStatusHeight();
|
|
134069
134068
|
window.headerHeight = 0;
|
|
134070
|
-
window.headerStatusHeight = this.appPadding;
|
|
134071
134069
|
}
|
|
134072
134070
|
return flag;
|
|
134073
134071
|
},
|
|
@@ -134133,7 +134131,9 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134133
134131
|
case 12:
|
|
134134
134132
|
_this.handleHeaderLineConfig(val);
|
|
134135
134133
|
_this.isLoaded = true;
|
|
134136
|
-
|
|
134134
|
+
// appPadding 就绪后,重新设置 CSS 变量覆盖首次默认值
|
|
134135
|
+
_this.applyHeaderStatusHeight();
|
|
134136
|
+
case 15:
|
|
134137
134137
|
case "end":
|
|
134138
134138
|
return _context.stop();
|
|
134139
134139
|
}
|
|
@@ -134155,33 +134155,38 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134155
134155
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
134156
134156
|
while (1) switch (_context2.prev = _context2.next) {
|
|
134157
134157
|
case 0:
|
|
134158
|
+
// 【关键修复】在 appPadding 异步获取之前,立即给 CSS 变量设置一个安全默认值(24px),
|
|
134159
|
+
// 避免首次渲染时 --headerStatusHeight 为 '0px' 导致 workHead 等兄弟组件与系统状态栏重叠。
|
|
134160
|
+
// 24px 是典型 Android 状态栏高度,后续异步获取到实际值后会覆盖。
|
|
134161
|
+
document.body.style.setProperty('--headerStatusHeight', '24px');
|
|
134162
|
+
window.headerStatusHeight = 24;
|
|
134158
134163
|
if (!(window.wxCfg && navigator.userAgent.indexOf('Android') !== -1)) {
|
|
134159
|
-
_context2.next =
|
|
134164
|
+
_context2.next = 6;
|
|
134160
134165
|
break;
|
|
134161
134166
|
}
|
|
134162
134167
|
if (window.wxgobakMode === 'topbarBtn') {
|
|
134163
134168
|
//安卓微信版本,显示顶部导航栏,但是不需要预留顶部系统状态栏空间
|
|
134164
134169
|
_this3.appPadding = 0;
|
|
134165
134170
|
}
|
|
134166
|
-
_context2.next =
|
|
134171
|
+
_context2.next = 13;
|
|
134167
134172
|
break;
|
|
134168
|
-
case
|
|
134173
|
+
case 6:
|
|
134169
134174
|
if (!((window.layout === 'H5' || window.flutter_inappwebview) && (_this3.appPadding === 0 || _this3.appPadding === 24))) {
|
|
134170
|
-
_context2.next =
|
|
134175
|
+
_context2.next = 13;
|
|
134171
134176
|
break;
|
|
134172
134177
|
}
|
|
134173
|
-
_context2.next =
|
|
134178
|
+
_context2.next = 9;
|
|
134174
134179
|
return _this3.$wv.getSystemStatusBarHeight();
|
|
134175
|
-
case
|
|
134180
|
+
case 9:
|
|
134176
134181
|
_context2.t0 = _context2.sent;
|
|
134177
134182
|
if (_context2.t0) {
|
|
134178
|
-
_context2.next =
|
|
134183
|
+
_context2.next = 12;
|
|
134179
134184
|
break;
|
|
134180
134185
|
}
|
|
134181
134186
|
_context2.t0 = 24;
|
|
134182
|
-
case
|
|
134187
|
+
case 12:
|
|
134183
134188
|
_this3.appPadding = _context2.t0;
|
|
134184
|
-
case
|
|
134189
|
+
case 13:
|
|
134185
134190
|
_this3.$bus.on('setTitle', _this3.handleSetTitle);
|
|
134186
134191
|
_this3.$bus.on('setCenterImage', _this3.handleSetCenterImage);
|
|
134187
134192
|
_this3.$bus.on('setLeftText', _this3.handleSetLeftText);
|
|
@@ -134190,7 +134195,7 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134190
134195
|
_this3.$bus.on('setRightImage', _this3.handleSetRightImage);
|
|
134191
134196
|
_this3.$bus.on('showBack', _this3.handleShowBack);
|
|
134192
134197
|
_this3.$bus.on('basicformOpened', _this3.setWxGobackFloatBtn);
|
|
134193
|
-
case
|
|
134198
|
+
case 21:
|
|
134194
134199
|
case "end":
|
|
134195
134200
|
return _context2.stop();
|
|
134196
134201
|
}
|
|
@@ -134361,14 +134366,20 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
134361
134366
|
handleShowBack: function handleShowBack(data) {
|
|
134362
134367
|
this.isCustomBackButton = true;
|
|
134363
134368
|
this.showBackBtn = !!data;
|
|
134369
|
+
},
|
|
134370
|
+
// 统一应用 headerStatusHeight CSS 变量(供 workHead 等兄弟组件使用)
|
|
134371
|
+
applyHeaderStatusHeight: function applyHeaderStatusHeight() {
|
|
134372
|
+
var h = this.appPadding;
|
|
134373
|
+
document.body.style.setProperty('--headerStatusHeight', h + 'px');
|
|
134374
|
+
window.headerStatusHeight = h;
|
|
134364
134375
|
}
|
|
134365
134376
|
}
|
|
134366
134377
|
});
|
|
134367
134378
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=script&lang=js
|
|
134368
134379
|
/* harmony default export */ var App_AppHeadervue_type_script_lang_js = (AppHeadervue_type_script_lang_js);
|
|
134369
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
134370
|
-
var
|
|
134371
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=style&index=0&id=
|
|
134380
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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
|
|
134381
|
+
var AppHeadervue_type_style_index_0_id_f6df5292_prod_lang_scss_scoped_true = __webpack_require__(548);
|
|
134382
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue?vue&type=style&index=0&id=f6df5292&prod&lang=scss&scoped=true
|
|
134372
134383
|
|
|
134373
134384
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/App/AppHeader.vue
|
|
134374
134385
|
|
|
@@ -134381,11 +134392,11 @@ var AppHeadervue_type_style_index_0_id_1d94df83_prod_lang_scss_scoped_true = __w
|
|
|
134381
134392
|
|
|
134382
134393
|
var AppHeader_component = normalizeComponent(
|
|
134383
134394
|
App_AppHeadervue_type_script_lang_js,
|
|
134384
|
-
|
|
134385
|
-
|
|
134395
|
+
AppHeadervue_type_template_id_f6df5292_scoped_true_render,
|
|
134396
|
+
AppHeadervue_type_template_id_f6df5292_scoped_true_staticRenderFns,
|
|
134386
134397
|
false,
|
|
134387
134398
|
null,
|
|
134388
|
-
"
|
|
134399
|
+
"f6df5292",
|
|
134389
134400
|
null
|
|
134390
134401
|
|
|
134391
134402
|
)
|
|
@@ -134611,8 +134622,8 @@ var AppListPage_component = normalizeComponent(
|
|
|
134611
134622
|
)
|
|
134612
134623
|
|
|
134613
134624
|
/* harmony default export */ var AppListPage = (AppListPage_component.exports);
|
|
134614
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
134615
|
-
var
|
|
134625
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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
|
|
134626
|
+
var Watermarkvue_type_template_id_338fab4c_scoped_true_render = function render() {
|
|
134616
134627
|
var _vm = this,
|
|
134617
134628
|
_c = _vm._self._c;
|
|
134618
134629
|
return _vm.show ? _c('div', {
|
|
@@ -134640,7 +134651,7 @@ var Watermarkvue_type_template_id_1343231e_scoped_true_render = function render(
|
|
|
134640
134651
|
}), 0);
|
|
134641
134652
|
}), 0)]) : _vm._e();
|
|
134642
134653
|
};
|
|
134643
|
-
var
|
|
134654
|
+
var Watermarkvue_type_template_id_338fab4c_scoped_true_staticRenderFns = [];
|
|
134644
134655
|
|
|
134645
134656
|
;// CONCATENATED MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
134646
134657
|
/*!
|
|
@@ -135822,46 +135833,51 @@ function Watermarkvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Wa
|
|
|
135822
135833
|
content: {},
|
|
135823
135834
|
countX: 12,
|
|
135824
135835
|
countY: 12,
|
|
135825
|
-
isOne: true,
|
|
135826
135836
|
show: false,
|
|
135827
|
-
waterTimer: ''
|
|
135837
|
+
waterTimer: '',
|
|
135838
|
+
personId: ''
|
|
135828
135839
|
};
|
|
135829
135840
|
},
|
|
135830
135841
|
computed: Watermarkvue_type_script_lang_js_objectSpread({}, mapGetters(['loginUser'])),
|
|
135831
|
-
watch: {
|
|
135832
|
-
$route: function $route(route) {
|
|
135833
|
-
if (!this.loginUser) {
|
|
135834
|
-
this.show = false;
|
|
135835
|
-
} else if (!this.show && this.loginUser.orgCode && this.isOne) {
|
|
135836
|
-
this.isOne = false;
|
|
135837
|
-
this.getWaterMarkConfig();
|
|
135838
|
-
}
|
|
135839
|
-
}
|
|
135840
|
-
},
|
|
135841
135842
|
created: function created() {
|
|
135842
|
-
|
|
135843
|
-
this.getWaterMarkConfig();
|
|
135844
|
-
}
|
|
135843
|
+
var _this = this;
|
|
135845
135844
|
this.$bus.on('getWaterMarkConfig', this.getWaterMarkConfig);
|
|
135845
|
+
this._unwatchStore = this.$store.subscribe(function (mutation) {
|
|
135846
|
+
if (mutation.type === 'user/SET_AVATAR') {
|
|
135847
|
+
if (!_this.loginUser) {
|
|
135848
|
+
_this.show = false;
|
|
135849
|
+
} else if (!_this.show && _this.loginUser.personId !== _this.personId) {
|
|
135850
|
+
_this.personId = _this.loginUser.personId;
|
|
135851
|
+
setTimeout(function () {
|
|
135852
|
+
_this.getWaterMarkConfig();
|
|
135853
|
+
}, 100);
|
|
135854
|
+
}
|
|
135855
|
+
}
|
|
135856
|
+
});
|
|
135846
135857
|
},
|
|
135847
135858
|
beforeDestroy: function beforeDestroy() {
|
|
135848
135859
|
this.$bus.off('getWaterMarkConfig', this.getWaterMarkConfig);
|
|
135849
135860
|
window.removeEventListener('resize', this.getMoreWater);
|
|
135861
|
+
if (this._unwatchStore) {
|
|
135862
|
+
this._unwatchStore();
|
|
135863
|
+
this._unwatchStore = null;
|
|
135864
|
+
}
|
|
135850
135865
|
},
|
|
135851
135866
|
mounted: function mounted() {
|
|
135852
135867
|
window.addEventListener('resize', this.getMoreWater);
|
|
135853
135868
|
},
|
|
135854
135869
|
methods: {
|
|
135855
135870
|
getMoreWater: function getMoreWater() {
|
|
135856
|
-
var
|
|
135871
|
+
var _this2 = this;
|
|
135857
135872
|
clearTimeout(this.waterTimer);
|
|
135858
135873
|
this.waterTimer = setTimeout(function () {
|
|
135859
|
-
|
|
135860
|
-
|
|
135874
|
+
_this2.countX = Math.ceil(Number(document.getElementById('mapp').clientWidth) / (_this2.content.mbXSpace || _this2.content.xSpace));
|
|
135875
|
+
_this2.countY = Math.ceil(Number(document.getElementById('mapp').clientHeight) / (_this2.content.mbYSpace || _this2.content.ySpace));
|
|
135861
135876
|
}, 500);
|
|
135862
135877
|
},
|
|
135863
135878
|
getWaterMarkConfig: function getWaterMarkConfig() {
|
|
135864
|
-
var
|
|
135879
|
+
var _this3 = this;
|
|
135880
|
+
console.log('getWaterMarkConfig');
|
|
135865
135881
|
this.$http({
|
|
135866
135882
|
method: 'GET',
|
|
135867
135883
|
contentType: 'application/x-www-form-urlencoded',
|
|
@@ -135871,19 +135887,19 @@ function Watermarkvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Wa
|
|
|
135871
135887
|
var vo = res.body.vo;
|
|
135872
135888
|
vo.pellucidity = Number(vo.pellucidity) / 100;
|
|
135873
135889
|
vo.space = Number(vo.space);
|
|
135874
|
-
|
|
135875
|
-
|
|
135876
|
-
|
|
135877
|
-
js_cookie_default().set('WaterMarkConfig-' +
|
|
135890
|
+
_this3.countX = Math.ceil(Number(document.getElementById('mapp').clientWidth) / (vo.mbXSpace || vo.xSpace));
|
|
135891
|
+
_this3.countY = Math.ceil(Number(document.getElementById('mapp').clientHeight) / (vo.mbYSpace || vo.ySpace));
|
|
135892
|
+
_this3.content = vo;
|
|
135893
|
+
js_cookie_default().set('WaterMarkConfig-' + _this3.loginUser.orgCode, vo.scope);
|
|
135878
135894
|
|
|
135879
135895
|
//vo.scope==1,仅文件预览显示水印
|
|
135880
|
-
if (
|
|
135881
|
-
|
|
135896
|
+
if (_this3.loginUser && _this3.loginUser.orgCode && vo.scope !== 1) {
|
|
135897
|
+
_this3.show = true;
|
|
135882
135898
|
} else {
|
|
135883
|
-
|
|
135899
|
+
_this3.show = false;
|
|
135884
135900
|
}
|
|
135885
135901
|
} else {
|
|
135886
|
-
|
|
135902
|
+
_this3.show = false;
|
|
135887
135903
|
}
|
|
135888
135904
|
});
|
|
135889
135905
|
}
|
|
@@ -135891,9 +135907,9 @@ function Watermarkvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Wa
|
|
|
135891
135907
|
});
|
|
135892
135908
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=script&lang=js
|
|
135893
135909
|
/* harmony default export */ var components_Watermarkvue_type_script_lang_js = (Watermarkvue_type_script_lang_js);
|
|
135894
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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=
|
|
135895
|
-
var
|
|
135896
|
-
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=style&index=0&id=
|
|
135910
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.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
|
|
135911
|
+
var Watermarkvue_type_style_index_0_id_338fab4c_prod_scoped_true_lang_scss = __webpack_require__(8385);
|
|
135912
|
+
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue?vue&type=style&index=0&id=338fab4c&prod&scoped=true&lang=scss
|
|
135897
135913
|
|
|
135898
135914
|
;// CONCATENATED MODULE: ./packages/ecmoa/moabase/src/common/components/Watermark/index.vue
|
|
135899
135915
|
|
|
@@ -135906,11 +135922,11 @@ var Watermarkvue_type_style_index_0_id_1343231e_prod_scoped_true_lang_scss = __w
|
|
|
135906
135922
|
|
|
135907
135923
|
var Watermark_component = normalizeComponent(
|
|
135908
135924
|
components_Watermarkvue_type_script_lang_js,
|
|
135909
|
-
|
|
135910
|
-
|
|
135925
|
+
Watermarkvue_type_template_id_338fab4c_scoped_true_render,
|
|
135926
|
+
Watermarkvue_type_template_id_338fab4c_scoped_true_staticRenderFns,
|
|
135911
135927
|
false,
|
|
135912
135928
|
null,
|
|
135913
|
-
"
|
|
135929
|
+
"338fab4c",
|
|
135914
135930
|
null
|
|
135915
135931
|
|
|
135916
135932
|
)
|