ecinc-cloud-yoaemail 9.6.259 → 9.6.261
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/ecyoaemail.common.js +675 -117
- package/lib/ecyoaemail.umd.js +673 -115
- package/lib/ecyoaemail.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/ecyoaemail.common.js
CHANGED
|
@@ -2454,7 +2454,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".el-dialog-div[data-v-9c1aff36]{height
|
|
|
2454
2454
|
|
|
2455
2455
|
/***/ }),
|
|
2456
2456
|
|
|
2457
|
-
/***/
|
|
2457
|
+
/***/ 3109:
|
|
2458
2458
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2459
2459
|
|
|
2460
2460
|
"use strict";
|
|
@@ -2748,7 +2748,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-c807af5e]:export{stdMenuBgcolo
|
|
|
2748
2748
|
|
|
2749
2749
|
/***/ }),
|
|
2750
2750
|
|
|
2751
|
-
/***/
|
|
2751
|
+
/***/ 851:
|
|
2752
2752
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2753
2753
|
|
|
2754
2754
|
"use strict";
|
|
@@ -2762,7 +2762,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2762
2762
|
|
|
2763
2763
|
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()));
|
|
2764
2764
|
// Module
|
|
2765
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
2765
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-1a84ffee] .attachFile .el-input__inner{width:76px;height:20px;text-align:center;line-height:20px;padding:0 5px}[data-v-1a84ffee] #busiForm table td{vertical-align:top}.RichtextEditor[data-v-1a84ffee] .richtext-container .el-table td div{height:100%}.RichtextEditor[data-v-1a84ffee] .richtext-container .cke_inner{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.RichtextEditor[data-v-1a84ffee] .richtext-container .cke_inner .cke_contents{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.spanLH[data-v-1a84ffee]{font-size:var(--portalFontSize13);text-align:center;color:#c9c9c9}.mailWrap[data-v-1a84ffee]{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:9px 0 0 0;position:relative}.mailWrap[data-v-1a84ffee],.mailWrap .drag-mask[data-v-1a84ffee]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mailWrap .drag-mask[data-v-1a84ffee]{position:absolute;left:0;top:0;height:calc(100% - 518px);width:100%;background-color:hsla(0,0%,100%,.8);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);z-index:999;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;gap:8px}.mailWrap .drag-mask .svg-icon[data-v-1a84ffee]{color:var(--subjectColor);font-size:100px}.sendMail[data-v-1a84ffee]{padding:0 0 0 10px}.sendMail .lineRow[data-v-1a84ffee]{margin:0!important;border-bottom:1px solid #eceff5;display:-webkit-box;display:-ms-flexbox;display:flex}.sendMail .lineRow .grid-content[data-v-1a84ffee]{height:100%;width:calc(100% - 72px);padding-left:16px}.sendMail .lineRow .grid-content .btnBorder[data-v-1a84ffee]{border:none!important}.sendMail .lineRow .grid-content .btnBorder[data-v-1a84ffee] .el-input__inner{border:none!important;height:unset;line-height:20px;padding-left:unset}.el-inputLyy__inner[data-v-1a84ffee] .el-input__inner{line-height:40px!important}[data-v-1a84ffee] input::-webkit-input-placeholder{color:#c9c9c9;font-size:var(--portalFontSize13)}[data-v-1a84ffee] input::-moz-input-placeholder{color:#c9c9c9;font-size:var(--portalFontSize13)}[data-v-1a84ffee] input::-ms-input-placeholder{color:#c9c9c9;font-size:var(--portalFontSize13)}.linkEmail[data-v-1a84ffee]{width:220px;max-height:calc(100vh - 270px);position:absolute;left:4%;z-index:99;top:135px;background-color:#fff;overflow-y:auto;-webkit-box-shadow:0 0 5px rgba(0,0,0,.1)!important;box-shadow:0 0 5px rgba(0,0,0,.1)!important;border-radius:4px}.linkEmail div[data-v-1a84ffee]{overflow-x:hidden;padding:10px}.linkEmail div p[data-v-1a84ffee]{width:200px;height:26px;overflow:hidden;word-break:break-all;text-overflow:clip;padding:0;margin:0;line-height:30px;font-size:var(--portalFontSize12);cursor:pointer}.linkEmail div p[data-v-1a84ffee]:hover{color:#409eff}.linkEmail[data-v-1a84ffee]::-webkit-scrollbar{display:none}[data-v-1a84ffee] .el-input__suffix{display:none}[data-v-1a84ffee] .el-input__inner{text-align:left}.RichtextEditor[data-v-1a84ffee] .richtext-container{margin:0;height:100%}.RichtextEditor[data-v-1a84ffee] .richtext-container .el-table{height:100%;border:none}.RichtextEditor[data-v-1a84ffee] .richtext-container .el-table:before{width:0}.RichtextEditor[data-v-1a84ffee] .richtext-container .el-table .el-table__body-wrapper,.RichtextEditor[data-v-1a84ffee] .richtext-container .el-table .el-table__body-wrapper .el-table__body{height:100%}[data-v-1a84ffee] .cke_top{border-bottom:none}[data-v-1a84ffee] .el-table--border:after{width:0}[data-v-1a84ffee] #busiForm table,[data-v-1a84ffee] #busiForm table td{border:none}.emailAddrStyle[data-v-1a84ffee]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-right:10px;margin-bottom:8px}.emailAddrStyle div[data-v-1a84ffee]{font-size:var(--portalFontSize12);border-radius:20px;cursor:pointer;border:1px solid #e0e0e0}.emailAddrStyle div i[data-v-1a84ffee]{color:#c0c4cc}.emailAddrStyle div[data-v-1a84ffee]:hover{border-color:#aaa}.emailAddrStyle div:hover i[data-v-1a84ffee]{border-left-color:#aaa!important;color:#aaa}.emailAddrStyle div span[data-v-1a84ffee]{padding:3px 5px 3px 10px;color:#333;cursor:pointer}.emailAddrStyle div i[data-v-1a84ffee]:hover{color:red!important}.inputWrap[data-v-1a84ffee]{padding-top:10px}.inputWrap[data-v-1a84ffee] .el-scrollbar .el-scrollbar__wrap{max-height:150px;overflow-x:hidden}.inputWrap[data-v-1a84ffee] .el-scrollbar .el-scrollbar__wrap .el-scrollbar__view{padding-bottom:20px}.inputWrap>div.emailAddrStyle[data-v-1a84ffee]:last-child{margin-right:unset}.readyFile[data-v-1a84ffee]{margin:0 23px 14px 0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:330px;height:56px;background:#f7f8fa;padding:10px}", ""]);
|
|
2766
2766
|
// Exports
|
|
2767
2767
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
2768
2768
|
|
|
@@ -15454,7 +15454,7 @@ module.exports = bind.call(call, $hasOwn);
|
|
|
15454
15454
|
|
|
15455
15455
|
/***/ }),
|
|
15456
15456
|
|
|
15457
|
-
/***/
|
|
15457
|
+
/***/ 1221:
|
|
15458
15458
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
15459
15459
|
|
|
15460
15460
|
//! moment.js locale configuration
|
|
@@ -19408,8 +19408,8 @@ var map = {
|
|
|
19408
19408
|
"./ro.js": 4457,
|
|
19409
19409
|
"./ru": 2271,
|
|
19410
19410
|
"./ru.js": 2271,
|
|
19411
|
-
"./sd":
|
|
19412
|
-
"./sd.js":
|
|
19411
|
+
"./sd": 1221,
|
|
19412
|
+
"./sd.js": 1221,
|
|
19413
19413
|
"./se": 3478,
|
|
19414
19414
|
"./se.js": 3478,
|
|
19415
19415
|
"./si": 7538,
|
|
@@ -26931,7 +26931,7 @@ var update = add("5dfb5a3e", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26931
26931
|
|
|
26932
26932
|
/***/ }),
|
|
26933
26933
|
|
|
26934
|
-
/***/
|
|
26934
|
+
/***/ 3602:
|
|
26935
26935
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
26936
26936
|
|
|
26937
26937
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
@@ -26963,19 +26963,19 @@ var update = add("1b35cc55", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26963
26963
|
|
|
26964
26964
|
/***/ }),
|
|
26965
26965
|
|
|
26966
|
-
/***/
|
|
26966
|
+
/***/ 9959:
|
|
26967
26967
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
26968
26968
|
|
|
26969
26969
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26970
26970
|
|
|
26971
26971
|
// load the styles
|
|
26972
|
-
var content = __webpack_require__(
|
|
26972
|
+
var content = __webpack_require__(3109);
|
|
26973
26973
|
if(content.__esModule) content = content.default;
|
|
26974
26974
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
26975
26975
|
if(content.locals) module.exports = content.locals;
|
|
26976
26976
|
// add the styles to the DOM
|
|
26977
26977
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
26978
|
-
var update = add("
|
|
26978
|
+
var update = add("51287476", content, true, {"sourceMap":false,"shadowMode":false});
|
|
26979
26979
|
|
|
26980
26980
|
/***/ }),
|
|
26981
26981
|
|
|
@@ -27187,19 +27187,19 @@ var update = add("76cb9540", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
27187
27187
|
|
|
27188
27188
|
/***/ }),
|
|
27189
27189
|
|
|
27190
|
-
/***/
|
|
27190
|
+
/***/ 3365:
|
|
27191
27191
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
27192
27192
|
|
|
27193
27193
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
27194
27194
|
|
|
27195
27195
|
// load the styles
|
|
27196
|
-
var content = __webpack_require__(
|
|
27196
|
+
var content = __webpack_require__(851);
|
|
27197
27197
|
if(content.__esModule) content = content.default;
|
|
27198
27198
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
27199
27199
|
if(content.locals) module.exports = content.locals;
|
|
27200
27200
|
// add the styles to the DOM
|
|
27201
27201
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
27202
|
-
var update = add("
|
|
27202
|
+
var update = add("3008043d", content, true, {"sourceMap":false,"shadowMode":false});
|
|
27203
27203
|
|
|
27204
27204
|
/***/ }),
|
|
27205
27205
|
|
|
@@ -27848,8 +27848,8 @@ var render = function render() {
|
|
|
27848
27848
|
};
|
|
27849
27849
|
var staticRenderFns = [];
|
|
27850
27850
|
|
|
27851
|
-
;// 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/ecyoa/email/src/components/LeftMenu.vue?vue&type=template&id=
|
|
27852
|
-
var
|
|
27851
|
+
;// 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/ecyoa/email/src/components/LeftMenu.vue?vue&type=template&id=1f927332
|
|
27852
|
+
var LeftMenuvue_type_template_id_1f927332_render = function render() {
|
|
27853
27853
|
var _vm = this,
|
|
27854
27854
|
_c = _vm._self._c;
|
|
27855
27855
|
return _c('el-scrollbar', {
|
|
@@ -28024,7 +28024,7 @@ var LeftMenuvue_type_template_id_0fa54860_render = function render() {
|
|
|
28024
28024
|
}) : _vm._e()];
|
|
28025
28025
|
})], 2)], 1);
|
|
28026
28026
|
};
|
|
28027
|
-
var
|
|
28027
|
+
var LeftMenuvue_type_template_id_1f927332_staticRenderFns = [];
|
|
28028
28028
|
|
|
28029
28029
|
;// CONCATENATED MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
28030
28030
|
/*!
|
|
@@ -29186,18 +29186,550 @@ var index = {
|
|
|
29186
29186
|
/* harmony default export */ var vuex_esm = ((/* unused pure expression or super */ null && (index)));
|
|
29187
29187
|
|
|
29188
29188
|
|
|
29189
|
-
;// CONCATENATED MODULE: ./
|
|
29189
|
+
;// CONCATENATED MODULE: ./src/global/utils/index.js
|
|
29190
29190
|
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); }
|
|
29191
|
-
|
|
29191
|
+
var moment = __webpack_require__(5093);
|
|
29192
|
+
|
|
29193
|
+
/**
|
|
29194
|
+
* Parse the String|Number to Date
|
|
29195
|
+
* @param {(Object|string|number)} time
|
|
29196
|
+
* @returns {Date}
|
|
29197
|
+
*/
|
|
29198
|
+
function parseTime(time) {
|
|
29199
|
+
if (arguments.length === 0) {
|
|
29200
|
+
return null;
|
|
29201
|
+
}
|
|
29202
|
+
var date;
|
|
29203
|
+
if (_typeof(time) === 'object') {
|
|
29204
|
+
date = time;
|
|
29205
|
+
} else {
|
|
29206
|
+
if (typeof time === 'string') {
|
|
29207
|
+
if (/^[0-9]+$/.test(time)) {
|
|
29208
|
+
time = parseInt(time);
|
|
29209
|
+
} else {
|
|
29210
|
+
time = time.replace(/-/g, '/');
|
|
29211
|
+
}
|
|
29212
|
+
}
|
|
29213
|
+
if (typeof time === 'number' && time.toString().length === 10) {
|
|
29214
|
+
time = time * 1000;
|
|
29215
|
+
}
|
|
29216
|
+
date = new Date(time);
|
|
29217
|
+
}
|
|
29218
|
+
return date;
|
|
29219
|
+
}
|
|
29220
|
+
|
|
29221
|
+
/**
|
|
29222
|
+
* @param {(Object|string|number)} time
|
|
29223
|
+
* @param {string} format 日程格式化字符串,无此参数时,根据time和当前时间差返回"刚刚、x分钟、x小时、1天前"等时间描述;指定此参数时,返回moment(d).format(format)字符串
|
|
29224
|
+
* @returns {string}
|
|
29225
|
+
*/
|
|
29226
|
+
function formatTime(time, format) {
|
|
29227
|
+
var d = parseTime(time);
|
|
29228
|
+
if (time === null) {
|
|
29229
|
+
d = Date().now();
|
|
29230
|
+
}
|
|
29231
|
+
var now = Date.now();
|
|
29232
|
+
var diff = (now - d) / 1000;
|
|
29233
|
+
if (format === undefined) {
|
|
29234
|
+
if (diff < 30) {
|
|
29235
|
+
return '刚刚';
|
|
29236
|
+
} else if (diff < 3600) {
|
|
29237
|
+
// less 1 hour
|
|
29238
|
+
return Math.floor(diff / 60) + '分钟前';
|
|
29239
|
+
} else if (diff < 3600 * 24) {
|
|
29240
|
+
return Math.floor(diff / 3600) + '小时前';
|
|
29241
|
+
} else if (diff < 3600 * 24 * 2) {
|
|
29242
|
+
return '1天前';
|
|
29243
|
+
} else if (d.getFullYear() < parseTime(now).getFullYear()) {
|
|
29244
|
+
return d.getFullYear() + '/' + (d.getMonth() + 1) + '/' + d.getDate();
|
|
29245
|
+
} else {
|
|
29246
|
+
return d.getMonth() + 1 + '/' + d.getDate();
|
|
29247
|
+
}
|
|
29248
|
+
} else {
|
|
29249
|
+
format = format.replace('yyyy', 'YYYY').replace('dd', 'DD');
|
|
29250
|
+
return moment(d).format(format);
|
|
29251
|
+
}
|
|
29252
|
+
}
|
|
29253
|
+
|
|
29254
|
+
/**
|
|
29255
|
+
* @param {string} url 包含?param1=value1¶m2=value2格式字符串
|
|
29256
|
+
* @returns {Object}
|
|
29257
|
+
*/
|
|
29258
|
+
function getQueryObject(url) {
|
|
29259
|
+
url = url == null ? window.location.href : url;
|
|
29260
|
+
var search = url.substring(url.lastIndexOf('?') + 1);
|
|
29261
|
+
var obj = {};
|
|
29262
|
+
var reg = /([^?&=]+)=([^?&=]*)/g;
|
|
29263
|
+
search.replace(reg, function (rs, $1, $2) {
|
|
29264
|
+
var name = decodeURIComponent($1);
|
|
29265
|
+
var val = decodeURIComponent($2);
|
|
29266
|
+
val = String(val);
|
|
29267
|
+
obj[name] = val;
|
|
29268
|
+
return rs;
|
|
29269
|
+
});
|
|
29270
|
+
return obj;
|
|
29271
|
+
}
|
|
29272
|
+
|
|
29273
|
+
/**
|
|
29274
|
+
* @param {string} str
|
|
29275
|
+
* @returns {number} str字节长度,英文、数字1个字节,汉字2个字节
|
|
29276
|
+
*/
|
|
29277
|
+
function byteLength(str) {
|
|
29278
|
+
// returns the byte length of an utf8 string
|
|
29279
|
+
var s = str.length;
|
|
29280
|
+
for (var i = str.length - 1; i >= 0; i--) {
|
|
29281
|
+
var code = str.charCodeAt(i);
|
|
29282
|
+
if (code > 0x7f && code <= 0x7ff) s++;else if (code > 0x7ff && code <= 0xffff) s += 1;
|
|
29283
|
+
if (code >= 0xdc00 && code <= 0xdfff) i--;
|
|
29284
|
+
}
|
|
29285
|
+
return s;
|
|
29286
|
+
}
|
|
29287
|
+
|
|
29288
|
+
/**
|
|
29289
|
+
* @param {Array} actual
|
|
29290
|
+
* @returns {Array} 清除无效元素后的新数组
|
|
29291
|
+
*/
|
|
29292
|
+
function cleanArray(actual) {
|
|
29293
|
+
var newArray = [];
|
|
29294
|
+
for (var i = 0; i < actual.length; i++) {
|
|
29295
|
+
if (actual[i]) {
|
|
29296
|
+
newArray.push(actual[i]);
|
|
29297
|
+
}
|
|
29298
|
+
}
|
|
29299
|
+
return newArray;
|
|
29300
|
+
}
|
|
29301
|
+
|
|
29302
|
+
/**
|
|
29303
|
+
* @param {Object} json
|
|
29304
|
+
* @returns {string} param1=value1¶m2=value2格式字符串
|
|
29305
|
+
*/
|
|
29306
|
+
function param(json) {
|
|
29307
|
+
if (!json) return '';
|
|
29308
|
+
return cleanArray(Object.keys(json).map(function (key) {
|
|
29309
|
+
if (json[key] === undefined) return '';
|
|
29310
|
+
return encodeURIComponent(key) + '=' + encodeURIComponent(json[key]);
|
|
29311
|
+
})).join('&');
|
|
29312
|
+
}
|
|
29313
|
+
|
|
29314
|
+
/**
|
|
29315
|
+
* @param {string} url
|
|
29316
|
+
* @returns {Object}
|
|
29317
|
+
*/
|
|
29318
|
+
function param2Obj(url) {
|
|
29319
|
+
var search = url.split('?')[1];
|
|
29320
|
+
if (!search) {
|
|
29321
|
+
return {};
|
|
29322
|
+
}
|
|
29323
|
+
return JSON.parse('{"' + decodeURIComponent(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"').replace(/\+/g, ' ') + '"}');
|
|
29324
|
+
}
|
|
29325
|
+
|
|
29326
|
+
/**
|
|
29327
|
+
* @param {string} val html字符串
|
|
29328
|
+
* @returns {string} 清除html标签后的纯文本
|
|
29329
|
+
*/
|
|
29330
|
+
function html2Text(val) {
|
|
29331
|
+
var div = document.createElement('div');
|
|
29332
|
+
div.innerHTML = val;
|
|
29333
|
+
return div.textContent || div.innerText;
|
|
29334
|
+
}
|
|
29335
|
+
|
|
29336
|
+
/**
|
|
29337
|
+
* Merges two objects, giving the last one precedence
|
|
29338
|
+
* @param {Object} target
|
|
29339
|
+
* @param {(Object|Array)} source
|
|
29340
|
+
* @returns {Object}
|
|
29341
|
+
*/
|
|
29342
|
+
function objectMerge(target, source) {
|
|
29343
|
+
if (_typeof(target) !== 'object') {
|
|
29344
|
+
target = {};
|
|
29345
|
+
}
|
|
29346
|
+
if (Array.isArray(source)) {
|
|
29347
|
+
return source.slice();
|
|
29348
|
+
}
|
|
29349
|
+
Object.keys(source).forEach(function (property) {
|
|
29350
|
+
var sourceProperty = source[property];
|
|
29351
|
+
if (_typeof(sourceProperty) === 'object') {
|
|
29352
|
+
target[property] = objectMerge(target[property], sourceProperty);
|
|
29353
|
+
} else {
|
|
29354
|
+
target[property] = sourceProperty;
|
|
29355
|
+
}
|
|
29356
|
+
});
|
|
29357
|
+
return target;
|
|
29358
|
+
}
|
|
29359
|
+
|
|
29360
|
+
/**
|
|
29361
|
+
* @param {HTMLElement} element
|
|
29362
|
+
* @param {string} className
|
|
29363
|
+
*/
|
|
29364
|
+
function toggleClass(element, className) {
|
|
29365
|
+
if (!element || !className) {
|
|
29366
|
+
return;
|
|
29367
|
+
}
|
|
29368
|
+
var classString = element.className;
|
|
29369
|
+
var nameIndex = classString.indexOf(className);
|
|
29370
|
+
if (nameIndex === -1) {
|
|
29371
|
+
classString += '' + className;
|
|
29372
|
+
} else {
|
|
29373
|
+
classString = classString.substr(0, nameIndex) + classString.substr(nameIndex + className.length);
|
|
29374
|
+
}
|
|
29375
|
+
element.className = classString;
|
|
29376
|
+
}
|
|
29377
|
+
|
|
29378
|
+
/**
|
|
29379
|
+
* @param {string} type 可选,
|
|
29380
|
+
* @returns {Date} 默认返回当前时间,type值为'start’时当前时长向前90天
|
|
29381
|
+
*/
|
|
29382
|
+
function getTime(type) {
|
|
29383
|
+
if (type === 'start') {
|
|
29384
|
+
return new Date().getTime() - 3600 * 1000 * 24 * 90;
|
|
29385
|
+
} else {
|
|
29386
|
+
return new Date(new Date().toDateString());
|
|
29387
|
+
}
|
|
29388
|
+
}
|
|
29389
|
+
|
|
29390
|
+
/**
|
|
29391
|
+
* 短时间内不重复触发一个事件
|
|
29392
|
+
* @param {Function} func 防抖动函数
|
|
29393
|
+
* @param {number} wait 设置一个门槛值,表示两次执行函数的最小间隔时间。
|
|
29394
|
+
* @param {boolean} immediate 是否立即执行
|
|
29395
|
+
* @return {*}
|
|
29396
|
+
*/
|
|
29397
|
+
function debounce(func, wait, immediate) {
|
|
29398
|
+
var timeout, args, context, timestamp, result;
|
|
29399
|
+
var later = function later() {
|
|
29400
|
+
// 据上一次触发时间间隔
|
|
29401
|
+
var last = +new Date() - timestamp;
|
|
29402
|
+
|
|
29403
|
+
// 上次被包装函数被调用时间间隔 last 小于设定时间间隔 wait
|
|
29404
|
+
if (last < wait && last > 0) {
|
|
29405
|
+
timeout = setTimeout(later, wait - last);
|
|
29406
|
+
} else {
|
|
29407
|
+
timeout = null;
|
|
29408
|
+
// 如果设定为immediate===true,因为开始边界已经调用过了此处无需调用
|
|
29409
|
+
if (!immediate) {
|
|
29410
|
+
result = func.apply(context, args);
|
|
29411
|
+
if (!timeout) context = args = null;
|
|
29412
|
+
}
|
|
29413
|
+
}
|
|
29414
|
+
};
|
|
29415
|
+
return function () {
|
|
29416
|
+
context = this;
|
|
29417
|
+
args = arguments;
|
|
29418
|
+
timestamp = +new Date();
|
|
29419
|
+
var callNow = immediate && !timeout;
|
|
29420
|
+
// 如果延时不存在,重新设定延时
|
|
29421
|
+
if (!timeout) timeout = setTimeout(later, wait);
|
|
29422
|
+
if (callNow) {
|
|
29423
|
+
result = func.apply(context, args);
|
|
29424
|
+
context = args = null;
|
|
29425
|
+
}
|
|
29426
|
+
return result;
|
|
29427
|
+
};
|
|
29428
|
+
}
|
|
29429
|
+
|
|
29430
|
+
/**
|
|
29431
|
+
* This is just a simple version of deep copy
|
|
29432
|
+
* Has a lot of edge cases bug
|
|
29433
|
+
* If you want to use a perfect deep copy, use lodash's _.cloneDeep
|
|
29434
|
+
* @param {Object} source
|
|
29435
|
+
* @returns {Object}
|
|
29436
|
+
*/
|
|
29437
|
+
function deepClone(source) {
|
|
29438
|
+
if (!source && _typeof(source) !== 'object') {
|
|
29439
|
+
throw new Error('error arguments', 'deepClone');
|
|
29440
|
+
}
|
|
29441
|
+
var targetObj = source.constructor === Array ? [] : {};
|
|
29442
|
+
Object.keys(source).forEach(function (keys) {
|
|
29443
|
+
if (source[keys] && _typeof(source[keys]) === 'object') {
|
|
29444
|
+
targetObj[keys] = deepClone(source[keys]);
|
|
29445
|
+
} else {
|
|
29446
|
+
targetObj[keys] = source[keys];
|
|
29447
|
+
}
|
|
29448
|
+
});
|
|
29449
|
+
return targetObj;
|
|
29450
|
+
}
|
|
29451
|
+
|
|
29452
|
+
/**
|
|
29453
|
+
* @param {Array} arr
|
|
29454
|
+
* @returns {Array} 去重后的新数组,仅支持es6
|
|
29455
|
+
*/
|
|
29456
|
+
function uniqueArr(arr) {
|
|
29457
|
+
return Array.from(new Set(arr));
|
|
29458
|
+
}
|
|
29459
|
+
|
|
29460
|
+
/**
|
|
29461
|
+
* @returns {string}
|
|
29462
|
+
*/
|
|
29463
|
+
function createUniqueString() {
|
|
29464
|
+
var timestamp = +new Date() + '';
|
|
29465
|
+
var randomNum = parseInt((1 + Math.random()) * 65536) + '';
|
|
29466
|
+
return (+(randomNum + timestamp)).toString(32);
|
|
29467
|
+
}
|
|
29468
|
+
|
|
29469
|
+
/**
|
|
29470
|
+
* Check if an element has a class
|
|
29471
|
+
* @param {HTMLElement} elm
|
|
29472
|
+
* @param {string} cls
|
|
29473
|
+
* @returns {boolean}
|
|
29474
|
+
*/
|
|
29475
|
+
function hasClass(ele, cls) {
|
|
29476
|
+
return !!ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'));
|
|
29477
|
+
}
|
|
29478
|
+
|
|
29479
|
+
/**
|
|
29480
|
+
* Add class to element
|
|
29481
|
+
* @param {HTMLElement} elm
|
|
29482
|
+
* @param {string} cls
|
|
29483
|
+
*/
|
|
29484
|
+
function addClass(ele, cls) {
|
|
29485
|
+
if (!hasClass(ele, cls)) ele.className += ' ' + cls;
|
|
29486
|
+
}
|
|
29487
|
+
|
|
29488
|
+
/**
|
|
29489
|
+
* Remove class from element
|
|
29490
|
+
* @param {HTMLElement} elm
|
|
29491
|
+
* @param {string} cls
|
|
29492
|
+
*/
|
|
29493
|
+
function removeClass(ele, cls) {
|
|
29494
|
+
if (hasClass(ele, cls)) {
|
|
29495
|
+
var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)');
|
|
29496
|
+
ele.className = ele.className.replace(reg, ' ');
|
|
29497
|
+
}
|
|
29498
|
+
}
|
|
29499
|
+
|
|
29500
|
+
/**
|
|
29501
|
+
* 格式化文件尺寸大小
|
|
29502
|
+
* @param {number} fileSize
|
|
29503
|
+
* @returns {string} 单位为B、KB、MB、GB的字符串
|
|
29504
|
+
*/
|
|
29505
|
+
function formatFileSize(fileSize) {
|
|
29506
|
+
if (fileSize < 1024) {
|
|
29507
|
+
return fileSize + 'B';
|
|
29508
|
+
} else if (fileSize < 1024 * 1024) {
|
|
29509
|
+
var temp = fileSize / 1024;
|
|
29510
|
+
temp = temp.toFixed(2);
|
|
29511
|
+
return temp + 'KB';
|
|
29512
|
+
} else if (fileSize < 1024 * 1024 * 1024) {
|
|
29513
|
+
var _temp = fileSize / (1024 * 1024);
|
|
29514
|
+
_temp = _temp.toFixed(2);
|
|
29515
|
+
return _temp + 'MB';
|
|
29516
|
+
} else {
|
|
29517
|
+
var _temp2 = fileSize / (1024 * 1024 * 1024);
|
|
29518
|
+
_temp2 = _temp2.toFixed(2);
|
|
29519
|
+
return _temp2 + 'GB';
|
|
29520
|
+
}
|
|
29521
|
+
}
|
|
29522
|
+
// 返回图片路径
|
|
29523
|
+
function attachIconUrl(item) {
|
|
29524
|
+
// 文件类型
|
|
29525
|
+
var extension = item.oriangialName || item.fileName;
|
|
29526
|
+
extension = extension.substring(extension.lastIndexOf('.'));
|
|
29527
|
+
if (extension === '.doc' || extension === '.docx') {
|
|
29528
|
+
return 'images/w-imgs/email/word.png';
|
|
29529
|
+
}
|
|
29530
|
+
if (extension === '.ppt' || extension === '.pptx') {
|
|
29531
|
+
return 'images/w-imgs/email/ppt.png';
|
|
29532
|
+
}
|
|
29533
|
+
if (extension === '.xls' || extension === '.xlsx') {
|
|
29534
|
+
return 'images/w-imgs/email/excel.png';
|
|
29535
|
+
}
|
|
29536
|
+
if (extension === '.pdf') {
|
|
29537
|
+
return 'images/w-imgs/email/pdf.png';
|
|
29538
|
+
}
|
|
29539
|
+
if (extension === '.txt') {
|
|
29540
|
+
return 'images/w-imgs/email/txt.png';
|
|
29541
|
+
} else if (extension === '.audio' || extension === '.amr' || extension === '.mp3' || extension === '.wav') {
|
|
29542
|
+
return 'images/w-imgs/email/audio.png';
|
|
29543
|
+
} else if (extension === '.video' || extension === '.mp4' || extension === '.mov') {
|
|
29544
|
+
return 'images/w-imgs/email/video.png';
|
|
29545
|
+
} else if (extension === '.zip' || extension === '.rar') {
|
|
29546
|
+
return 'images/w-imgs/email/zip.png';
|
|
29547
|
+
} else if (extension === '.image' || extension === '.mp4' || extension === '.jpg' || extension === '.jpeg' || extension === '.png' || extension === '.gif' || extension === '.bmp' || extension === '.svg') {
|
|
29548
|
+
return 'images/w-imgs/email/picture.png';
|
|
29549
|
+
} else if (extension === ' ') {
|
|
29550
|
+
return 'images/w-imgs/email/none.png';
|
|
29551
|
+
} else {
|
|
29552
|
+
return 'images/w-imgs/email/other.png';
|
|
29553
|
+
}
|
|
29554
|
+
}
|
|
29555
|
+
|
|
29556
|
+
/**
|
|
29557
|
+
* @param {string} path
|
|
29558
|
+
* @returns {Boolean} paht中包括http:、https:、mailto:、tel:返回true
|
|
29559
|
+
*/
|
|
29560
|
+
function isExternal(path) {
|
|
29561
|
+
return /^(https?:|mailto:|tel:)/.test(path);
|
|
29562
|
+
}
|
|
29563
|
+
|
|
29564
|
+
/**
|
|
29565
|
+
* 触发表单元素输入校验事件
|
|
29566
|
+
* @param {parent} 包含输入元素的父级组件
|
|
29567
|
+
* @returns 无
|
|
29568
|
+
*/
|
|
29569
|
+
function formItemValidate(parent) {
|
|
29570
|
+
if (parent.$children) {
|
|
29571
|
+
parent.$children.forEach(function (item) {
|
|
29572
|
+
if (item.validate && item.rules !== undefined) {
|
|
29573
|
+
if (item.$el.querySelector('.is-checked') === null) {
|
|
29574
|
+
item.validate().then(function (rst) {
|
|
29575
|
+
var tooltip = item.$children[0];
|
|
29576
|
+
if (tooltip !== undefined && tooltip.$el.className) {
|
|
29577
|
+
if (hasClass(tooltip.$el, 'el-tooltip')) {
|
|
29578
|
+
if (!rst.valid) {
|
|
29579
|
+
tooltip.disabled = false;
|
|
29580
|
+
tooltip.content = rst.errors[0];
|
|
29581
|
+
tooltip.$el.errorContent = rst.errors[0];
|
|
29582
|
+
addClass(tooltip.$el, 'invalid-field');
|
|
29583
|
+
} else {
|
|
29584
|
+
tooltip.disabled = true;
|
|
29585
|
+
removeClass(tooltip.$el, 'invalid-field');
|
|
29586
|
+
}
|
|
29587
|
+
} else if (hasClass(tooltip.$el, 'van-field')) {
|
|
29588
|
+
var errorInput = tooltip.$el.querySelector('.van-field__control');
|
|
29589
|
+
if (!rst.valid) {
|
|
29590
|
+
tooltip.error = true;
|
|
29591
|
+
if (errorInput !== null) {
|
|
29592
|
+
errorInput.setAttribute('error-content', rst.errors[0]);
|
|
29593
|
+
}
|
|
29594
|
+
} else {
|
|
29595
|
+
tooltip.error = false;
|
|
29596
|
+
if (errorInput !== null) {
|
|
29597
|
+
errorInput.removeAttribute('error-content');
|
|
29598
|
+
}
|
|
29599
|
+
}
|
|
29600
|
+
}
|
|
29601
|
+
}
|
|
29602
|
+
});
|
|
29603
|
+
}
|
|
29604
|
+
} else if (item.$children.length > 0) {
|
|
29605
|
+
formItemValidate(item);
|
|
29606
|
+
}
|
|
29607
|
+
});
|
|
29608
|
+
}
|
|
29609
|
+
}
|
|
29610
|
+
|
|
29611
|
+
/**
|
|
29612
|
+
* 获取浏览器版本
|
|
29613
|
+
* @returns {string} 浏览器版本
|
|
29614
|
+
*/
|
|
29615
|
+
function getExplore() {
|
|
29616
|
+
var Sys = {};
|
|
29617
|
+
var ua = navigator.userAgent.toLowerCase();
|
|
29618
|
+
if (ua.match(/rv:([\d.]+)\) like gecko/)) {
|
|
29619
|
+
Sys.ie = ua.match(/rv:([\d.]+)\) like gecko/)[1];
|
|
29620
|
+
} else if (ua.match(/msie ([\d\.]+)/)) {
|
|
29621
|
+
Sys.ie = ua.match(/msie ([\d\.]+)/)[1];
|
|
29622
|
+
} else if (ua.match(/edge\/([\d\.]+)/)) {
|
|
29623
|
+
Sys.edge = ua.match(/edge\/([\d\.]+)/)[1];
|
|
29624
|
+
} else if (ua.match(/firefox\/([\d\.]+)/)) {
|
|
29625
|
+
Sys.firefox = ua.match(/firefox\/([\d\.]+)/)[1];
|
|
29626
|
+
} else if (ua.match(/(?:opera|opr).([\d\.]+)/)) {
|
|
29627
|
+
Sys.opera = ua.match(/(?:opera|opr).([\d\.]+)/)[1];
|
|
29628
|
+
} else if (ua.match(/chrome\/([\d\.]+)/)) {
|
|
29629
|
+
Sys.chrome = ua.match(/chrome\/([\d\.]+)/)[1];
|
|
29630
|
+
} else if (ua.match(/version\/([\d\.]+).*safari/)) {
|
|
29631
|
+
Sys.safari = ua.match(/version\/([\d\.]+).*safari/)[1];
|
|
29632
|
+
}
|
|
29633
|
+
|
|
29634
|
+
// 根据关系进行判断
|
|
29635
|
+
if (Sys.ie) return 'IE: ' + Sys.ie;
|
|
29636
|
+
if (Sys.edge) return 'EDGE: ' + Sys.edge;
|
|
29637
|
+
if (Sys.firefox) return 'Firefox: ' + Sys.firefox;
|
|
29638
|
+
if (Sys.chrome) return 'Chrome: ' + Sys.chrome;
|
|
29639
|
+
if (Sys.opera) return 'Opera: ' + Sys.opera;
|
|
29640
|
+
if (Sys.safari) return 'Safari: ' + Sys.safari;
|
|
29641
|
+
return 'Unkonwn';
|
|
29642
|
+
}
|
|
29643
|
+
|
|
29644
|
+
/**
|
|
29645
|
+
* 对象数组排序
|
|
29646
|
+
* @param {Array} array 对象数组
|
|
29647
|
+
* @param {string} key 排序属性名称
|
|
29648
|
+
* @param {string} 排序方式,asc或desc,默认为asc
|
|
29649
|
+
* @returns {Array} 排序后的数组
|
|
29650
|
+
*/
|
|
29651
|
+
function sortByKey(array, key, mode) {
|
|
29652
|
+
return array.sort(function (a, b) {
|
|
29653
|
+
var x = a[key];
|
|
29654
|
+
var y = b[key];
|
|
29655
|
+
if (mode === 'desc') {
|
|
29656
|
+
return x > y ? -1 : x < y ? 1 : 0;
|
|
29657
|
+
} else {
|
|
29658
|
+
return x < y ? -1 : x > y ? 1 : 0;
|
|
29659
|
+
}
|
|
29660
|
+
});
|
|
29661
|
+
}
|
|
29662
|
+
|
|
29663
|
+
/**
|
|
29664
|
+
* 生成uuid
|
|
29665
|
+
*/
|
|
29666
|
+
function uuid() {
|
|
29667
|
+
var r = [];
|
|
29668
|
+
var e = '0123456789abcdef';
|
|
29669
|
+
for (var t = 0; t < 36; t++) {
|
|
29670
|
+
r[t] = e.substr(Math.floor(16 * Math.random()), 1);
|
|
29671
|
+
}
|
|
29672
|
+
r[14] = '4';
|
|
29673
|
+
r[19] = e.substr(3 & r[19] | 8, 1);
|
|
29674
|
+
r[8] = r[13] = r[18] = r[23] = '';
|
|
29675
|
+
return r.join('');
|
|
29676
|
+
}
|
|
29677
|
+
|
|
29678
|
+
/**
|
|
29679
|
+
* 加密(需要先加载lib/aes/aes.min.js文件)
|
|
29680
|
+
* @param word
|
|
29681
|
+
* @returns {*}
|
|
29682
|
+
*/
|
|
29683
|
+
function aesEncrypt(word) {
|
|
29684
|
+
var key = window.CryptoJS.enc.Utf8.parse('abcdefgabcdefg12');
|
|
29685
|
+
var srcs = window.CryptoJS.enc.Utf8.parse(word);
|
|
29686
|
+
var encrypted = window.CryptoJS.AES.encrypt(srcs, key, {
|
|
29687
|
+
mode: window.CryptoJS.mode.ECB,
|
|
29688
|
+
padding: window.CryptoJS.pad.Pkcs7
|
|
29689
|
+
});
|
|
29690
|
+
return encrypted.toString();
|
|
29691
|
+
}
|
|
29692
|
+
|
|
29693
|
+
/**
|
|
29694
|
+
* 解密
|
|
29695
|
+
* @param word
|
|
29696
|
+
* @returns {*}
|
|
29697
|
+
*/
|
|
29698
|
+
function aesDecrypt(word) {
|
|
29699
|
+
var key = window.CryptoJS.enc.Utf8.parse('abcdefgabcdefg12');
|
|
29700
|
+
var decrypt = window.CryptoJS.AES.decrypt(word, key, {
|
|
29701
|
+
mode: window.CryptoJS.mode.ECB,
|
|
29702
|
+
padding: window.CryptoJS.pad.Pkcs7
|
|
29703
|
+
});
|
|
29704
|
+
return window.CryptoJS.enc.Utf8.stringify(decrypt).toString();
|
|
29705
|
+
}
|
|
29706
|
+
|
|
29707
|
+
/**
|
|
29708
|
+
*
|
|
29709
|
+
*/
|
|
29710
|
+
function determineOS() {
|
|
29711
|
+
var userAgent = window.navigator.userAgent;
|
|
29712
|
+
if (/windows|win32/i.test(userAgent)) {
|
|
29713
|
+
return 'Windows';
|
|
29714
|
+
} else if (/linux/i.test(userAgent)) {
|
|
29715
|
+
return 'Linux';
|
|
29716
|
+
} else {
|
|
29717
|
+
return '其他操作系统'; // 例如:macOS、iOS、Android 等
|
|
29718
|
+
}
|
|
29719
|
+
}
|
|
29720
|
+
;// 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/ecyoa/email/src/components/LeftMenu.vue?vue&type=script&lang=js
|
|
29721
|
+
function LeftMenuvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return LeftMenuvue_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; }, LeftMenuvue_type_script_lang_js_typeof(o); }
|
|
29722
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == LeftMenuvue_type_script_lang_js_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(LeftMenuvue_type_script_lang_js_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
29192
29723
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
29193
29724
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
29194
29725
|
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; }
|
|
29195
29726
|
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; }
|
|
29196
29727
|
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; }
|
|
29197
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" ==
|
|
29198
|
-
function _toPrimitive(t, r) { if ("object" !=
|
|
29728
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == LeftMenuvue_type_script_lang_js_typeof(i) ? i : i + ""; }
|
|
29729
|
+
function _toPrimitive(t, r) { if ("object" != LeftMenuvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != LeftMenuvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29199
29730
|
|
|
29200
29731
|
var _variables = __webpack_require__(5112);
|
|
29732
|
+
|
|
29201
29733
|
/* harmony default export */ var LeftMenuvue_type_script_lang_js = ({
|
|
29202
29734
|
data: function data() {
|
|
29203
29735
|
return {
|
|
@@ -29717,9 +30249,19 @@ var _variables = __webpack_require__(5112);
|
|
|
29717
30249
|
path = toPath.path;
|
|
29718
30250
|
}
|
|
29719
30251
|
}
|
|
29720
|
-
|
|
29721
|
-
|
|
29722
|
-
|
|
30252
|
+
if (modelCode == 'writeMail') {
|
|
30253
|
+
this.$router.push({
|
|
30254
|
+
path: path,
|
|
30255
|
+
query: {
|
|
30256
|
+
uuid: uuid(),
|
|
30257
|
+
createNewTab: true
|
|
30258
|
+
}
|
|
30259
|
+
});
|
|
30260
|
+
} else {
|
|
30261
|
+
this.$router.push({
|
|
30262
|
+
path: path
|
|
30263
|
+
});
|
|
30264
|
+
}
|
|
29723
30265
|
}
|
|
29724
30266
|
},
|
|
29725
30267
|
// 递归查询菜单代码
|
|
@@ -29820,9 +30362,9 @@ var _variables = __webpack_require__(5112);
|
|
|
29820
30362
|
});
|
|
29821
30363
|
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/components/LeftMenu.vue?vue&type=script&lang=js
|
|
29822
30364
|
/* harmony default export */ var components_LeftMenuvue_type_script_lang_js = (LeftMenuvue_type_script_lang_js);
|
|
29823
|
-
// 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/ecyoa/email/src/components/LeftMenu.vue?vue&type=style&index=0&id=
|
|
29824
|
-
var
|
|
29825
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/components/LeftMenu.vue?vue&type=style&index=0&id=
|
|
30365
|
+
// 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/ecyoa/email/src/components/LeftMenu.vue?vue&type=style&index=0&id=1f927332&prod&lang=scss
|
|
30366
|
+
var LeftMenuvue_type_style_index_0_id_1f927332_prod_lang_scss = __webpack_require__(9959);
|
|
30367
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/components/LeftMenu.vue?vue&type=style&index=0&id=1f927332&prod&lang=scss
|
|
29826
30368
|
|
|
29827
30369
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
29828
30370
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -29933,8 +30475,8 @@ function normalizeComponent(
|
|
|
29933
30475
|
|
|
29934
30476
|
var component = normalizeComponent(
|
|
29935
30477
|
components_LeftMenuvue_type_script_lang_js,
|
|
29936
|
-
|
|
29937
|
-
|
|
30478
|
+
LeftMenuvue_type_template_id_1f927332_render,
|
|
30479
|
+
LeftMenuvue_type_template_id_1f927332_staticRenderFns,
|
|
29938
30480
|
false,
|
|
29939
30481
|
null,
|
|
29940
30482
|
null,
|
|
@@ -32713,7 +33255,7 @@ function addressvue_type_script_lang_js_asyncToGenerator(n) { return function ()
|
|
|
32713
33255
|
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/address.vue?vue&type=script&lang=js
|
|
32714
33256
|
/* harmony default export */ var src_addressvue_type_script_lang_js = (addressvue_type_script_lang_js);
|
|
32715
33257
|
// 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/ecyoa/email/src/address.vue?vue&type=style&index=0&id=1c914069&prod&scoped=true&lang=scss
|
|
32716
|
-
var addressvue_type_style_index_0_id_1c914069_prod_scoped_true_lang_scss = __webpack_require__(
|
|
33258
|
+
var addressvue_type_style_index_0_id_1c914069_prod_scoped_true_lang_scss = __webpack_require__(3602);
|
|
32717
33259
|
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/address.vue?vue&type=style&index=0&id=1c914069&prod&scoped=true&lang=scss
|
|
32718
33260
|
|
|
32719
33261
|
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/address.vue
|
|
@@ -36030,7 +36572,7 @@ function listvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < argum
|
|
|
36030
36572
|
function listvue_type_script_lang_js_defineProperty(e, r, t) { return (r = listvue_type_script_lang_js_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
36031
36573
|
function listvue_type_script_lang_js_toPropertyKey(t) { var i = listvue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == listvue_type_script_lang_js_typeof(i) ? i : i + ""; }
|
|
36032
36574
|
function listvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != listvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != listvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36033
|
-
var
|
|
36575
|
+
var listvue_type_script_lang_js_moment = __webpack_require__(5093);
|
|
36034
36576
|
|
|
36035
36577
|
|
|
36036
36578
|
|
|
@@ -36350,8 +36892,8 @@ var moment = __webpack_require__(5093);
|
|
|
36350
36892
|
});
|
|
36351
36893
|
return;
|
|
36352
36894
|
}
|
|
36353
|
-
this.adVo.sentdate_START = this.adVo.sentdate_START ?
|
|
36354
|
-
this.adVo.sentdate_END = this.adVo.sentdate_END ?
|
|
36895
|
+
this.adVo.sentdate_START = this.adVo.sentdate_START ? listvue_type_script_lang_js_moment(this.adVo.sentdate_START).format('YYYY-MM-DD HH:mm:ss') : '';
|
|
36896
|
+
this.adVo.sentdate_END = this.adVo.sentdate_END ? listvue_type_script_lang_js_moment(this.adVo.sentdate_END).format('YYYY-MM-DD HH:mm:ss') : '';
|
|
36355
36897
|
this.loadList('', this.adVo);
|
|
36356
36898
|
this.dialogFormVisible = false;
|
|
36357
36899
|
// 需要将当前打开的邮件详情清除掉
|
|
@@ -37407,8 +37949,8 @@ var list_component = normalizeComponent(
|
|
|
37407
37949
|
)
|
|
37408
37950
|
|
|
37409
37951
|
/* harmony default export */ var list = (list_component.exports);
|
|
37410
|
-
;// 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/ecyoa/email/src/xieyoujian.vue?vue&type=template&id=
|
|
37411
|
-
var
|
|
37952
|
+
;// 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/ecyoa/email/src/xieyoujian.vue?vue&type=template&id=1a84ffee&scoped=true
|
|
37953
|
+
var xieyoujianvue_type_template_id_1a84ffee_scoped_true_render = function render() {
|
|
37412
37954
|
var _vm = this,
|
|
37413
37955
|
_c = _vm._self._c;
|
|
37414
37956
|
return _c('div', {
|
|
@@ -38212,7 +38754,7 @@ var xieyoujianvue_type_template_id_0937e7ac_scoped_true_render = function render
|
|
|
38212
38754
|
}
|
|
38213
38755
|
})], 1)])]) : _vm._e()])]);
|
|
38214
38756
|
};
|
|
38215
|
-
var
|
|
38757
|
+
var xieyoujianvue_type_template_id_1a84ffee_scoped_true_staticRenderFns = [];
|
|
38216
38758
|
|
|
38217
38759
|
;// 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/ecyoa/email/src/components/txl.vue?vue&type=template&id=0d337f2c&scoped=true
|
|
38218
38760
|
var txlvue_type_template_id_0d337f2c_scoped_true_render = function render() {
|
|
@@ -39345,7 +39887,7 @@ function closest( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx,
|
|
|
39345
39887
|
return null;
|
|
39346
39888
|
}
|
|
39347
39889
|
var R_SPACE = /\s+/g;
|
|
39348
|
-
function
|
|
39890
|
+
function sortable_esm_toggleClass(el, name, state) {
|
|
39349
39891
|
if (el && name) {
|
|
39350
39892
|
if (el.classList) {
|
|
39351
39893
|
el.classList[state ? 'add' : 'remove'](name);
|
|
@@ -40474,7 +41016,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
40474
41016
|
});
|
|
40475
41017
|
|
|
40476
41018
|
// Chosen item
|
|
40477
|
-
|
|
41019
|
+
sortable_esm_toggleClass(dragEl, options.chosenClass, true);
|
|
40478
41020
|
};
|
|
40479
41021
|
|
|
40480
41022
|
// Disable "draggable"
|
|
@@ -40575,8 +41117,8 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
40575
41117
|
var options = this.options;
|
|
40576
41118
|
|
|
40577
41119
|
// Apply effect
|
|
40578
|
-
!fallback &&
|
|
40579
|
-
|
|
41120
|
+
!fallback && sortable_esm_toggleClass(dragEl, options.dragClass, false);
|
|
41121
|
+
sortable_esm_toggleClass(dragEl, options.ghostClass, true);
|
|
40580
41122
|
Sortable.active = this;
|
|
40581
41123
|
fallback && this._appendGhost();
|
|
40582
41124
|
|
|
@@ -40695,9 +41237,9 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
40695
41237
|
ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
|
|
40696
41238
|
}
|
|
40697
41239
|
ghostEl = dragEl.cloneNode(true);
|
|
40698
|
-
|
|
40699
|
-
|
|
40700
|
-
|
|
41240
|
+
sortable_esm_toggleClass(ghostEl, options.ghostClass, false);
|
|
41241
|
+
sortable_esm_toggleClass(ghostEl, options.fallbackClass, true);
|
|
41242
|
+
sortable_esm_toggleClass(ghostEl, options.dragClass, true);
|
|
40701
41243
|
css(ghostEl, 'transition', '');
|
|
40702
41244
|
css(ghostEl, 'transform', '');
|
|
40703
41245
|
css(ghostEl, 'box-sizing', 'border-box');
|
|
@@ -40735,7 +41277,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
40735
41277
|
cloneEl.draggable = false;
|
|
40736
41278
|
cloneEl.style['will-change'] = '';
|
|
40737
41279
|
this._hideClone();
|
|
40738
|
-
|
|
41280
|
+
sortable_esm_toggleClass(cloneEl, this.options.chosenClass, false);
|
|
40739
41281
|
Sortable.clone = cloneEl;
|
|
40740
41282
|
}
|
|
40741
41283
|
|
|
@@ -40752,7 +41294,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
40752
41294
|
name: 'clone'
|
|
40753
41295
|
});
|
|
40754
41296
|
});
|
|
40755
|
-
!fallback &&
|
|
41297
|
+
!fallback && sortable_esm_toggleClass(dragEl, options.dragClass, true);
|
|
40756
41298
|
|
|
40757
41299
|
// Set proper drop events
|
|
40758
41300
|
if (fallback) {
|
|
@@ -40839,8 +41381,8 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
40839
41381
|
}
|
|
40840
41382
|
if (_this !== fromSortable) {
|
|
40841
41383
|
// Set ghost class to new sortable's ghost class
|
|
40842
|
-
|
|
40843
|
-
|
|
41384
|
+
sortable_esm_toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
|
|
41385
|
+
sortable_esm_toggleClass(dragEl, options.ghostClass, true);
|
|
40844
41386
|
}
|
|
40845
41387
|
if (putSortable !== _this && _this !== Sortable.active) {
|
|
40846
41388
|
putSortable = _this;
|
|
@@ -41108,9 +41650,9 @@ Sortable.prototype = /** @lends Sortable.prototype */{
|
|
|
41108
41650
|
// Remove classes
|
|
41109
41651
|
// ghostClass is added in dragStarted
|
|
41110
41652
|
if (moved && !awaitingDragStarted) {
|
|
41111
|
-
|
|
41653
|
+
sortable_esm_toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
|
|
41112
41654
|
}
|
|
41113
|
-
|
|
41655
|
+
sortable_esm_toggleClass(dragEl, this.options.chosenClass, false);
|
|
41114
41656
|
|
|
41115
41657
|
// Drag stop event
|
|
41116
41658
|
_dispatchEvent({
|
|
@@ -41519,7 +42061,7 @@ Sortable.utils = {
|
|
|
41519
42061
|
extend: extend,
|
|
41520
42062
|
throttle: throttle,
|
|
41521
42063
|
closest: closest,
|
|
41522
|
-
toggleClass:
|
|
42064
|
+
toggleClass: sortable_esm_toggleClass,
|
|
41523
42065
|
clone: clone,
|
|
41524
42066
|
index: sortable_esm_index,
|
|
41525
42067
|
nextTick: _nextTick,
|
|
@@ -41866,13 +42408,13 @@ function SwapPlugin() {
|
|
|
41866
42408
|
if (target && target !== el) {
|
|
41867
42409
|
var prevSwapEl = lastSwapEl;
|
|
41868
42410
|
if (onMove(target) !== false) {
|
|
41869
|
-
|
|
42411
|
+
sortable_esm_toggleClass(target, options.swapClass, true);
|
|
41870
42412
|
lastSwapEl = target;
|
|
41871
42413
|
} else {
|
|
41872
42414
|
lastSwapEl = null;
|
|
41873
42415
|
}
|
|
41874
42416
|
if (prevSwapEl && prevSwapEl !== lastSwapEl) {
|
|
41875
|
-
|
|
42417
|
+
sortable_esm_toggleClass(prevSwapEl, options.swapClass, false);
|
|
41876
42418
|
}
|
|
41877
42419
|
}
|
|
41878
42420
|
changed();
|
|
@@ -41885,7 +42427,7 @@ function SwapPlugin() {
|
|
|
41885
42427
|
dragEl = _ref3.dragEl;
|
|
41886
42428
|
var toSortable = putSortable || this.sortable;
|
|
41887
42429
|
var options = this.options;
|
|
41888
|
-
lastSwapEl &&
|
|
42430
|
+
lastSwapEl && sortable_esm_toggleClass(lastSwapEl, options.swapClass, false);
|
|
41889
42431
|
if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {
|
|
41890
42432
|
if (dragEl !== lastSwapEl) {
|
|
41891
42433
|
toSortable.captureAnimationState();
|
|
@@ -41991,8 +42533,8 @@ function MultiDragPlugin() {
|
|
|
41991
42533
|
multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;
|
|
41992
42534
|
multiDragClones[i].draggable = false;
|
|
41993
42535
|
multiDragClones[i].style['will-change'] = '';
|
|
41994
|
-
|
|
41995
|
-
multiDragElements[i] === dragEl$1 &&
|
|
42536
|
+
sortable_esm_toggleClass(multiDragClones[i], this.options.selectedClass, false);
|
|
42537
|
+
multiDragElements[i] === dragEl$1 && sortable_esm_toggleClass(multiDragClones[i], this.options.chosenClass, false);
|
|
41996
42538
|
}
|
|
41997
42539
|
sortable._hideClone();
|
|
41998
42540
|
cancel();
|
|
@@ -42220,7 +42762,7 @@ function MultiDragPlugin() {
|
|
|
42220
42762
|
if (options.multiDragKey && !this.multiDragKeyDown) {
|
|
42221
42763
|
this._deselectMultiDrag();
|
|
42222
42764
|
}
|
|
42223
|
-
|
|
42765
|
+
sortable_esm_toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));
|
|
42224
42766
|
if (!~multiDragElements.indexOf(dragEl$1)) {
|
|
42225
42767
|
multiDragElements.push(dragEl$1);
|
|
42226
42768
|
dispatchEvent({
|
|
@@ -42248,7 +42790,7 @@ function MultiDragPlugin() {
|
|
|
42248
42790
|
}
|
|
42249
42791
|
for (; i < n; i++) {
|
|
42250
42792
|
if (~multiDragElements.indexOf(children[i])) continue;
|
|
42251
|
-
|
|
42793
|
+
sortable_esm_toggleClass(children[i], options.selectedClass, true);
|
|
42252
42794
|
multiDragElements.push(children[i]);
|
|
42253
42795
|
dispatchEvent({
|
|
42254
42796
|
sortable: sortable,
|
|
@@ -42374,7 +42916,7 @@ function MultiDragPlugin() {
|
|
|
42374
42916
|
if (evt && evt.button !== 0) return;
|
|
42375
42917
|
while (multiDragElements.length) {
|
|
42376
42918
|
var el = multiDragElements[0];
|
|
42377
|
-
|
|
42919
|
+
sortable_esm_toggleClass(el, this.options.selectedClass, false);
|
|
42378
42920
|
multiDragElements.shift();
|
|
42379
42921
|
dispatchEvent({
|
|
42380
42922
|
sortable: this.sortable,
|
|
@@ -42411,7 +42953,7 @@ function MultiDragPlugin() {
|
|
|
42411
42953
|
multiDragSortable.multiDrag._deselectMultiDrag();
|
|
42412
42954
|
multiDragSortable = sortable;
|
|
42413
42955
|
}
|
|
42414
|
-
|
|
42956
|
+
sortable_esm_toggleClass(el, sortable.options.selectedClass, true);
|
|
42415
42957
|
multiDragElements.push(el);
|
|
42416
42958
|
},
|
|
42417
42959
|
/**
|
|
@@ -42422,7 +42964,7 @@ function MultiDragPlugin() {
|
|
|
42422
42964
|
var sortable = el.parentNode[expando],
|
|
42423
42965
|
index = multiDragElements.indexOf(el);
|
|
42424
42966
|
if (!sortable || !sortable.options.multiDrag || !~index) return;
|
|
42425
|
-
|
|
42967
|
+
sortable_esm_toggleClass(el, sortable.options.selectedClass, false);
|
|
42426
42968
|
multiDragElements.splice(index, 1);
|
|
42427
42969
|
}
|
|
42428
42970
|
},
|
|
@@ -42529,6 +43071,7 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
42529
43071
|
|
|
42530
43072
|
|
|
42531
43073
|
/* harmony default export */ var xieyoujianvue_type_script_lang_js = ({
|
|
43074
|
+
name: 'WriteMail',
|
|
42532
43075
|
components: {
|
|
42533
43076
|
txl: txl
|
|
42534
43077
|
},
|
|
@@ -42599,7 +43142,8 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
42599
43142
|
// 上传文件的最大个数
|
|
42600
43143
|
isDragging: false,
|
|
42601
43144
|
savePromise: null,
|
|
42602
|
-
uploadWaitCount: 0
|
|
43145
|
+
uploadWaitCount: 0,
|
|
43146
|
+
matchTag: null // 对应的tag
|
|
42603
43147
|
};
|
|
42604
43148
|
},
|
|
42605
43149
|
computed: xieyoujianvue_type_script_lang_js_objectSpread({
|
|
@@ -42675,6 +43219,7 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
42675
43219
|
});
|
|
42676
43220
|
});
|
|
42677
43221
|
}
|
|
43222
|
+
this.mailInfo.autoSaveFlag = 0;
|
|
42678
43223
|
}
|
|
42679
43224
|
}
|
|
42680
43225
|
this.httpPort = location.port;
|
|
@@ -42694,6 +43239,13 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
42694
43239
|
},
|
|
42695
43240
|
mounted: function mounted() {
|
|
42696
43241
|
var _this5 = this;
|
|
43242
|
+
this.matchTag = this.$store.state.tagsView.visitedViews.find(function (item) {
|
|
43243
|
+
return item.query.uuid == _this5.$route.query.uuid;
|
|
43244
|
+
});
|
|
43245
|
+
if (!this.matchTag.meta.tagTitle.includes(this.$route.query.uuid)) {
|
|
43246
|
+
this.matchTag.meta.tagTitle = "".concat(this.matchTag.meta.tagTitle, "-").concat(this.$route.query.uuid);
|
|
43247
|
+
}
|
|
43248
|
+
this.matchTag.fullPath = this.$route.fullPath;
|
|
42697
43249
|
this.$nextTick(function () {
|
|
42698
43250
|
_this5.$refs.sendTo.focus();
|
|
42699
43251
|
if (_this5.mailInfo.attachments) {
|
|
@@ -43194,7 +43746,7 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
43194
43746
|
newMail: function newMail(type) {
|
|
43195
43747
|
var _this11 = this;
|
|
43196
43748
|
return xieyoujianvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/xieyoujianvue_type_script_lang_js_regeneratorRuntime().mark(function _callee() {
|
|
43197
|
-
var objKeys,
|
|
43749
|
+
var objKeys, tempMailMessageId, _yield$_this11$$http, body, code, message, find, res, arr, _arr, _arr2, _this11$readyList, lists1, lists2, lists3, _this11$readyList2, _this11$readyList3;
|
|
43198
43750
|
return xieyoujianvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee$(_context) {
|
|
43199
43751
|
while (1) switch (_context.prev = _context.next) {
|
|
43200
43752
|
case 0:
|
|
@@ -43207,7 +43759,7 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
43207
43759
|
_this11.mailInfo = {};
|
|
43208
43760
|
_this11.mailInfo.sendTo = '';
|
|
43209
43761
|
_this11.mailInfo.sended = false;
|
|
43210
|
-
_context.next =
|
|
43762
|
+
_context.next = 36;
|
|
43211
43763
|
break;
|
|
43212
43764
|
case 8:
|
|
43213
43765
|
// 老版本写法,使用路由携带参数
|
|
@@ -43228,27 +43780,23 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
43228
43780
|
}
|
|
43229
43781
|
_this11.mailInfo = objKeys;
|
|
43230
43782
|
localStorage.removeItem('newMailInfo');
|
|
43231
|
-
_context.next =
|
|
43783
|
+
_context.next = 36;
|
|
43232
43784
|
break;
|
|
43233
43785
|
case 16:
|
|
43234
|
-
|
|
43235
|
-
|
|
43236
|
-
return (item === null || item === void 0 || (_item$meta = item.meta) === null || _item$meta === void 0 ? void 0 : _item$meta.code) == 'writeMail';
|
|
43237
|
-
});
|
|
43238
|
-
if (!curTag) {
|
|
43239
|
-
_context.next = 37;
|
|
43786
|
+
if (!_this11.matchTag) {
|
|
43787
|
+
_context.next = 36;
|
|
43240
43788
|
break;
|
|
43241
43789
|
}
|
|
43242
|
-
if (!
|
|
43243
|
-
_context.next =
|
|
43790
|
+
if (!_this11.matchTag.meta["tempMailMessageId-".concat(_this11.loginUser.orgCode, "-").concat(_this11.loginUser.personId)]) {
|
|
43791
|
+
_context.next = 36;
|
|
43244
43792
|
break;
|
|
43245
43793
|
}
|
|
43246
|
-
tempMailMessageId =
|
|
43794
|
+
tempMailMessageId = _this11.matchTag.meta["tempMailMessageId-".concat(_this11.loginUser.orgCode, "-").concat(_this11.loginUser.personId)];
|
|
43247
43795
|
if (!tempMailMessageId) {
|
|
43248
|
-
_context.next =
|
|
43796
|
+
_context.next = 36;
|
|
43249
43797
|
break;
|
|
43250
43798
|
}
|
|
43251
|
-
_context.next =
|
|
43799
|
+
_context.next = 22;
|
|
43252
43800
|
return _this11.$http({
|
|
43253
43801
|
method: 'post',
|
|
43254
43802
|
url: '/mail/messageBox/listdata',
|
|
@@ -43256,23 +43804,23 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
43256
43804
|
urlsearch: "usersetId:".concat(_this11.defultMail.id, ";")
|
|
43257
43805
|
})
|
|
43258
43806
|
});
|
|
43259
|
-
case
|
|
43807
|
+
case 22:
|
|
43260
43808
|
_yield$_this11$$http = _context.sent;
|
|
43261
43809
|
body = _yield$_this11$$http.body;
|
|
43262
43810
|
code = _yield$_this11$$http.code;
|
|
43263
43811
|
message = _yield$_this11$$http.message;
|
|
43264
43812
|
if (!(code == 'success')) {
|
|
43265
|
-
_context.next =
|
|
43813
|
+
_context.next = 35;
|
|
43266
43814
|
break;
|
|
43267
43815
|
}
|
|
43268
43816
|
find = body.pageInfo.list.find(function (item) {
|
|
43269
43817
|
return item.boxType == 'DRAFT';
|
|
43270
43818
|
});
|
|
43271
43819
|
if (!find) {
|
|
43272
|
-
_context.next =
|
|
43820
|
+
_context.next = 33;
|
|
43273
43821
|
break;
|
|
43274
43822
|
}
|
|
43275
|
-
_context.next =
|
|
43823
|
+
_context.next = 31;
|
|
43276
43824
|
return _this11.$http({
|
|
43277
43825
|
method: 'get',
|
|
43278
43826
|
url: '/mail/message/getMailInfoById',
|
|
@@ -43282,19 +43830,20 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
43282
43830
|
apigw: 'apigw'
|
|
43283
43831
|
}
|
|
43284
43832
|
});
|
|
43285
|
-
case
|
|
43833
|
+
case 31:
|
|
43286
43834
|
res = _context.sent;
|
|
43287
43835
|
if (res.code == 'success') {
|
|
43288
43836
|
_this11.mailInfo = res.body.vo;
|
|
43837
|
+
_this11.mailInfo.autoSaveFlag = 0;
|
|
43289
43838
|
} else {
|
|
43290
43839
|
console.error(res.message);
|
|
43291
43840
|
}
|
|
43292
|
-
case
|
|
43293
|
-
_context.next =
|
|
43841
|
+
case 33:
|
|
43842
|
+
_context.next = 36;
|
|
43294
43843
|
break;
|
|
43295
|
-
case
|
|
43844
|
+
case 35:
|
|
43296
43845
|
console.error(message);
|
|
43297
|
-
case
|
|
43846
|
+
case 36:
|
|
43298
43847
|
if (_this11.mailInfo.srcBusiDataId !== undefined) {
|
|
43299
43848
|
// 流程表单转发邮件
|
|
43300
43849
|
_this11.wflowForwardMail();
|
|
@@ -43401,6 +43950,7 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
43401
43950
|
// this.mailInfo.mailType = 2
|
|
43402
43951
|
_this11.newMailInfo = null;
|
|
43403
43952
|
_this11.$forceUpdate();
|
|
43953
|
+
_this11.mailInfo.autoSaveFlag = 0;
|
|
43404
43954
|
case 43:
|
|
43405
43955
|
case "end":
|
|
43406
43956
|
return _context.stop();
|
|
@@ -44242,44 +44792,52 @@ function xieyoujianvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != x
|
|
|
44242
44792
|
};
|
|
44243
44793
|
this.handleChange(fileBody);
|
|
44244
44794
|
}
|
|
44795
|
+
},
|
|
44796
|
+
autoSave: function autoSave(to, from, next) {
|
|
44797
|
+
var _this21 = this;
|
|
44798
|
+
if (this.mailInfo.sended) {
|
|
44799
|
+
next();
|
|
44800
|
+
return;
|
|
44801
|
+
}
|
|
44802
|
+
if (!this.mailInfo.subject) {
|
|
44803
|
+
this.$set(this.mailInfo, 'subject', '无主题');
|
|
44804
|
+
}
|
|
44805
|
+
setTimeout(function () {
|
|
44806
|
+
try {
|
|
44807
|
+
if (to.path != '/login') {
|
|
44808
|
+
_this21.mailInfo.autoSaveFlag = 1;
|
|
44809
|
+
_this21.saveDraft('Draft', false, function (_ref2) {
|
|
44810
|
+
var body = _ref2.body,
|
|
44811
|
+
code = _ref2.code,
|
|
44812
|
+
message = _ref2.message;
|
|
44813
|
+
if (code == 'success') {
|
|
44814
|
+
if (_this21.matchTag) {
|
|
44815
|
+
_this21.matchTag.meta["tempMailMessageId-".concat(_this21.loginUser.orgCode, "-").concat(_this21.loginUser.personId)] = body.mailMessageId;
|
|
44816
|
+
}
|
|
44817
|
+
}
|
|
44818
|
+
});
|
|
44819
|
+
}
|
|
44820
|
+
} finally {
|
|
44821
|
+
next();
|
|
44822
|
+
}
|
|
44823
|
+
}, 0);
|
|
44245
44824
|
}
|
|
44246
44825
|
},
|
|
44826
|
+
activated: function activated() {
|
|
44827
|
+
this.showeditor = true;
|
|
44828
|
+
},
|
|
44829
|
+
deactivated: function deactivated() {
|
|
44830
|
+
this.showeditor = false;
|
|
44831
|
+
},
|
|
44247
44832
|
beforeRouteLeave: function beforeRouteLeave(to, from, next) {
|
|
44248
|
-
|
|
44249
|
-
if (this.mailInfo.sended) {
|
|
44250
|
-
next();
|
|
44251
|
-
return;
|
|
44252
|
-
}
|
|
44253
|
-
if (!this.mailInfo.subject) {
|
|
44254
|
-
this.$set(this.mailInfo, 'subject', '无主题');
|
|
44255
|
-
}
|
|
44256
|
-
setTimeout(function () {
|
|
44257
|
-
try {
|
|
44258
|
-
_this21.saveDraft('Draft', false, function (_ref2) {
|
|
44259
|
-
var body = _ref2.body,
|
|
44260
|
-
code = _ref2.code,
|
|
44261
|
-
message = _ref2.message;
|
|
44262
|
-
if (code == 'success') {
|
|
44263
|
-
var curTag = _this21.$store.state.tagsView.visitedViews.find(function (item) {
|
|
44264
|
-
var _item$meta2;
|
|
44265
|
-
return (item === null || item === void 0 || (_item$meta2 = item.meta) === null || _item$meta2 === void 0 ? void 0 : _item$meta2.code) == 'writeMail';
|
|
44266
|
-
});
|
|
44267
|
-
if (curTag) {
|
|
44268
|
-
curTag.meta["tempMailMessageId-".concat(_this21.loginUser.orgCode, "-").concat(_this21.loginUser.personId)] = body.mailMessageId;
|
|
44269
|
-
}
|
|
44270
|
-
}
|
|
44271
|
-
});
|
|
44272
|
-
} finally {
|
|
44273
|
-
next();
|
|
44274
|
-
}
|
|
44275
|
-
}, 0);
|
|
44833
|
+
this.autoSave(to, from, next);
|
|
44276
44834
|
}
|
|
44277
44835
|
});
|
|
44278
44836
|
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/xieyoujian.vue?vue&type=script&lang=js
|
|
44279
44837
|
/* harmony default export */ var src_xieyoujianvue_type_script_lang_js = (xieyoujianvue_type_script_lang_js);
|
|
44280
|
-
// 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/ecyoa/email/src/xieyoujian.vue?vue&type=style&index=0&id=
|
|
44281
|
-
var
|
|
44282
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/xieyoujian.vue?vue&type=style&index=0&id=
|
|
44838
|
+
// 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/ecyoa/email/src/xieyoujian.vue?vue&type=style&index=0&id=1a84ffee&prod&lang=scss&scoped=true
|
|
44839
|
+
var xieyoujianvue_type_style_index_0_id_1a84ffee_prod_lang_scss_scoped_true = __webpack_require__(3365);
|
|
44840
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/xieyoujian.vue?vue&type=style&index=0&id=1a84ffee&prod&lang=scss&scoped=true
|
|
44283
44841
|
|
|
44284
44842
|
;// CONCATENATED MODULE: ./packages/ecyoa/email/src/xieyoujian.vue
|
|
44285
44843
|
|
|
@@ -44292,11 +44850,11 @@ var xieyoujianvue_type_style_index_0_id_0937e7ac_prod_lang_scss_scoped_true = __
|
|
|
44292
44850
|
|
|
44293
44851
|
var xieyoujian_component = normalizeComponent(
|
|
44294
44852
|
src_xieyoujianvue_type_script_lang_js,
|
|
44295
|
-
|
|
44296
|
-
|
|
44853
|
+
xieyoujianvue_type_template_id_1a84ffee_scoped_true_render,
|
|
44854
|
+
xieyoujianvue_type_template_id_1a84ffee_scoped_true_staticRenderFns,
|
|
44297
44855
|
false,
|
|
44298
44856
|
null,
|
|
44299
|
-
"
|
|
44857
|
+
"1a84ffee",
|
|
44300
44858
|
null
|
|
44301
44859
|
|
|
44302
44860
|
)
|