wotokol-edm 1.1.19 → 1.1.21
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/package.json +3 -3
- package/wotokol-edm.common.js +1037 -1269
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css +1 -1
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +1033 -1265
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +20 -20
- package/wotokol-edm.umd.min.js.gz +0 -0
package/wotokol-edm.common.js
CHANGED
|
@@ -1627,7 +1627,7 @@ module.exports = function (it) {
|
|
|
1627
1627
|
var global = __webpack_require__(6903);
|
|
1628
1628
|
var core = __webpack_require__(6791);
|
|
1629
1629
|
var ctx = __webpack_require__(3971);
|
|
1630
|
-
var hide = __webpack_require__(
|
|
1630
|
+
var hide = __webpack_require__(4632);
|
|
1631
1631
|
var has = __webpack_require__(3066);
|
|
1632
1632
|
var PROTOTYPE = 'prototype';
|
|
1633
1633
|
|
|
@@ -1728,7 +1728,7 @@ module.exports = function (it, key) {
|
|
|
1728
1728
|
|
|
1729
1729
|
/***/ }),
|
|
1730
1730
|
|
|
1731
|
-
/***/
|
|
1731
|
+
/***/ 4632:
|
|
1732
1732
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1733
1733
|
|
|
1734
1734
|
var dP = __webpack_require__(1672);
|
|
@@ -1808,7 +1808,7 @@ var setToStringTag = __webpack_require__(1123);
|
|
|
1808
1808
|
var IteratorPrototype = {};
|
|
1809
1809
|
|
|
1810
1810
|
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
|
1811
|
-
__webpack_require__(
|
|
1811
|
+
__webpack_require__(4632)(IteratorPrototype, __webpack_require__(5413)('iterator'), function () { return this; });
|
|
1812
1812
|
|
|
1813
1813
|
module.exports = function (Constructor, NAME, next) {
|
|
1814
1814
|
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
|
|
@@ -1826,7 +1826,7 @@ module.exports = function (Constructor, NAME, next) {
|
|
|
1826
1826
|
var LIBRARY = __webpack_require__(8849);
|
|
1827
1827
|
var $export = __webpack_require__(9786);
|
|
1828
1828
|
var redefine = __webpack_require__(3070);
|
|
1829
|
-
var hide = __webpack_require__(
|
|
1829
|
+
var hide = __webpack_require__(4632);
|
|
1830
1830
|
var Iterators = __webpack_require__(2833);
|
|
1831
1831
|
var $iterCreate = __webpack_require__(1199);
|
|
1832
1832
|
var setToStringTag = __webpack_require__(1123);
|
|
@@ -2273,7 +2273,7 @@ module.exports = function (bitmap, value) {
|
|
|
2273
2273
|
/***/ 3070:
|
|
2274
2274
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2275
2275
|
|
|
2276
|
-
module.exports = __webpack_require__(
|
|
2276
|
+
module.exports = __webpack_require__(4632);
|
|
2277
2277
|
|
|
2278
2278
|
|
|
2279
2279
|
/***/ }),
|
|
@@ -2813,7 +2813,7 @@ $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
|
|
|
2813
2813
|
});
|
|
2814
2814
|
|
|
2815
2815
|
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
|
|
2816
|
-
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(
|
|
2816
|
+
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(4632)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
|
2817
2817
|
// 19.4.3.5 Symbol.prototype[@@toStringTag]
|
|
2818
2818
|
setToStringTag($Symbol, 'Symbol');
|
|
2819
2819
|
// 20.2.1.9 Math[@@toStringTag]
|
|
@@ -2845,7 +2845,7 @@ __webpack_require__(2613)('observable');
|
|
|
2845
2845
|
|
|
2846
2846
|
__webpack_require__(5270);
|
|
2847
2847
|
var global = __webpack_require__(6903);
|
|
2848
|
-
var hide = __webpack_require__(
|
|
2848
|
+
var hide = __webpack_require__(4632);
|
|
2849
2849
|
var Iterators = __webpack_require__(2833);
|
|
2850
2850
|
var TO_STRING_TAG = __webpack_require__(5413)('toStringTag');
|
|
2851
2851
|
|
|
@@ -85274,7 +85274,7 @@ if (typeof window !== 'undefined') {
|
|
|
85274
85274
|
var esnext_iterator_constructor = __webpack_require__(8992);
|
|
85275
85275
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
|
|
85276
85276
|
var esnext_iterator_for_each = __webpack_require__(3949);
|
|
85277
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/edm-button/index.vue?vue&type=template&id=
|
|
85277
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/edm-button/index.vue?vue&type=template&id=30d1fc8e&scoped=true
|
|
85278
85278
|
var render = function render() {
|
|
85279
85279
|
var _vm = this,
|
|
85280
85280
|
_c = _vm._self._c;
|
|
@@ -91213,10 +91213,8 @@ async function test_test(params) {
|
|
|
91213
91213
|
// 模拟 hub 登陆 测试账号
|
|
91214
91214
|
// mobileOrEmail: "13262005357",
|
|
91215
91215
|
// password: "123123123"
|
|
91216
|
-
|
|
91217
|
-
|
|
91218
|
-
mobileOrEmail: "18767117493",
|
|
91219
|
-
password: "tm123456789"
|
|
91216
|
+
mobileOrEmail: "18846078060",
|
|
91217
|
+
password: "asd123456"
|
|
91220
91218
|
// mobileOrEmail: "15658187195",
|
|
91221
91219
|
// password: "wotu987412365"
|
|
91222
91220
|
}).then(res => {
|
|
@@ -91368,7 +91366,7 @@ var component = normalizeComponent(
|
|
|
91368
91366
|
staticRenderFns,
|
|
91369
91367
|
false,
|
|
91370
91368
|
null,
|
|
91371
|
-
"
|
|
91369
|
+
"30d1fc8e",
|
|
91372
91370
|
null
|
|
91373
91371
|
|
|
91374
91372
|
)
|
|
@@ -98667,14 +98665,6 @@ function delTags(id) {
|
|
|
98667
98665
|
function addTags(data) {
|
|
98668
98666
|
return request_post(`/edm/tag/addSign`, data);
|
|
98669
98667
|
}
|
|
98670
|
-
// 获取账号
|
|
98671
|
-
function hubUserSonFather(params) {
|
|
98672
|
-
return request_get(`/user/hubUser/sonFather`, params);
|
|
98673
|
-
}
|
|
98674
|
-
// 分页查看模板列表
|
|
98675
|
-
function templatesList(params) {
|
|
98676
|
-
return request_get(`/edm/template/templates`, params);
|
|
98677
|
-
}
|
|
98678
98668
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/edm-search/index.vue?vue&type=template&id=4d651f22&scoped=true
|
|
98679
98669
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98680
98670
|
var _vm = this,
|
|
@@ -99417,8 +99407,16 @@ function getBlob(url, cb) {
|
|
|
99417
99407
|
xhr.onload = function () {
|
|
99418
99408
|
if (xhr.status === 200) {
|
|
99419
99409
|
cb(xhr.response);
|
|
99410
|
+
} else {
|
|
99411
|
+
window.open(url, "_blank");
|
|
99412
|
+
return false;
|
|
99420
99413
|
}
|
|
99421
99414
|
};
|
|
99415
|
+
// 处理网络错误
|
|
99416
|
+
xhr.onerror = function () {
|
|
99417
|
+
window.open(url, "_blank");
|
|
99418
|
+
return false;
|
|
99419
|
+
};
|
|
99422
99420
|
xhr.send();
|
|
99423
99421
|
}
|
|
99424
99422
|
// 保存
|
|
@@ -106571,10 +106569,6 @@ function comeGoBloggerPage(data) {
|
|
|
106571
106569
|
function pagePlan(data) {
|
|
106572
106570
|
return post(`/user/popularize/pagePlan`, data);
|
|
106573
106571
|
}
|
|
106574
|
-
// 撤回邮件
|
|
106575
|
-
function withdraw(id) {
|
|
106576
|
-
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106577
|
-
}
|
|
106578
106572
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmailPlan/index.vue?vue&type=script&lang=js
|
|
106579
106573
|
|
|
106580
106574
|
|
|
@@ -109217,8 +109211,8 @@ var detail_component = normalizeComponent(
|
|
|
109217
109211
|
)
|
|
109218
109212
|
|
|
109219
109213
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
109220
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/write-email/index.vue?vue&type=template&id=
|
|
109221
|
-
var
|
|
109214
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/write-email/index.vue?vue&type=template&id=6c2fdda1&scoped=true
|
|
109215
|
+
var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function render() {
|
|
109222
109216
|
var _vm = this,
|
|
109223
109217
|
_c = _vm._self._c;
|
|
109224
109218
|
return _c('div', {
|
|
@@ -109583,17 +109577,7 @@ var write_emailvue_type_template_id_3564e8e7_scoped_true_render = function rende
|
|
|
109583
109577
|
staticClass: "el-icon-loading"
|
|
109584
109578
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109585
109579
|
staticClass: "operate-right"
|
|
109586
|
-
}, [_c('el-button', {
|
|
109587
|
-
staticClass: "operate-btn",
|
|
109588
|
-
attrs: {
|
|
109589
|
-
"disabled": _vm.loading
|
|
109590
|
-
},
|
|
109591
|
-
on: {
|
|
109592
|
-
"click": _vm.saveMailTemplate
|
|
109593
|
-
}
|
|
109594
|
-
}, [_vm.loading ? _c('i', {
|
|
109595
|
-
staticClass: "el-icon-loading"
|
|
109596
|
-
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109580
|
+
}, [_vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109597
109581
|
staticClass: "operate-btn",
|
|
109598
109582
|
attrs: {
|
|
109599
109583
|
"disabled": _vm.loading
|
|
@@ -109958,20 +109942,9 @@ var write_emailvue_type_template_id_3564e8e7_scoped_true_render = function rende
|
|
|
109958
109942
|
},
|
|
109959
109943
|
"updateNickName": val => _vm.nickName = val
|
|
109960
109944
|
}
|
|
109961
|
-
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109962
|
-
attrs: {
|
|
109963
|
-
"tempProductCard": _vm.tempProductCard,
|
|
109964
|
-
"mailTempList": _vm.mailList,
|
|
109965
|
-
"visible": _vm.saveMailTempDialogVisible
|
|
109966
|
-
},
|
|
109967
|
-
on: {
|
|
109968
|
-
"update:visible": function ($event) {
|
|
109969
|
-
_vm.saveMailTempDialogVisible = $event;
|
|
109970
|
-
}
|
|
109971
|
-
}
|
|
109972
109945
|
}) : _vm._e()], 1);
|
|
109973
109946
|
};
|
|
109974
|
-
var
|
|
109947
|
+
var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [function () {
|
|
109975
109948
|
var _vm = this,
|
|
109976
109949
|
_c = _vm._self._c;
|
|
109977
109950
|
return _c('div', {
|
|
@@ -109992,7 +109965,7 @@ var write_emailvue_type_template_id_3564e8e7_scoped_true_staticRenderFns = [func
|
|
|
109992
109965
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109993
109966
|
}];
|
|
109994
109967
|
|
|
109995
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
109968
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=6c2fdda1&scoped=true
|
|
109996
109969
|
|
|
109997
109970
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109998
109971
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -114349,59 +114322,6 @@ const moneyTypeOpts = [{
|
|
|
114349
114322
|
code: "IDR",
|
|
114350
114323
|
symbol: "Rp"
|
|
114351
114324
|
}];
|
|
114352
|
-
const const_language = [{
|
|
114353
|
-
value: 7,
|
|
114354
|
-
label: '汉语',
|
|
114355
|
-
enLabel: 'Chinese'
|
|
114356
|
-
}, {
|
|
114357
|
-
value: 1,
|
|
114358
|
-
label: '英语',
|
|
114359
|
-
enLabel: 'English'
|
|
114360
|
-
}, {
|
|
114361
|
-
value: 3,
|
|
114362
|
-
label: '法语',
|
|
114363
|
-
enLabel: 'French'
|
|
114364
|
-
}, {
|
|
114365
|
-
value: 8,
|
|
114366
|
-
label: '德语',
|
|
114367
|
-
enLabel: 'German'
|
|
114368
|
-
}, {
|
|
114369
|
-
value: 6,
|
|
114370
|
-
label: '日语',
|
|
114371
|
-
enLabel: 'Japanese'
|
|
114372
|
-
}, {
|
|
114373
|
-
value: 9,
|
|
114374
|
-
label: '韩语',
|
|
114375
|
-
enLabel: 'Korean'
|
|
114376
|
-
}, {
|
|
114377
|
-
value: 10,
|
|
114378
|
-
label: '越南语',
|
|
114379
|
-
enLabel: 'Vietnamese'
|
|
114380
|
-
}, {
|
|
114381
|
-
value: 11,
|
|
114382
|
-
label: '泰国语',
|
|
114383
|
-
enLabel: 'Thai'
|
|
114384
|
-
}, {
|
|
114385
|
-
value: 12,
|
|
114386
|
-
label: '菲律宾语',
|
|
114387
|
-
enLabel: 'Filipino'
|
|
114388
|
-
}, {
|
|
114389
|
-
value: 13,
|
|
114390
|
-
label: '印度尼西亚语',
|
|
114391
|
-
enLabel: 'Indonesian'
|
|
114392
|
-
}, {
|
|
114393
|
-
value: 14,
|
|
114394
|
-
label: '俄罗斯语',
|
|
114395
|
-
enLabel: 'Russian'
|
|
114396
|
-
}, {
|
|
114397
|
-
value: 4,
|
|
114398
|
-
label: '西班牙语',
|
|
114399
|
-
enLabel: 'Spanish'
|
|
114400
|
-
}, {
|
|
114401
|
-
value: 15,
|
|
114402
|
-
label: '意大利语',
|
|
114403
|
-
enLabel: 'Italian'
|
|
114404
|
-
}];
|
|
114405
114325
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/productNewCom/detail.vue?vue&type=script&lang=js
|
|
114406
114326
|
|
|
114407
114327
|
|
|
@@ -118412,719 +118332,1004 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118412
118332
|
};
|
|
118413
118333
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118414
118334
|
|
|
118415
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=
|
|
118416
|
-
|
|
118417
|
-
|
|
118418
|
-
var TemplateListvue_type_template_id_d1b92a60_scoped_true_render = function render() {
|
|
118335
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=13a1b12d&scoped=true
|
|
118336
|
+
var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function render() {
|
|
118419
118337
|
var _vm = this,
|
|
118420
118338
|
_c = _vm._self._c;
|
|
118421
118339
|
return _c('div', {
|
|
118422
118340
|
staticClass: "wrap"
|
|
118423
118341
|
}, [_c('div', {
|
|
118424
|
-
staticClass: "
|
|
118425
|
-
}, [_c('el-row', {
|
|
118426
|
-
attrs: {
|
|
118427
|
-
"gutter": 12
|
|
118428
|
-
}
|
|
118429
|
-
}, [_c('el-col', {
|
|
118430
|
-
attrs: {
|
|
118431
|
-
"span": 8
|
|
118432
|
-
}
|
|
118342
|
+
staticClass: "grid grid-cols-3 px24 mb24"
|
|
118433
118343
|
}, [_c('div', {
|
|
118434
|
-
staticClass: "
|
|
118344
|
+
staticClass: "form-item mr16"
|
|
118435
118345
|
}, [_c('el-select', {
|
|
118436
|
-
staticClass: "template_select",
|
|
118437
|
-
attrs: {
|
|
118438
|
-
"slot": "prepend",
|
|
118439
|
-
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118440
|
-
},
|
|
118441
118346
|
on: {
|
|
118442
118347
|
"change": function ($event) {
|
|
118443
|
-
_vm.searchForm.
|
|
118444
|
-
_vm.
|
|
118348
|
+
_vm.searchForm.currentPage = 1;
|
|
118349
|
+
_vm.searchForm.modelLanguage = _vm.searchForm.type === 1 ? 1 : '';
|
|
118350
|
+
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118351
|
+
_vm.init();
|
|
118445
118352
|
}
|
|
118446
118353
|
},
|
|
118447
|
-
slot: "prepend",
|
|
118448
118354
|
model: {
|
|
118449
|
-
value: _vm.
|
|
118355
|
+
value: _vm.searchForm.type,
|
|
118450
118356
|
callback: function ($$v) {
|
|
118451
|
-
_vm.
|
|
118357
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118452
118358
|
},
|
|
118453
|
-
expression: "
|
|
118359
|
+
expression: "searchForm.type"
|
|
118454
118360
|
}
|
|
118455
118361
|
}, [_c('el-option', {
|
|
118456
118362
|
attrs: {
|
|
118457
|
-
"label":
|
|
118458
|
-
"value":
|
|
118363
|
+
"label": _vm.$i18n.t('template.system_template'),
|
|
118364
|
+
"value": 1
|
|
118459
118365
|
}
|
|
118460
118366
|
}), _c('el-option', {
|
|
118461
118367
|
attrs: {
|
|
118462
|
-
"label":
|
|
118463
|
-
"value":
|
|
118368
|
+
"label": _vm.$i18n.t('template.custom_template'),
|
|
118369
|
+
"value": 2
|
|
118464
118370
|
}
|
|
118465
|
-
})], 1),
|
|
118466
|
-
staticClass: "
|
|
118371
|
+
})], 1)], 1), _c('div', {
|
|
118372
|
+
staticClass: "form-item mr24"
|
|
118467
118373
|
}, [_c('el-select', {
|
|
118468
118374
|
attrs: {
|
|
118469
|
-
"
|
|
118470
|
-
"
|
|
118375
|
+
"placeholder": _vm.$i18n.t('template.template_language'),
|
|
118376
|
+
"clearable": ""
|
|
118377
|
+
},
|
|
118378
|
+
on: {
|
|
118379
|
+
"change": function ($event) {
|
|
118380
|
+
_vm.searchForm.currentPage = 1;
|
|
118381
|
+
_vm.init();
|
|
118382
|
+
}
|
|
118471
118383
|
},
|
|
118472
|
-
slot: "prepend",
|
|
118473
118384
|
model: {
|
|
118474
|
-
value: _vm.searchForm.
|
|
118385
|
+
value: _vm.searchForm.modelLanguage,
|
|
118475
118386
|
callback: function ($$v) {
|
|
118476
|
-
_vm.$set(_vm.searchForm, "
|
|
118387
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118477
118388
|
},
|
|
118478
|
-
expression: "searchForm.
|
|
118389
|
+
expression: "searchForm.modelLanguage"
|
|
118479
118390
|
}
|
|
118480
|
-
}, _vm._l(_vm.
|
|
118391
|
+
}, _vm._l(_vm.searchForm.type === 1 ? _vm.enumData.sysLanguage : _vm.enumData.modelLanguage, function (t, i) {
|
|
118481
118392
|
return _c('el-option', {
|
|
118482
|
-
key:
|
|
118393
|
+
key: i,
|
|
118483
118394
|
attrs: {
|
|
118484
|
-
"
|
|
118485
|
-
"
|
|
118395
|
+
"value": Number(t.value),
|
|
118396
|
+
"label": _vm.$i18n.locale === 'zh' || _vm.$i18n.locale === 'zh-CN' ? t.label : t.enLabel
|
|
118486
118397
|
}
|
|
118487
118398
|
});
|
|
118488
|
-
}), 1)], 1)
|
|
118489
|
-
staticClass: "
|
|
118490
|
-
}, [_c('
|
|
118491
|
-
staticClass: "
|
|
118492
|
-
|
|
118493
|
-
"
|
|
118399
|
+
}), 1)], 1), _c('div', {
|
|
118400
|
+
staticClass: "form-item"
|
|
118401
|
+
}, [_c('button', {
|
|
118402
|
+
staticClass: "search-btn search-btn-face",
|
|
118403
|
+
on: {
|
|
118404
|
+
"click": function ($event) {
|
|
118405
|
+
_vm.isShowSet = true;
|
|
118406
|
+
}
|
|
118407
|
+
}
|
|
118408
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.create_template")) + " ")])])]), _vm.searchForm.type === 1 ? _c('div', {
|
|
118409
|
+
staticClass: "tab px24 mb24"
|
|
118410
|
+
}, [_c('el-tabs', {
|
|
118411
|
+
on: {
|
|
118412
|
+
"tab-click": _vm.swicthTab
|
|
118494
118413
|
},
|
|
118495
118414
|
model: {
|
|
118496
|
-
value: _vm.
|
|
118415
|
+
value: _vm.searchForm.modelType,
|
|
118497
118416
|
callback: function ($$v) {
|
|
118498
|
-
_vm.
|
|
118417
|
+
_vm.$set(_vm.searchForm, "modelType", $$v);
|
|
118499
118418
|
},
|
|
118500
|
-
expression: "
|
|
118419
|
+
expression: "searchForm.modelType"
|
|
118501
118420
|
}
|
|
118502
|
-
}
|
|
118503
|
-
|
|
118504
|
-
|
|
118505
|
-
|
|
118506
|
-
|
|
118507
|
-
|
|
118508
|
-
|
|
118509
|
-
|
|
118421
|
+
}, _vm._l(_vm.tabOpts, function (item) {
|
|
118422
|
+
return _c('el-tab-pane', {
|
|
118423
|
+
key: item.name,
|
|
118424
|
+
attrs: {
|
|
118425
|
+
"name": item.name,
|
|
118426
|
+
"label": item.label
|
|
118427
|
+
}
|
|
118428
|
+
});
|
|
118429
|
+
}), 1)], 1) : _vm._e(), _c('div', {
|
|
118430
|
+
directives: [{
|
|
118431
|
+
name: "loading",
|
|
118432
|
+
rawName: "v-loading",
|
|
118433
|
+
value: _vm.loading,
|
|
118434
|
+
expression: "loading"
|
|
118435
|
+
}],
|
|
118436
|
+
staticClass: "list hidden-scrollbar"
|
|
118437
|
+
}, [_vm.tableTotal ? _vm._l(_vm.tableData, function (t, i) {
|
|
118438
|
+
return _c('div', {
|
|
118439
|
+
key: i,
|
|
118440
|
+
staticClass: "list-item grid grid-cols-2 mb16"
|
|
118441
|
+
}, [_c('div', {
|
|
118442
|
+
staticClass: "desc"
|
|
118443
|
+
}, [_c('h3', {
|
|
118444
|
+
staticClass: "beyond_eip mb16"
|
|
118445
|
+
}, [_vm._v(" " + _vm._s(t.templatesTitle) + " ")]), _c('p', {
|
|
118446
|
+
staticClass: "beyond_eip mb8"
|
|
118447
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.apply_scene")) + ":" + _vm._s(t.scene) + " ")]), _c('p', [_vm._v(" " + _vm._s(_vm.$i18n.t("common.update_on")) + _vm._s(_vm.parseTime(t.gmtModify, "{y}-{m}-{d}")) + " ")])]), _c('div', {
|
|
118448
|
+
staticClass: "operate"
|
|
118449
|
+
}, [_c('button', {
|
|
118450
|
+
staticClass: "operate-detail",
|
|
118451
|
+
on: {
|
|
118452
|
+
"click": function ($event) {
|
|
118453
|
+
return _vm.showSetTemplate(t);
|
|
118454
|
+
}
|
|
118455
|
+
}
|
|
118456
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.detail"))), _c('i', {
|
|
118457
|
+
staticClass: "dss-iconfont icon-arrow"
|
|
118458
|
+
})]), _c('div', {
|
|
118459
|
+
staticClass: "operate-btns"
|
|
118460
|
+
}, [_vm.searchForm.type == 2 || _vm.searchForm.type == 1 && _vm.userId == 1 ? _c('button', {
|
|
118461
|
+
staticClass: "operate-btn operate-btn-linear mr8",
|
|
118462
|
+
on: {
|
|
118463
|
+
"click": function ($event) {
|
|
118464
|
+
return _vm.del(t.id);
|
|
118465
|
+
}
|
|
118466
|
+
}
|
|
118467
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.delete")) + " ")]) : _vm._e(), _vm.searchForm.type === 2 && _vm.userId === 1 ? _c('el-button', {
|
|
118468
|
+
staticClass: "operate-btn-setsys mr8",
|
|
118469
|
+
attrs: {
|
|
118470
|
+
"type": "primary",
|
|
118471
|
+
"size": "small"
|
|
118472
|
+
},
|
|
118473
|
+
on: {
|
|
118474
|
+
"click": function ($event) {
|
|
118475
|
+
return _vm.showSetSystem(t);
|
|
118476
|
+
}
|
|
118477
|
+
}
|
|
118478
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.set_system_template")) + " ")]) : _vm._e(), t.isShowDownload === 1 ? _c('el-button', {
|
|
118479
|
+
staticClass: "mr8",
|
|
118480
|
+
attrs: {
|
|
118481
|
+
"type": "primary",
|
|
118482
|
+
"size": "small"
|
|
118483
|
+
},
|
|
118484
|
+
on: {
|
|
118485
|
+
"click": function ($event) {
|
|
118486
|
+
return _vm.downloadTem(t);
|
|
118487
|
+
}
|
|
118488
|
+
}
|
|
118489
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.download")) + " ")]) : _vm._e(), _c('el-button', {
|
|
118490
|
+
attrs: {
|
|
118491
|
+
"type": "primary",
|
|
118492
|
+
"size": "small"
|
|
118493
|
+
},
|
|
118494
|
+
on: {
|
|
118495
|
+
"click": function ($event) {
|
|
118496
|
+
return _vm.setMailTemplate(t);
|
|
118497
|
+
}
|
|
118498
|
+
}
|
|
118499
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.apply")) + " ")])], 1)])]);
|
|
118500
|
+
}) : _vm._e(), !_vm.tableTotal ? _c('div', {
|
|
118501
|
+
staticClass: "w-full h-full flex items-center justify-center"
|
|
118502
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.no_data")) + " ")]) : _vm._e()], 2), _c('div', {
|
|
118503
|
+
staticClass: "list-page"
|
|
118504
|
+
}, [_c('el-pagination', {
|
|
118510
118505
|
attrs: {
|
|
118511
|
-
"
|
|
118506
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118507
|
+
"total": _vm.tableTotal,
|
|
118508
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118509
|
+
"pager-count": 5,
|
|
118510
|
+
"small": "",
|
|
118511
|
+
"layout": "total, prev, pager, next, jumper"
|
|
118512
118512
|
},
|
|
118513
|
-
|
|
118514
|
-
|
|
118515
|
-
callback: function ($$v) {
|
|
118516
|
-
_vm.mailTitleInput = $$v;
|
|
118517
|
-
},
|
|
118518
|
-
expression: "mailTitleInput"
|
|
118513
|
+
on: {
|
|
118514
|
+
"current-change": _vm.changePage
|
|
118519
118515
|
}
|
|
118520
|
-
},
|
|
118516
|
+
})], 1), _c('el-drawer', {
|
|
118521
118517
|
attrs: {
|
|
118522
|
-
"
|
|
118523
|
-
"
|
|
118518
|
+
"visible": _vm.isShowSet,
|
|
118519
|
+
"with-header": false,
|
|
118520
|
+
"wrapper-closable": false,
|
|
118521
|
+
"append-to-body": "",
|
|
118522
|
+
"size": "800px"
|
|
118524
118523
|
},
|
|
118525
118524
|
on: {
|
|
118526
|
-
"
|
|
118527
|
-
_vm.
|
|
118528
|
-
_vm.searchForm.content = '';
|
|
118529
|
-
_vm.searchForm.mailSubject = '';
|
|
118525
|
+
"update:visible": function ($event) {
|
|
118526
|
+
_vm.isShowSet = $event;
|
|
118530
118527
|
}
|
|
118528
|
+
}
|
|
118529
|
+
}, [_vm.isShowSet ? _c('set-template', {
|
|
118530
|
+
attrs: {
|
|
118531
|
+
"id": _vm.setId,
|
|
118532
|
+
"rowData": _vm.rowData,
|
|
118533
|
+
"selectType": _vm.searchForm.type
|
|
118531
118534
|
},
|
|
118532
|
-
|
|
118533
|
-
|
|
118534
|
-
|
|
118535
|
-
|
|
118536
|
-
_vm.mailTitleSelect = $$v;
|
|
118535
|
+
on: {
|
|
118536
|
+
"init": function ($event) {
|
|
118537
|
+
_vm.searchForm.currentPage = 1;
|
|
118538
|
+
_vm.init();
|
|
118537
118539
|
},
|
|
118538
|
-
|
|
118540
|
+
"close": function ($event) {
|
|
118541
|
+
_vm.setId = 0;
|
|
118542
|
+
_vm.isShowSet = false;
|
|
118543
|
+
}
|
|
118539
118544
|
}
|
|
118540
|
-
},
|
|
118545
|
+
}) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
|
|
118541
118546
|
attrs: {
|
|
118542
|
-
"
|
|
118543
|
-
"
|
|
118547
|
+
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118548
|
+
"tabOpts": _vm.tabOpts,
|
|
118549
|
+
"mailId": _vm.mailId
|
|
118550
|
+
},
|
|
118551
|
+
on: {
|
|
118552
|
+
"closeDialog": _vm.closeDialog
|
|
118544
118553
|
}
|
|
118545
|
-
})
|
|
118546
|
-
|
|
118547
|
-
|
|
118548
|
-
|
|
118554
|
+
}) : _vm._e()], 1);
|
|
118555
|
+
};
|
|
118556
|
+
var TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns = [];
|
|
118557
|
+
|
|
118558
|
+
;// ./src/api/send/template.js
|
|
118559
|
+
|
|
118560
|
+
// 分页查看模板列表
|
|
118561
|
+
async function getTemplateList(params) {
|
|
118562
|
+
let res = await request_get("/edm/template/templates", params);
|
|
118563
|
+
return res;
|
|
118564
|
+
}
|
|
118565
|
+
// 添加模板
|
|
118566
|
+
async function addTemplate(data) {
|
|
118567
|
+
let res = await request_post("/edm/template/addTemplate", data);
|
|
118568
|
+
return res;
|
|
118569
|
+
}
|
|
118570
|
+
// 编辑模板
|
|
118571
|
+
async function editTemplate(data) {
|
|
118572
|
+
let res = await request_post("/edm/template/editTemplate", data);
|
|
118573
|
+
return res;
|
|
118574
|
+
}
|
|
118575
|
+
// 删除模板
|
|
118576
|
+
async function delTemplate(data) {
|
|
118577
|
+
let res = await request_del(`/edm/template/delTemplate/${data.id}`);
|
|
118578
|
+
return res;
|
|
118579
|
+
}
|
|
118580
|
+
// 设为系统模版
|
|
118581
|
+
async function setSysTemplate(data) {
|
|
118582
|
+
let res = await request_put(`/edm/template/setSysTemplate`, data);
|
|
118583
|
+
return res;
|
|
118584
|
+
}
|
|
118585
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=template&id=87417d06&scoped=true
|
|
118586
|
+
var SetTemplatevue_type_template_id_87417d06_scoped_true_render = function render() {
|
|
118587
|
+
var _vm = this,
|
|
118588
|
+
_c = _vm._self._c;
|
|
118589
|
+
return _c('div', {
|
|
118590
|
+
staticClass: "drawer"
|
|
118591
|
+
}, [_c('div', {
|
|
118592
|
+
staticClass: "drawer-head"
|
|
118593
|
+
}, [_c('h3', [_vm._v(" " + _vm._s(_vm.id ? `${_vm.$i18n.t("template.edit_template")}` : `${_vm.$i18n.t("template.new_template")}`) + " ")]), _c('button', {
|
|
118594
|
+
staticClass: "close-btn",
|
|
118595
|
+
on: {
|
|
118596
|
+
"click": function ($event) {
|
|
118597
|
+
return _vm.close();
|
|
118598
|
+
}
|
|
118549
118599
|
}
|
|
118550
|
-
}
|
|
118600
|
+
}, [_c('i', {
|
|
118601
|
+
staticClass: "dss-iconfont icon-close"
|
|
118602
|
+
})])]), _c('div', {
|
|
118603
|
+
staticClass: "drawer-body hidden-scrollbar"
|
|
118604
|
+
}, [_c('el-form', {
|
|
118605
|
+
ref: "form",
|
|
118551
118606
|
attrs: {
|
|
118552
|
-
"
|
|
118607
|
+
"model": _vm.form,
|
|
118608
|
+
"rules": _vm.verifyForm
|
|
118553
118609
|
}
|
|
118554
118610
|
}, [_c('div', {
|
|
118555
|
-
staticClass: "
|
|
118556
|
-
}, [_c('span', {
|
|
118557
|
-
staticClass: "col-span"
|
|
118558
|
-
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118559
|
-
staticClass: "col-select",
|
|
118611
|
+
staticClass: "form-item"
|
|
118612
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118560
118613
|
attrs: {
|
|
118561
|
-
"
|
|
118562
|
-
|
|
118563
|
-
|
|
118614
|
+
"prop": "templatesTitle"
|
|
118615
|
+
}
|
|
118616
|
+
}, [_c('el-input', {
|
|
118617
|
+
attrs: {
|
|
118618
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118619
|
+
"placeholder": _vm.$i18n.t('common.please_input') + `(30` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118620
|
+
"clearable": ""
|
|
118564
118621
|
},
|
|
118565
118622
|
model: {
|
|
118566
|
-
value: _vm.
|
|
118623
|
+
value: _vm.form.templatesTitle,
|
|
118567
118624
|
callback: function ($$v) {
|
|
118568
|
-
_vm.$set(_vm.
|
|
118625
|
+
_vm.$set(_vm.form, "templatesTitle", $$v);
|
|
118569
118626
|
},
|
|
118570
|
-
expression: "
|
|
118571
|
-
}
|
|
118572
|
-
}, _vm._l(_vm.language, function (item) {
|
|
118573
|
-
return _c('el-option', {
|
|
118574
|
-
key: item.value,
|
|
118575
|
-
attrs: {
|
|
118576
|
-
"value": item.value,
|
|
118577
|
-
"label": item.label
|
|
118578
|
-
}
|
|
118579
|
-
});
|
|
118580
|
-
}), 1)], 1)])], 1), _c('el-row', {
|
|
118581
|
-
staticStyle: {
|
|
118582
|
-
"margin-top": "8px"
|
|
118583
|
-
},
|
|
118584
|
-
attrs: {
|
|
118585
|
-
"gutter": 12
|
|
118627
|
+
expression: "form.templatesTitle"
|
|
118586
118628
|
}
|
|
118587
|
-
},
|
|
118629
|
+
})], 1)], 1), _c('div', {
|
|
118630
|
+
staticClass: "form-item"
|
|
118631
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
|
|
118588
118632
|
attrs: {
|
|
118589
|
-
"
|
|
118633
|
+
"prop": "mailSubject"
|
|
118590
118634
|
}
|
|
118591
|
-
}, [_c('
|
|
118592
|
-
|
|
118593
|
-
}, [_c('span', {
|
|
118594
|
-
staticClass: "col-span"
|
|
118595
|
-
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118596
|
-
staticClass: "col-select",
|
|
118635
|
+
}, [_c('el-input', {
|
|
118636
|
+
ref: "mailSubjectIpt",
|
|
118597
118637
|
attrs: {
|
|
118598
|
-
"
|
|
118638
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118639
|
+
"placeholder": _vm.$i18n.t('common.please_input'),
|
|
118599
118640
|
"clearable": ""
|
|
118600
118641
|
},
|
|
118601
118642
|
on: {
|
|
118602
|
-
"
|
|
118643
|
+
"focus": function ($event) {
|
|
118644
|
+
_vm.isFocusSubject = true;
|
|
118645
|
+
}
|
|
118603
118646
|
},
|
|
118604
118647
|
model: {
|
|
118605
|
-
value: _vm.
|
|
118648
|
+
value: _vm.form.mailSubject,
|
|
118606
118649
|
callback: function ($$v) {
|
|
118607
|
-
_vm.$set(_vm.
|
|
118650
|
+
_vm.$set(_vm.form, "mailSubject", $$v);
|
|
118608
118651
|
},
|
|
118609
|
-
expression: "
|
|
118652
|
+
expression: "form.mailSubject"
|
|
118610
118653
|
}
|
|
118611
|
-
},
|
|
118612
|
-
|
|
118654
|
+
})], 1)], 1), _c('div', {
|
|
118655
|
+
staticClass: "form-editor mb24"
|
|
118656
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.content")))]), _c('div', {
|
|
118657
|
+
staticClass: "form-editor-wrap"
|
|
118658
|
+
}, [_c('editor', {
|
|
118659
|
+
ref: "templateContent",
|
|
118613
118660
|
attrs: {
|
|
118614
|
-
"
|
|
118615
|
-
"
|
|
118661
|
+
"height": 400,
|
|
118662
|
+
"theme": "light"
|
|
118663
|
+
},
|
|
118664
|
+
on: {
|
|
118665
|
+
"click": function ($event) {
|
|
118666
|
+
_vm.isFocusSubject = false;
|
|
118667
|
+
}
|
|
118616
118668
|
}
|
|
118617
|
-
}), _c('
|
|
118618
|
-
|
|
118669
|
+
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118670
|
+
staticClass: "form-tool"
|
|
118671
|
+
}, [_c('div', {
|
|
118672
|
+
staticClass: "form-tool-title"
|
|
118673
|
+
}, [_c('i', {
|
|
118674
|
+
staticClass: "dss-iconfont icon-info"
|
|
118675
|
+
}), _c('p', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.template_var")))])]), _c('div', {
|
|
118676
|
+
staticClass: "form-tool-main"
|
|
118677
|
+
}, [_c('button', {
|
|
118678
|
+
staticClass: "mb8 mr16",
|
|
118619
118679
|
attrs: {
|
|
118620
|
-
"
|
|
118621
|
-
|
|
118680
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118681
|
+
},
|
|
118682
|
+
on: {
|
|
118683
|
+
"click": function ($event) {
|
|
118684
|
+
$event.preventDefault();
|
|
118685
|
+
return _vm.setVariable(0);
|
|
118686
|
+
}
|
|
118622
118687
|
}
|
|
118623
|
-
}
|
|
118688
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_name")) + " ")]), _c('button', {
|
|
118689
|
+
staticClass: "mb8 mr16",
|
|
118690
|
+
on: {
|
|
118691
|
+
"click": function ($event) {
|
|
118692
|
+
$event.preventDefault();
|
|
118693
|
+
return _vm.setVariable(3);
|
|
118694
|
+
}
|
|
118695
|
+
}
|
|
118696
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_Id")) + " ")]), _c('button', {
|
|
118697
|
+
staticClass: "mb8 mr16",
|
|
118698
|
+
attrs: {
|
|
118699
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118700
|
+
},
|
|
118701
|
+
on: {
|
|
118702
|
+
"click": function ($event) {
|
|
118703
|
+
$event.preventDefault();
|
|
118704
|
+
return _vm.setVariable(1);
|
|
118705
|
+
}
|
|
118706
|
+
}
|
|
118707
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.fans_num")) + " ")]), _c('button', {
|
|
118624
118708
|
attrs: {
|
|
118625
|
-
"
|
|
118709
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118710
|
+
},
|
|
118711
|
+
on: {
|
|
118712
|
+
"click": function ($event) {
|
|
118713
|
+
$event.preventDefault();
|
|
118714
|
+
return _vm.setVariable(2);
|
|
118715
|
+
}
|
|
118626
118716
|
}
|
|
118627
|
-
}, [_c('div', {
|
|
118628
|
-
staticClass: "
|
|
118629
|
-
}, [_c('span', {
|
|
118630
|
-
staticClass: "col-span"
|
|
118631
|
-
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118632
|
-
staticClass: "col-select",
|
|
118717
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_link")) + " ")])])]) : _vm._e()], 1)]), _c('div', {
|
|
118718
|
+
staticClass: "form-item"
|
|
118719
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118633
118720
|
attrs: {
|
|
118634
|
-
"
|
|
118721
|
+
"prop": "scene"
|
|
118722
|
+
}
|
|
118723
|
+
}, [_c('el-input', {
|
|
118724
|
+
attrs: {
|
|
118725
|
+
"placeholder": _vm.$i18n.t('common.please_input') + `(20` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118726
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118635
118727
|
"clearable": ""
|
|
118636
118728
|
},
|
|
118637
118729
|
model: {
|
|
118638
|
-
value: _vm.
|
|
118730
|
+
value: _vm.form.scene,
|
|
118639
118731
|
callback: function ($$v) {
|
|
118640
|
-
_vm.$set(_vm.
|
|
118732
|
+
_vm.$set(_vm.form, "scene", $$v);
|
|
118641
118733
|
},
|
|
118642
|
-
expression: "
|
|
118643
|
-
}
|
|
118644
|
-
}, [_c('el-option', {
|
|
118645
|
-
key: 1,
|
|
118646
|
-
attrs: {
|
|
118647
|
-
"value": true,
|
|
118648
|
-
"label": "公开"
|
|
118649
|
-
}
|
|
118650
|
-
}), _c('el-option', {
|
|
118651
|
-
key: 2,
|
|
118652
|
-
attrs: {
|
|
118653
|
-
"value": false,
|
|
118654
|
-
"label": "私有"
|
|
118734
|
+
expression: "form.scene"
|
|
118655
118735
|
}
|
|
118656
|
-
})], 1)], 1)
|
|
118736
|
+
})], 1)], 1), _c('div', {
|
|
118737
|
+
staticClass: "form-item mb24"
|
|
118738
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118657
118739
|
attrs: {
|
|
118658
|
-
"
|
|
118740
|
+
"prop": "modelLanguage"
|
|
118659
118741
|
}
|
|
118660
|
-
}, [_c('
|
|
118661
|
-
staticClass: "col-item"
|
|
118662
|
-
}, [_c('span', {
|
|
118663
|
-
staticClass: "col-span"
|
|
118664
|
-
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118665
|
-
staticClass: "col-select",
|
|
118742
|
+
}, [_c('el-select', {
|
|
118666
118743
|
attrs: {
|
|
118667
118744
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118668
|
-
"
|
|
118669
|
-
"
|
|
118745
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118746
|
+
"clearable": ""
|
|
118670
118747
|
},
|
|
118671
118748
|
model: {
|
|
118672
|
-
value: _vm.
|
|
118749
|
+
value: _vm.form.modelLanguage,
|
|
118673
118750
|
callback: function ($$v) {
|
|
118674
|
-
_vm.$set(_vm.
|
|
118751
|
+
_vm.$set(_vm.form, "modelLanguage", $$v);
|
|
118675
118752
|
},
|
|
118676
|
-
expression: "
|
|
118753
|
+
expression: "form.modelLanguage"
|
|
118677
118754
|
}
|
|
118678
|
-
}, _vm._l(_vm.
|
|
118755
|
+
}, _vm._l(_vm.enumData.language, function (t, i) {
|
|
118679
118756
|
return _c('el-option', {
|
|
118680
|
-
key:
|
|
118757
|
+
key: i,
|
|
118681
118758
|
attrs: {
|
|
118682
|
-
"
|
|
118683
|
-
"
|
|
118759
|
+
"value": Number(t.value),
|
|
118760
|
+
"label": t.label
|
|
118684
118761
|
}
|
|
118685
118762
|
});
|
|
118686
|
-
}), 1)], 1)])], 1), _c('
|
|
118687
|
-
|
|
118688
|
-
|
|
118689
|
-
|
|
118690
|
-
attrs: {
|
|
118691
|
-
"gutter": 20
|
|
118692
|
-
}
|
|
118693
|
-
}, [_c('el-col', {
|
|
118694
|
-
attrs: {
|
|
118695
|
-
"span": 24
|
|
118696
|
-
}
|
|
118697
|
-
}, [_c('div', {
|
|
118698
|
-
staticClass: "btns_box"
|
|
118699
|
-
}, [_c('div', [_c('el-button', {
|
|
118700
|
-
attrs: {
|
|
118701
|
-
"type": "primary"
|
|
118702
|
-
},
|
|
118763
|
+
}), 1)], 1)], 1)])], 1), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118764
|
+
staticClass: "drawer-foot"
|
|
118765
|
+
}, [_c('button', {
|
|
118766
|
+
staticClass: "drawer-btn drawer-btn-linear mr24",
|
|
118703
118767
|
on: {
|
|
118704
118768
|
"click": function ($event) {
|
|
118705
|
-
_vm.
|
|
118706
|
-
_vm.getCardList();
|
|
118769
|
+
return _vm.close();
|
|
118707
118770
|
}
|
|
118708
118771
|
}
|
|
118709
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118710
|
-
|
|
118711
|
-
"click": _vm.resetEvt
|
|
118712
|
-
}
|
|
118713
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118714
|
-
staticStyle: {
|
|
118715
|
-
"display": "flex",
|
|
118716
|
-
"align-items": "center"
|
|
118717
|
-
}
|
|
118718
|
-
}, [_c('div', {
|
|
118719
|
-
staticClass: "right_sort"
|
|
118720
|
-
}, [_c('el-dropdown', {
|
|
118721
|
-
attrs: {
|
|
118722
|
-
"placement": "bottom"
|
|
118723
|
-
}
|
|
118724
|
-
}, [_c('div', {
|
|
118725
|
-
staticClass: "sort_btn"
|
|
118726
|
-
}, [_c('i', {
|
|
118727
|
-
staticClass: "dss-iconfont"
|
|
118728
|
-
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118729
|
-
attrs: {
|
|
118730
|
-
"slot": "dropdown"
|
|
118731
|
-
},
|
|
118732
|
-
slot: "dropdown"
|
|
118733
|
-
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118734
|
-
return _c('el-dropdown-item', {
|
|
118735
|
-
key: index,
|
|
118736
|
-
staticStyle: {
|
|
118737
|
-
"white-space": "nowrap"
|
|
118738
|
-
},
|
|
118739
|
-
attrs: {
|
|
118740
|
-
"command": item.value
|
|
118741
|
-
},
|
|
118742
|
-
nativeOn: {
|
|
118743
|
-
"click": function ($event) {
|
|
118744
|
-
return _vm.clickDropdownItem(item);
|
|
118745
|
-
}
|
|
118746
|
-
}
|
|
118747
|
-
}, [_vm._v(_vm._s(item.label))]);
|
|
118748
|
-
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118749
|
-
directives: [{
|
|
118750
|
-
name: "loading",
|
|
118751
|
-
rawName: "v-loading",
|
|
118752
|
-
value: _vm.loading,
|
|
118753
|
-
expression: "loading"
|
|
118754
|
-
}],
|
|
118755
|
-
staticClass: "temp_box"
|
|
118756
|
-
}, [_vm.templateList.length ? _c('div', {
|
|
118757
|
-
staticClass: "temp_list"
|
|
118758
|
-
}, _vm._l(_vm.templateList, function (item) {
|
|
118759
|
-
return _c('div', {
|
|
118760
|
-
key: item.id,
|
|
118761
|
-
staticClass: "temp_item"
|
|
118762
|
-
}, [_c('div', {
|
|
118763
|
-
staticClass: "temp_content"
|
|
118764
|
-
}, [_c('div', {
|
|
118765
|
-
staticClass: "temp_top"
|
|
118766
|
-
}, [_c('div', {
|
|
118767
|
-
staticClass: "temp_title"
|
|
118768
|
-
}, [_c('div', {
|
|
118769
|
-
staticClass: "title_text"
|
|
118770
|
-
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118771
|
-
staticClass: "more_icon",
|
|
118772
|
-
on: {
|
|
118773
|
-
"click": function ($event) {
|
|
118774
|
-
return _vm.toDetail(item);
|
|
118775
|
-
}
|
|
118776
|
-
}
|
|
118777
|
-
}, [_vm._v(" 详情"), _c('i', {
|
|
118778
|
-
staticClass: "el-icon-arrow-right"
|
|
118779
|
-
})])]), _c('div', {
|
|
118780
|
-
staticClass: "num_box"
|
|
118781
|
-
}, [_c('div', {
|
|
118782
|
-
staticClass: "lang_box"
|
|
118783
|
-
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), item.attachmentNum ? _c('div', {
|
|
118784
|
-
staticClass: "lang_box"
|
|
118785
|
-
}, [_vm._v(" 附件:" + _vm._s(item.attachmentNum) + "个 ")]) : _vm._e(), item.productCardNum ? _c('div', {
|
|
118786
|
-
staticClass: "lang_box"
|
|
118787
|
-
}, [_vm._v(" 商品卡:" + _vm._s(item.productCardNum) + "个 ")]) : _vm._e()])]), _c('div', {
|
|
118788
|
-
staticClass: "temp_middle"
|
|
118789
|
-
}, [_c('div', {
|
|
118790
|
-
staticClass: "nu_box"
|
|
118791
|
-
}, [_c('div', {
|
|
118792
|
-
staticClass: "nu_title"
|
|
118793
|
-
}, [_vm._v("送达率")]), _c('div', {
|
|
118794
|
-
staticClass: "nu_number"
|
|
118795
|
-
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118796
|
-
staticClass: "nu_box"
|
|
118797
|
-
}, [_c('div', {
|
|
118798
|
-
staticClass: "nu_title"
|
|
118799
|
-
}, [_vm._v("打开率")]), _c('div', {
|
|
118800
|
-
staticClass: "nu_number"
|
|
118801
|
-
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118802
|
-
staticClass: "nu_box"
|
|
118803
|
-
}, [_c('div', {
|
|
118804
|
-
staticClass: "nu_title"
|
|
118805
|
-
}, [_vm._v("回复率")]), _c('div', {
|
|
118806
|
-
staticClass: "nu_number"
|
|
118807
|
-
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118808
|
-
staticClass: "nu_box"
|
|
118809
|
-
}, [_c('div', {
|
|
118810
|
-
staticClass: "nu_title"
|
|
118811
|
-
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118812
|
-
staticClass: "nu_number"
|
|
118813
|
-
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118814
|
-
staticClass: "tem_bottom"
|
|
118815
|
-
}, [_c('div', {
|
|
118816
|
-
staticClass: "tem_desc"
|
|
118817
|
-
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118818
|
-
staticClass: "tem_desc"
|
|
118819
|
-
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118820
|
-
staticClass: "desc_btns"
|
|
118821
|
-
}, [_c('div', {
|
|
118822
|
-
staticClass: "desc_text"
|
|
118823
|
-
}, [_c('div', {
|
|
118824
|
-
staticClass: "tem_desc"
|
|
118825
|
-
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118826
|
-
staticClass: "tem_desc"
|
|
118827
|
-
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118828
|
-
staticClass: "apply_btn"
|
|
118829
|
-
}, [_c('el-button', {
|
|
118830
|
-
attrs: {
|
|
118831
|
-
"type": "primary"
|
|
118832
|
-
},
|
|
118833
|
-
on: {
|
|
118834
|
-
"click": function ($event) {
|
|
118835
|
-
return _vm.setMailTemplate(item);
|
|
118836
|
-
}
|
|
118837
|
-
}
|
|
118838
|
-
}, [_vm._v("应用")])], 1)])])])]);
|
|
118839
|
-
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118840
|
-
staticClass: "page_box"
|
|
118841
|
-
}, [_c('el-pagination', {
|
|
118772
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.cancle")) + " ")]), _c('button', {
|
|
118773
|
+
staticClass: "drawer-btn drawer-btn-face",
|
|
118842
118774
|
attrs: {
|
|
118843
|
-
"
|
|
118844
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118845
|
-
"layout": "total,prev, pager, next, jumper",
|
|
118846
|
-
"total": _vm.total
|
|
118775
|
+
"disabled": _vm.isSubmit
|
|
118847
118776
|
},
|
|
118848
118777
|
on: {
|
|
118849
|
-
"
|
|
118850
|
-
"current-change": _vm.handleCurrentChange,
|
|
118851
|
-
"update:currentPage": function ($event) {
|
|
118852
|
-
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118853
|
-
},
|
|
118854
|
-
"update:current-page": function ($event) {
|
|
118855
|
-
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118856
|
-
}
|
|
118778
|
+
"click": _vm.submit
|
|
118857
118779
|
}
|
|
118858
|
-
}
|
|
118780
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.confirm")) + " "), _vm.isSubmit ? _c('i', {
|
|
118781
|
+
staticClass: "el-icon-loading"
|
|
118782
|
+
}) : _vm._e()])]) : _vm._e()]);
|
|
118859
118783
|
};
|
|
118860
|
-
var
|
|
118861
|
-
|
|
118862
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=d1b92a60&scoped=true
|
|
118863
|
-
|
|
118864
|
-
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
118865
|
-
|
|
118866
|
-
const TemplateCom_const_language = [{
|
|
118867
|
-
value: '7',
|
|
118868
|
-
label: '汉语',
|
|
118869
|
-
enLabel: 'Chinese'
|
|
118870
|
-
}, {
|
|
118871
|
-
value: '1',
|
|
118872
|
-
label: '英语',
|
|
118873
|
-
enLabel: 'English'
|
|
118874
|
-
}, {
|
|
118875
|
-
value: '3',
|
|
118876
|
-
label: '法语',
|
|
118877
|
-
enLabel: 'French'
|
|
118878
|
-
}, {
|
|
118879
|
-
value: '8',
|
|
118880
|
-
label: '德语',
|
|
118881
|
-
enLabel: 'German'
|
|
118882
|
-
}, {
|
|
118883
|
-
value: '6',
|
|
118884
|
-
label: '日语',
|
|
118885
|
-
enLabel: 'Japanese'
|
|
118886
|
-
}, {
|
|
118887
|
-
value: '9',
|
|
118888
|
-
label: '韩语',
|
|
118889
|
-
enLabel: 'Korean'
|
|
118890
|
-
}, {
|
|
118891
|
-
value: '10',
|
|
118892
|
-
label: '越南语',
|
|
118893
|
-
enLabel: 'Vietnamese'
|
|
118894
|
-
}, {
|
|
118895
|
-
value: '11',
|
|
118896
|
-
label: '泰国语',
|
|
118897
|
-
enLabel: 'Thai'
|
|
118898
|
-
}, {
|
|
118899
|
-
value: '12',
|
|
118900
|
-
label: '菲律宾语',
|
|
118901
|
-
enLabel: 'Filipino'
|
|
118902
|
-
}, {
|
|
118903
|
-
value: '13',
|
|
118904
|
-
label: '印度尼西亚语',
|
|
118905
|
-
enLabel: 'Indonesian'
|
|
118906
|
-
}, {
|
|
118907
|
-
value: '14',
|
|
118908
|
-
label: '俄罗斯语',
|
|
118909
|
-
enLabel: 'Russian'
|
|
118910
|
-
}, {
|
|
118911
|
-
value: '4',
|
|
118912
|
-
label: '西班牙语',
|
|
118913
|
-
enLabel: 'Spanish'
|
|
118914
|
-
}, {
|
|
118915
|
-
value: '15',
|
|
118916
|
-
label: '意大利语',
|
|
118917
|
-
enLabel: 'Italian'
|
|
118918
|
-
}];
|
|
118919
|
-
const sortConfig = [{
|
|
118920
|
-
label: '按创建时间倒序',
|
|
118921
|
-
value: 0
|
|
118922
|
-
}, {
|
|
118923
|
-
label: '按更新时间倒序',
|
|
118924
|
-
value: 1
|
|
118925
|
-
}, {
|
|
118926
|
-
label: '按送达率倒序',
|
|
118927
|
-
value: 2
|
|
118928
|
-
}, {
|
|
118929
|
-
label: '按打开率倒序',
|
|
118930
|
-
value: 3
|
|
118931
|
-
}, {
|
|
118932
|
-
label: '按回复率倒序',
|
|
118933
|
-
value: 4
|
|
118934
|
-
}, {
|
|
118935
|
-
label: '按累计发送数倒序',
|
|
118936
|
-
value: 5
|
|
118937
|
-
}];
|
|
118938
|
-
// 系统模版场景
|
|
118939
|
-
const templateSystemScene = [{
|
|
118940
|
-
value: '1',
|
|
118941
|
-
label: `${src_language.t('template.invite_cooperation')}`
|
|
118942
|
-
},
|
|
118943
|
-
//合作邀请
|
|
118944
|
-
{
|
|
118945
|
-
value: '2',
|
|
118946
|
-
label: `${src_language.t('template.price_negotiation')}`
|
|
118947
|
-
},
|
|
118948
|
-
//价格协商
|
|
118949
|
-
{
|
|
118950
|
-
value: '3',
|
|
118951
|
-
label: `${src_language.t('template.contract_template')}`
|
|
118952
|
-
},
|
|
118953
|
-
//合同模板
|
|
118954
|
-
{
|
|
118955
|
-
value: '4',
|
|
118956
|
-
label: `${src_language.t('template.video_production')}`
|
|
118957
|
-
},
|
|
118958
|
-
//视频制作
|
|
118959
|
-
{
|
|
118960
|
-
value: '5',
|
|
118961
|
-
label: `${src_language.t('template.expense_settlement')}`
|
|
118962
|
-
} //费用结算
|
|
118963
|
-
];
|
|
118964
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
118965
|
-
|
|
118966
|
-
|
|
118784
|
+
var SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns = [];
|
|
118967
118785
|
|
|
118786
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118968
118787
|
|
|
118969
118788
|
|
|
118970
118789
|
|
|
118971
|
-
|
|
118972
|
-
let raw = {
|
|
118973
|
-
templatesTitle: "",
|
|
118974
|
-
//模板标题
|
|
118975
|
-
scene: "",
|
|
118976
|
-
//应用场景
|
|
118977
|
-
mailSubject: "",
|
|
118978
|
-
//邮件主题
|
|
118979
|
-
content: "",
|
|
118980
|
-
//正文
|
|
118981
|
-
type: null,
|
|
118982
|
-
//模版类型 1-系统模板;2-自定义模板
|
|
118983
|
-
modelLanguage: "",
|
|
118984
|
-
//语言
|
|
118985
|
-
isShared: "",
|
|
118986
|
-
//是否共享
|
|
118987
|
-
userId: "",
|
|
118988
|
-
//创建人
|
|
118989
|
-
searchSort: 1,
|
|
118990
|
-
//排序
|
|
118991
|
-
currentPage: 1,
|
|
118992
|
-
pageSize: 10
|
|
118993
|
-
};
|
|
118994
|
-
if (tar) {
|
|
118995
|
-
raw = Object.assign(raw, tar);
|
|
118996
|
-
}
|
|
118997
|
-
return raw;
|
|
118998
|
-
}
|
|
118999
|
-
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
118790
|
+
/* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
|
|
119000
118791
|
components: {
|
|
119001
|
-
|
|
118792
|
+
Editor: Editor
|
|
119002
118793
|
},
|
|
119003
118794
|
props: {
|
|
119004
|
-
|
|
118795
|
+
id: {
|
|
118796
|
+
default: 0,
|
|
118797
|
+
type: Number
|
|
118798
|
+
},
|
|
118799
|
+
rowData: {
|
|
118800
|
+
type: Object,
|
|
118801
|
+
default: () => {
|
|
118802
|
+
return {};
|
|
118803
|
+
}
|
|
118804
|
+
},
|
|
118805
|
+
// 自定义模板/系统模板
|
|
118806
|
+
selectType: {
|
|
119005
118807
|
type: [Number, String],
|
|
119006
118808
|
default: ""
|
|
119007
118809
|
}
|
|
119008
118810
|
},
|
|
119009
118811
|
data() {
|
|
119010
118812
|
return {
|
|
119011
|
-
|
|
119012
|
-
|
|
119013
|
-
|
|
119014
|
-
//
|
|
119015
|
-
|
|
119016
|
-
|
|
119017
|
-
|
|
119018
|
-
|
|
119019
|
-
|
|
119020
|
-
|
|
119021
|
-
|
|
119022
|
-
|
|
119023
|
-
|
|
119024
|
-
|
|
118813
|
+
enumData: {
|
|
118814
|
+
language: language
|
|
118815
|
+
},
|
|
118816
|
+
// 枚举数据
|
|
118817
|
+
form: {
|
|
118818
|
+
// 表单
|
|
118819
|
+
templatesTitle: "",
|
|
118820
|
+
//模板标题
|
|
118821
|
+
mailSubject: "",
|
|
118822
|
+
//邮件标题
|
|
118823
|
+
scene: "",
|
|
118824
|
+
//应用场景
|
|
118825
|
+
modelLanguage: ""
|
|
118826
|
+
},
|
|
118827
|
+
verifyForm: {
|
|
118828
|
+
templatesTitle: [{
|
|
118829
|
+
required: true,
|
|
118830
|
+
message: `${this.$i18n.t("template.title_not_empty")}`,
|
|
118831
|
+
trigger: "blur"
|
|
118832
|
+
}, {
|
|
118833
|
+
max: 30,
|
|
118834
|
+
message: `${this.$i18n.t("template.title_word_limit")}`,
|
|
118835
|
+
trigger: "blur"
|
|
118836
|
+
}],
|
|
118837
|
+
mailSubject: [{
|
|
118838
|
+
required: true,
|
|
118839
|
+
message: `${this.$i18n.t("template.subject_not_empty")}`,
|
|
118840
|
+
trigger: "blur"
|
|
118841
|
+
}],
|
|
118842
|
+
scene: [{
|
|
118843
|
+
required: true,
|
|
118844
|
+
message: `${this.$i18n.t("template.scene_not_empty")}`,
|
|
118845
|
+
trigger: "blur"
|
|
118846
|
+
}, {
|
|
118847
|
+
max: 20,
|
|
118848
|
+
message: `${this.$i18n.t("template.scene_word_limit")}`,
|
|
118849
|
+
trigger: "blur"
|
|
118850
|
+
}],
|
|
118851
|
+
modelLanguage: [{
|
|
118852
|
+
required: true,
|
|
118853
|
+
message: `${this.$i18n.t("template.language_not_empty")}`,
|
|
118854
|
+
trigger: "change"
|
|
118855
|
+
}]
|
|
118856
|
+
},
|
|
118857
|
+
// 标签表单校验规则
|
|
118858
|
+
isFocusSubject: false,
|
|
118859
|
+
// 主题是否获取焦点
|
|
118860
|
+
isSubmit: false // 是否正在提交
|
|
119025
118861
|
};
|
|
119026
118862
|
},
|
|
119027
|
-
|
|
119028
|
-
this.
|
|
119029
|
-
|
|
118863
|
+
created() {
|
|
118864
|
+
if (this.id) {
|
|
118865
|
+
// 初始化
|
|
118866
|
+
this.init();
|
|
118867
|
+
}
|
|
119030
118868
|
},
|
|
119031
118869
|
methods: {
|
|
119032
|
-
//
|
|
119033
|
-
|
|
119034
|
-
|
|
119035
|
-
|
|
119036
|
-
|
|
118870
|
+
// 初始化
|
|
118871
|
+
init() {
|
|
118872
|
+
if (this.id) {
|
|
118873
|
+
setTimeout(() => {
|
|
118874
|
+
this.$refs.templateContent.setContent(this.rowData.content);
|
|
118875
|
+
if (this.selectType == 1) {
|
|
118876
|
+
this.$refs.templateContent.setDisable();
|
|
118877
|
+
}
|
|
118878
|
+
}, 200);
|
|
118879
|
+
this.form = {
|
|
118880
|
+
templatesTitle: this.rowData.templatesTitle,
|
|
118881
|
+
mailSubject: this.rowData.mailSubject,
|
|
118882
|
+
scene: this.rowData.scene,
|
|
118883
|
+
modelLanguage: this.rowData.modelLanguage
|
|
118884
|
+
};
|
|
119037
118885
|
}
|
|
119038
118886
|
},
|
|
119039
|
-
//
|
|
119040
|
-
|
|
119041
|
-
this.$
|
|
119042
|
-
|
|
119043
|
-
|
|
119044
|
-
|
|
119045
|
-
|
|
119046
|
-
|
|
119047
|
-
|
|
119048
|
-
|
|
119049
|
-
|
|
118887
|
+
// 提交
|
|
118888
|
+
submit() {
|
|
118889
|
+
this.$refs.form.validate(valid => {
|
|
118890
|
+
if (valid) {
|
|
118891
|
+
if (this.$refs.templateContent.isEmpty()) {
|
|
118892
|
+
this.$message({
|
|
118893
|
+
type: "warning",
|
|
118894
|
+
message: `${this.$i18n.t("template.no_content")}`
|
|
118895
|
+
});
|
|
118896
|
+
return;
|
|
118897
|
+
}
|
|
118898
|
+
const data = this.form;
|
|
118899
|
+
data.content = this.$refs.templateContent.getContent();
|
|
118900
|
+
this.isSubmit = true;
|
|
118901
|
+
if (this.id) {
|
|
118902
|
+
data.id = this.id;
|
|
118903
|
+
// 编辑
|
|
118904
|
+
editTemplate(data).then(res => {
|
|
118905
|
+
if (res.code == 0) {
|
|
118906
|
+
this.isSubmit = false;
|
|
118907
|
+
this.$emit("init");
|
|
118908
|
+
this.close();
|
|
118909
|
+
this.$message({
|
|
118910
|
+
type: "success",
|
|
118911
|
+
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118912
|
+
});
|
|
118913
|
+
}
|
|
118914
|
+
});
|
|
118915
|
+
} else {
|
|
118916
|
+
// 新增
|
|
118917
|
+
addTemplate(data).then(res => {
|
|
118918
|
+
if (res.code == 0) {
|
|
118919
|
+
this.isSubmit = false;
|
|
118920
|
+
this.$emit("init");
|
|
118921
|
+
this.close();
|
|
118922
|
+
this.$message({
|
|
118923
|
+
type: "success",
|
|
118924
|
+
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118925
|
+
});
|
|
118926
|
+
}
|
|
118927
|
+
});
|
|
118928
|
+
}
|
|
118929
|
+
} else {
|
|
118930
|
+
return false;
|
|
119050
118931
|
}
|
|
119051
118932
|
});
|
|
119052
|
-
window.open(routeData.href, "_blank");
|
|
119053
118933
|
},
|
|
119054
|
-
//
|
|
119055
|
-
|
|
119056
|
-
|
|
119057
|
-
|
|
119058
|
-
|
|
119059
|
-
|
|
119060
|
-
|
|
119061
|
-
|
|
118934
|
+
// 使用变量
|
|
118935
|
+
setVariable(type) {
|
|
118936
|
+
let content = ``;
|
|
118937
|
+
if (this.isFocusSubject) {
|
|
118938
|
+
switch (type) {
|
|
118939
|
+
case 0:
|
|
118940
|
+
// 频道名
|
|
118941
|
+
content = `{$channelName}`;
|
|
118942
|
+
break;
|
|
118943
|
+
case 1:
|
|
118944
|
+
// 粉丝数
|
|
118945
|
+
content = `{$subscriber}`;
|
|
118946
|
+
break;
|
|
118947
|
+
case 2:
|
|
118948
|
+
// 频道链接
|
|
118949
|
+
content = `{$link}`;
|
|
118950
|
+
break;
|
|
118951
|
+
case 3:
|
|
118952
|
+
// 频道id
|
|
118953
|
+
content = `{$channelId}`;
|
|
118954
|
+
break;
|
|
119062
118955
|
}
|
|
118956
|
+
const caretPosition = this.$refs.mailSubjectIpt.$el.firstElementChild.selectionStart;
|
|
118957
|
+
const newValue = this.form.mailSubject.slice(0, caretPosition) + content + this.form.mailSubject.slice(caretPosition);
|
|
118958
|
+
this.form.mailSubject = newValue;
|
|
118959
|
+
this.isFocusSubject = false;
|
|
118960
|
+
} else {
|
|
118961
|
+
switch (type) {
|
|
118962
|
+
case 0:
|
|
118963
|
+
// 频道名
|
|
118964
|
+
content = `{$channelName}`;
|
|
118965
|
+
break;
|
|
118966
|
+
case 1:
|
|
118967
|
+
// 粉丝数
|
|
118968
|
+
content = `{$subscriber}`;
|
|
118969
|
+
break;
|
|
118970
|
+
case 2:
|
|
118971
|
+
// 频道链接
|
|
118972
|
+
content = `{$link}`;
|
|
118973
|
+
break;
|
|
118974
|
+
case 3:
|
|
118975
|
+
// 频道id
|
|
118976
|
+
content = `{$channelId}`;
|
|
118977
|
+
break;
|
|
118978
|
+
}
|
|
118979
|
+
this.$refs.templateContent.insertEditContent(content);
|
|
118980
|
+
}
|
|
118981
|
+
},
|
|
118982
|
+
// 关闭弹窗
|
|
118983
|
+
close() {
|
|
118984
|
+
this.$emit("close");
|
|
118985
|
+
}
|
|
118986
|
+
}
|
|
118987
|
+
});
|
|
118988
|
+
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118989
|
+
/* harmony default export */ var TemplateCom_SetTemplatevue_type_script_lang_js = (SetTemplatevue_type_script_lang_js);
|
|
118990
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118991
|
+
// extracted by mini-css-extract-plugin
|
|
118992
|
+
|
|
118993
|
+
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118994
|
+
|
|
118995
|
+
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue
|
|
118996
|
+
|
|
118997
|
+
|
|
118998
|
+
|
|
118999
|
+
;
|
|
119000
|
+
|
|
119001
|
+
|
|
119002
|
+
/* normalize component */
|
|
119003
|
+
|
|
119004
|
+
var SetTemplate_component = normalizeComponent(
|
|
119005
|
+
TemplateCom_SetTemplatevue_type_script_lang_js,
|
|
119006
|
+
SetTemplatevue_type_template_id_87417d06_scoped_true_render,
|
|
119007
|
+
SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns,
|
|
119008
|
+
false,
|
|
119009
|
+
null,
|
|
119010
|
+
"87417d06",
|
|
119011
|
+
null
|
|
119012
|
+
|
|
119013
|
+
)
|
|
119014
|
+
|
|
119015
|
+
/* harmony default export */ var SetTemplate = (SetTemplate_component.exports);
|
|
119016
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=template&id=3c0d8a32&scoped=true
|
|
119017
|
+
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render = function render() {
|
|
119018
|
+
var _vm = this,
|
|
119019
|
+
_c = _vm._self._c;
|
|
119020
|
+
return _c('el-dialog', {
|
|
119021
|
+
attrs: {
|
|
119022
|
+
"visible": _vm.isShowSetSystemDialog,
|
|
119023
|
+
"close-on-click-modal": false,
|
|
119024
|
+
"title": _vm.$i18n.t('template.set_system_template'),
|
|
119025
|
+
"width": "300px",
|
|
119026
|
+
"append-to-body": ""
|
|
119027
|
+
},
|
|
119028
|
+
on: {
|
|
119029
|
+
"update:visible": function ($event) {
|
|
119030
|
+
_vm.isShowSetSystemDialog = $event;
|
|
119031
|
+
},
|
|
119032
|
+
"close": _vm.closeEvt
|
|
119033
|
+
}
|
|
119034
|
+
}, [_c('div', {
|
|
119035
|
+
staticClass: "form-item flex-col mb24"
|
|
119036
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t('template.choose_type')))]), _c('el-select', {
|
|
119037
|
+
attrs: {
|
|
119038
|
+
"filterable": "",
|
|
119039
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
119040
|
+
"clearable": ""
|
|
119041
|
+
},
|
|
119042
|
+
model: {
|
|
119043
|
+
value: _vm.setSystemForm.modelType,
|
|
119044
|
+
callback: function ($$v) {
|
|
119045
|
+
_vm.$set(_vm.setSystemForm, "modelType", $$v);
|
|
119046
|
+
},
|
|
119047
|
+
expression: "setSystemForm.modelType"
|
|
119048
|
+
}
|
|
119049
|
+
}, _vm._l(_vm.tabOpts, function (item) {
|
|
119050
|
+
return _c('el-option', {
|
|
119051
|
+
key: Number(item.name),
|
|
119052
|
+
attrs: {
|
|
119053
|
+
"value": Number(item.name),
|
|
119054
|
+
"label": item.label
|
|
119063
119055
|
}
|
|
119064
|
-
|
|
119065
|
-
|
|
119066
|
-
|
|
119067
|
-
|
|
119056
|
+
});
|
|
119057
|
+
}), 1)], 1), _c('div', {
|
|
119058
|
+
staticClass: "flex justify-end"
|
|
119059
|
+
}, [_c('button', {
|
|
119060
|
+
staticClass: "form-btn form-btn-disabled mr16",
|
|
119061
|
+
on: {
|
|
119062
|
+
"click": _vm.closeEvt
|
|
119063
|
+
}
|
|
119064
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('writeMail.cancle')) + " ")]), _c('button', {
|
|
119065
|
+
staticClass: "form-btn form-btn-face",
|
|
119066
|
+
on: {
|
|
119067
|
+
"click": _vm.customToSystem
|
|
119068
|
+
}
|
|
119069
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
|
|
119070
|
+
};
|
|
119071
|
+
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns = [];
|
|
119072
|
+
|
|
119073
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119074
|
+
|
|
119075
|
+
/* harmony default export */ var SetSysTemplatevue_type_script_lang_js = ({
|
|
119076
|
+
props: {
|
|
119077
|
+
isShowSetSystem: {
|
|
119078
|
+
type: Boolean,
|
|
119079
|
+
default: false
|
|
119080
|
+
},
|
|
119081
|
+
mailId: {
|
|
119082
|
+
type: [String, Number],
|
|
119083
|
+
default: ""
|
|
119084
|
+
},
|
|
119085
|
+
tabOpts: {
|
|
119086
|
+
type: Array,
|
|
119087
|
+
default: () => {
|
|
119088
|
+
return [];
|
|
119068
119089
|
}
|
|
119069
|
-
|
|
119070
|
-
|
|
119071
|
-
|
|
119072
|
-
|
|
119073
|
-
|
|
119074
|
-
|
|
119090
|
+
}
|
|
119091
|
+
},
|
|
119092
|
+
data() {
|
|
119093
|
+
return {
|
|
119094
|
+
isShowSetSystemDialog: this.isShowSetSystem,
|
|
119095
|
+
setSystemForm: {
|
|
119096
|
+
// 设置系统模板表单
|
|
119097
|
+
id: this.mailId,
|
|
119098
|
+
modelType: ""
|
|
119099
|
+
}
|
|
119100
|
+
};
|
|
119101
|
+
},
|
|
119102
|
+
methods: {
|
|
119103
|
+
customToSystem() {
|
|
119104
|
+
if (!this.setSystemForm.modelType) {
|
|
119105
|
+
this.$message({
|
|
119106
|
+
type: "warning",
|
|
119107
|
+
message: `${this.$i18n.t('common.please_select')}${this.$i18n.t('template.template_type')}`
|
|
119108
|
+
});
|
|
119109
|
+
return;
|
|
119110
|
+
}
|
|
119111
|
+
setSysTemplate(this.setSystemForm).then(res => {
|
|
119112
|
+
if (res.code == 0) {
|
|
119113
|
+
this.closeEvt();
|
|
119114
|
+
this.$message({
|
|
119115
|
+
type: "success",
|
|
119116
|
+
message: `${this.$i18n.t('template.set_success')}`
|
|
119117
|
+
});
|
|
119075
119118
|
} else {
|
|
119076
|
-
this.loading = false;
|
|
119077
119119
|
this.$message.error(res.message);
|
|
119120
|
+
this.closeEvt();
|
|
119078
119121
|
}
|
|
119079
119122
|
});
|
|
119080
119123
|
},
|
|
119081
|
-
|
|
119082
|
-
|
|
119083
|
-
this.
|
|
119084
|
-
this
|
|
119085
|
-
}
|
|
119086
|
-
|
|
119087
|
-
|
|
119088
|
-
|
|
119089
|
-
|
|
119090
|
-
|
|
119091
|
-
|
|
119092
|
-
|
|
119093
|
-
|
|
119094
|
-
|
|
119095
|
-
|
|
119096
|
-
|
|
119097
|
-
|
|
119098
|
-
|
|
119099
|
-
|
|
119124
|
+
closeEvt() {
|
|
119125
|
+
this.setSystemForm.id = "";
|
|
119126
|
+
this.setSystemForm.modelType = "";
|
|
119127
|
+
this.$emit("closeDialog");
|
|
119128
|
+
}
|
|
119129
|
+
}
|
|
119130
|
+
});
|
|
119131
|
+
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119132
|
+
/* harmony default export */ var TemplateCom_SetSysTemplatevue_type_script_lang_js = (SetSysTemplatevue_type_script_lang_js);
|
|
119133
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119134
|
+
// extracted by mini-css-extract-plugin
|
|
119135
|
+
|
|
119136
|
+
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119137
|
+
|
|
119138
|
+
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue
|
|
119139
|
+
|
|
119140
|
+
|
|
119141
|
+
|
|
119142
|
+
;
|
|
119143
|
+
|
|
119144
|
+
|
|
119145
|
+
/* normalize component */
|
|
119146
|
+
|
|
119147
|
+
var SetSysTemplate_component = normalizeComponent(
|
|
119148
|
+
TemplateCom_SetSysTemplatevue_type_script_lang_js,
|
|
119149
|
+
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render,
|
|
119150
|
+
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns,
|
|
119151
|
+
false,
|
|
119152
|
+
null,
|
|
119153
|
+
"3c0d8a32",
|
|
119154
|
+
null
|
|
119155
|
+
|
|
119156
|
+
)
|
|
119157
|
+
|
|
119158
|
+
/* harmony default export */ var SetSysTemplate = (SetSysTemplate_component.exports);
|
|
119159
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119160
|
+
|
|
119161
|
+
|
|
119162
|
+
|
|
119163
|
+
|
|
119164
|
+
|
|
119165
|
+
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119166
|
+
components: {
|
|
119167
|
+
SetTemplate: SetTemplate,
|
|
119168
|
+
SetSysTemplate: SetSysTemplate
|
|
119169
|
+
},
|
|
119170
|
+
props: {
|
|
119171
|
+
userId: {
|
|
119172
|
+
type: [Number, String],
|
|
119173
|
+
default: ""
|
|
119174
|
+
}
|
|
119175
|
+
},
|
|
119176
|
+
data() {
|
|
119177
|
+
return {
|
|
119178
|
+
enumData: {
|
|
119179
|
+
modelLanguage: language,
|
|
119180
|
+
sysLanguage: sysLanguage
|
|
119181
|
+
},
|
|
119182
|
+
// 枚举数据
|
|
119183
|
+
searchForm: {
|
|
119184
|
+
// 检索字段
|
|
119185
|
+
modelType: "1",
|
|
119186
|
+
//模板类型1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119187
|
+
type: 1,
|
|
119188
|
+
//模板选择1-系统模板;2-自定义模板
|
|
119189
|
+
modelLanguage: "",
|
|
119190
|
+
//模板语言
|
|
119191
|
+
currentPage: 1,
|
|
119192
|
+
//当前页
|
|
119193
|
+
pageSize: 10 //当前页条数
|
|
119194
|
+
},
|
|
119195
|
+
// 选项卡 1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119196
|
+
tabOpts: [{
|
|
119197
|
+
name: "1",
|
|
119198
|
+
label: `${this.$i18n.t("template.invite_cooperation")}`
|
|
119199
|
+
},
|
|
119200
|
+
//合作邀请
|
|
119201
|
+
{
|
|
119202
|
+
name: "2",
|
|
119203
|
+
label: `${this.$i18n.t("template.price_negotiation")}`
|
|
119204
|
+
},
|
|
119205
|
+
//价格协商
|
|
119206
|
+
{
|
|
119207
|
+
name: "3",
|
|
119208
|
+
label: `${this.$i18n.t("template.contract_template")}`
|
|
119209
|
+
},
|
|
119210
|
+
//合同模板
|
|
119211
|
+
{
|
|
119212
|
+
name: "4",
|
|
119213
|
+
label: `${this.$i18n.t("template.video_production")}`
|
|
119214
|
+
},
|
|
119215
|
+
//视频制作
|
|
119216
|
+
{
|
|
119217
|
+
name: "5",
|
|
119218
|
+
label: `${this.$i18n.t("template.expense_settlement")}`
|
|
119219
|
+
} //费用结算
|
|
119220
|
+
],
|
|
119221
|
+
loading: false,
|
|
119222
|
+
// 加载中
|
|
119223
|
+
tableData: [],
|
|
119224
|
+
// 表格数据
|
|
119225
|
+
tableTotal: 1,
|
|
119226
|
+
// 表格总数
|
|
119227
|
+
isShowSet: false,
|
|
119228
|
+
// 是否显示模板设置
|
|
119229
|
+
setId: 0,
|
|
119230
|
+
// 设置模板id
|
|
119231
|
+
rowData: null,
|
|
119232
|
+
//选择的模板数据
|
|
119233
|
+
|
|
119234
|
+
isShowSetSystem: false,
|
|
119235
|
+
// 是否显示设置系统模板
|
|
119236
|
+
mailId: ""
|
|
119237
|
+
};
|
|
119238
|
+
},
|
|
119239
|
+
created() {
|
|
119240
|
+
// 初始化
|
|
119241
|
+
this.init();
|
|
119242
|
+
},
|
|
119243
|
+
methods: {
|
|
119244
|
+
// 初始化
|
|
119245
|
+
init() {
|
|
119246
|
+
this.loading = true;
|
|
119247
|
+
if (this.searchForm.type === 2) {
|
|
119248
|
+
delete this.searchForm.modelType;
|
|
119249
|
+
}
|
|
119250
|
+
getTemplateList(this.searchForm).then(res => {
|
|
119251
|
+
this.loading = false;
|
|
119252
|
+
if (res.code == 0) {
|
|
119253
|
+
this.tableData = res.data.rows;
|
|
119254
|
+
this.tableTotal = res.data.total;
|
|
119100
119255
|
} else {
|
|
119101
119256
|
this.$message.error(res.message);
|
|
119102
119257
|
}
|
|
119103
119258
|
});
|
|
119104
119259
|
},
|
|
119105
|
-
//
|
|
119106
|
-
|
|
119107
|
-
this.searchForm.currentPage =
|
|
119108
|
-
this.
|
|
119109
|
-
this.getCardList();
|
|
119260
|
+
// 翻页
|
|
119261
|
+
changePage(curr) {
|
|
119262
|
+
this.searchForm.currentPage = curr;
|
|
119263
|
+
this.init();
|
|
119110
119264
|
},
|
|
119111
|
-
|
|
119265
|
+
// 删除模板
|
|
119266
|
+
del(id) {
|
|
119267
|
+
this.$confirm(this.$t("inboxTable.delMail"), this.$t("inboxTable.tip"), {
|
|
119268
|
+
confirmButtonText: this.$t("inboxTable.confirm"),
|
|
119269
|
+
cancelButtonText: this.$t("inboxTable.cancel"),
|
|
119270
|
+
type: "warning",
|
|
119271
|
+
confirmButtonClass: "confirm_del"
|
|
119272
|
+
}).then(() => {
|
|
119273
|
+
delTemplate({
|
|
119274
|
+
id
|
|
119275
|
+
}).then(res => {
|
|
119276
|
+
if (res.code == 0) {
|
|
119277
|
+
this.init();
|
|
119278
|
+
this.$message({
|
|
119279
|
+
type: "success",
|
|
119280
|
+
message: `${this.$i18n.t("outboxMail.success")}`,
|
|
119281
|
+
duration: 1500
|
|
119282
|
+
});
|
|
119283
|
+
}
|
|
119284
|
+
});
|
|
119285
|
+
}).catch(() => {});
|
|
119286
|
+
},
|
|
119287
|
+
// 设置邮件模板
|
|
119288
|
+
setMailTemplate(data) {
|
|
119289
|
+
this.$emit("setMailTemplate", data);
|
|
119290
|
+
},
|
|
119291
|
+
// 打开编辑模板
|
|
119292
|
+
showSetTemplate(row) {
|
|
119293
|
+
this.setId = row.id;
|
|
119294
|
+
this.rowData = row;
|
|
119295
|
+
this.isShowSet = true;
|
|
119296
|
+
},
|
|
119297
|
+
// 切换选项卡
|
|
119298
|
+
swicthTab(tab) {
|
|
119299
|
+
this.searchForm.modelType = tab.name;
|
|
119112
119300
|
this.searchForm.currentPage = 1;
|
|
119113
|
-
this.
|
|
119114
|
-
this.getCardList();
|
|
119301
|
+
this.init();
|
|
119115
119302
|
},
|
|
119116
|
-
|
|
119117
|
-
|
|
119118
|
-
|
|
119303
|
+
// 时间戳转换
|
|
119304
|
+
parseTime(date, format) {
|
|
119305
|
+
return parseTime(date, format);
|
|
119306
|
+
},
|
|
119307
|
+
// 下载模板
|
|
119308
|
+
downloadTem(obj) {
|
|
119309
|
+
window.location.href = obj.downloadUrl;
|
|
119310
|
+
},
|
|
119311
|
+
// 打开转为系统模版弹窗
|
|
119312
|
+
showSetSystem(row) {
|
|
119313
|
+
this.mailId = row.id;
|
|
119314
|
+
this.isShowSetSystem = true;
|
|
119315
|
+
},
|
|
119316
|
+
// 关闭转为系统模版弹窗
|
|
119317
|
+
closeDialog() {
|
|
119318
|
+
this.isShowSetSystem = false;
|
|
119119
119319
|
}
|
|
119120
119320
|
}
|
|
119121
119321
|
});
|
|
119122
119322
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119123
119323
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
119124
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=
|
|
119324
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
|
|
119325
|
+
// extracted by mini-css-extract-plugin
|
|
119326
|
+
|
|
119327
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
|
|
119328
|
+
|
|
119329
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119125
119330
|
// extracted by mini-css-extract-plugin
|
|
119126
119331
|
|
|
119127
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=
|
|
119332
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119128
119333
|
|
|
119129
119334
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119130
119335
|
|
|
@@ -119133,15 +119338,16 @@ function createSearchForm(tar) {
|
|
|
119133
119338
|
;
|
|
119134
119339
|
|
|
119135
119340
|
|
|
119341
|
+
|
|
119136
119342
|
/* normalize component */
|
|
119137
119343
|
|
|
119138
119344
|
var TemplateList_component = normalizeComponent(
|
|
119139
119345
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119140
|
-
|
|
119141
|
-
|
|
119346
|
+
TemplateListvue_type_template_id_13a1b12d_scoped_true_render,
|
|
119347
|
+
TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns,
|
|
119142
119348
|
false,
|
|
119143
119349
|
null,
|
|
119144
|
-
"
|
|
119350
|
+
"13a1b12d",
|
|
119145
119351
|
null
|
|
119146
119352
|
|
|
119147
119353
|
)
|
|
@@ -121517,406 +121723,6 @@ function inviteEmailSave(data) {
|
|
|
121517
121723
|
function inviteEmailGet(taskId) {
|
|
121518
121724
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121519
121725
|
}
|
|
121520
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=template&id=62cde375&scoped=true
|
|
121521
|
-
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render = function render() {
|
|
121522
|
-
var _vm = this,
|
|
121523
|
-
_c = _vm._self._c;
|
|
121524
|
-
return _c('el-dialog', {
|
|
121525
|
-
attrs: {
|
|
121526
|
-
"visible": _vm.visible,
|
|
121527
|
-
"title": "存为模版",
|
|
121528
|
-
"width": "480px",
|
|
121529
|
-
"before-close": _vm.closeDialog,
|
|
121530
|
-
"custom-class": "setting-nickname-dialog",
|
|
121531
|
-
"close-on-click-modal": false
|
|
121532
|
-
}
|
|
121533
|
-
}, [_c('div', {
|
|
121534
|
-
directives: [{
|
|
121535
|
-
name: "loading",
|
|
121536
|
-
rawName: "v-loading",
|
|
121537
|
-
value: _vm.loading,
|
|
121538
|
-
expression: "loading"
|
|
121539
|
-
}]
|
|
121540
|
-
}, [_c('el-form', {
|
|
121541
|
-
ref: "ruleForm",
|
|
121542
|
-
staticClass: "demo-ruleForm",
|
|
121543
|
-
attrs: {
|
|
121544
|
-
"label-position": "top",
|
|
121545
|
-
"model": _vm.ruleForm,
|
|
121546
|
-
"rules": _vm.rules,
|
|
121547
|
-
"label-width": "100px"
|
|
121548
|
-
}
|
|
121549
|
-
}, [_c('el-form-item', {
|
|
121550
|
-
attrs: {
|
|
121551
|
-
"label": "模版名称",
|
|
121552
|
-
"prop": "templatesTitle"
|
|
121553
|
-
}
|
|
121554
|
-
}, [_c('el-input', {
|
|
121555
|
-
attrs: {
|
|
121556
|
-
"clearable": ""
|
|
121557
|
-
},
|
|
121558
|
-
model: {
|
|
121559
|
-
value: _vm.ruleForm.templatesTitle,
|
|
121560
|
-
callback: function ($$v) {
|
|
121561
|
-
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121562
|
-
},
|
|
121563
|
-
expression: "ruleForm.templatesTitle"
|
|
121564
|
-
}
|
|
121565
|
-
})], 1), _c('el-form-item', {
|
|
121566
|
-
attrs: {
|
|
121567
|
-
"label": "应用场景",
|
|
121568
|
-
"prop": "scene"
|
|
121569
|
-
}
|
|
121570
|
-
}, [_c('el-input', {
|
|
121571
|
-
attrs: {
|
|
121572
|
-
"clearable": ""
|
|
121573
|
-
},
|
|
121574
|
-
model: {
|
|
121575
|
-
value: _vm.ruleForm.scene,
|
|
121576
|
-
callback: function ($$v) {
|
|
121577
|
-
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121578
|
-
},
|
|
121579
|
-
expression: "ruleForm.scene"
|
|
121580
|
-
}
|
|
121581
|
-
})], 1), _c('el-form-item', {
|
|
121582
|
-
attrs: {
|
|
121583
|
-
"label": "语言",
|
|
121584
|
-
"prop": "modelLanguage"
|
|
121585
|
-
}
|
|
121586
|
-
}, [_c('el-select', {
|
|
121587
|
-
attrs: {
|
|
121588
|
-
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121589
|
-
"clearable": "",
|
|
121590
|
-
"filterable": ""
|
|
121591
|
-
},
|
|
121592
|
-
model: {
|
|
121593
|
-
value: _vm.ruleForm.modelLanguage,
|
|
121594
|
-
callback: function ($$v) {
|
|
121595
|
-
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121596
|
-
},
|
|
121597
|
-
expression: "ruleForm.modelLanguage"
|
|
121598
|
-
}
|
|
121599
|
-
}, _vm._l(_vm.language, function (item) {
|
|
121600
|
-
return _c('el-option', {
|
|
121601
|
-
key: item.value,
|
|
121602
|
-
attrs: {
|
|
121603
|
-
"value": item.value,
|
|
121604
|
-
"label": item.label
|
|
121605
|
-
}
|
|
121606
|
-
});
|
|
121607
|
-
}), 1)], 1), _c('el-form-item', {
|
|
121608
|
-
attrs: {
|
|
121609
|
-
"label": "共享状态"
|
|
121610
|
-
}
|
|
121611
|
-
}, [_c('el-select', {
|
|
121612
|
-
attrs: {
|
|
121613
|
-
"clearable": "",
|
|
121614
|
-
"placeholder": "请选择共享状态"
|
|
121615
|
-
},
|
|
121616
|
-
model: {
|
|
121617
|
-
value: _vm.ruleForm.isShared,
|
|
121618
|
-
callback: function ($$v) {
|
|
121619
|
-
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121620
|
-
},
|
|
121621
|
-
expression: "ruleForm.isShared"
|
|
121622
|
-
}
|
|
121623
|
-
}, [_c('el-option', {
|
|
121624
|
-
key: 1,
|
|
121625
|
-
attrs: {
|
|
121626
|
-
"value": true,
|
|
121627
|
-
"label": "公开"
|
|
121628
|
-
}
|
|
121629
|
-
}), _c('el-option', {
|
|
121630
|
-
key: 2,
|
|
121631
|
-
attrs: {
|
|
121632
|
-
"value": false,
|
|
121633
|
-
"label": "私有"
|
|
121634
|
-
}
|
|
121635
|
-
})], 1)], 1)], 1), _c('div', {
|
|
121636
|
-
staticClass: "footer-btn"
|
|
121637
|
-
}, [_c('el-button', {
|
|
121638
|
-
on: {
|
|
121639
|
-
"click": function ($event) {
|
|
121640
|
-
return _vm.resetForm('ruleForm');
|
|
121641
|
-
}
|
|
121642
|
-
}
|
|
121643
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121644
|
-
attrs: {
|
|
121645
|
-
"type": "primary",
|
|
121646
|
-
"loading": _vm.confirmBtnLoading
|
|
121647
|
-
},
|
|
121648
|
-
on: {
|
|
121649
|
-
"click": function ($event) {
|
|
121650
|
-
return _vm.submitForm('ruleForm');
|
|
121651
|
-
}
|
|
121652
|
-
}
|
|
121653
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121654
|
-
};
|
|
121655
|
-
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns = [];
|
|
121656
|
-
|
|
121657
|
-
;// ./src/api/mailData/index.js
|
|
121658
|
-
|
|
121659
|
-
|
|
121660
|
-
// 文件上传
|
|
121661
|
-
async function mailData_uploadFile(data) {
|
|
121662
|
-
let res = await post("/edm/mail/upload_file", data);
|
|
121663
|
-
return res;
|
|
121664
|
-
}
|
|
121665
|
-
// 邮件发送数据
|
|
121666
|
-
async function getSendList(data) {
|
|
121667
|
-
let res = await request_post("/edm/outbox/sendData", data);
|
|
121668
|
-
if (res.code === '0') {
|
|
121669
|
-
return res;
|
|
121670
|
-
}
|
|
121671
|
-
return null;
|
|
121672
|
-
}
|
|
121673
|
-
|
|
121674
|
-
// 邮件接收数据 inbox/receiveData
|
|
121675
|
-
async function getReceiveList(data) {
|
|
121676
|
-
let res = await request_post("/edm/inbox/receiveData", data);
|
|
121677
|
-
if (res) {
|
|
121678
|
-
return res;
|
|
121679
|
-
}
|
|
121680
|
-
return null;
|
|
121681
|
-
}
|
|
121682
|
-
|
|
121683
|
-
// 查看详情-收件数据
|
|
121684
|
-
async function mailData_getInboxDetail(id) {
|
|
121685
|
-
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
121686
|
-
if (res) {
|
|
121687
|
-
return res;
|
|
121688
|
-
}
|
|
121689
|
-
return null;
|
|
121690
|
-
}
|
|
121691
|
-
|
|
121692
|
-
// 查看会话-收件数据
|
|
121693
|
-
async function getInboxDialogue(chatId) {
|
|
121694
|
-
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
121695
|
-
if (res) {
|
|
121696
|
-
return res;
|
|
121697
|
-
}
|
|
121698
|
-
return null;
|
|
121699
|
-
}
|
|
121700
|
-
|
|
121701
|
-
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
121702
|
-
async function getInboxDialogue1(id) {
|
|
121703
|
-
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
121704
|
-
if (res) {
|
|
121705
|
-
return res;
|
|
121706
|
-
}
|
|
121707
|
-
return null;
|
|
121708
|
-
}
|
|
121709
|
-
|
|
121710
|
-
//发送详情
|
|
121711
|
-
async function getSendDetail(id) {
|
|
121712
|
-
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
121713
|
-
if (res.code === '0') {
|
|
121714
|
-
return res;
|
|
121715
|
-
}
|
|
121716
|
-
return null;
|
|
121717
|
-
}
|
|
121718
|
-
|
|
121719
|
-
// 发信详情 sendDetail/{id}
|
|
121720
|
-
async function getDetailReceive() {
|
|
121721
|
-
let res = await get(`/edm/inbox/receiveData`);
|
|
121722
|
-
if (res.code === '0') {
|
|
121723
|
-
return res;
|
|
121724
|
-
}
|
|
121725
|
-
return null;
|
|
121726
|
-
}
|
|
121727
|
-
|
|
121728
|
-
// 发件数据详情 --和邮件往来一样
|
|
121729
|
-
async function sendDetail(id) {
|
|
121730
|
-
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
121731
|
-
if (res.code === '0') {
|
|
121732
|
-
return res;
|
|
121733
|
-
}
|
|
121734
|
-
return null;
|
|
121735
|
-
}
|
|
121736
|
-
|
|
121737
|
-
// 收信详情
|
|
121738
|
-
async function getDetailSend(id) {
|
|
121739
|
-
let res = await get(`/edm/outbox/sendData`);
|
|
121740
|
-
if (res.code === '0') {
|
|
121741
|
-
return res;
|
|
121742
|
-
}
|
|
121743
|
-
return null;
|
|
121744
|
-
}
|
|
121745
|
-
|
|
121746
|
-
// 查看AI回复 - 发件
|
|
121747
|
-
async function AiReplyDetail(id) {
|
|
121748
|
-
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
121749
|
-
if (res) {
|
|
121750
|
-
return res;
|
|
121751
|
-
}
|
|
121752
|
-
return null;
|
|
121753
|
-
}
|
|
121754
|
-
|
|
121755
|
-
// 查看AI回复 收件
|
|
121756
|
-
async function aiReply(params) {
|
|
121757
|
-
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
121758
|
-
if (res) {
|
|
121759
|
-
return res;
|
|
121760
|
-
}
|
|
121761
|
-
return null;
|
|
121762
|
-
}
|
|
121763
|
-
|
|
121764
|
-
// 导出收信数据 /inbox/exportReceiveData
|
|
121765
|
-
async function exportReceiveData(params) {
|
|
121766
|
-
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
121767
|
-
if (res) {
|
|
121768
|
-
return res;
|
|
121769
|
-
}
|
|
121770
|
-
return null;
|
|
121771
|
-
}
|
|
121772
|
-
|
|
121773
|
-
// 导出发信数据 /outbox/exportSendData
|
|
121774
|
-
async function exportSendData(params) {
|
|
121775
|
-
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
121776
|
-
if (res) {
|
|
121777
|
-
return res;
|
|
121778
|
-
}
|
|
121779
|
-
return null;
|
|
121780
|
-
}
|
|
121781
|
-
// 保存模版
|
|
121782
|
-
|
|
121783
|
-
async function addTemplate(params) {
|
|
121784
|
-
let res = await request_post(`/edm/template/addTemplate`, params);
|
|
121785
|
-
if (res) {
|
|
121786
|
-
return res;
|
|
121787
|
-
}
|
|
121788
|
-
return null;
|
|
121789
|
-
}
|
|
121790
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121791
|
-
|
|
121792
|
-
|
|
121793
|
-
|
|
121794
|
-
|
|
121795
|
-
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121796
|
-
props: {
|
|
121797
|
-
visible: {
|
|
121798
|
-
type: Boolean,
|
|
121799
|
-
default: false
|
|
121800
|
-
},
|
|
121801
|
-
mailTempList: {
|
|
121802
|
-
type: Array,
|
|
121803
|
-
default: () => []
|
|
121804
|
-
},
|
|
121805
|
-
tempProductCard: {
|
|
121806
|
-
type: String,
|
|
121807
|
-
default: ""
|
|
121808
|
-
}
|
|
121809
|
-
},
|
|
121810
|
-
data() {
|
|
121811
|
-
return {
|
|
121812
|
-
confirmBtnLoading: false,
|
|
121813
|
-
loading: false,
|
|
121814
|
-
ruleForm: {
|
|
121815
|
-
templatesTitle: "",
|
|
121816
|
-
scene: "",
|
|
121817
|
-
modelLanguage: "",
|
|
121818
|
-
isShared: false
|
|
121819
|
-
},
|
|
121820
|
-
rules: {
|
|
121821
|
-
templatesTitle: [{
|
|
121822
|
-
required: true,
|
|
121823
|
-
message: "请输入模版名称",
|
|
121824
|
-
trigger: "blur"
|
|
121825
|
-
}],
|
|
121826
|
-
modelLanguage: [{
|
|
121827
|
-
required: true,
|
|
121828
|
-
message: "请选择模版语言",
|
|
121829
|
-
trigger: "change"
|
|
121830
|
-
}],
|
|
121831
|
-
scene: [{
|
|
121832
|
-
required: true,
|
|
121833
|
-
message: "请输入应用场景",
|
|
121834
|
-
trigger: "change"
|
|
121835
|
-
}]
|
|
121836
|
-
},
|
|
121837
|
-
language: const_language
|
|
121838
|
-
};
|
|
121839
|
-
},
|
|
121840
|
-
created() {},
|
|
121841
|
-
methods: {
|
|
121842
|
-
// 处理邮件参数
|
|
121843
|
-
getMailParams() {
|
|
121844
|
-
// 处理邮件
|
|
121845
|
-
const currentMail = this.mailTempList.find(item => item.active);
|
|
121846
|
-
let content = "";
|
|
121847
|
-
if (currentMail.getReplyHtml()) {
|
|
121848
|
-
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121849
|
-
} else {
|
|
121850
|
-
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121851
|
-
}
|
|
121852
|
-
return {
|
|
121853
|
-
mailSubject: currentMail.subject,
|
|
121854
|
-
content,
|
|
121855
|
-
attachments: currentMail.fileList
|
|
121856
|
-
};
|
|
121857
|
-
},
|
|
121858
|
-
// 表单验证
|
|
121859
|
-
submitForm(formName) {
|
|
121860
|
-
const mailParams = this.getMailParams();
|
|
121861
|
-
this.$refs[formName].validate(valid => {
|
|
121862
|
-
if (valid) {
|
|
121863
|
-
const paramsObj = {
|
|
121864
|
-
...this.ruleForm,
|
|
121865
|
-
...mailParams
|
|
121866
|
-
};
|
|
121867
|
-
//新增
|
|
121868
|
-
addTemplate(paramsObj).then(res => {
|
|
121869
|
-
console.log(res, "resss");
|
|
121870
|
-
if (res.code == "0") {
|
|
121871
|
-
this.$message.success("保存成功");
|
|
121872
|
-
this.closeDialog();
|
|
121873
|
-
} else {
|
|
121874
|
-
this.$message.error(res.message);
|
|
121875
|
-
}
|
|
121876
|
-
});
|
|
121877
|
-
} else {
|
|
121878
|
-
console.log("error submit!!");
|
|
121879
|
-
return false;
|
|
121880
|
-
}
|
|
121881
|
-
});
|
|
121882
|
-
},
|
|
121883
|
-
resetForm(formName) {
|
|
121884
|
-
this.$refs[formName].resetFields();
|
|
121885
|
-
this.closeDialog();
|
|
121886
|
-
},
|
|
121887
|
-
closeDialog() {
|
|
121888
|
-
this.$emit("update:visible", false);
|
|
121889
|
-
}
|
|
121890
|
-
}
|
|
121891
|
-
});
|
|
121892
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121893
|
-
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121894
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121895
|
-
// extracted by mini-css-extract-plugin
|
|
121896
|
-
|
|
121897
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121898
|
-
|
|
121899
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121900
|
-
|
|
121901
|
-
|
|
121902
|
-
|
|
121903
|
-
;
|
|
121904
|
-
|
|
121905
|
-
|
|
121906
|
-
/* normalize component */
|
|
121907
|
-
|
|
121908
|
-
var saveMailTempDialog_component = normalizeComponent(
|
|
121909
|
-
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121910
|
-
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render,
|
|
121911
|
-
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns,
|
|
121912
|
-
false,
|
|
121913
|
-
null,
|
|
121914
|
-
"62cde375",
|
|
121915
|
-
null
|
|
121916
|
-
|
|
121917
|
-
)
|
|
121918
|
-
|
|
121919
|
-
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121920
121726
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
121921
121727
|
|
|
121922
121728
|
|
|
@@ -121958,7 +121764,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
121958
121764
|
|
|
121959
121765
|
|
|
121960
121766
|
|
|
121961
|
-
|
|
121962
121767
|
|
|
121963
121768
|
|
|
121964
121769
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121981,8 +121786,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
121981
121786
|
SignTextDrawer: signText,
|
|
121982
121787
|
MailTemplateDrawer: mailTemplate,
|
|
121983
121788
|
AiMailDialog: aiMail,
|
|
121984
|
-
MailOptimizeDrawer: mailOptimize
|
|
121985
|
-
saveMailTempDialog: saveMailTempDialog
|
|
121789
|
+
MailOptimizeDrawer: mailOptimize
|
|
121986
121790
|
},
|
|
121987
121791
|
props: {
|
|
121988
121792
|
// pm 添加
|
|
@@ -122211,11 +122015,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122211
122015
|
nickName: "",
|
|
122212
122016
|
// 发件人昵称
|
|
122213
122017
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122214
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122215
|
-
// 当前使用的AI平台
|
|
122216
|
-
saveMailTempDialogVisible: false,
|
|
122217
|
-
// 保存模版弹窗
|
|
122218
|
-
tempProductCard: '' // 模版产品卡
|
|
122018
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '' // 当前使用的AI平台
|
|
122219
122019
|
};
|
|
122220
122020
|
},
|
|
122221
122021
|
created() {
|
|
@@ -122291,18 +122091,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122291
122091
|
window.onbeforeunload = null;
|
|
122292
122092
|
},
|
|
122293
122093
|
methods: {
|
|
122294
|
-
// 保存邮件模版
|
|
122295
|
-
saveMailTemplate() {
|
|
122296
|
-
const currentMail = this.mailList.find(item => item.active);
|
|
122297
|
-
if (currentMail.subject == '') {
|
|
122298
|
-
this.$message.error('请输入邮件主题');
|
|
122299
|
-
return;
|
|
122300
|
-
}
|
|
122301
|
-
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122302
|
-
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122303
|
-
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122304
|
-
this.saveMailTempDialogVisible = true;
|
|
122305
|
-
},
|
|
122306
122094
|
// 初始化邮件模版
|
|
122307
122095
|
payInitTemplate() {
|
|
122308
122096
|
// 初始化收件人
|
|
@@ -122709,7 +122497,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122709
122497
|
active: idx === 0,
|
|
122710
122498
|
// 是否当前选中
|
|
122711
122499
|
isAiContent: false,
|
|
122712
|
-
templateId: item.templateId,
|
|
122713
122500
|
getContent: () => {},
|
|
122714
122501
|
getTextContent: () => {},
|
|
122715
122502
|
setContent: () => {},
|
|
@@ -122934,8 +122721,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122934
122721
|
id: item.id,
|
|
122935
122722
|
subject: item.subject,
|
|
122936
122723
|
content: content,
|
|
122937
|
-
attachments: item.fileList
|
|
122938
|
-
templateId: item.templateId
|
|
122724
|
+
attachments: item.fileList
|
|
122939
122725
|
};
|
|
122940
122726
|
});
|
|
122941
122727
|
|
|
@@ -123112,8 +122898,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123112
122898
|
id: item.id,
|
|
123113
122899
|
subject: item.subject,
|
|
123114
122900
|
content: item.getContent() + " " + item.getReplyHtml() + sendProductCard,
|
|
123115
|
-
attachments: item.fileList
|
|
123116
|
-
templateId: item.templateId
|
|
122901
|
+
attachments: item.fileList
|
|
123117
122902
|
};
|
|
123118
122903
|
});
|
|
123119
122904
|
// 处理红人
|
|
@@ -123269,7 +123054,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123269
123054
|
this.mailList.forEach(mail => {
|
|
123270
123055
|
if (mail.active) {
|
|
123271
123056
|
mail.subject = data.mailSubject;
|
|
123272
|
-
mail.templateId = data.id;
|
|
123273
123057
|
if (mail.setContent) {
|
|
123274
123058
|
mail.setContent(data.content);
|
|
123275
123059
|
}
|
|
@@ -123614,15 +123398,15 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123614
123398
|
});
|
|
123615
123399
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123616
123400
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
123617
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123401
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=6c2fdda1&prod&lang=scss&scoped=true
|
|
123618
123402
|
// extracted by mini-css-extract-plugin
|
|
123619
123403
|
|
|
123620
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123404
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=6c2fdda1&prod&lang=scss&scoped=true
|
|
123621
123405
|
|
|
123622
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123406
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=6c2fdda1&prod&lang=scss
|
|
123623
123407
|
// extracted by mini-css-extract-plugin
|
|
123624
123408
|
|
|
123625
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123409
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=6c2fdda1&prod&lang=scss
|
|
123626
123410
|
|
|
123627
123411
|
;// ./src/package/write-email/index.vue
|
|
123628
123412
|
|
|
@@ -123636,11 +123420,11 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123636
123420
|
|
|
123637
123421
|
var write_email_component = normalizeComponent(
|
|
123638
123422
|
package_write_emailvue_type_script_lang_js,
|
|
123639
|
-
|
|
123640
|
-
|
|
123423
|
+
write_emailvue_type_template_id_6c2fdda1_scoped_true_render,
|
|
123424
|
+
write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns,
|
|
123641
123425
|
false,
|
|
123642
123426
|
null,
|
|
123643
|
-
"
|
|
123427
|
+
"6c2fdda1",
|
|
123644
123428
|
null
|
|
123645
123429
|
|
|
123646
123430
|
)
|
|
@@ -123707,8 +123491,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123707
123491
|
};
|
|
123708
123492
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123709
123493
|
|
|
123710
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=
|
|
123711
|
-
var
|
|
123494
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=1f01a884&scoped=true
|
|
123495
|
+
var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function render() {
|
|
123712
123496
|
var _vm = this,
|
|
123713
123497
|
_c = _vm._self._c;
|
|
123714
123498
|
return _c('div', {
|
|
@@ -124029,25 +123813,6 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
|
|
|
124029
123813
|
}
|
|
124030
123814
|
})];
|
|
124031
123815
|
}
|
|
124032
|
-
}, {
|
|
124033
|
-
key: "operation",
|
|
124034
|
-
fn: function ({
|
|
124035
|
-
data
|
|
124036
|
-
}) {
|
|
124037
|
-
return [_c('el-link', {
|
|
124038
|
-
attrs: {
|
|
124039
|
-
"type": "primary",
|
|
124040
|
-
"size": "small",
|
|
124041
|
-
"underline": false
|
|
124042
|
-
},
|
|
124043
|
-
on: {
|
|
124044
|
-
"click": function ($event) {
|
|
124045
|
-
$event.stopPropagation();
|
|
124046
|
-
return _vm.recallMail(data.scope);
|
|
124047
|
-
}
|
|
124048
|
-
}
|
|
124049
|
-
}, [_vm._v("撤回")])];
|
|
124050
|
-
}
|
|
124051
123816
|
}])
|
|
124052
123817
|
}), _c('div', {
|
|
124053
123818
|
staticClass: "tool"
|
|
@@ -124089,7 +123854,7 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
|
|
|
124089
123854
|
staticClass: "dss-iconfont"
|
|
124090
123855
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
124091
123856
|
};
|
|
124092
|
-
var
|
|
123857
|
+
var singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns = [];
|
|
124093
123858
|
|
|
124094
123859
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
124095
123860
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -124177,10 +123942,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124177
123942
|
label: src_language.t("edm2.mailEn12"),
|
|
124178
123943
|
prop: "sendTime",
|
|
124179
123944
|
width: "200"
|
|
124180
|
-
}, {
|
|
124181
|
-
label: "操作",
|
|
124182
|
-
scope: "operation",
|
|
124183
|
-
width: "100"
|
|
124184
123945
|
}],
|
|
124185
123946
|
tableData: [],
|
|
124186
123947
|
loading: false,
|
|
@@ -124229,32 +123990,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124229
123990
|
localStorage.removeItem("searchFlag");
|
|
124230
123991
|
},
|
|
124231
123992
|
methods: {
|
|
124232
|
-
// 撤回邮件
|
|
124233
|
-
recallMail(row) {
|
|
124234
|
-
console.log(row, "row");
|
|
124235
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124236
|
-
confirmButtonText: "确定",
|
|
124237
|
-
cancelButtonText: "取消",
|
|
124238
|
-
type: "warning"
|
|
124239
|
-
}).then(() => {
|
|
124240
|
-
withdraw(row.id).then(res => {
|
|
124241
|
-
if (res.code == "0") {
|
|
124242
|
-
this.$message({
|
|
124243
|
-
type: "success",
|
|
124244
|
-
duration: 7000,
|
|
124245
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124246
|
-
});
|
|
124247
|
-
this.init();
|
|
124248
|
-
} else {
|
|
124249
|
-
this.$message({
|
|
124250
|
-
type: "error",
|
|
124251
|
-
duration: 7000,
|
|
124252
|
-
message: res.message
|
|
124253
|
-
});
|
|
124254
|
-
}
|
|
124255
|
-
});
|
|
124256
|
-
}).catch(() => {});
|
|
124257
|
-
},
|
|
124258
123993
|
// 主题-正文
|
|
124259
123994
|
changeContentMode(val) {
|
|
124260
123995
|
this.contentSelect = val;
|
|
@@ -124448,10 +124183,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124448
124183
|
});
|
|
124449
124184
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124450
124185
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
124451
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124186
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
|
|
124452
124187
|
// extracted by mini-css-extract-plugin
|
|
124453
124188
|
|
|
124454
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124189
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
|
|
124455
124190
|
|
|
124456
124191
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124457
124192
|
|
|
@@ -124464,18 +124199,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124464
124199
|
|
|
124465
124200
|
var singleSendMail_component = normalizeComponent(
|
|
124466
124201
|
components_singleSendMailvue_type_script_lang_js,
|
|
124467
|
-
|
|
124468
|
-
|
|
124202
|
+
singleSendMailvue_type_template_id_1f01a884_scoped_true_render,
|
|
124203
|
+
singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns,
|
|
124469
124204
|
false,
|
|
124470
124205
|
null,
|
|
124471
|
-
"
|
|
124206
|
+
"1f01a884",
|
|
124472
124207
|
null
|
|
124473
124208
|
|
|
124474
124209
|
)
|
|
124475
124210
|
|
|
124476
124211
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
124477
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=
|
|
124478
|
-
var
|
|
124212
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=9bfe54da&scoped=true
|
|
124213
|
+
var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function render() {
|
|
124479
124214
|
var _vm = this,
|
|
124480
124215
|
_c = _vm._self._c;
|
|
124481
124216
|
return _c('div', {
|
|
@@ -124765,25 +124500,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
|
|
|
124765
124500
|
}
|
|
124766
124501
|
})];
|
|
124767
124502
|
}
|
|
124768
|
-
}, {
|
|
124769
|
-
key: "operation",
|
|
124770
|
-
fn: function ({
|
|
124771
|
-
data
|
|
124772
|
-
}) {
|
|
124773
|
-
return [_c('el-link', {
|
|
124774
|
-
attrs: {
|
|
124775
|
-
"type": "primary",
|
|
124776
|
-
"size": "small",
|
|
124777
|
-
"underline": false
|
|
124778
|
-
},
|
|
124779
|
-
on: {
|
|
124780
|
-
"click": function ($event) {
|
|
124781
|
-
$event.stopPropagation();
|
|
124782
|
-
return _vm.recallMail(data.scope);
|
|
124783
|
-
}
|
|
124784
|
-
}
|
|
124785
|
-
}, [_vm._v("撤回")])];
|
|
124786
|
-
}
|
|
124787
124503
|
}])
|
|
124788
124504
|
}), _c('div', {
|
|
124789
124505
|
staticClass: "tool"
|
|
@@ -124810,7 +124526,7 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
|
|
|
124810
124526
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124811
124527
|
})])])])], 1)]);
|
|
124812
124528
|
};
|
|
124813
|
-
var
|
|
124529
|
+
var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
124814
124530
|
|
|
124815
124531
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124816
124532
|
|
|
@@ -124882,10 +124598,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
124882
124598
|
label: src_language.t("edm2.mailEn12"),
|
|
124883
124599
|
prop: "sendTime",
|
|
124884
124600
|
width: "200"
|
|
124885
|
-
}, {
|
|
124886
|
-
label: "操作",
|
|
124887
|
-
scope: "operation",
|
|
124888
|
-
width: "100"
|
|
124889
124601
|
}],
|
|
124890
124602
|
contentInput: "",
|
|
124891
124603
|
contentSelect: "1",
|
|
@@ -124937,32 +124649,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
124937
124649
|
localStorage.removeItem("searchFlag");
|
|
124938
124650
|
},
|
|
124939
124651
|
methods: {
|
|
124940
|
-
// 撤回邮件
|
|
124941
|
-
recallMail(row) {
|
|
124942
|
-
console.log(row, "row");
|
|
124943
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124944
|
-
confirmButtonText: "确定",
|
|
124945
|
-
cancelButtonText: "取消",
|
|
124946
|
-
type: "warning"
|
|
124947
|
-
}).then(() => {
|
|
124948
|
-
withdraw(row.id).then(res => {
|
|
124949
|
-
if (res.code == "0") {
|
|
124950
|
-
this.$message({
|
|
124951
|
-
type: "success",
|
|
124952
|
-
duration: 7000,
|
|
124953
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124954
|
-
});
|
|
124955
|
-
this.init();
|
|
124956
|
-
} else {
|
|
124957
|
-
this.$message({
|
|
124958
|
-
type: "error",
|
|
124959
|
-
duration: 7000,
|
|
124960
|
-
message: res.message
|
|
124961
|
-
});
|
|
124962
|
-
}
|
|
124963
|
-
});
|
|
124964
|
-
}).catch(() => {});
|
|
124965
|
-
},
|
|
124966
124652
|
// 去除html标签
|
|
124967
124653
|
filterHtmlTag(str) {
|
|
124968
124654
|
if (str) {
|
|
@@ -125174,10 +124860,10 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
125174
124860
|
});
|
|
125175
124861
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
125176
124862
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
125177
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
124863
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
|
|
125178
124864
|
// extracted by mini-css-extract-plugin
|
|
125179
124865
|
|
|
125180
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
124866
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
|
|
125181
124867
|
|
|
125182
124868
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
125183
124869
|
|
|
@@ -125190,11 +124876,11 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
125190
124876
|
|
|
125191
124877
|
var replySendMail_component = normalizeComponent(
|
|
125192
124878
|
components_replySendMailvue_type_script_lang_js,
|
|
125193
|
-
|
|
125194
|
-
|
|
124879
|
+
replySendMailvue_type_template_id_9bfe54da_scoped_true_render,
|
|
124880
|
+
replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns,
|
|
125195
124881
|
false,
|
|
125196
124882
|
null,
|
|
125197
|
-
"
|
|
124883
|
+
"9bfe54da",
|
|
125198
124884
|
null
|
|
125199
124885
|
|
|
125200
124886
|
)
|
|
@@ -126662,8 +126348,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126662
126348
|
)
|
|
126663
126349
|
|
|
126664
126350
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
126665
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/outbox-email/detail.vue?vue&type=template&id=
|
|
126666
|
-
var
|
|
126351
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/package/outbox-email/detail.vue?vue&type=template&id=cfc1a914&scoped=true
|
|
126352
|
+
var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
126667
126353
|
var _vm = this,
|
|
126668
126354
|
_c = _vm._self._c;
|
|
126669
126355
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126676,11 +126362,6 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
|
126676
126362
|
}, [_c('i', {
|
|
126677
126363
|
staticClass: "el-icon-arrow-left"
|
|
126678
126364
|
})]), _c('div', {
|
|
126679
|
-
staticClass: "back recall_btn",
|
|
126680
|
-
on: {
|
|
126681
|
-
"click": _vm.recallMail
|
|
126682
|
-
}
|
|
126683
|
-
}, [_vm._m(0)]), _c('div', {
|
|
126684
126365
|
staticClass: "mail-items-box"
|
|
126685
126366
|
}, [_c('div', {
|
|
126686
126367
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126907,19 +126588,7 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
|
126907
126588
|
}
|
|
126908
126589
|
}) : _vm._e()], 1) : _vm._e();
|
|
126909
126590
|
};
|
|
126910
|
-
var
|
|
126911
|
-
var _vm = this,
|
|
126912
|
-
_c = _vm._self._c;
|
|
126913
|
-
return _c('div', {
|
|
126914
|
-
staticClass: "re_box"
|
|
126915
|
-
}, [_c('i', {
|
|
126916
|
-
staticClass: "dss-iconfont btn_con"
|
|
126917
|
-
}, [_vm._v("")]), _c('span', {
|
|
126918
|
-
staticClass: "btn_con"
|
|
126919
|
-
}, [_vm._v("撤回")])]);
|
|
126920
|
-
}];
|
|
126921
|
-
|
|
126922
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=ad633b50&scoped=true
|
|
126591
|
+
var detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns = [];
|
|
126923
126592
|
|
|
126924
126593
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./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!./src/components/Table/components/bloggerColumn.vue?vue&type=template&id=2b58a2e1&scoped=true
|
|
126925
126594
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -127168,31 +126837,6 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127168
126837
|
localStorage.setItem("searchFlag", true);
|
|
127169
126838
|
},
|
|
127170
126839
|
methods: {
|
|
127171
|
-
// 撤回邮件
|
|
127172
|
-
recallMail() {
|
|
127173
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127174
|
-
confirmButtonText: "确定",
|
|
127175
|
-
cancelButtonText: "取消",
|
|
127176
|
-
type: "warning"
|
|
127177
|
-
}).then(() => {
|
|
127178
|
-
withdraw(this.$route.query.id).then(res => {
|
|
127179
|
-
if (res.code == "0") {
|
|
127180
|
-
this.$message({
|
|
127181
|
-
type: "success",
|
|
127182
|
-
duration: 7000,
|
|
127183
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127184
|
-
});
|
|
127185
|
-
this.backToOutbox();
|
|
127186
|
-
} else {
|
|
127187
|
-
this.$message({
|
|
127188
|
-
type: "error",
|
|
127189
|
-
duration: 7000,
|
|
127190
|
-
message: res.message
|
|
127191
|
-
});
|
|
127192
|
-
}
|
|
127193
|
-
});
|
|
127194
|
-
}).catch(() => {});
|
|
127195
|
-
},
|
|
127196
126840
|
// 红人档案侧抽
|
|
127197
126841
|
toBloggerDeatil(item) {
|
|
127198
126842
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -127324,10 +126968,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127324
126968
|
});
|
|
127325
126969
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
127326
126970
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
127327
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
126971
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=cfc1a914&prod&lang=scss&scoped=true
|
|
127328
126972
|
// extracted by mini-css-extract-plugin
|
|
127329
126973
|
|
|
127330
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
126974
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=cfc1a914&prod&lang=scss&scoped=true
|
|
127331
126975
|
|
|
127332
126976
|
;// ./src/package/outbox-email/detail.vue
|
|
127333
126977
|
|
|
@@ -127340,11 +126984,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127340
126984
|
|
|
127341
126985
|
var outbox_email_detail_component = normalizeComponent(
|
|
127342
126986
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
127343
|
-
|
|
127344
|
-
|
|
126987
|
+
detailvue_type_template_id_cfc1a914_scoped_true_render,
|
|
126988
|
+
detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns,
|
|
127345
126989
|
false,
|
|
127346
126990
|
null,
|
|
127347
|
-
"
|
|
126991
|
+
"cfc1a914",
|
|
127348
126992
|
null
|
|
127349
126993
|
|
|
127350
126994
|
)
|
|
@@ -127650,7 +127294,7 @@ async function mailList2(data) {
|
|
|
127650
127294
|
}
|
|
127651
127295
|
|
|
127652
127296
|
// 查看邮件往来里的发件详情
|
|
127653
|
-
async function
|
|
127297
|
+
async function sendDetail(params) {
|
|
127654
127298
|
let res = await get(`/edm/mail/sendDetail/${params.id}`);
|
|
127655
127299
|
return res;
|
|
127656
127300
|
}
|
|
@@ -128895,6 +128539,130 @@ var Editorvue_type_template_id_16051201_scoped_true_render = function render() {
|
|
|
128895
128539
|
};
|
|
128896
128540
|
var Editorvue_type_template_id_16051201_scoped_true_staticRenderFns = [];
|
|
128897
128541
|
|
|
128542
|
+
;// ./src/api/mailData/index.js
|
|
128543
|
+
|
|
128544
|
+
|
|
128545
|
+
// 文件上传
|
|
128546
|
+
async function mailData_uploadFile(data) {
|
|
128547
|
+
let res = await post("/edm/mail/upload_file", data);
|
|
128548
|
+
return res;
|
|
128549
|
+
}
|
|
128550
|
+
// 邮件发送数据
|
|
128551
|
+
async function getSendList(data) {
|
|
128552
|
+
let res = await request_post("/edm/outbox/sendData", data);
|
|
128553
|
+
if (res.code === '0') {
|
|
128554
|
+
return res;
|
|
128555
|
+
}
|
|
128556
|
+
return null;
|
|
128557
|
+
}
|
|
128558
|
+
|
|
128559
|
+
// 邮件接收数据 inbox/receiveData
|
|
128560
|
+
async function getReceiveList(data) {
|
|
128561
|
+
let res = await request_post("/edm/inbox/receiveData", data);
|
|
128562
|
+
if (res) {
|
|
128563
|
+
return res;
|
|
128564
|
+
}
|
|
128565
|
+
return null;
|
|
128566
|
+
}
|
|
128567
|
+
|
|
128568
|
+
// 查看详情-收件数据
|
|
128569
|
+
async function mailData_getInboxDetail(id) {
|
|
128570
|
+
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
128571
|
+
if (res) {
|
|
128572
|
+
return res;
|
|
128573
|
+
}
|
|
128574
|
+
return null;
|
|
128575
|
+
}
|
|
128576
|
+
|
|
128577
|
+
// 查看会话-收件数据
|
|
128578
|
+
async function getInboxDialogue(chatId) {
|
|
128579
|
+
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
128580
|
+
if (res) {
|
|
128581
|
+
return res;
|
|
128582
|
+
}
|
|
128583
|
+
return null;
|
|
128584
|
+
}
|
|
128585
|
+
|
|
128586
|
+
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
128587
|
+
async function getInboxDialogue1(id) {
|
|
128588
|
+
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
128589
|
+
if (res) {
|
|
128590
|
+
return res;
|
|
128591
|
+
}
|
|
128592
|
+
return null;
|
|
128593
|
+
}
|
|
128594
|
+
|
|
128595
|
+
//发送详情
|
|
128596
|
+
async function getSendDetail(id) {
|
|
128597
|
+
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
128598
|
+
if (res.code === '0') {
|
|
128599
|
+
return res;
|
|
128600
|
+
}
|
|
128601
|
+
return null;
|
|
128602
|
+
}
|
|
128603
|
+
|
|
128604
|
+
// 发信详情 sendDetail/{id}
|
|
128605
|
+
async function getDetailReceive() {
|
|
128606
|
+
let res = await get(`/edm/inbox/receiveData`);
|
|
128607
|
+
if (res.code === '0') {
|
|
128608
|
+
return res;
|
|
128609
|
+
}
|
|
128610
|
+
return null;
|
|
128611
|
+
}
|
|
128612
|
+
|
|
128613
|
+
// 发件数据详情 --和邮件往来一样
|
|
128614
|
+
async function mailData_sendDetail(id) {
|
|
128615
|
+
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
128616
|
+
if (res.code === '0') {
|
|
128617
|
+
return res;
|
|
128618
|
+
}
|
|
128619
|
+
return null;
|
|
128620
|
+
}
|
|
128621
|
+
|
|
128622
|
+
// 收信详情
|
|
128623
|
+
async function getDetailSend(id) {
|
|
128624
|
+
let res = await get(`/edm/outbox/sendData`);
|
|
128625
|
+
if (res.code === '0') {
|
|
128626
|
+
return res;
|
|
128627
|
+
}
|
|
128628
|
+
return null;
|
|
128629
|
+
}
|
|
128630
|
+
|
|
128631
|
+
// 查看AI回复 - 发件
|
|
128632
|
+
async function AiReplyDetail(id) {
|
|
128633
|
+
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
128634
|
+
if (res) {
|
|
128635
|
+
return res;
|
|
128636
|
+
}
|
|
128637
|
+
return null;
|
|
128638
|
+
}
|
|
128639
|
+
|
|
128640
|
+
// 查看AI回复 收件
|
|
128641
|
+
async function aiReply(params) {
|
|
128642
|
+
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
128643
|
+
if (res) {
|
|
128644
|
+
return res;
|
|
128645
|
+
}
|
|
128646
|
+
return null;
|
|
128647
|
+
}
|
|
128648
|
+
|
|
128649
|
+
// 导出收信数据 /inbox/exportReceiveData
|
|
128650
|
+
async function exportReceiveData(params) {
|
|
128651
|
+
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
128652
|
+
if (res) {
|
|
128653
|
+
return res;
|
|
128654
|
+
}
|
|
128655
|
+
return null;
|
|
128656
|
+
}
|
|
128657
|
+
|
|
128658
|
+
// 导出发信数据 /outbox/exportSendData
|
|
128659
|
+
async function exportSendData(params) {
|
|
128660
|
+
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
128661
|
+
if (res) {
|
|
128662
|
+
return res;
|
|
128663
|
+
}
|
|
128664
|
+
return null;
|
|
128665
|
+
}
|
|
128898
128666
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/MailPage/Editor.vue?vue&type=script&lang=js
|
|
128899
128667
|
//import { uploadFile } from '@/api'
|
|
128900
128668
|
|
|
@@ -130035,7 +129803,7 @@ var AttachmentList_component = normalizeComponent(
|
|
|
130035
129803
|
methods: {
|
|
130036
129804
|
// 获取页面数据
|
|
130037
129805
|
initPageData() {
|
|
130038
|
-
|
|
129806
|
+
mailData_sendDetail(this.id).then(res => {
|
|
130039
129807
|
if (res) {
|
|
130040
129808
|
this.mailData = res.data;
|
|
130041
129809
|
}
|