wotokol-edm 1.1.21 → 1.1.22
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 +1297 -1030
- 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 +1300 -1033
- 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.umd.js
CHANGED
|
@@ -1513,7 +1513,7 @@ module.exports = function (IS_INCLUDES) {
|
|
|
1513
1513
|
|
|
1514
1514
|
/***/ }),
|
|
1515
1515
|
|
|
1516
|
-
/***/
|
|
1516
|
+
/***/ 4194:
|
|
1517
1517
|
/***/ (function(module) {
|
|
1518
1518
|
|
|
1519
1519
|
var toString = {}.toString;
|
|
@@ -1776,7 +1776,7 @@ module.exports = !__webpack_require__(5872) && !__webpack_require__(2451)(functi
|
|
|
1776
1776
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1777
1777
|
|
|
1778
1778
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1779
|
-
var cof = __webpack_require__(
|
|
1779
|
+
var cof = __webpack_require__(4194);
|
|
1780
1780
|
// eslint-disable-next-line no-prototype-builtins
|
|
1781
1781
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
1782
1782
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
@@ -1789,7 +1789,7 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
|
1789
1789
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1790
1790
|
|
|
1791
1791
|
// 7.2.2 IsArray(argument)
|
|
1792
|
-
var cof = __webpack_require__(
|
|
1792
|
+
var cof = __webpack_require__(4194);
|
|
1793
1793
|
module.exports = Array.isArray || function isArray(arg) {
|
|
1794
1794
|
return cof(arg) == 'Array';
|
|
1795
1795
|
};
|
|
@@ -85284,7 +85284,7 @@ if (typeof window !== 'undefined') {
|
|
|
85284
85284
|
var esnext_iterator_constructor = __webpack_require__(8992);
|
|
85285
85285
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
|
|
85286
85286
|
var esnext_iterator_for_each = __webpack_require__(3949);
|
|
85287
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
85287
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=380dc28b&scoped=true
|
|
85288
85288
|
var render = function render() {
|
|
85289
85289
|
var _vm = this,
|
|
85290
85290
|
_c = _vm._self._c;
|
|
@@ -91223,8 +91223,10 @@ async function test_test(params) {
|
|
|
91223
91223
|
// 模拟 hub 登陆 测试账号
|
|
91224
91224
|
// mobileOrEmail: "13262005357",
|
|
91225
91225
|
// password: "123123123"
|
|
91226
|
-
mobileOrEmail: "18846078060",
|
|
91227
|
-
password: "asd123456"
|
|
91226
|
+
// mobileOrEmail: "18846078060",
|
|
91227
|
+
// password: "asd123456"
|
|
91228
|
+
mobileOrEmail: "18767117493",
|
|
91229
|
+
password: "tm123456789"
|
|
91228
91230
|
// mobileOrEmail: "15658187195",
|
|
91229
91231
|
// password: "wotu987412365"
|
|
91230
91232
|
}).then(res => {
|
|
@@ -91376,7 +91378,7 @@ var component = normalizeComponent(
|
|
|
91376
91378
|
staticRenderFns,
|
|
91377
91379
|
false,
|
|
91378
91380
|
null,
|
|
91379
|
-
"
|
|
91381
|
+
"380dc28b",
|
|
91380
91382
|
null
|
|
91381
91383
|
|
|
91382
91384
|
)
|
|
@@ -98675,6 +98677,14 @@ function delTags(id) {
|
|
|
98675
98677
|
function addTags(data) {
|
|
98676
98678
|
return request_post(`/edm/tag/addSign`, data);
|
|
98677
98679
|
}
|
|
98680
|
+
// 获取账号
|
|
98681
|
+
function hubUserSonFather(params) {
|
|
98682
|
+
return request_get(`/user/hubUser/sonFather`, params);
|
|
98683
|
+
}
|
|
98684
|
+
// 分页查看模板列表
|
|
98685
|
+
function templatesList(params) {
|
|
98686
|
+
return request_get(`/edm/template/templates`, params);
|
|
98687
|
+
}
|
|
98678
98688
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
98689
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98680
98690
|
var _vm = this,
|
|
@@ -106579,6 +106589,10 @@ function comeGoBloggerPage(data) {
|
|
|
106579
106589
|
function pagePlan(data) {
|
|
106580
106590
|
return post(`/user/popularize/pagePlan`, data);
|
|
106581
106591
|
}
|
|
106592
|
+
// 撤回邮件
|
|
106593
|
+
function withdraw(id) {
|
|
106594
|
+
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106595
|
+
}
|
|
106582
106596
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmailPlan/index.vue?vue&type=script&lang=js
|
|
106583
106597
|
|
|
106584
106598
|
|
|
@@ -109221,8 +109235,8 @@ var detail_component = normalizeComponent(
|
|
|
109221
109235
|
)
|
|
109222
109236
|
|
|
109223
109237
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
109224
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
109225
|
-
var
|
|
109238
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=4a0856bf&scoped=true
|
|
109239
|
+
var write_emailvue_type_template_id_4a0856bf_scoped_true_render = function render() {
|
|
109226
109240
|
var _vm = this,
|
|
109227
109241
|
_c = _vm._self._c;
|
|
109228
109242
|
return _c('div', {
|
|
@@ -109587,7 +109601,17 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109587
109601
|
staticClass: "el-icon-loading"
|
|
109588
109602
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109589
109603
|
staticClass: "operate-right"
|
|
109590
|
-
}, [
|
|
109604
|
+
}, [_c('el-button', {
|
|
109605
|
+
staticClass: "operate-btn",
|
|
109606
|
+
attrs: {
|
|
109607
|
+
"disabled": _vm.loading
|
|
109608
|
+
},
|
|
109609
|
+
on: {
|
|
109610
|
+
"click": _vm.saveMailTemplate
|
|
109611
|
+
}
|
|
109612
|
+
}, [_vm.loading ? _c('i', {
|
|
109613
|
+
staticClass: "el-icon-loading"
|
|
109614
|
+
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109591
109615
|
staticClass: "operate-btn",
|
|
109592
109616
|
attrs: {
|
|
109593
109617
|
"disabled": _vm.loading
|
|
@@ -109952,9 +109976,20 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109952
109976
|
},
|
|
109953
109977
|
"updateNickName": val => _vm.nickName = val
|
|
109954
109978
|
}
|
|
109979
|
+
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109980
|
+
attrs: {
|
|
109981
|
+
"tempProductCard": _vm.tempProductCard,
|
|
109982
|
+
"mailTempList": _vm.mailList,
|
|
109983
|
+
"visible": _vm.saveMailTempDialogVisible
|
|
109984
|
+
},
|
|
109985
|
+
on: {
|
|
109986
|
+
"update:visible": function ($event) {
|
|
109987
|
+
_vm.saveMailTempDialogVisible = $event;
|
|
109988
|
+
}
|
|
109989
|
+
}
|
|
109955
109990
|
}) : _vm._e()], 1);
|
|
109956
109991
|
};
|
|
109957
|
-
var
|
|
109992
|
+
var write_emailvue_type_template_id_4a0856bf_scoped_true_staticRenderFns = [function () {
|
|
109958
109993
|
var _vm = this,
|
|
109959
109994
|
_c = _vm._self._c;
|
|
109960
109995
|
return _c('div', {
|
|
@@ -109975,7 +110010,7 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [func
|
|
|
109975
110010
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109976
110011
|
}];
|
|
109977
110012
|
|
|
109978
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
110013
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=4a0856bf&scoped=true
|
|
109979
110014
|
|
|
109980
110015
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109981
110016
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -110189,6 +110224,11 @@ function getOauthLink(params) {
|
|
|
110189
110224
|
function bindOutlookEmail(params) {
|
|
110190
110225
|
return request_get("/edm/qiye/saveToken", params);
|
|
110191
110226
|
}
|
|
110227
|
+
|
|
110228
|
+
// 获取模板详情
|
|
110229
|
+
function templatesDetail(id) {
|
|
110230
|
+
return request_get(`/edm/template/template/${id}`);
|
|
110231
|
+
}
|
|
110192
110232
|
;// ./src/api/send/outbox.js
|
|
110193
110233
|
|
|
110194
110234
|
// 分页查看发件箱列表
|
|
@@ -114332,6 +114372,59 @@ const moneyTypeOpts = [{
|
|
|
114332
114372
|
code: "IDR",
|
|
114333
114373
|
symbol: "Rp"
|
|
114334
114374
|
}];
|
|
114375
|
+
const const_language = [{
|
|
114376
|
+
value: 7,
|
|
114377
|
+
label: '汉语',
|
|
114378
|
+
enLabel: 'Chinese'
|
|
114379
|
+
}, {
|
|
114380
|
+
value: 1,
|
|
114381
|
+
label: '英语',
|
|
114382
|
+
enLabel: 'English'
|
|
114383
|
+
}, {
|
|
114384
|
+
value: 3,
|
|
114385
|
+
label: '法语',
|
|
114386
|
+
enLabel: 'French'
|
|
114387
|
+
}, {
|
|
114388
|
+
value: 8,
|
|
114389
|
+
label: '德语',
|
|
114390
|
+
enLabel: 'German'
|
|
114391
|
+
}, {
|
|
114392
|
+
value: 6,
|
|
114393
|
+
label: '日语',
|
|
114394
|
+
enLabel: 'Japanese'
|
|
114395
|
+
}, {
|
|
114396
|
+
value: 9,
|
|
114397
|
+
label: '韩语',
|
|
114398
|
+
enLabel: 'Korean'
|
|
114399
|
+
}, {
|
|
114400
|
+
value: 10,
|
|
114401
|
+
label: '越南语',
|
|
114402
|
+
enLabel: 'Vietnamese'
|
|
114403
|
+
}, {
|
|
114404
|
+
value: 11,
|
|
114405
|
+
label: '泰国语',
|
|
114406
|
+
enLabel: 'Thai'
|
|
114407
|
+
}, {
|
|
114408
|
+
value: 12,
|
|
114409
|
+
label: '菲律宾语',
|
|
114410
|
+
enLabel: 'Filipino'
|
|
114411
|
+
}, {
|
|
114412
|
+
value: 13,
|
|
114413
|
+
label: '印度尼西亚语',
|
|
114414
|
+
enLabel: 'Indonesian'
|
|
114415
|
+
}, {
|
|
114416
|
+
value: 14,
|
|
114417
|
+
label: '俄罗斯语',
|
|
114418
|
+
enLabel: 'Russian'
|
|
114419
|
+
}, {
|
|
114420
|
+
value: 4,
|
|
114421
|
+
label: '西班牙语',
|
|
114422
|
+
enLabel: 'Spanish'
|
|
114423
|
+
}, {
|
|
114424
|
+
value: 15,
|
|
114425
|
+
label: '意大利语',
|
|
114426
|
+
enLabel: 'Italian'
|
|
114427
|
+
}];
|
|
114335
114428
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
114336
114429
|
|
|
114337
114430
|
|
|
@@ -118342,840 +118435,593 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118342
118435
|
};
|
|
118343
118436
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118344
118437
|
|
|
118345
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
118346
|
-
|
|
118438
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=d1b92a60&scoped=true
|
|
118439
|
+
|
|
118440
|
+
|
|
118441
|
+
var TemplateListvue_type_template_id_d1b92a60_scoped_true_render = function render() {
|
|
118347
118442
|
var _vm = this,
|
|
118348
118443
|
_c = _vm._self._c;
|
|
118349
118444
|
return _c('div', {
|
|
118350
118445
|
staticClass: "wrap"
|
|
118351
118446
|
}, [_c('div', {
|
|
118352
|
-
staticClass: "
|
|
118447
|
+
staticClass: "inbox-search-wrap"
|
|
118448
|
+
}, [_c('el-row', {
|
|
118449
|
+
attrs: {
|
|
118450
|
+
"gutter": 12
|
|
118451
|
+
}
|
|
118452
|
+
}, [_c('el-col', {
|
|
118453
|
+
attrs: {
|
|
118454
|
+
"span": 8
|
|
118455
|
+
}
|
|
118353
118456
|
}, [_c('div', {
|
|
118354
|
-
staticClass: "
|
|
118457
|
+
staticClass: "col-item col-select-input-item"
|
|
118355
118458
|
}, [_c('el-select', {
|
|
118459
|
+
staticClass: "template_select",
|
|
118460
|
+
attrs: {
|
|
118461
|
+
"slot": "prepend",
|
|
118462
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118463
|
+
},
|
|
118356
118464
|
on: {
|
|
118357
118465
|
"change": function ($event) {
|
|
118358
|
-
_vm.searchForm.
|
|
118359
|
-
_vm.
|
|
118360
|
-
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118361
|
-
_vm.init();
|
|
118466
|
+
_vm.searchForm.scene = '';
|
|
118467
|
+
_vm.contentInput = '';
|
|
118362
118468
|
}
|
|
118363
118469
|
},
|
|
118470
|
+
slot: "prepend",
|
|
118364
118471
|
model: {
|
|
118365
|
-
value: _vm.
|
|
118472
|
+
value: _vm.contentSelect,
|
|
118366
118473
|
callback: function ($$v) {
|
|
118367
|
-
_vm
|
|
118474
|
+
_vm.contentSelect = $$v;
|
|
118368
118475
|
},
|
|
118369
|
-
expression: "
|
|
118476
|
+
expression: "contentSelect"
|
|
118370
118477
|
}
|
|
118371
118478
|
}, [_c('el-option', {
|
|
118372
118479
|
attrs: {
|
|
118373
|
-
"label":
|
|
118374
|
-
"value": 1
|
|
118480
|
+
"label": "模版名称",
|
|
118481
|
+
"value": "1"
|
|
118375
118482
|
}
|
|
118376
118483
|
}), _c('el-option', {
|
|
118377
118484
|
attrs: {
|
|
118378
|
-
"label":
|
|
118379
|
-
"value": 2
|
|
118485
|
+
"label": "应用场景",
|
|
118486
|
+
"value": "2"
|
|
118380
118487
|
}
|
|
118381
|
-
})], 1)
|
|
118382
|
-
staticClass: "
|
|
118488
|
+
})], 1), _vm.searchForm.type == 1 && _vm.contentSelect == 2 ? _c('div', {
|
|
118489
|
+
staticClass: "temp_right"
|
|
118383
118490
|
}, [_c('el-select', {
|
|
118384
118491
|
attrs: {
|
|
118385
|
-
"
|
|
118386
|
-
"
|
|
118387
|
-
},
|
|
118388
|
-
on: {
|
|
118389
|
-
"change": function ($event) {
|
|
118390
|
-
_vm.searchForm.currentPage = 1;
|
|
118391
|
-
_vm.init();
|
|
118392
|
-
}
|
|
118492
|
+
"slot": "prepend",
|
|
118493
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118393
118494
|
},
|
|
118495
|
+
slot: "prepend",
|
|
118394
118496
|
model: {
|
|
118395
|
-
value: _vm.searchForm.
|
|
118497
|
+
value: _vm.searchForm.scene,
|
|
118396
118498
|
callback: function ($$v) {
|
|
118397
|
-
_vm.$set(_vm.searchForm, "
|
|
118499
|
+
_vm.$set(_vm.searchForm, "scene", $$v);
|
|
118398
118500
|
},
|
|
118399
|
-
expression: "searchForm.
|
|
118501
|
+
expression: "searchForm.scene"
|
|
118400
118502
|
}
|
|
118401
|
-
}, _vm._l(_vm.
|
|
118503
|
+
}, _vm._l(_vm.templateSystemScene, function (scene) {
|
|
118402
118504
|
return _c('el-option', {
|
|
118403
|
-
key:
|
|
118505
|
+
key: scene.value,
|
|
118404
118506
|
attrs: {
|
|
118405
|
-
"
|
|
118406
|
-
"
|
|
118507
|
+
"label": scene.label,
|
|
118508
|
+
"value": scene.value
|
|
118407
118509
|
}
|
|
118408
118510
|
});
|
|
118409
|
-
}), 1)], 1)
|
|
118410
|
-
staticClass: "
|
|
118411
|
-
}, [_c('
|
|
118412
|
-
staticClass: "
|
|
118413
|
-
|
|
118414
|
-
"
|
|
118415
|
-
_vm.isShowSet = true;
|
|
118416
|
-
}
|
|
118417
|
-
}
|
|
118418
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.create_template")) + " ")])])]), _vm.searchForm.type === 1 ? _c('div', {
|
|
118419
|
-
staticClass: "tab px24 mb24"
|
|
118420
|
-
}, [_c('el-tabs', {
|
|
118421
|
-
on: {
|
|
118422
|
-
"tab-click": _vm.swicthTab
|
|
118511
|
+
}), 1)], 1) : _c('div', {
|
|
118512
|
+
staticClass: "temp_right"
|
|
118513
|
+
}, [_c('el-input', {
|
|
118514
|
+
staticClass: "col-input-select",
|
|
118515
|
+
attrs: {
|
|
118516
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118423
118517
|
},
|
|
118424
118518
|
model: {
|
|
118425
|
-
value: _vm.
|
|
118519
|
+
value: _vm.contentInput,
|
|
118426
118520
|
callback: function ($$v) {
|
|
118427
|
-
_vm
|
|
118521
|
+
_vm.contentInput = $$v;
|
|
118428
118522
|
},
|
|
118429
|
-
expression: "
|
|
118523
|
+
expression: "contentInput"
|
|
118430
118524
|
}
|
|
118431
|
-
},
|
|
118432
|
-
return _c('el-tab-pane', {
|
|
118433
|
-
key: item.name,
|
|
118434
|
-
attrs: {
|
|
118435
|
-
"name": item.name,
|
|
118436
|
-
"label": item.label
|
|
118437
|
-
}
|
|
118438
|
-
});
|
|
118439
|
-
}), 1)], 1) : _vm._e(), _c('div', {
|
|
118440
|
-
directives: [{
|
|
118441
|
-
name: "loading",
|
|
118442
|
-
rawName: "v-loading",
|
|
118443
|
-
value: _vm.loading,
|
|
118444
|
-
expression: "loading"
|
|
118445
|
-
}],
|
|
118446
|
-
staticClass: "list hidden-scrollbar"
|
|
118447
|
-
}, [_vm.tableTotal ? _vm._l(_vm.tableData, function (t, i) {
|
|
118448
|
-
return _c('div', {
|
|
118449
|
-
key: i,
|
|
118450
|
-
staticClass: "list-item grid grid-cols-2 mb16"
|
|
118451
|
-
}, [_c('div', {
|
|
118452
|
-
staticClass: "desc"
|
|
118453
|
-
}, [_c('h3', {
|
|
118454
|
-
staticClass: "beyond_eip mb16"
|
|
118455
|
-
}, [_vm._v(" " + _vm._s(t.templatesTitle) + " ")]), _c('p', {
|
|
118456
|
-
staticClass: "beyond_eip mb8"
|
|
118457
|
-
}, [_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', {
|
|
118458
|
-
staticClass: "operate"
|
|
118459
|
-
}, [_c('button', {
|
|
118460
|
-
staticClass: "operate-detail",
|
|
118461
|
-
on: {
|
|
118462
|
-
"click": function ($event) {
|
|
118463
|
-
return _vm.showSetTemplate(t);
|
|
118464
|
-
}
|
|
118465
|
-
}
|
|
118466
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.detail"))), _c('i', {
|
|
118467
|
-
staticClass: "dss-iconfont icon-arrow"
|
|
118468
|
-
})]), _c('div', {
|
|
118469
|
-
staticClass: "operate-btns"
|
|
118470
|
-
}, [_vm.searchForm.type == 2 || _vm.searchForm.type == 1 && _vm.userId == 1 ? _c('button', {
|
|
118471
|
-
staticClass: "operate-btn operate-btn-linear mr8",
|
|
118472
|
-
on: {
|
|
118473
|
-
"click": function ($event) {
|
|
118474
|
-
return _vm.del(t.id);
|
|
118475
|
-
}
|
|
118476
|
-
}
|
|
118477
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.delete")) + " ")]) : _vm._e(), _vm.searchForm.type === 2 && _vm.userId === 1 ? _c('el-button', {
|
|
118478
|
-
staticClass: "operate-btn-setsys mr8",
|
|
118479
|
-
attrs: {
|
|
118480
|
-
"type": "primary",
|
|
118481
|
-
"size": "small"
|
|
118482
|
-
},
|
|
118483
|
-
on: {
|
|
118484
|
-
"click": function ($event) {
|
|
118485
|
-
return _vm.showSetSystem(t);
|
|
118486
|
-
}
|
|
118487
|
-
}
|
|
118488
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.set_system_template")) + " ")]) : _vm._e(), t.isShowDownload === 1 ? _c('el-button', {
|
|
118489
|
-
staticClass: "mr8",
|
|
118490
|
-
attrs: {
|
|
118491
|
-
"type": "primary",
|
|
118492
|
-
"size": "small"
|
|
118493
|
-
},
|
|
118494
|
-
on: {
|
|
118495
|
-
"click": function ($event) {
|
|
118496
|
-
return _vm.downloadTem(t);
|
|
118497
|
-
}
|
|
118498
|
-
}
|
|
118499
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.download")) + " ")]) : _vm._e(), _c('el-button', {
|
|
118500
|
-
attrs: {
|
|
118501
|
-
"type": "primary",
|
|
118502
|
-
"size": "small"
|
|
118503
|
-
},
|
|
118504
|
-
on: {
|
|
118505
|
-
"click": function ($event) {
|
|
118506
|
-
return _vm.setMailTemplate(t);
|
|
118507
|
-
}
|
|
118508
|
-
}
|
|
118509
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.apply")) + " ")])], 1)])]);
|
|
118510
|
-
}) : _vm._e(), !_vm.tableTotal ? _c('div', {
|
|
118511
|
-
staticClass: "w-full h-full flex items-center justify-center"
|
|
118512
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.no_data")) + " ")]) : _vm._e()], 2), _c('div', {
|
|
118513
|
-
staticClass: "list-page"
|
|
118514
|
-
}, [_c('el-pagination', {
|
|
118525
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118515
118526
|
attrs: {
|
|
118516
|
-
"
|
|
118517
|
-
"total": _vm.tableTotal,
|
|
118518
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118519
|
-
"pager-count": 5,
|
|
118520
|
-
"small": "",
|
|
118521
|
-
"layout": "total, prev, pager, next, jumper"
|
|
118522
|
-
},
|
|
118523
|
-
on: {
|
|
118524
|
-
"current-change": _vm.changePage
|
|
118527
|
+
"span": 8
|
|
118525
118528
|
}
|
|
118526
|
-
}
|
|
118529
|
+
}, [_c('div', {
|
|
118530
|
+
staticClass: "col-item col-select-input-item"
|
|
118531
|
+
}, [_c('el-input', {
|
|
118532
|
+
staticClass: "col-input-select",
|
|
118527
118533
|
attrs: {
|
|
118528
|
-
"
|
|
118529
|
-
"with-header": false,
|
|
118530
|
-
"wrapper-closable": false,
|
|
118531
|
-
"append-to-body": "",
|
|
118532
|
-
"size": "800px"
|
|
118534
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118533
118535
|
},
|
|
118534
|
-
|
|
118535
|
-
|
|
118536
|
-
|
|
118537
|
-
|
|
118536
|
+
model: {
|
|
118537
|
+
value: _vm.mailTitleInput,
|
|
118538
|
+
callback: function ($$v) {
|
|
118539
|
+
_vm.mailTitleInput = $$v;
|
|
118540
|
+
},
|
|
118541
|
+
expression: "mailTitleInput"
|
|
118538
118542
|
}
|
|
118539
|
-
}, [
|
|
118543
|
+
}, [_c('el-select', {
|
|
118540
118544
|
attrs: {
|
|
118541
|
-
"
|
|
118542
|
-
"
|
|
118543
|
-
"selectType": _vm.searchForm.type
|
|
118545
|
+
"slot": "prepend",
|
|
118546
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118544
118547
|
},
|
|
118545
118548
|
on: {
|
|
118546
|
-
"
|
|
118547
|
-
_vm.
|
|
118548
|
-
_vm.
|
|
118549
|
-
|
|
118550
|
-
"close": function ($event) {
|
|
118551
|
-
_vm.setId = 0;
|
|
118552
|
-
_vm.isShowSet = false;
|
|
118549
|
+
"change": function ($event) {
|
|
118550
|
+
_vm.mailTitleInput = '';
|
|
118551
|
+
_vm.searchForm.content = '';
|
|
118552
|
+
_vm.searchForm.mailSubject = '';
|
|
118553
118553
|
}
|
|
118554
|
-
}
|
|
118555
|
-
}) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
|
|
118556
|
-
attrs: {
|
|
118557
|
-
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118558
|
-
"tabOpts": _vm.tabOpts,
|
|
118559
|
-
"mailId": _vm.mailId
|
|
118560
118554
|
},
|
|
118561
|
-
|
|
118562
|
-
|
|
118555
|
+
slot: "prepend",
|
|
118556
|
+
model: {
|
|
118557
|
+
value: _vm.mailTitleSelect,
|
|
118558
|
+
callback: function ($$v) {
|
|
118559
|
+
_vm.mailTitleSelect = $$v;
|
|
118560
|
+
},
|
|
118561
|
+
expression: "mailTitleSelect"
|
|
118563
118562
|
}
|
|
118564
|
-
}
|
|
118565
|
-
|
|
118566
|
-
|
|
118567
|
-
|
|
118568
|
-
;// ./src/api/send/template.js
|
|
118569
|
-
|
|
118570
|
-
// 分页查看模板列表
|
|
118571
|
-
async function getTemplateList(params) {
|
|
118572
|
-
let res = await request_get("/edm/template/templates", params);
|
|
118573
|
-
return res;
|
|
118574
|
-
}
|
|
118575
|
-
// 添加模板
|
|
118576
|
-
async function addTemplate(data) {
|
|
118577
|
-
let res = await request_post("/edm/template/addTemplate", data);
|
|
118578
|
-
return res;
|
|
118579
|
-
}
|
|
118580
|
-
// 编辑模板
|
|
118581
|
-
async function editTemplate(data) {
|
|
118582
|
-
let res = await request_post("/edm/template/editTemplate", data);
|
|
118583
|
-
return res;
|
|
118584
|
-
}
|
|
118585
|
-
// 删除模板
|
|
118586
|
-
async function delTemplate(data) {
|
|
118587
|
-
let res = await request_del(`/edm/template/delTemplate/${data.id}`);
|
|
118588
|
-
return res;
|
|
118589
|
-
}
|
|
118590
|
-
// 设为系统模版
|
|
118591
|
-
async function setSysTemplate(data) {
|
|
118592
|
-
let res = await request_put(`/edm/template/setSysTemplate`, data);
|
|
118593
|
-
return res;
|
|
118594
|
-
}
|
|
118595
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
118596
|
-
var SetTemplatevue_type_template_id_87417d06_scoped_true_render = function render() {
|
|
118597
|
-
var _vm = this,
|
|
118598
|
-
_c = _vm._self._c;
|
|
118599
|
-
return _c('div', {
|
|
118600
|
-
staticClass: "drawer"
|
|
118601
|
-
}, [_c('div', {
|
|
118602
|
-
staticClass: "drawer-head"
|
|
118603
|
-
}, [_c('h3', [_vm._v(" " + _vm._s(_vm.id ? `${_vm.$i18n.t("template.edit_template")}` : `${_vm.$i18n.t("template.new_template")}`) + " ")]), _c('button', {
|
|
118604
|
-
staticClass: "close-btn",
|
|
118605
|
-
on: {
|
|
118606
|
-
"click": function ($event) {
|
|
118607
|
-
return _vm.close();
|
|
118608
|
-
}
|
|
118563
|
+
}, [_c('el-option', {
|
|
118564
|
+
attrs: {
|
|
118565
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118566
|
+
"value": "1"
|
|
118609
118567
|
}
|
|
118610
|
-
},
|
|
118611
|
-
staticClass: "dss-iconfont icon-close"
|
|
118612
|
-
})])]), _c('div', {
|
|
118613
|
-
staticClass: "drawer-body hidden-scrollbar"
|
|
118614
|
-
}, [_c('el-form', {
|
|
118615
|
-
ref: "form",
|
|
118568
|
+
}), _c('el-option', {
|
|
118616
118569
|
attrs: {
|
|
118617
|
-
"
|
|
118618
|
-
"
|
|
118570
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118571
|
+
"value": "2"
|
|
118619
118572
|
}
|
|
118620
|
-
},
|
|
118621
|
-
staticClass: "form-item"
|
|
118622
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118573
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118623
118574
|
attrs: {
|
|
118624
|
-
"
|
|
118575
|
+
"span": 8
|
|
118625
118576
|
}
|
|
118626
|
-
}, [_c('
|
|
118577
|
+
}, [_c('div', {
|
|
118578
|
+
staticClass: "col-item"
|
|
118579
|
+
}, [_c('span', {
|
|
118580
|
+
staticClass: "col-span"
|
|
118581
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118582
|
+
staticClass: "col-select",
|
|
118627
118583
|
attrs: {
|
|
118628
|
-
"
|
|
118629
|
-
"
|
|
118630
|
-
"
|
|
118584
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118585
|
+
"clearable": "",
|
|
118586
|
+
"filterable": ""
|
|
118631
118587
|
},
|
|
118632
118588
|
model: {
|
|
118633
|
-
value: _vm.
|
|
118589
|
+
value: _vm.searchForm.modelLanguage,
|
|
118634
118590
|
callback: function ($$v) {
|
|
118635
|
-
_vm.$set(_vm.
|
|
118591
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118636
118592
|
},
|
|
118637
|
-
expression: "
|
|
118593
|
+
expression: "searchForm.modelLanguage"
|
|
118638
118594
|
}
|
|
118639
|
-
}
|
|
118640
|
-
|
|
118641
|
-
|
|
118595
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118596
|
+
return _c('el-option', {
|
|
118597
|
+
key: item.value,
|
|
118598
|
+
attrs: {
|
|
118599
|
+
"value": item.value,
|
|
118600
|
+
"label": item.label
|
|
118601
|
+
}
|
|
118602
|
+
});
|
|
118603
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118604
|
+
staticStyle: {
|
|
118605
|
+
"margin-top": "8px"
|
|
118606
|
+
},
|
|
118642
118607
|
attrs: {
|
|
118643
|
-
"
|
|
118608
|
+
"gutter": 12
|
|
118644
118609
|
}
|
|
118645
|
-
}, [_c('el-
|
|
118646
|
-
ref: "mailSubjectIpt",
|
|
118610
|
+
}, [_c('el-col', {
|
|
118647
118611
|
attrs: {
|
|
118648
|
-
"
|
|
118649
|
-
|
|
118612
|
+
"span": 8
|
|
118613
|
+
}
|
|
118614
|
+
}, [_c('div', {
|
|
118615
|
+
staticClass: "col-item"
|
|
118616
|
+
}, [_c('span', {
|
|
118617
|
+
staticClass: "col-span"
|
|
118618
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118619
|
+
staticClass: "col-select",
|
|
118620
|
+
attrs: {
|
|
118621
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118650
118622
|
"clearable": ""
|
|
118651
118623
|
},
|
|
118652
118624
|
on: {
|
|
118653
|
-
"
|
|
118654
|
-
_vm.isFocusSubject = true;
|
|
118655
|
-
}
|
|
118625
|
+
"change": _vm.modelTypeChange
|
|
118656
118626
|
},
|
|
118657
118627
|
model: {
|
|
118658
|
-
value: _vm.
|
|
118628
|
+
value: _vm.searchForm.type,
|
|
118659
118629
|
callback: function ($$v) {
|
|
118660
|
-
_vm.$set(_vm.
|
|
118630
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118661
118631
|
},
|
|
118662
|
-
expression: "
|
|
118663
|
-
}
|
|
118664
|
-
})], 1)], 1), _c('div', {
|
|
118665
|
-
staticClass: "form-editor mb24"
|
|
118666
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.content")))]), _c('div', {
|
|
118667
|
-
staticClass: "form-editor-wrap"
|
|
118668
|
-
}, [_c('editor', {
|
|
118669
|
-
ref: "templateContent",
|
|
118670
|
-
attrs: {
|
|
118671
|
-
"height": 400,
|
|
118672
|
-
"theme": "light"
|
|
118673
|
-
},
|
|
118674
|
-
on: {
|
|
118675
|
-
"click": function ($event) {
|
|
118676
|
-
_vm.isFocusSubject = false;
|
|
118677
|
-
}
|
|
118678
|
-
}
|
|
118679
|
-
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118680
|
-
staticClass: "form-tool"
|
|
118681
|
-
}, [_c('div', {
|
|
118682
|
-
staticClass: "form-tool-title"
|
|
118683
|
-
}, [_c('i', {
|
|
118684
|
-
staticClass: "dss-iconfont icon-info"
|
|
118685
|
-
}), _c('p', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.template_var")))])]), _c('div', {
|
|
118686
|
-
staticClass: "form-tool-main"
|
|
118687
|
-
}, [_c('button', {
|
|
118688
|
-
staticClass: "mb8 mr16",
|
|
118689
|
-
attrs: {
|
|
118690
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118691
|
-
},
|
|
118692
|
-
on: {
|
|
118693
|
-
"click": function ($event) {
|
|
118694
|
-
$event.preventDefault();
|
|
118695
|
-
return _vm.setVariable(0);
|
|
118696
|
-
}
|
|
118697
|
-
}
|
|
118698
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_name")) + " ")]), _c('button', {
|
|
118699
|
-
staticClass: "mb8 mr16",
|
|
118700
|
-
on: {
|
|
118701
|
-
"click": function ($event) {
|
|
118702
|
-
$event.preventDefault();
|
|
118703
|
-
return _vm.setVariable(3);
|
|
118704
|
-
}
|
|
118632
|
+
expression: "searchForm.type"
|
|
118705
118633
|
}
|
|
118706
|
-
}, [
|
|
118707
|
-
|
|
118634
|
+
}, [_c('el-option', {
|
|
118635
|
+
key: 1,
|
|
118708
118636
|
attrs: {
|
|
118709
|
-
"
|
|
118710
|
-
|
|
118711
|
-
on: {
|
|
118712
|
-
"click": function ($event) {
|
|
118713
|
-
$event.preventDefault();
|
|
118714
|
-
return _vm.setVariable(1);
|
|
118715
|
-
}
|
|
118637
|
+
"value": 1,
|
|
118638
|
+
"label": "系统模版"
|
|
118716
118639
|
}
|
|
118717
|
-
}
|
|
118640
|
+
}), _c('el-option', {
|
|
118641
|
+
key: 2,
|
|
118718
118642
|
attrs: {
|
|
118719
|
-
"
|
|
118720
|
-
|
|
118721
|
-
on: {
|
|
118722
|
-
"click": function ($event) {
|
|
118723
|
-
$event.preventDefault();
|
|
118724
|
-
return _vm.setVariable(2);
|
|
118725
|
-
}
|
|
118643
|
+
"value": 2,
|
|
118644
|
+
"label": "自定义模版"
|
|
118726
118645
|
}
|
|
118727
|
-
}
|
|
118728
|
-
staticClass: "form-item"
|
|
118729
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118646
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118730
118647
|
attrs: {
|
|
118731
|
-
"
|
|
118648
|
+
"span": 8
|
|
118732
118649
|
}
|
|
118733
|
-
}, [_c('
|
|
118650
|
+
}, [_c('div', {
|
|
118651
|
+
staticClass: "col-item"
|
|
118652
|
+
}, [_c('span', {
|
|
118653
|
+
staticClass: "col-span"
|
|
118654
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118655
|
+
staticClass: "col-select",
|
|
118734
118656
|
attrs: {
|
|
118735
|
-
"placeholder": _vm.$i18n.t('common.
|
|
118736
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118657
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118737
118658
|
"clearable": ""
|
|
118738
118659
|
},
|
|
118739
118660
|
model: {
|
|
118740
|
-
value: _vm.
|
|
118661
|
+
value: _vm.searchForm.isShared,
|
|
118741
118662
|
callback: function ($$v) {
|
|
118742
|
-
_vm.$set(_vm.
|
|
118663
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118743
118664
|
},
|
|
118744
|
-
expression: "
|
|
118665
|
+
expression: "searchForm.isShared"
|
|
118745
118666
|
}
|
|
118746
|
-
}
|
|
118747
|
-
|
|
118748
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118667
|
+
}, [_c('el-option', {
|
|
118668
|
+
key: 1,
|
|
118749
118669
|
attrs: {
|
|
118750
|
-
"
|
|
118670
|
+
"value": true,
|
|
118671
|
+
"label": "公开"
|
|
118751
118672
|
}
|
|
118752
|
-
},
|
|
118673
|
+
}), _c('el-option', {
|
|
118674
|
+
key: 2,
|
|
118675
|
+
attrs: {
|
|
118676
|
+
"value": false,
|
|
118677
|
+
"label": "私有"
|
|
118678
|
+
}
|
|
118679
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118680
|
+
attrs: {
|
|
118681
|
+
"span": 8
|
|
118682
|
+
}
|
|
118683
|
+
}, [_c('div', {
|
|
118684
|
+
staticClass: "col-item"
|
|
118685
|
+
}, [_c('span', {
|
|
118686
|
+
staticClass: "col-span"
|
|
118687
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118688
|
+
staticClass: "col-select",
|
|
118753
118689
|
attrs: {
|
|
118754
118690
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118755
|
-
"
|
|
118756
|
-
"
|
|
118691
|
+
"clearable": "",
|
|
118692
|
+
"filterable": ""
|
|
118757
118693
|
},
|
|
118758
118694
|
model: {
|
|
118759
|
-
value: _vm.
|
|
118695
|
+
value: _vm.searchForm.userId,
|
|
118760
118696
|
callback: function ($$v) {
|
|
118761
|
-
_vm.$set(_vm.
|
|
118697
|
+
_vm.$set(_vm.searchForm, "userId", $$v);
|
|
118762
118698
|
},
|
|
118763
|
-
expression: "
|
|
118699
|
+
expression: "searchForm.userId"
|
|
118764
118700
|
}
|
|
118765
|
-
}, _vm._l(_vm.
|
|
118701
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118766
118702
|
return _c('el-option', {
|
|
118767
|
-
key:
|
|
118703
|
+
key: item.userId,
|
|
118768
118704
|
attrs: {
|
|
118769
|
-
"
|
|
118770
|
-
"
|
|
118705
|
+
"label": item.userName,
|
|
118706
|
+
"value": item.userId
|
|
118771
118707
|
}
|
|
118772
118708
|
});
|
|
118773
|
-
}), 1)], 1)]
|
|
118774
|
-
|
|
118775
|
-
|
|
118776
|
-
|
|
118709
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118710
|
+
staticStyle: {
|
|
118711
|
+
"margin-top": "8px"
|
|
118712
|
+
},
|
|
118713
|
+
attrs: {
|
|
118714
|
+
"gutter": 20
|
|
118715
|
+
}
|
|
118716
|
+
}, [_c('el-col', {
|
|
118717
|
+
attrs: {
|
|
118718
|
+
"span": 24
|
|
118719
|
+
}
|
|
118720
|
+
}, [_c('div', {
|
|
118721
|
+
staticClass: "btns_box"
|
|
118722
|
+
}, [_c('div', [_c('el-button', {
|
|
118723
|
+
attrs: {
|
|
118724
|
+
"type": "primary"
|
|
118725
|
+
},
|
|
118777
118726
|
on: {
|
|
118778
118727
|
"click": function ($event) {
|
|
118779
|
-
|
|
118728
|
+
_vm.searchForm.currentPage = 1;
|
|
118729
|
+
_vm.getCardList();
|
|
118780
118730
|
}
|
|
118781
118731
|
}
|
|
118782
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118783
|
-
|
|
118732
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118733
|
+
on: {
|
|
118734
|
+
"click": _vm.resetEvt
|
|
118735
|
+
}
|
|
118736
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118737
|
+
staticStyle: {
|
|
118738
|
+
"display": "flex",
|
|
118739
|
+
"align-items": "center"
|
|
118740
|
+
}
|
|
118741
|
+
}, [_c('div', {
|
|
118742
|
+
staticClass: "right_sort"
|
|
118743
|
+
}, [_c('el-dropdown', {
|
|
118784
118744
|
attrs: {
|
|
118785
|
-
"
|
|
118745
|
+
"placement": "bottom"
|
|
118746
|
+
}
|
|
118747
|
+
}, [_c('div', {
|
|
118748
|
+
staticClass: "sort_btn"
|
|
118749
|
+
}, [_c('i', {
|
|
118750
|
+
staticClass: "dss-iconfont"
|
|
118751
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118752
|
+
attrs: {
|
|
118753
|
+
"slot": "dropdown"
|
|
118754
|
+
},
|
|
118755
|
+
slot: "dropdown"
|
|
118756
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118757
|
+
return _c('el-dropdown-item', {
|
|
118758
|
+
key: index,
|
|
118759
|
+
staticStyle: {
|
|
118760
|
+
"white-space": "nowrap"
|
|
118761
|
+
},
|
|
118762
|
+
attrs: {
|
|
118763
|
+
"command": item.value
|
|
118764
|
+
},
|
|
118765
|
+
nativeOn: {
|
|
118766
|
+
"click": function ($event) {
|
|
118767
|
+
return _vm.clickDropdownItem(item);
|
|
118768
|
+
}
|
|
118769
|
+
}
|
|
118770
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118771
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118772
|
+
directives: [{
|
|
118773
|
+
name: "loading",
|
|
118774
|
+
rawName: "v-loading",
|
|
118775
|
+
value: _vm.loading,
|
|
118776
|
+
expression: "loading"
|
|
118777
|
+
}],
|
|
118778
|
+
staticClass: "temp_box"
|
|
118779
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118780
|
+
staticClass: "temp_list"
|
|
118781
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118782
|
+
return _c('div', {
|
|
118783
|
+
key: item.id,
|
|
118784
|
+
staticClass: "temp_item"
|
|
118785
|
+
}, [_c('div', {
|
|
118786
|
+
staticClass: "temp_content"
|
|
118787
|
+
}, [_c('div', {
|
|
118788
|
+
staticClass: "temp_top"
|
|
118789
|
+
}, [_c('div', {
|
|
118790
|
+
staticClass: "temp_title"
|
|
118791
|
+
}, [_c('div', {
|
|
118792
|
+
staticClass: "title_text"
|
|
118793
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118794
|
+
staticClass: "more_icon",
|
|
118795
|
+
on: {
|
|
118796
|
+
"click": function ($event) {
|
|
118797
|
+
return _vm.toDetail(item);
|
|
118798
|
+
}
|
|
118799
|
+
}
|
|
118800
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118801
|
+
staticClass: "el-icon-arrow-right"
|
|
118802
|
+
})])]), _c('div', {
|
|
118803
|
+
staticClass: "num_box"
|
|
118804
|
+
}, [_c('div', {
|
|
118805
|
+
staticClass: "lang_box"
|
|
118806
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), item.attachmentNum ? _c('div', {
|
|
118807
|
+
staticClass: "lang_box"
|
|
118808
|
+
}, [_vm._v(" 附件:" + _vm._s(item.attachmentNum) + "个 ")]) : _vm._e(), item.productCardNum ? _c('div', {
|
|
118809
|
+
staticClass: "lang_box"
|
|
118810
|
+
}, [_vm._v(" 商品卡:" + _vm._s(item.productCardNum) + "个 ")]) : _vm._e()])]), _c('div', {
|
|
118811
|
+
staticClass: "temp_middle"
|
|
118812
|
+
}, [_c('div', {
|
|
118813
|
+
staticClass: "nu_box"
|
|
118814
|
+
}, [_c('div', {
|
|
118815
|
+
staticClass: "nu_title"
|
|
118816
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118817
|
+
staticClass: "nu_number"
|
|
118818
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118819
|
+
staticClass: "nu_box"
|
|
118820
|
+
}, [_c('div', {
|
|
118821
|
+
staticClass: "nu_title"
|
|
118822
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118823
|
+
staticClass: "nu_number"
|
|
118824
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118825
|
+
staticClass: "nu_box"
|
|
118826
|
+
}, [_c('div', {
|
|
118827
|
+
staticClass: "nu_title"
|
|
118828
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118829
|
+
staticClass: "nu_number"
|
|
118830
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118831
|
+
staticClass: "nu_box"
|
|
118832
|
+
}, [_c('div', {
|
|
118833
|
+
staticClass: "nu_title"
|
|
118834
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118835
|
+
staticClass: "nu_number"
|
|
118836
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118837
|
+
staticClass: "tem_bottom"
|
|
118838
|
+
}, [_c('div', {
|
|
118839
|
+
staticClass: "tem_desc"
|
|
118840
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118841
|
+
staticClass: "tem_desc"
|
|
118842
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118843
|
+
staticClass: "desc_btns"
|
|
118844
|
+
}, [_c('div', {
|
|
118845
|
+
staticClass: "desc_text"
|
|
118846
|
+
}, [_c('div', {
|
|
118847
|
+
staticClass: "tem_desc"
|
|
118848
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118849
|
+
staticClass: "tem_desc"
|
|
118850
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118851
|
+
staticClass: "apply_btn"
|
|
118852
|
+
}, [_c('el-button', {
|
|
118853
|
+
attrs: {
|
|
118854
|
+
"type": "primary"
|
|
118855
|
+
},
|
|
118856
|
+
on: {
|
|
118857
|
+
"click": function ($event) {
|
|
118858
|
+
return _vm.setMailTemplate(item);
|
|
118859
|
+
}
|
|
118860
|
+
}
|
|
118861
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118862
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118863
|
+
staticClass: "page_box"
|
|
118864
|
+
}, [_c('el-pagination', {
|
|
118865
|
+
attrs: {
|
|
118866
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118867
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118868
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118869
|
+
"total": _vm.total
|
|
118786
118870
|
},
|
|
118787
118871
|
on: {
|
|
118788
|
-
"
|
|
118872
|
+
"size-change": _vm.handleSizeChange,
|
|
118873
|
+
"current-change": _vm.handleCurrentChange,
|
|
118874
|
+
"update:currentPage": function ($event) {
|
|
118875
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118876
|
+
},
|
|
118877
|
+
"update:current-page": function ($event) {
|
|
118878
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118879
|
+
}
|
|
118789
118880
|
}
|
|
118790
|
-
},
|
|
118791
|
-
staticClass: "el-icon-loading"
|
|
118792
|
-
}) : _vm._e()])]) : _vm._e()]);
|
|
118881
|
+
})], 1)]);
|
|
118793
118882
|
};
|
|
118794
|
-
var
|
|
118795
|
-
|
|
118796
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
118883
|
+
var TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns = [];
|
|
118797
118884
|
|
|
118885
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=d1b92a60&scoped=true
|
|
118798
118886
|
|
|
118887
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
118799
118888
|
|
|
118800
|
-
|
|
118801
|
-
|
|
118802
|
-
|
|
118803
|
-
|
|
118804
|
-
|
|
118805
|
-
|
|
118806
|
-
|
|
118807
|
-
|
|
118808
|
-
|
|
118809
|
-
|
|
118810
|
-
|
|
118811
|
-
|
|
118812
|
-
|
|
118813
|
-
|
|
118814
|
-
|
|
118815
|
-
|
|
118816
|
-
|
|
118817
|
-
|
|
118818
|
-
|
|
118819
|
-
|
|
118820
|
-
|
|
118821
|
-
|
|
118822
|
-
|
|
118823
|
-
|
|
118824
|
-
|
|
118825
|
-
|
|
118826
|
-
|
|
118827
|
-
|
|
118828
|
-
|
|
118829
|
-
|
|
118830
|
-
|
|
118831
|
-
|
|
118832
|
-
|
|
118833
|
-
|
|
118834
|
-
|
|
118835
|
-
|
|
118836
|
-
|
|
118837
|
-
|
|
118838
|
-
|
|
118839
|
-
|
|
118840
|
-
|
|
118841
|
-
|
|
118842
|
-
|
|
118843
|
-
|
|
118844
|
-
|
|
118845
|
-
|
|
118846
|
-
|
|
118847
|
-
|
|
118848
|
-
|
|
118849
|
-
|
|
118850
|
-
|
|
118851
|
-
|
|
118852
|
-
|
|
118853
|
-
|
|
118854
|
-
|
|
118855
|
-
|
|
118856
|
-
|
|
118857
|
-
|
|
118858
|
-
|
|
118859
|
-
|
|
118860
|
-
|
|
118861
|
-
|
|
118862
|
-
|
|
118863
|
-
|
|
118864
|
-
|
|
118865
|
-
|
|
118866
|
-
|
|
118867
|
-
|
|
118868
|
-
|
|
118869
|
-
|
|
118870
|
-
|
|
118871
|
-
|
|
118872
|
-
|
|
118873
|
-
|
|
118874
|
-
|
|
118875
|
-
|
|
118876
|
-
|
|
118877
|
-
|
|
118878
|
-
|
|
118879
|
-
|
|
118880
|
-
|
|
118881
|
-
|
|
118882
|
-
|
|
118883
|
-
|
|
118884
|
-
|
|
118885
|
-
|
|
118886
|
-
|
|
118887
|
-
|
|
118888
|
-
|
|
118889
|
-
|
|
118890
|
-
|
|
118891
|
-
|
|
118892
|
-
|
|
118893
|
-
|
|
118894
|
-
|
|
118895
|
-
|
|
118896
|
-
|
|
118897
|
-
|
|
118898
|
-
|
|
118899
|
-
this.$refs.form.validate(valid => {
|
|
118900
|
-
if (valid) {
|
|
118901
|
-
if (this.$refs.templateContent.isEmpty()) {
|
|
118902
|
-
this.$message({
|
|
118903
|
-
type: "warning",
|
|
118904
|
-
message: `${this.$i18n.t("template.no_content")}`
|
|
118905
|
-
});
|
|
118906
|
-
return;
|
|
118907
|
-
}
|
|
118908
|
-
const data = this.form;
|
|
118909
|
-
data.content = this.$refs.templateContent.getContent();
|
|
118910
|
-
this.isSubmit = true;
|
|
118911
|
-
if (this.id) {
|
|
118912
|
-
data.id = this.id;
|
|
118913
|
-
// 编辑
|
|
118914
|
-
editTemplate(data).then(res => {
|
|
118915
|
-
if (res.code == 0) {
|
|
118916
|
-
this.isSubmit = false;
|
|
118917
|
-
this.$emit("init");
|
|
118918
|
-
this.close();
|
|
118919
|
-
this.$message({
|
|
118920
|
-
type: "success",
|
|
118921
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118922
|
-
});
|
|
118923
|
-
}
|
|
118924
|
-
});
|
|
118925
|
-
} else {
|
|
118926
|
-
// 新增
|
|
118927
|
-
addTemplate(data).then(res => {
|
|
118928
|
-
if (res.code == 0) {
|
|
118929
|
-
this.isSubmit = false;
|
|
118930
|
-
this.$emit("init");
|
|
118931
|
-
this.close();
|
|
118932
|
-
this.$message({
|
|
118933
|
-
type: "success",
|
|
118934
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118935
|
-
});
|
|
118936
|
-
}
|
|
118937
|
-
});
|
|
118938
|
-
}
|
|
118939
|
-
} else {
|
|
118940
|
-
return false;
|
|
118941
|
-
}
|
|
118942
|
-
});
|
|
118943
|
-
},
|
|
118944
|
-
// 使用变量
|
|
118945
|
-
setVariable(type) {
|
|
118946
|
-
let content = ``;
|
|
118947
|
-
if (this.isFocusSubject) {
|
|
118948
|
-
switch (type) {
|
|
118949
|
-
case 0:
|
|
118950
|
-
// 频道名
|
|
118951
|
-
content = `{$channelName}`;
|
|
118952
|
-
break;
|
|
118953
|
-
case 1:
|
|
118954
|
-
// 粉丝数
|
|
118955
|
-
content = `{$subscriber}`;
|
|
118956
|
-
break;
|
|
118957
|
-
case 2:
|
|
118958
|
-
// 频道链接
|
|
118959
|
-
content = `{$link}`;
|
|
118960
|
-
break;
|
|
118961
|
-
case 3:
|
|
118962
|
-
// 频道id
|
|
118963
|
-
content = `{$channelId}`;
|
|
118964
|
-
break;
|
|
118965
|
-
}
|
|
118966
|
-
const caretPosition = this.$refs.mailSubjectIpt.$el.firstElementChild.selectionStart;
|
|
118967
|
-
const newValue = this.form.mailSubject.slice(0, caretPosition) + content + this.form.mailSubject.slice(caretPosition);
|
|
118968
|
-
this.form.mailSubject = newValue;
|
|
118969
|
-
this.isFocusSubject = false;
|
|
118970
|
-
} else {
|
|
118971
|
-
switch (type) {
|
|
118972
|
-
case 0:
|
|
118973
|
-
// 频道名
|
|
118974
|
-
content = `{$channelName}`;
|
|
118975
|
-
break;
|
|
118976
|
-
case 1:
|
|
118977
|
-
// 粉丝数
|
|
118978
|
-
content = `{$subscriber}`;
|
|
118979
|
-
break;
|
|
118980
|
-
case 2:
|
|
118981
|
-
// 频道链接
|
|
118982
|
-
content = `{$link}`;
|
|
118983
|
-
break;
|
|
118984
|
-
case 3:
|
|
118985
|
-
// 频道id
|
|
118986
|
-
content = `{$channelId}`;
|
|
118987
|
-
break;
|
|
118988
|
-
}
|
|
118989
|
-
this.$refs.templateContent.insertEditContent(content);
|
|
118990
|
-
}
|
|
118991
|
-
},
|
|
118992
|
-
// 关闭弹窗
|
|
118993
|
-
close() {
|
|
118994
|
-
this.$emit("close");
|
|
118995
|
-
}
|
|
118996
|
-
}
|
|
118997
|
-
});
|
|
118998
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118999
|
-
/* harmony default export */ var TemplateCom_SetTemplatevue_type_script_lang_js = (SetTemplatevue_type_script_lang_js);
|
|
119000
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
119001
|
-
// extracted by mini-css-extract-plugin
|
|
119002
|
-
|
|
119003
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
119004
|
-
|
|
119005
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue
|
|
119006
|
-
|
|
119007
|
-
|
|
119008
|
-
|
|
119009
|
-
;
|
|
118889
|
+
const TemplateCom_const_language = [{
|
|
118890
|
+
value: '7',
|
|
118891
|
+
label: '汉语',
|
|
118892
|
+
enLabel: 'Chinese'
|
|
118893
|
+
}, {
|
|
118894
|
+
value: '1',
|
|
118895
|
+
label: '英语',
|
|
118896
|
+
enLabel: 'English'
|
|
118897
|
+
}, {
|
|
118898
|
+
value: '3',
|
|
118899
|
+
label: '法语',
|
|
118900
|
+
enLabel: 'French'
|
|
118901
|
+
}, {
|
|
118902
|
+
value: '8',
|
|
118903
|
+
label: '德语',
|
|
118904
|
+
enLabel: 'German'
|
|
118905
|
+
}, {
|
|
118906
|
+
value: '6',
|
|
118907
|
+
label: '日语',
|
|
118908
|
+
enLabel: 'Japanese'
|
|
118909
|
+
}, {
|
|
118910
|
+
value: '9',
|
|
118911
|
+
label: '韩语',
|
|
118912
|
+
enLabel: 'Korean'
|
|
118913
|
+
}, {
|
|
118914
|
+
value: '10',
|
|
118915
|
+
label: '越南语',
|
|
118916
|
+
enLabel: 'Vietnamese'
|
|
118917
|
+
}, {
|
|
118918
|
+
value: '11',
|
|
118919
|
+
label: '泰国语',
|
|
118920
|
+
enLabel: 'Thai'
|
|
118921
|
+
}, {
|
|
118922
|
+
value: '12',
|
|
118923
|
+
label: '菲律宾语',
|
|
118924
|
+
enLabel: 'Filipino'
|
|
118925
|
+
}, {
|
|
118926
|
+
value: '13',
|
|
118927
|
+
label: '印度尼西亚语',
|
|
118928
|
+
enLabel: 'Indonesian'
|
|
118929
|
+
}, {
|
|
118930
|
+
value: '14',
|
|
118931
|
+
label: '俄罗斯语',
|
|
118932
|
+
enLabel: 'Russian'
|
|
118933
|
+
}, {
|
|
118934
|
+
value: '4',
|
|
118935
|
+
label: '西班牙语',
|
|
118936
|
+
enLabel: 'Spanish'
|
|
118937
|
+
}, {
|
|
118938
|
+
value: '15',
|
|
118939
|
+
label: '意大利语',
|
|
118940
|
+
enLabel: 'Italian'
|
|
118941
|
+
}];
|
|
118942
|
+
const sortConfig = [{
|
|
118943
|
+
label: '按创建时间倒序',
|
|
118944
|
+
value: 0
|
|
118945
|
+
}, {
|
|
118946
|
+
label: '按更新时间倒序',
|
|
118947
|
+
value: 1
|
|
118948
|
+
}, {
|
|
118949
|
+
label: '按送达率倒序',
|
|
118950
|
+
value: 2
|
|
118951
|
+
}, {
|
|
118952
|
+
label: '按打开率倒序',
|
|
118953
|
+
value: 3
|
|
118954
|
+
}, {
|
|
118955
|
+
label: '按回复率倒序',
|
|
118956
|
+
value: 4
|
|
118957
|
+
}, {
|
|
118958
|
+
label: '按累计发送数倒序',
|
|
118959
|
+
value: 5
|
|
118960
|
+
}];
|
|
118961
|
+
// 系统模版场景
|
|
118962
|
+
const templateSystemScene = [{
|
|
118963
|
+
value: '1',
|
|
118964
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
118965
|
+
},
|
|
118966
|
+
//合作邀请
|
|
118967
|
+
{
|
|
118968
|
+
value: '2',
|
|
118969
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
118970
|
+
},
|
|
118971
|
+
//价格协商
|
|
118972
|
+
{
|
|
118973
|
+
value: '3',
|
|
118974
|
+
label: `${src_language.t('template.contract_template')}`
|
|
118975
|
+
},
|
|
118976
|
+
//合同模板
|
|
118977
|
+
{
|
|
118978
|
+
value: '4',
|
|
118979
|
+
label: `${src_language.t('template.video_production')}`
|
|
118980
|
+
},
|
|
118981
|
+
//视频制作
|
|
118982
|
+
{
|
|
118983
|
+
value: '5',
|
|
118984
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
118985
|
+
} //费用结算
|
|
118986
|
+
];
|
|
118987
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
119010
118988
|
|
|
119011
118989
|
|
|
119012
|
-
/* normalize component */
|
|
119013
118990
|
|
|
119014
|
-
var SetTemplate_component = normalizeComponent(
|
|
119015
|
-
TemplateCom_SetTemplatevue_type_script_lang_js,
|
|
119016
|
-
SetTemplatevue_type_template_id_87417d06_scoped_true_render,
|
|
119017
|
-
SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns,
|
|
119018
|
-
false,
|
|
119019
|
-
null,
|
|
119020
|
-
"87417d06",
|
|
119021
|
-
null
|
|
119022
|
-
|
|
119023
|
-
)
|
|
119024
118991
|
|
|
119025
|
-
/* harmony default export */ var SetTemplate = (SetTemplate_component.exports);
|
|
119026
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
119027
|
-
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render = function render() {
|
|
119028
|
-
var _vm = this,
|
|
119029
|
-
_c = _vm._self._c;
|
|
119030
|
-
return _c('el-dialog', {
|
|
119031
|
-
attrs: {
|
|
119032
|
-
"visible": _vm.isShowSetSystemDialog,
|
|
119033
|
-
"close-on-click-modal": false,
|
|
119034
|
-
"title": _vm.$i18n.t('template.set_system_template'),
|
|
119035
|
-
"width": "300px",
|
|
119036
|
-
"append-to-body": ""
|
|
119037
|
-
},
|
|
119038
|
-
on: {
|
|
119039
|
-
"update:visible": function ($event) {
|
|
119040
|
-
_vm.isShowSetSystemDialog = $event;
|
|
119041
|
-
},
|
|
119042
|
-
"close": _vm.closeEvt
|
|
119043
|
-
}
|
|
119044
|
-
}, [_c('div', {
|
|
119045
|
-
staticClass: "form-item flex-col mb24"
|
|
119046
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t('template.choose_type')))]), _c('el-select', {
|
|
119047
|
-
attrs: {
|
|
119048
|
-
"filterable": "",
|
|
119049
|
-
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
119050
|
-
"clearable": ""
|
|
119051
|
-
},
|
|
119052
|
-
model: {
|
|
119053
|
-
value: _vm.setSystemForm.modelType,
|
|
119054
|
-
callback: function ($$v) {
|
|
119055
|
-
_vm.$set(_vm.setSystemForm, "modelType", $$v);
|
|
119056
|
-
},
|
|
119057
|
-
expression: "setSystemForm.modelType"
|
|
119058
|
-
}
|
|
119059
|
-
}, _vm._l(_vm.tabOpts, function (item) {
|
|
119060
|
-
return _c('el-option', {
|
|
119061
|
-
key: Number(item.name),
|
|
119062
|
-
attrs: {
|
|
119063
|
-
"value": Number(item.name),
|
|
119064
|
-
"label": item.label
|
|
119065
|
-
}
|
|
119066
|
-
});
|
|
119067
|
-
}), 1)], 1), _c('div', {
|
|
119068
|
-
staticClass: "flex justify-end"
|
|
119069
|
-
}, [_c('button', {
|
|
119070
|
-
staticClass: "form-btn form-btn-disabled mr16",
|
|
119071
|
-
on: {
|
|
119072
|
-
"click": _vm.closeEvt
|
|
119073
|
-
}
|
|
119074
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('writeMail.cancle')) + " ")]), _c('button', {
|
|
119075
|
-
staticClass: "form-btn form-btn-face",
|
|
119076
|
-
on: {
|
|
119077
|
-
"click": _vm.customToSystem
|
|
119078
|
-
}
|
|
119079
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
|
|
119080
|
-
};
|
|
119081
|
-
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns = [];
|
|
119082
118992
|
|
|
119083
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
119084
118993
|
|
|
119085
|
-
|
|
119086
|
-
|
|
119087
|
-
|
|
119088
|
-
|
|
119089
|
-
|
|
119090
|
-
|
|
119091
|
-
|
|
119092
|
-
|
|
119093
|
-
|
|
119094
|
-
|
|
119095
|
-
|
|
119096
|
-
|
|
119097
|
-
|
|
119098
|
-
|
|
119099
|
-
|
|
119100
|
-
|
|
119101
|
-
|
|
119102
|
-
|
|
119103
|
-
|
|
119104
|
-
|
|
119105
|
-
|
|
119106
|
-
|
|
119107
|
-
|
|
119108
|
-
|
|
119109
|
-
|
|
119110
|
-
};
|
|
119111
|
-
},
|
|
119112
|
-
methods: {
|
|
119113
|
-
customToSystem() {
|
|
119114
|
-
if (!this.setSystemForm.modelType) {
|
|
119115
|
-
this.$message({
|
|
119116
|
-
type: "warning",
|
|
119117
|
-
message: `${this.$i18n.t('common.please_select')}${this.$i18n.t('template.template_type')}`
|
|
119118
|
-
});
|
|
119119
|
-
return;
|
|
119120
|
-
}
|
|
119121
|
-
setSysTemplate(this.setSystemForm).then(res => {
|
|
119122
|
-
if (res.code == 0) {
|
|
119123
|
-
this.closeEvt();
|
|
119124
|
-
this.$message({
|
|
119125
|
-
type: "success",
|
|
119126
|
-
message: `${this.$i18n.t('template.set_success')}`
|
|
119127
|
-
});
|
|
119128
|
-
} else {
|
|
119129
|
-
this.$message.error(res.message);
|
|
119130
|
-
this.closeEvt();
|
|
119131
|
-
}
|
|
119132
|
-
});
|
|
119133
|
-
},
|
|
119134
|
-
closeEvt() {
|
|
119135
|
-
this.setSystemForm.id = "";
|
|
119136
|
-
this.setSystemForm.modelType = "";
|
|
119137
|
-
this.$emit("closeDialog");
|
|
119138
|
-
}
|
|
118994
|
+
function createSearchForm(tar) {
|
|
118995
|
+
let raw = {
|
|
118996
|
+
templatesTitle: "",
|
|
118997
|
+
//模板标题
|
|
118998
|
+
scene: "",
|
|
118999
|
+
//应用场景
|
|
119000
|
+
mailSubject: "",
|
|
119001
|
+
//邮件主题
|
|
119002
|
+
content: "",
|
|
119003
|
+
//正文
|
|
119004
|
+
type: null,
|
|
119005
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
119006
|
+
modelLanguage: "",
|
|
119007
|
+
//语言
|
|
119008
|
+
isShared: "",
|
|
119009
|
+
//是否共享
|
|
119010
|
+
userId: "",
|
|
119011
|
+
//创建人
|
|
119012
|
+
searchSort: 1,
|
|
119013
|
+
//排序
|
|
119014
|
+
currentPage: 1,
|
|
119015
|
+
pageSize: 10
|
|
119016
|
+
};
|
|
119017
|
+
if (tar) {
|
|
119018
|
+
raw = Object.assign(raw, tar);
|
|
119139
119019
|
}
|
|
119140
|
-
|
|
119141
|
-
|
|
119142
|
-
/* harmony default export */ var TemplateCom_SetSysTemplatevue_type_script_lang_js = (SetSysTemplatevue_type_script_lang_js);
|
|
119143
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
119144
|
-
// extracted by mini-css-extract-plugin
|
|
119145
|
-
|
|
119146
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119147
|
-
|
|
119148
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue
|
|
119149
|
-
|
|
119150
|
-
|
|
119151
|
-
|
|
119152
|
-
;
|
|
119153
|
-
|
|
119154
|
-
|
|
119155
|
-
/* normalize component */
|
|
119156
|
-
|
|
119157
|
-
var SetSysTemplate_component = normalizeComponent(
|
|
119158
|
-
TemplateCom_SetSysTemplatevue_type_script_lang_js,
|
|
119159
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render,
|
|
119160
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns,
|
|
119161
|
-
false,
|
|
119162
|
-
null,
|
|
119163
|
-
"3c0d8a32",
|
|
119164
|
-
null
|
|
119165
|
-
|
|
119166
|
-
)
|
|
119167
|
-
|
|
119168
|
-
/* harmony default export */ var SetSysTemplate = (SetSysTemplate_component.exports);
|
|
119169
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
119170
|
-
|
|
119171
|
-
|
|
119172
|
-
|
|
119173
|
-
|
|
119174
|
-
|
|
119020
|
+
return raw;
|
|
119021
|
+
}
|
|
119175
119022
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119176
119023
|
components: {
|
|
119177
|
-
|
|
119178
|
-
SetSysTemplate: SetSysTemplate
|
|
119024
|
+
Empty: Empty
|
|
119179
119025
|
},
|
|
119180
119026
|
props: {
|
|
119181
119027
|
userId: {
|
|
@@ -119185,161 +119031,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119185
119031
|
},
|
|
119186
119032
|
data() {
|
|
119187
119033
|
return {
|
|
119188
|
-
|
|
119189
|
-
|
|
119190
|
-
|
|
119191
|
-
|
|
119192
|
-
|
|
119193
|
-
|
|
119194
|
-
|
|
119195
|
-
|
|
119196
|
-
|
|
119197
|
-
|
|
119198
|
-
|
|
119199
|
-
|
|
119200
|
-
|
|
119201
|
-
|
|
119202
|
-
//当前页
|
|
119203
|
-
pageSize: 10 //当前页条数
|
|
119204
|
-
},
|
|
119205
|
-
// 选项卡 1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119206
|
-
tabOpts: [{
|
|
119207
|
-
name: "1",
|
|
119208
|
-
label: `${this.$i18n.t("template.invite_cooperation")}`
|
|
119209
|
-
},
|
|
119210
|
-
//合作邀请
|
|
119211
|
-
{
|
|
119212
|
-
name: "2",
|
|
119213
|
-
label: `${this.$i18n.t("template.price_negotiation")}`
|
|
119214
|
-
},
|
|
119215
|
-
//价格协商
|
|
119216
|
-
{
|
|
119217
|
-
name: "3",
|
|
119218
|
-
label: `${this.$i18n.t("template.contract_template")}`
|
|
119219
|
-
},
|
|
119220
|
-
//合同模板
|
|
119221
|
-
{
|
|
119222
|
-
name: "4",
|
|
119223
|
-
label: `${this.$i18n.t("template.video_production")}`
|
|
119224
|
-
},
|
|
119225
|
-
//视频制作
|
|
119226
|
-
{
|
|
119227
|
-
name: "5",
|
|
119228
|
-
label: `${this.$i18n.t("template.expense_settlement")}`
|
|
119229
|
-
} //费用结算
|
|
119230
|
-
],
|
|
119231
|
-
loading: false,
|
|
119232
|
-
// 加载中
|
|
119233
|
-
tableData: [],
|
|
119234
|
-
// 表格数据
|
|
119235
|
-
tableTotal: 1,
|
|
119236
|
-
// 表格总数
|
|
119237
|
-
isShowSet: false,
|
|
119238
|
-
// 是否显示模板设置
|
|
119239
|
-
setId: 0,
|
|
119240
|
-
// 设置模板id
|
|
119241
|
-
rowData: null,
|
|
119242
|
-
//选择的模板数据
|
|
119243
|
-
|
|
119244
|
-
isShowSetSystem: false,
|
|
119245
|
-
// 是否显示设置系统模板
|
|
119246
|
-
mailId: ""
|
|
119034
|
+
// 模版名称 场景
|
|
119035
|
+
contentSelect: "1",
|
|
119036
|
+
contentInput: "",
|
|
119037
|
+
// 邮件主题正文
|
|
119038
|
+
mailTitleSelect: "1",
|
|
119039
|
+
mailTitleInput: "",
|
|
119040
|
+
searchForm: createSearchForm(),
|
|
119041
|
+
language: TemplateCom_const_language,
|
|
119042
|
+
sortConfig: sortConfig,
|
|
119043
|
+
accountList: [],
|
|
119044
|
+
templateList: [],
|
|
119045
|
+
templateSystemScene: templateSystemScene,
|
|
119046
|
+
total: 0,
|
|
119047
|
+
loading: false
|
|
119247
119048
|
};
|
|
119248
119049
|
},
|
|
119249
|
-
|
|
119250
|
-
|
|
119251
|
-
this.
|
|
119050
|
+
mounted() {
|
|
119051
|
+
this.getAccountList();
|
|
119052
|
+
this.getCardList();
|
|
119252
119053
|
},
|
|
119253
119054
|
methods: {
|
|
119254
|
-
//
|
|
119255
|
-
|
|
119256
|
-
this.
|
|
119257
|
-
if (
|
|
119258
|
-
|
|
119055
|
+
// 语言枚举
|
|
119056
|
+
getLangLabel(val) {
|
|
119057
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119058
|
+
if (currLang) {
|
|
119059
|
+
return currLang.label;
|
|
119259
119060
|
}
|
|
119260
|
-
|
|
119261
|
-
|
|
119262
|
-
|
|
119263
|
-
|
|
119264
|
-
|
|
119061
|
+
},
|
|
119062
|
+
// 应用模版
|
|
119063
|
+
setMailTemplate(data) {
|
|
119064
|
+
this.$emit("setMailTemplate", data);
|
|
119065
|
+
},
|
|
119066
|
+
// 跳转详情
|
|
119067
|
+
toDetail(item) {
|
|
119068
|
+
const routeData = this.$router.resolve({
|
|
119069
|
+
path: "/emailTempDetail",
|
|
119070
|
+
query: {
|
|
119071
|
+
type: "edit",
|
|
119072
|
+
id: item.id
|
|
119073
|
+
}
|
|
119074
|
+
});
|
|
119075
|
+
window.open(routeData.href, "_blank");
|
|
119076
|
+
},
|
|
119077
|
+
// 获取列表
|
|
119078
|
+
getCardList() {
|
|
119079
|
+
if (this.contentSelect == "1") {
|
|
119080
|
+
this.searchForm.templatesTitle = this.contentInput;
|
|
119081
|
+
} else if (this.contentSelect == "2") {
|
|
119082
|
+
//系统模版
|
|
119083
|
+
if (this.searchForm.type != 1) {
|
|
119084
|
+
this.searchForm.scene = this.contentInput;
|
|
119085
|
+
}
|
|
119086
|
+
}
|
|
119087
|
+
if (this.mailTitleSelect == "1") {
|
|
119088
|
+
this.searchForm.mailSubject = this.mailTitleInput;
|
|
119089
|
+
} else if (this.mailTitleSelect == "2") {
|
|
119090
|
+
this.searchForm.content = this.mailTitleInput;
|
|
119091
|
+
}
|
|
119092
|
+
this.loading = true;
|
|
119093
|
+
templatesList(this.searchForm).then(res => {
|
|
119094
|
+
if (res.code == "0") {
|
|
119095
|
+
this.templateList = res.data.rows;
|
|
119096
|
+
this.total = res.data.total;
|
|
119097
|
+
this.loading = false;
|
|
119265
119098
|
} else {
|
|
119099
|
+
this.loading = false;
|
|
119266
119100
|
this.$message.error(res.message);
|
|
119267
119101
|
}
|
|
119268
119102
|
});
|
|
119269
119103
|
},
|
|
119270
|
-
//
|
|
119271
|
-
|
|
119272
|
-
this.searchForm.
|
|
119273
|
-
this.
|
|
119274
|
-
},
|
|
119275
|
-
// 删除模板
|
|
119276
|
-
del(id) {
|
|
119277
|
-
this.$confirm(this.$t("inboxTable.delMail"), this.$t("inboxTable.tip"), {
|
|
119278
|
-
confirmButtonText: this.$t("inboxTable.confirm"),
|
|
119279
|
-
cancelButtonText: this.$t("inboxTable.cancel"),
|
|
119280
|
-
type: "warning",
|
|
119281
|
-
confirmButtonClass: "confirm_del"
|
|
119282
|
-
}).then(() => {
|
|
119283
|
-
delTemplate({
|
|
119284
|
-
id
|
|
119285
|
-
}).then(res => {
|
|
119286
|
-
if (res.code == 0) {
|
|
119287
|
-
this.init();
|
|
119288
|
-
this.$message({
|
|
119289
|
-
type: "success",
|
|
119290
|
-
message: `${this.$i18n.t("outboxMail.success")}`,
|
|
119291
|
-
duration: 1500
|
|
119292
|
-
});
|
|
119293
|
-
}
|
|
119294
|
-
});
|
|
119295
|
-
}).catch(() => {});
|
|
119104
|
+
// 模板类型切换
|
|
119105
|
+
modelTypeChange(val) {
|
|
119106
|
+
this.searchForm.scene = "";
|
|
119107
|
+
this.contentInput = "";
|
|
119296
119108
|
},
|
|
119297
|
-
//
|
|
119298
|
-
|
|
119299
|
-
this
|
|
119109
|
+
// 重置
|
|
119110
|
+
resetEvt() {
|
|
119111
|
+
this.searchForm = createSearchForm();
|
|
119112
|
+
this.contentSelect = "1";
|
|
119113
|
+
this.contentInput = "";
|
|
119114
|
+
this.mailTitleSelect = "1";
|
|
119115
|
+
this.mailTitleInput = "";
|
|
119116
|
+
this.getCardList();
|
|
119300
119117
|
},
|
|
119301
|
-
//
|
|
119302
|
-
|
|
119303
|
-
|
|
119304
|
-
|
|
119305
|
-
|
|
119118
|
+
// 获取账号下的账户
|
|
119119
|
+
getAccountList() {
|
|
119120
|
+
hubUserSonFather().then(res => {
|
|
119121
|
+
if (res.code == "0") {
|
|
119122
|
+
this.accountList = res.data;
|
|
119123
|
+
} else {
|
|
119124
|
+
this.$message.error(res.message);
|
|
119125
|
+
}
|
|
119126
|
+
});
|
|
119306
119127
|
},
|
|
119307
|
-
//
|
|
119308
|
-
|
|
119309
|
-
this.searchForm.modelType = tab.name;
|
|
119128
|
+
// 排序按钮
|
|
119129
|
+
clickDropdownItem(item) {
|
|
119310
119130
|
this.searchForm.currentPage = 1;
|
|
119311
|
-
this.
|
|
119131
|
+
this.searchForm.searchSort = item.value;
|
|
119132
|
+
this.getCardList();
|
|
119312
119133
|
},
|
|
119313
|
-
|
|
119314
|
-
|
|
119315
|
-
|
|
119316
|
-
|
|
119317
|
-
// 下载模板
|
|
119318
|
-
downloadTem(obj) {
|
|
119319
|
-
window.location.href = obj.downloadUrl;
|
|
119320
|
-
},
|
|
119321
|
-
// 打开转为系统模版弹窗
|
|
119322
|
-
showSetSystem(row) {
|
|
119323
|
-
this.mailId = row.id;
|
|
119324
|
-
this.isShowSetSystem = true;
|
|
119134
|
+
handleSizeChange(val) {
|
|
119135
|
+
this.searchForm.currentPage = 1;
|
|
119136
|
+
this.searchForm.pageSize = val;
|
|
119137
|
+
this.getCardList();
|
|
119325
119138
|
},
|
|
119326
|
-
|
|
119327
|
-
|
|
119328
|
-
this.
|
|
119139
|
+
handleCurrentChange(val) {
|
|
119140
|
+
this.searchForm.currentPage = val;
|
|
119141
|
+
this.getCardList();
|
|
119329
119142
|
}
|
|
119330
119143
|
}
|
|
119331
119144
|
});
|
|
119332
119145
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119333
119146
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
119334
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
119335
|
-
// extracted by mini-css-extract-plugin
|
|
119336
|
-
|
|
119337
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
|
|
119338
|
-
|
|
119339
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.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
|
|
119147
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=d1b92a60&prod&lang=scss&scoped=true
|
|
119340
119148
|
// extracted by mini-css-extract-plugin
|
|
119341
119149
|
|
|
119342
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=
|
|
119150
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=d1b92a60&prod&lang=scss&scoped=true
|
|
119343
119151
|
|
|
119344
119152
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119345
119153
|
|
|
@@ -119348,16 +119156,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119348
119156
|
;
|
|
119349
119157
|
|
|
119350
119158
|
|
|
119351
|
-
|
|
119352
119159
|
/* normalize component */
|
|
119353
119160
|
|
|
119354
119161
|
var TemplateList_component = normalizeComponent(
|
|
119355
119162
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119356
|
-
|
|
119357
|
-
|
|
119163
|
+
TemplateListvue_type_template_id_d1b92a60_scoped_true_render,
|
|
119164
|
+
TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns,
|
|
119358
119165
|
false,
|
|
119359
119166
|
null,
|
|
119360
|
-
"
|
|
119167
|
+
"d1b92a60",
|
|
119361
119168
|
null
|
|
119362
119169
|
|
|
119363
119170
|
)
|
|
@@ -121733,6 +121540,406 @@ function inviteEmailSave(data) {
|
|
|
121733
121540
|
function inviteEmailGet(taskId) {
|
|
121734
121541
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121735
121542
|
}
|
|
121543
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
121544
|
+
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render = function render() {
|
|
121545
|
+
var _vm = this,
|
|
121546
|
+
_c = _vm._self._c;
|
|
121547
|
+
return _c('el-dialog', {
|
|
121548
|
+
attrs: {
|
|
121549
|
+
"visible": _vm.visible,
|
|
121550
|
+
"title": "存为模版",
|
|
121551
|
+
"width": "480px",
|
|
121552
|
+
"before-close": _vm.closeDialog,
|
|
121553
|
+
"custom-class": "setting-nickname-dialog",
|
|
121554
|
+
"close-on-click-modal": false
|
|
121555
|
+
}
|
|
121556
|
+
}, [_c('div', {
|
|
121557
|
+
directives: [{
|
|
121558
|
+
name: "loading",
|
|
121559
|
+
rawName: "v-loading",
|
|
121560
|
+
value: _vm.loading,
|
|
121561
|
+
expression: "loading"
|
|
121562
|
+
}]
|
|
121563
|
+
}, [_c('el-form', {
|
|
121564
|
+
ref: "ruleForm",
|
|
121565
|
+
staticClass: "demo-ruleForm",
|
|
121566
|
+
attrs: {
|
|
121567
|
+
"label-position": "top",
|
|
121568
|
+
"model": _vm.ruleForm,
|
|
121569
|
+
"rules": _vm.rules,
|
|
121570
|
+
"label-width": "100px"
|
|
121571
|
+
}
|
|
121572
|
+
}, [_c('el-form-item', {
|
|
121573
|
+
attrs: {
|
|
121574
|
+
"label": "模版名称",
|
|
121575
|
+
"prop": "templatesTitle"
|
|
121576
|
+
}
|
|
121577
|
+
}, [_c('el-input', {
|
|
121578
|
+
attrs: {
|
|
121579
|
+
"clearable": ""
|
|
121580
|
+
},
|
|
121581
|
+
model: {
|
|
121582
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121583
|
+
callback: function ($$v) {
|
|
121584
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121585
|
+
},
|
|
121586
|
+
expression: "ruleForm.templatesTitle"
|
|
121587
|
+
}
|
|
121588
|
+
})], 1), _c('el-form-item', {
|
|
121589
|
+
attrs: {
|
|
121590
|
+
"label": "应用场景",
|
|
121591
|
+
"prop": "scene"
|
|
121592
|
+
}
|
|
121593
|
+
}, [_c('el-input', {
|
|
121594
|
+
attrs: {
|
|
121595
|
+
"clearable": ""
|
|
121596
|
+
},
|
|
121597
|
+
model: {
|
|
121598
|
+
value: _vm.ruleForm.scene,
|
|
121599
|
+
callback: function ($$v) {
|
|
121600
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121601
|
+
},
|
|
121602
|
+
expression: "ruleForm.scene"
|
|
121603
|
+
}
|
|
121604
|
+
})], 1), _c('el-form-item', {
|
|
121605
|
+
attrs: {
|
|
121606
|
+
"label": "语言",
|
|
121607
|
+
"prop": "modelLanguage"
|
|
121608
|
+
}
|
|
121609
|
+
}, [_c('el-select', {
|
|
121610
|
+
attrs: {
|
|
121611
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121612
|
+
"clearable": "",
|
|
121613
|
+
"filterable": ""
|
|
121614
|
+
},
|
|
121615
|
+
model: {
|
|
121616
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121617
|
+
callback: function ($$v) {
|
|
121618
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121619
|
+
},
|
|
121620
|
+
expression: "ruleForm.modelLanguage"
|
|
121621
|
+
}
|
|
121622
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121623
|
+
return _c('el-option', {
|
|
121624
|
+
key: item.value,
|
|
121625
|
+
attrs: {
|
|
121626
|
+
"value": item.value,
|
|
121627
|
+
"label": item.label
|
|
121628
|
+
}
|
|
121629
|
+
});
|
|
121630
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121631
|
+
attrs: {
|
|
121632
|
+
"label": "共享状态"
|
|
121633
|
+
}
|
|
121634
|
+
}, [_c('el-select', {
|
|
121635
|
+
attrs: {
|
|
121636
|
+
"clearable": "",
|
|
121637
|
+
"placeholder": "请选择共享状态"
|
|
121638
|
+
},
|
|
121639
|
+
model: {
|
|
121640
|
+
value: _vm.ruleForm.isShared,
|
|
121641
|
+
callback: function ($$v) {
|
|
121642
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121643
|
+
},
|
|
121644
|
+
expression: "ruleForm.isShared"
|
|
121645
|
+
}
|
|
121646
|
+
}, [_c('el-option', {
|
|
121647
|
+
key: 1,
|
|
121648
|
+
attrs: {
|
|
121649
|
+
"value": true,
|
|
121650
|
+
"label": "公开"
|
|
121651
|
+
}
|
|
121652
|
+
}), _c('el-option', {
|
|
121653
|
+
key: 2,
|
|
121654
|
+
attrs: {
|
|
121655
|
+
"value": false,
|
|
121656
|
+
"label": "私有"
|
|
121657
|
+
}
|
|
121658
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121659
|
+
staticClass: "footer-btn"
|
|
121660
|
+
}, [_c('el-button', {
|
|
121661
|
+
on: {
|
|
121662
|
+
"click": function ($event) {
|
|
121663
|
+
return _vm.resetForm('ruleForm');
|
|
121664
|
+
}
|
|
121665
|
+
}
|
|
121666
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121667
|
+
attrs: {
|
|
121668
|
+
"type": "primary",
|
|
121669
|
+
"loading": _vm.confirmBtnLoading
|
|
121670
|
+
},
|
|
121671
|
+
on: {
|
|
121672
|
+
"click": function ($event) {
|
|
121673
|
+
return _vm.submitForm('ruleForm');
|
|
121674
|
+
}
|
|
121675
|
+
}
|
|
121676
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121677
|
+
};
|
|
121678
|
+
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns = [];
|
|
121679
|
+
|
|
121680
|
+
;// ./src/api/mailData/index.js
|
|
121681
|
+
|
|
121682
|
+
|
|
121683
|
+
// 文件上传
|
|
121684
|
+
async function mailData_uploadFile(data) {
|
|
121685
|
+
let res = await post("/edm/mail/upload_file", data);
|
|
121686
|
+
return res;
|
|
121687
|
+
}
|
|
121688
|
+
// 邮件发送数据
|
|
121689
|
+
async function getSendList(data) {
|
|
121690
|
+
let res = await request_post("/edm/outbox/sendData", data);
|
|
121691
|
+
if (res.code === '0') {
|
|
121692
|
+
return res;
|
|
121693
|
+
}
|
|
121694
|
+
return null;
|
|
121695
|
+
}
|
|
121696
|
+
|
|
121697
|
+
// 邮件接收数据 inbox/receiveData
|
|
121698
|
+
async function getReceiveList(data) {
|
|
121699
|
+
let res = await request_post("/edm/inbox/receiveData", data);
|
|
121700
|
+
if (res) {
|
|
121701
|
+
return res;
|
|
121702
|
+
}
|
|
121703
|
+
return null;
|
|
121704
|
+
}
|
|
121705
|
+
|
|
121706
|
+
// 查看详情-收件数据
|
|
121707
|
+
async function mailData_getInboxDetail(id) {
|
|
121708
|
+
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
121709
|
+
if (res) {
|
|
121710
|
+
return res;
|
|
121711
|
+
}
|
|
121712
|
+
return null;
|
|
121713
|
+
}
|
|
121714
|
+
|
|
121715
|
+
// 查看会话-收件数据
|
|
121716
|
+
async function getInboxDialogue(chatId) {
|
|
121717
|
+
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
121718
|
+
if (res) {
|
|
121719
|
+
return res;
|
|
121720
|
+
}
|
|
121721
|
+
return null;
|
|
121722
|
+
}
|
|
121723
|
+
|
|
121724
|
+
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
121725
|
+
async function getInboxDialogue1(id) {
|
|
121726
|
+
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
121727
|
+
if (res) {
|
|
121728
|
+
return res;
|
|
121729
|
+
}
|
|
121730
|
+
return null;
|
|
121731
|
+
}
|
|
121732
|
+
|
|
121733
|
+
//发送详情
|
|
121734
|
+
async function getSendDetail(id) {
|
|
121735
|
+
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
121736
|
+
if (res.code === '0') {
|
|
121737
|
+
return res;
|
|
121738
|
+
}
|
|
121739
|
+
return null;
|
|
121740
|
+
}
|
|
121741
|
+
|
|
121742
|
+
// 发信详情 sendDetail/{id}
|
|
121743
|
+
async function getDetailReceive() {
|
|
121744
|
+
let res = await get(`/edm/inbox/receiveData`);
|
|
121745
|
+
if (res.code === '0') {
|
|
121746
|
+
return res;
|
|
121747
|
+
}
|
|
121748
|
+
return null;
|
|
121749
|
+
}
|
|
121750
|
+
|
|
121751
|
+
// 发件数据详情 --和邮件往来一样
|
|
121752
|
+
async function sendDetail(id) {
|
|
121753
|
+
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
121754
|
+
if (res.code === '0') {
|
|
121755
|
+
return res;
|
|
121756
|
+
}
|
|
121757
|
+
return null;
|
|
121758
|
+
}
|
|
121759
|
+
|
|
121760
|
+
// 收信详情
|
|
121761
|
+
async function getDetailSend(id) {
|
|
121762
|
+
let res = await get(`/edm/outbox/sendData`);
|
|
121763
|
+
if (res.code === '0') {
|
|
121764
|
+
return res;
|
|
121765
|
+
}
|
|
121766
|
+
return null;
|
|
121767
|
+
}
|
|
121768
|
+
|
|
121769
|
+
// 查看AI回复 - 发件
|
|
121770
|
+
async function AiReplyDetail(id) {
|
|
121771
|
+
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
121772
|
+
if (res) {
|
|
121773
|
+
return res;
|
|
121774
|
+
}
|
|
121775
|
+
return null;
|
|
121776
|
+
}
|
|
121777
|
+
|
|
121778
|
+
// 查看AI回复 收件
|
|
121779
|
+
async function aiReply(params) {
|
|
121780
|
+
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
121781
|
+
if (res) {
|
|
121782
|
+
return res;
|
|
121783
|
+
}
|
|
121784
|
+
return null;
|
|
121785
|
+
}
|
|
121786
|
+
|
|
121787
|
+
// 导出收信数据 /inbox/exportReceiveData
|
|
121788
|
+
async function exportReceiveData(params) {
|
|
121789
|
+
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
121790
|
+
if (res) {
|
|
121791
|
+
return res;
|
|
121792
|
+
}
|
|
121793
|
+
return null;
|
|
121794
|
+
}
|
|
121795
|
+
|
|
121796
|
+
// 导出发信数据 /outbox/exportSendData
|
|
121797
|
+
async function exportSendData(params) {
|
|
121798
|
+
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
121799
|
+
if (res) {
|
|
121800
|
+
return res;
|
|
121801
|
+
}
|
|
121802
|
+
return null;
|
|
121803
|
+
}
|
|
121804
|
+
// 保存模版
|
|
121805
|
+
|
|
121806
|
+
async function addTemplate(params) {
|
|
121807
|
+
let res = await request_post(`/edm/template/addTemplate`, params);
|
|
121808
|
+
if (res) {
|
|
121809
|
+
return res;
|
|
121810
|
+
}
|
|
121811
|
+
return null;
|
|
121812
|
+
}
|
|
121813
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
121814
|
+
|
|
121815
|
+
|
|
121816
|
+
|
|
121817
|
+
|
|
121818
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121819
|
+
props: {
|
|
121820
|
+
visible: {
|
|
121821
|
+
type: Boolean,
|
|
121822
|
+
default: false
|
|
121823
|
+
},
|
|
121824
|
+
mailTempList: {
|
|
121825
|
+
type: Array,
|
|
121826
|
+
default: () => []
|
|
121827
|
+
},
|
|
121828
|
+
tempProductCard: {
|
|
121829
|
+
type: String,
|
|
121830
|
+
default: ""
|
|
121831
|
+
}
|
|
121832
|
+
},
|
|
121833
|
+
data() {
|
|
121834
|
+
return {
|
|
121835
|
+
confirmBtnLoading: false,
|
|
121836
|
+
loading: false,
|
|
121837
|
+
ruleForm: {
|
|
121838
|
+
templatesTitle: "",
|
|
121839
|
+
scene: "",
|
|
121840
|
+
modelLanguage: "",
|
|
121841
|
+
isShared: false
|
|
121842
|
+
},
|
|
121843
|
+
rules: {
|
|
121844
|
+
templatesTitle: [{
|
|
121845
|
+
required: true,
|
|
121846
|
+
message: "请输入模版名称",
|
|
121847
|
+
trigger: "blur"
|
|
121848
|
+
}],
|
|
121849
|
+
modelLanguage: [{
|
|
121850
|
+
required: true,
|
|
121851
|
+
message: "请选择模版语言",
|
|
121852
|
+
trigger: "change"
|
|
121853
|
+
}],
|
|
121854
|
+
scene: [{
|
|
121855
|
+
required: true,
|
|
121856
|
+
message: "请输入应用场景",
|
|
121857
|
+
trigger: "change"
|
|
121858
|
+
}]
|
|
121859
|
+
},
|
|
121860
|
+
language: const_language
|
|
121861
|
+
};
|
|
121862
|
+
},
|
|
121863
|
+
created() {},
|
|
121864
|
+
methods: {
|
|
121865
|
+
// 处理邮件参数
|
|
121866
|
+
getMailParams() {
|
|
121867
|
+
// 处理邮件
|
|
121868
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121869
|
+
let content = "";
|
|
121870
|
+
if (currentMail.getReplyHtml()) {
|
|
121871
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121872
|
+
} else {
|
|
121873
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121874
|
+
}
|
|
121875
|
+
return {
|
|
121876
|
+
mailSubject: currentMail.subject,
|
|
121877
|
+
content,
|
|
121878
|
+
attachments: currentMail.fileList
|
|
121879
|
+
};
|
|
121880
|
+
},
|
|
121881
|
+
// 表单验证
|
|
121882
|
+
submitForm(formName) {
|
|
121883
|
+
const mailParams = this.getMailParams();
|
|
121884
|
+
this.$refs[formName].validate(valid => {
|
|
121885
|
+
if (valid) {
|
|
121886
|
+
const paramsObj = {
|
|
121887
|
+
...this.ruleForm,
|
|
121888
|
+
...mailParams
|
|
121889
|
+
};
|
|
121890
|
+
//新增
|
|
121891
|
+
addTemplate(paramsObj).then(res => {
|
|
121892
|
+
console.log(res, "resss");
|
|
121893
|
+
if (res.code == "0") {
|
|
121894
|
+
this.$message.success("保存成功");
|
|
121895
|
+
this.closeDialog();
|
|
121896
|
+
} else {
|
|
121897
|
+
this.$message.error(res.message);
|
|
121898
|
+
}
|
|
121899
|
+
});
|
|
121900
|
+
} else {
|
|
121901
|
+
console.log("error submit!!");
|
|
121902
|
+
return false;
|
|
121903
|
+
}
|
|
121904
|
+
});
|
|
121905
|
+
},
|
|
121906
|
+
resetForm(formName) {
|
|
121907
|
+
this.$refs[formName].resetFields();
|
|
121908
|
+
this.closeDialog();
|
|
121909
|
+
},
|
|
121910
|
+
closeDialog() {
|
|
121911
|
+
this.$emit("update:visible", false);
|
|
121912
|
+
}
|
|
121913
|
+
}
|
|
121914
|
+
});
|
|
121915
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121916
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121917
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
121918
|
+
// extracted by mini-css-extract-plugin
|
|
121919
|
+
|
|
121920
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121921
|
+
|
|
121922
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121923
|
+
|
|
121924
|
+
|
|
121925
|
+
|
|
121926
|
+
;
|
|
121927
|
+
|
|
121928
|
+
|
|
121929
|
+
/* normalize component */
|
|
121930
|
+
|
|
121931
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121932
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121933
|
+
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render,
|
|
121934
|
+
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns,
|
|
121935
|
+
false,
|
|
121936
|
+
null,
|
|
121937
|
+
"62cde375",
|
|
121938
|
+
null
|
|
121939
|
+
|
|
121940
|
+
)
|
|
121941
|
+
|
|
121942
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121736
121943
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
121737
121944
|
|
|
121738
121945
|
|
|
@@ -121774,6 +121981,7 @@ function inviteEmailGet(taskId) {
|
|
|
121774
121981
|
|
|
121775
121982
|
|
|
121776
121983
|
|
|
121984
|
+
|
|
121777
121985
|
|
|
121778
121986
|
|
|
121779
121987
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121796,7 +122004,8 @@ function inviteEmailGet(taskId) {
|
|
|
121796
122004
|
SignTextDrawer: signText,
|
|
121797
122005
|
MailTemplateDrawer: mailTemplate,
|
|
121798
122006
|
AiMailDialog: aiMail,
|
|
121799
|
-
MailOptimizeDrawer: mailOptimize
|
|
122007
|
+
MailOptimizeDrawer: mailOptimize,
|
|
122008
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121800
122009
|
},
|
|
121801
122010
|
props: {
|
|
121802
122011
|
// pm 添加
|
|
@@ -122025,7 +122234,11 @@ function inviteEmailGet(taskId) {
|
|
|
122025
122234
|
nickName: "",
|
|
122026
122235
|
// 发件人昵称
|
|
122027
122236
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122028
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122237
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122238
|
+
// 当前使用的AI平台
|
|
122239
|
+
saveMailTempDialogVisible: false,
|
|
122240
|
+
// 保存模版弹窗
|
|
122241
|
+
tempProductCard: '' // 模版产品卡
|
|
122029
122242
|
};
|
|
122030
122243
|
},
|
|
122031
122244
|
created() {
|
|
@@ -122101,6 +122314,18 @@ function inviteEmailGet(taskId) {
|
|
|
122101
122314
|
window.onbeforeunload = null;
|
|
122102
122315
|
},
|
|
122103
122316
|
methods: {
|
|
122317
|
+
// 保存邮件模版
|
|
122318
|
+
saveMailTemplate() {
|
|
122319
|
+
const currentMail = this.mailList.find(item => item.active);
|
|
122320
|
+
if (currentMail.subject == '') {
|
|
122321
|
+
this.$message.error('请输入邮件主题');
|
|
122322
|
+
return;
|
|
122323
|
+
}
|
|
122324
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122325
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122326
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122327
|
+
this.saveMailTempDialogVisible = true;
|
|
122328
|
+
},
|
|
122104
122329
|
// 初始化邮件模版
|
|
122105
122330
|
payInitTemplate() {
|
|
122106
122331
|
// 初始化收件人
|
|
@@ -122507,6 +122732,7 @@ function inviteEmailGet(taskId) {
|
|
|
122507
122732
|
active: idx === 0,
|
|
122508
122733
|
// 是否当前选中
|
|
122509
122734
|
isAiContent: false,
|
|
122735
|
+
templateId: item.templateId,
|
|
122510
122736
|
getContent: () => {},
|
|
122511
122737
|
getTextContent: () => {},
|
|
122512
122738
|
setContent: () => {},
|
|
@@ -122731,7 +122957,8 @@ function inviteEmailGet(taskId) {
|
|
|
122731
122957
|
id: item.id,
|
|
122732
122958
|
subject: item.subject,
|
|
122733
122959
|
content: content,
|
|
122734
|
-
attachments: item.fileList
|
|
122960
|
+
attachments: item.fileList,
|
|
122961
|
+
templateId: item.templateId
|
|
122735
122962
|
};
|
|
122736
122963
|
});
|
|
122737
122964
|
|
|
@@ -122908,7 +123135,8 @@ function inviteEmailGet(taskId) {
|
|
|
122908
123135
|
id: item.id,
|
|
122909
123136
|
subject: item.subject,
|
|
122910
123137
|
content: item.getContent() + " " + item.getReplyHtml() + sendProductCard,
|
|
122911
|
-
attachments: item.fileList
|
|
123138
|
+
attachments: item.fileList,
|
|
123139
|
+
templateId: item.templateId
|
|
122912
123140
|
};
|
|
122913
123141
|
});
|
|
122914
123142
|
// 处理红人
|
|
@@ -123061,15 +123289,38 @@ function inviteEmailGet(taskId) {
|
|
|
123061
123289
|
},
|
|
123062
123290
|
// 设置模板
|
|
123063
123291
|
setMailTemplate(data) {
|
|
123064
|
-
this.
|
|
123065
|
-
|
|
123066
|
-
|
|
123067
|
-
|
|
123068
|
-
|
|
123292
|
+
this.mailTemplateDrawerVisible = false;
|
|
123293
|
+
templatesDetail(data.id).then(res => {
|
|
123294
|
+
if (res.code == '0') {
|
|
123295
|
+
const detailObj = res.data;
|
|
123296
|
+
if (detailObj) {
|
|
123297
|
+
// 获取模版详情
|
|
123298
|
+
this.mailList.forEach(mail => {
|
|
123299
|
+
if (mail.active) {
|
|
123300
|
+
mail.subject = detailObj.mailSubject;
|
|
123301
|
+
mail.templateId = detailObj.id;
|
|
123302
|
+
mail.fileList = detailObj.attachmentRes;
|
|
123303
|
+
if (mail.setContent) {
|
|
123304
|
+
mail.setContent(detailObj.content);
|
|
123305
|
+
}
|
|
123306
|
+
}
|
|
123307
|
+
});
|
|
123308
|
+
// 商品卡相关逻辑
|
|
123309
|
+
if (detailObj.content) {
|
|
123310
|
+
let productCardStart = detailObj.content.indexOf('<product-card');
|
|
123311
|
+
let productCardEnd = detailObj.content.indexOf('</product-card>');
|
|
123312
|
+
let productCardHtml = detailObj.content.slice(productCardStart, productCardEnd + 15);
|
|
123313
|
+
const cardIdsMatch = productCardHtml.match(/cardids="([^"]+)"/);
|
|
123314
|
+
if (cardIdsMatch && cardIdsMatch[1]) {
|
|
123315
|
+
const cardIds = cardIdsMatch[1]; // 获取匹配到的cardids值
|
|
123316
|
+
this.addProductCard(cardIds.split(","));
|
|
123317
|
+
}
|
|
123318
|
+
}
|
|
123069
123319
|
}
|
|
123320
|
+
} else {
|
|
123321
|
+
this.$message.error(res.message);
|
|
123070
123322
|
}
|
|
123071
|
-
});
|
|
123072
|
-
this.mailTemplateDrawerVisible = false;
|
|
123323
|
+
}).catch(() => {});
|
|
123073
123324
|
},
|
|
123074
123325
|
// 设置签名
|
|
123075
123326
|
setMailSign(data) {
|
|
@@ -123408,15 +123659,15 @@ function inviteEmailGet(taskId) {
|
|
|
123408
123659
|
});
|
|
123409
123660
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123410
123661
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
123411
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
123662
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=4a0856bf&prod&lang=scss&scoped=true
|
|
123412
123663
|
// extracted by mini-css-extract-plugin
|
|
123413
123664
|
|
|
123414
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123665
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=4a0856bf&prod&lang=scss&scoped=true
|
|
123415
123666
|
|
|
123416
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
123667
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=4a0856bf&prod&lang=scss
|
|
123417
123668
|
// extracted by mini-css-extract-plugin
|
|
123418
123669
|
|
|
123419
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123670
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=4a0856bf&prod&lang=scss
|
|
123420
123671
|
|
|
123421
123672
|
;// ./src/package/write-email/index.vue
|
|
123422
123673
|
|
|
@@ -123430,11 +123681,11 @@ function inviteEmailGet(taskId) {
|
|
|
123430
123681
|
|
|
123431
123682
|
var write_email_component = normalizeComponent(
|
|
123432
123683
|
package_write_emailvue_type_script_lang_js,
|
|
123433
|
-
|
|
123434
|
-
|
|
123684
|
+
write_emailvue_type_template_id_4a0856bf_scoped_true_render,
|
|
123685
|
+
write_emailvue_type_template_id_4a0856bf_scoped_true_staticRenderFns,
|
|
123435
123686
|
false,
|
|
123436
123687
|
null,
|
|
123437
|
-
"
|
|
123688
|
+
"4a0856bf",
|
|
123438
123689
|
null
|
|
123439
123690
|
|
|
123440
123691
|
)
|
|
@@ -123501,8 +123752,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123501
123752
|
};
|
|
123502
123753
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123503
123754
|
|
|
123504
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
123505
|
-
var
|
|
123755
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=31e099df&scoped=true
|
|
123756
|
+
var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function render() {
|
|
123506
123757
|
var _vm = this,
|
|
123507
123758
|
_c = _vm._self._c;
|
|
123508
123759
|
return _c('div', {
|
|
@@ -123823,6 +124074,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123823
124074
|
}
|
|
123824
124075
|
})];
|
|
123825
124076
|
}
|
|
124077
|
+
}, {
|
|
124078
|
+
key: "operation",
|
|
124079
|
+
fn: function ({
|
|
124080
|
+
data
|
|
124081
|
+
}) {
|
|
124082
|
+
return [_c('el-link', {
|
|
124083
|
+
attrs: {
|
|
124084
|
+
"type": "primary",
|
|
124085
|
+
"size": "small",
|
|
124086
|
+
"underline": false
|
|
124087
|
+
},
|
|
124088
|
+
on: {
|
|
124089
|
+
"click": function ($event) {
|
|
124090
|
+
$event.stopPropagation();
|
|
124091
|
+
return _vm.recallMail(data.scope);
|
|
124092
|
+
}
|
|
124093
|
+
}
|
|
124094
|
+
}, [_vm._v("撤回")])];
|
|
124095
|
+
}
|
|
123826
124096
|
}])
|
|
123827
124097
|
}), _c('div', {
|
|
123828
124098
|
staticClass: "tool"
|
|
@@ -123864,7 +124134,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123864
124134
|
staticClass: "dss-iconfont"
|
|
123865
124135
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123866
124136
|
};
|
|
123867
|
-
var
|
|
124137
|
+
var singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns = [];
|
|
123868
124138
|
|
|
123869
124139
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123870
124140
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123952,6 +124222,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123952
124222
|
label: src_language.t("edm2.mailEn12"),
|
|
123953
124223
|
prop: "sendTime",
|
|
123954
124224
|
width: "200"
|
|
124225
|
+
}, {
|
|
124226
|
+
label: "操作",
|
|
124227
|
+
scope: "operation",
|
|
124228
|
+
width: "100"
|
|
123955
124229
|
}],
|
|
123956
124230
|
tableData: [],
|
|
123957
124231
|
loading: false,
|
|
@@ -124000,6 +124274,32 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124000
124274
|
localStorage.removeItem("searchFlag");
|
|
124001
124275
|
},
|
|
124002
124276
|
methods: {
|
|
124277
|
+
// 撤回邮件
|
|
124278
|
+
recallMail(row) {
|
|
124279
|
+
console.log(row, "row");
|
|
124280
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124281
|
+
confirmButtonText: "确定",
|
|
124282
|
+
cancelButtonText: "取消",
|
|
124283
|
+
type: "warning"
|
|
124284
|
+
}).then(() => {
|
|
124285
|
+
withdraw(row.id).then(res => {
|
|
124286
|
+
if (res.code == "0") {
|
|
124287
|
+
this.$message({
|
|
124288
|
+
type: "success",
|
|
124289
|
+
duration: 7000,
|
|
124290
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124291
|
+
});
|
|
124292
|
+
this.init();
|
|
124293
|
+
} else {
|
|
124294
|
+
this.$message({
|
|
124295
|
+
type: "error",
|
|
124296
|
+
duration: 7000,
|
|
124297
|
+
message: res.message
|
|
124298
|
+
});
|
|
124299
|
+
}
|
|
124300
|
+
});
|
|
124301
|
+
}).catch(() => {});
|
|
124302
|
+
},
|
|
124003
124303
|
// 主题-正文
|
|
124004
124304
|
changeContentMode(val) {
|
|
124005
124305
|
this.contentSelect = val;
|
|
@@ -124193,10 +124493,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124193
124493
|
});
|
|
124194
124494
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124195
124495
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
124196
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
124496
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=31e099df&prod&lang=scss&scoped=true
|
|
124197
124497
|
// extracted by mini-css-extract-plugin
|
|
124198
124498
|
|
|
124199
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124499
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=31e099df&prod&lang=scss&scoped=true
|
|
124200
124500
|
|
|
124201
124501
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124202
124502
|
|
|
@@ -124209,18 +124509,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124209
124509
|
|
|
124210
124510
|
var singleSendMail_component = normalizeComponent(
|
|
124211
124511
|
components_singleSendMailvue_type_script_lang_js,
|
|
124212
|
-
|
|
124213
|
-
|
|
124512
|
+
singleSendMailvue_type_template_id_31e099df_scoped_true_render,
|
|
124513
|
+
singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns,
|
|
124214
124514
|
false,
|
|
124215
124515
|
null,
|
|
124216
|
-
"
|
|
124516
|
+
"31e099df",
|
|
124217
124517
|
null
|
|
124218
124518
|
|
|
124219
124519
|
)
|
|
124220
124520
|
|
|
124221
124521
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
124222
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
124223
|
-
var
|
|
124522
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=561c9fe0&scoped=true
|
|
124523
|
+
var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function render() {
|
|
124224
124524
|
var _vm = this,
|
|
124225
124525
|
_c = _vm._self._c;
|
|
124226
124526
|
return _c('div', {
|
|
@@ -124510,6 +124810,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124510
124810
|
}
|
|
124511
124811
|
})];
|
|
124512
124812
|
}
|
|
124813
|
+
}, {
|
|
124814
|
+
key: "operation",
|
|
124815
|
+
fn: function ({
|
|
124816
|
+
data
|
|
124817
|
+
}) {
|
|
124818
|
+
return [_c('el-link', {
|
|
124819
|
+
attrs: {
|
|
124820
|
+
"type": "primary",
|
|
124821
|
+
"size": "small",
|
|
124822
|
+
"underline": false
|
|
124823
|
+
},
|
|
124824
|
+
on: {
|
|
124825
|
+
"click": function ($event) {
|
|
124826
|
+
$event.stopPropagation();
|
|
124827
|
+
return _vm.recallMail(data.scope);
|
|
124828
|
+
}
|
|
124829
|
+
}
|
|
124830
|
+
}, [_vm._v("撤回")])];
|
|
124831
|
+
}
|
|
124513
124832
|
}])
|
|
124514
124833
|
}), _c('div', {
|
|
124515
124834
|
staticClass: "tool"
|
|
@@ -124536,7 +124855,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124536
124855
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124537
124856
|
})])])])], 1)]);
|
|
124538
124857
|
};
|
|
124539
|
-
var
|
|
124858
|
+
var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
124540
124859
|
|
|
124541
124860
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
124542
124861
|
|
|
@@ -124608,6 +124927,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124608
124927
|
label: src_language.t("edm2.mailEn12"),
|
|
124609
124928
|
prop: "sendTime",
|
|
124610
124929
|
width: "200"
|
|
124930
|
+
}, {
|
|
124931
|
+
label: "操作",
|
|
124932
|
+
scope: "operation",
|
|
124933
|
+
width: "100"
|
|
124611
124934
|
}],
|
|
124612
124935
|
contentInput: "",
|
|
124613
124936
|
contentSelect: "1",
|
|
@@ -124659,6 +124982,32 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124659
124982
|
localStorage.removeItem("searchFlag");
|
|
124660
124983
|
},
|
|
124661
124984
|
methods: {
|
|
124985
|
+
// 撤回邮件
|
|
124986
|
+
recallMail(row) {
|
|
124987
|
+
console.log(row, "row");
|
|
124988
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124989
|
+
confirmButtonText: "确定",
|
|
124990
|
+
cancelButtonText: "取消",
|
|
124991
|
+
type: "warning"
|
|
124992
|
+
}).then(() => {
|
|
124993
|
+
withdraw(row.id).then(res => {
|
|
124994
|
+
if (res.code == "0") {
|
|
124995
|
+
this.$message({
|
|
124996
|
+
type: "success",
|
|
124997
|
+
duration: 7000,
|
|
124998
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124999
|
+
});
|
|
125000
|
+
this.init();
|
|
125001
|
+
} else {
|
|
125002
|
+
this.$message({
|
|
125003
|
+
type: "error",
|
|
125004
|
+
duration: 7000,
|
|
125005
|
+
message: res.message
|
|
125006
|
+
});
|
|
125007
|
+
}
|
|
125008
|
+
});
|
|
125009
|
+
}).catch(() => {});
|
|
125010
|
+
},
|
|
124662
125011
|
// 去除html标签
|
|
124663
125012
|
filterHtmlTag(str) {
|
|
124664
125013
|
if (str) {
|
|
@@ -124870,10 +125219,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124870
125219
|
});
|
|
124871
125220
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124872
125221
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
124873
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
125222
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=561c9fe0&prod&lang=scss&scoped=true
|
|
124874
125223
|
// extracted by mini-css-extract-plugin
|
|
124875
125224
|
|
|
124876
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125225
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=561c9fe0&prod&lang=scss&scoped=true
|
|
124877
125226
|
|
|
124878
125227
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124879
125228
|
|
|
@@ -124886,11 +125235,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124886
125235
|
|
|
124887
125236
|
var replySendMail_component = normalizeComponent(
|
|
124888
125237
|
components_replySendMailvue_type_script_lang_js,
|
|
124889
|
-
|
|
124890
|
-
|
|
125238
|
+
replySendMailvue_type_template_id_561c9fe0_scoped_true_render,
|
|
125239
|
+
replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns,
|
|
124891
125240
|
false,
|
|
124892
125241
|
null,
|
|
124893
|
-
"
|
|
125242
|
+
"561c9fe0",
|
|
124894
125243
|
null
|
|
124895
125244
|
|
|
124896
125245
|
)
|
|
@@ -126358,8 +126707,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126358
126707
|
)
|
|
126359
126708
|
|
|
126360
126709
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
126361
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
126362
|
-
var
|
|
126710
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=ad633b50&scoped=true
|
|
126711
|
+
var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
126363
126712
|
var _vm = this,
|
|
126364
126713
|
_c = _vm._self._c;
|
|
126365
126714
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126372,6 +126721,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126372
126721
|
}, [_c('i', {
|
|
126373
126722
|
staticClass: "el-icon-arrow-left"
|
|
126374
126723
|
})]), _c('div', {
|
|
126724
|
+
staticClass: "back recall_btn",
|
|
126725
|
+
on: {
|
|
126726
|
+
"click": _vm.recallMail
|
|
126727
|
+
}
|
|
126728
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126375
126729
|
staticClass: "mail-items-box"
|
|
126376
126730
|
}, [_c('div', {
|
|
126377
126731
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126598,7 +126952,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126598
126952
|
}
|
|
126599
126953
|
}) : _vm._e()], 1) : _vm._e();
|
|
126600
126954
|
};
|
|
126601
|
-
var
|
|
126955
|
+
var detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns = [function () {
|
|
126956
|
+
var _vm = this,
|
|
126957
|
+
_c = _vm._self._c;
|
|
126958
|
+
return _c('div', {
|
|
126959
|
+
staticClass: "re_box"
|
|
126960
|
+
}, [_c('i', {
|
|
126961
|
+
staticClass: "dss-iconfont btn_con"
|
|
126962
|
+
}, [_vm._v("")]), _c('span', {
|
|
126963
|
+
staticClass: "btn_con"
|
|
126964
|
+
}, [_vm._v("撤回")])]);
|
|
126965
|
+
}];
|
|
126966
|
+
|
|
126967
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=ad633b50&scoped=true
|
|
126602
126968
|
|
|
126603
126969
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
126604
126970
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126847,6 +127213,31 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126847
127213
|
localStorage.setItem("searchFlag", true);
|
|
126848
127214
|
},
|
|
126849
127215
|
methods: {
|
|
127216
|
+
// 撤回邮件
|
|
127217
|
+
recallMail() {
|
|
127218
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127219
|
+
confirmButtonText: "确定",
|
|
127220
|
+
cancelButtonText: "取消",
|
|
127221
|
+
type: "warning"
|
|
127222
|
+
}).then(() => {
|
|
127223
|
+
withdraw(this.$route.query.id).then(res => {
|
|
127224
|
+
if (res.code == "0") {
|
|
127225
|
+
this.$message({
|
|
127226
|
+
type: "success",
|
|
127227
|
+
duration: 7000,
|
|
127228
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127229
|
+
});
|
|
127230
|
+
this.backToOutbox();
|
|
127231
|
+
} else {
|
|
127232
|
+
this.$message({
|
|
127233
|
+
type: "error",
|
|
127234
|
+
duration: 7000,
|
|
127235
|
+
message: res.message
|
|
127236
|
+
});
|
|
127237
|
+
}
|
|
127238
|
+
});
|
|
127239
|
+
}).catch(() => {});
|
|
127240
|
+
},
|
|
126850
127241
|
// 红人档案侧抽
|
|
126851
127242
|
toBloggerDeatil(item) {
|
|
126852
127243
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126978,10 +127369,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126978
127369
|
});
|
|
126979
127370
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126980
127371
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
126981
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
127372
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=ad633b50&prod&lang=scss&scoped=true
|
|
126982
127373
|
// extracted by mini-css-extract-plugin
|
|
126983
127374
|
|
|
126984
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127375
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=ad633b50&prod&lang=scss&scoped=true
|
|
126985
127376
|
|
|
126986
127377
|
;// ./src/package/outbox-email/detail.vue
|
|
126987
127378
|
|
|
@@ -126994,11 +127385,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126994
127385
|
|
|
126995
127386
|
var outbox_email_detail_component = normalizeComponent(
|
|
126996
127387
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126997
|
-
|
|
126998
|
-
|
|
127388
|
+
detailvue_type_template_id_ad633b50_scoped_true_render,
|
|
127389
|
+
detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns,
|
|
126999
127390
|
false,
|
|
127000
127391
|
null,
|
|
127001
|
-
"
|
|
127392
|
+
"ad633b50",
|
|
127002
127393
|
null
|
|
127003
127394
|
|
|
127004
127395
|
)
|
|
@@ -127304,7 +127695,7 @@ async function mailList2(data) {
|
|
|
127304
127695
|
}
|
|
127305
127696
|
|
|
127306
127697
|
// 查看邮件往来里的发件详情
|
|
127307
|
-
async function
|
|
127698
|
+
async function blogmail_sendDetail(params) {
|
|
127308
127699
|
let res = await get(`/edm/mail/sendDetail/${params.id}`);
|
|
127309
127700
|
return res;
|
|
127310
127701
|
}
|
|
@@ -128549,130 +128940,6 @@ var Editorvue_type_template_id_16051201_scoped_true_render = function render() {
|
|
|
128549
128940
|
};
|
|
128550
128941
|
var Editorvue_type_template_id_16051201_scoped_true_staticRenderFns = [];
|
|
128551
128942
|
|
|
128552
|
-
;// ./src/api/mailData/index.js
|
|
128553
|
-
|
|
128554
|
-
|
|
128555
|
-
// 文件上传
|
|
128556
|
-
async function mailData_uploadFile(data) {
|
|
128557
|
-
let res = await post("/edm/mail/upload_file", data);
|
|
128558
|
-
return res;
|
|
128559
|
-
}
|
|
128560
|
-
// 邮件发送数据
|
|
128561
|
-
async function getSendList(data) {
|
|
128562
|
-
let res = await request_post("/edm/outbox/sendData", data);
|
|
128563
|
-
if (res.code === '0') {
|
|
128564
|
-
return res;
|
|
128565
|
-
}
|
|
128566
|
-
return null;
|
|
128567
|
-
}
|
|
128568
|
-
|
|
128569
|
-
// 邮件接收数据 inbox/receiveData
|
|
128570
|
-
async function getReceiveList(data) {
|
|
128571
|
-
let res = await request_post("/edm/inbox/receiveData", data);
|
|
128572
|
-
if (res) {
|
|
128573
|
-
return res;
|
|
128574
|
-
}
|
|
128575
|
-
return null;
|
|
128576
|
-
}
|
|
128577
|
-
|
|
128578
|
-
// 查看详情-收件数据
|
|
128579
|
-
async function mailData_getInboxDetail(id) {
|
|
128580
|
-
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
128581
|
-
if (res) {
|
|
128582
|
-
return res;
|
|
128583
|
-
}
|
|
128584
|
-
return null;
|
|
128585
|
-
}
|
|
128586
|
-
|
|
128587
|
-
// 查看会话-收件数据
|
|
128588
|
-
async function getInboxDialogue(chatId) {
|
|
128589
|
-
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
128590
|
-
if (res) {
|
|
128591
|
-
return res;
|
|
128592
|
-
}
|
|
128593
|
-
return null;
|
|
128594
|
-
}
|
|
128595
|
-
|
|
128596
|
-
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
128597
|
-
async function getInboxDialogue1(id) {
|
|
128598
|
-
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
128599
|
-
if (res) {
|
|
128600
|
-
return res;
|
|
128601
|
-
}
|
|
128602
|
-
return null;
|
|
128603
|
-
}
|
|
128604
|
-
|
|
128605
|
-
//发送详情
|
|
128606
|
-
async function getSendDetail(id) {
|
|
128607
|
-
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
128608
|
-
if (res.code === '0') {
|
|
128609
|
-
return res;
|
|
128610
|
-
}
|
|
128611
|
-
return null;
|
|
128612
|
-
}
|
|
128613
|
-
|
|
128614
|
-
// 发信详情 sendDetail/{id}
|
|
128615
|
-
async function getDetailReceive() {
|
|
128616
|
-
let res = await get(`/edm/inbox/receiveData`);
|
|
128617
|
-
if (res.code === '0') {
|
|
128618
|
-
return res;
|
|
128619
|
-
}
|
|
128620
|
-
return null;
|
|
128621
|
-
}
|
|
128622
|
-
|
|
128623
|
-
// 发件数据详情 --和邮件往来一样
|
|
128624
|
-
async function mailData_sendDetail(id) {
|
|
128625
|
-
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
128626
|
-
if (res.code === '0') {
|
|
128627
|
-
return res;
|
|
128628
|
-
}
|
|
128629
|
-
return null;
|
|
128630
|
-
}
|
|
128631
|
-
|
|
128632
|
-
// 收信详情
|
|
128633
|
-
async function getDetailSend(id) {
|
|
128634
|
-
let res = await get(`/edm/outbox/sendData`);
|
|
128635
|
-
if (res.code === '0') {
|
|
128636
|
-
return res;
|
|
128637
|
-
}
|
|
128638
|
-
return null;
|
|
128639
|
-
}
|
|
128640
|
-
|
|
128641
|
-
// 查看AI回复 - 发件
|
|
128642
|
-
async function AiReplyDetail(id) {
|
|
128643
|
-
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
128644
|
-
if (res) {
|
|
128645
|
-
return res;
|
|
128646
|
-
}
|
|
128647
|
-
return null;
|
|
128648
|
-
}
|
|
128649
|
-
|
|
128650
|
-
// 查看AI回复 收件
|
|
128651
|
-
async function aiReply(params) {
|
|
128652
|
-
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
128653
|
-
if (res) {
|
|
128654
|
-
return res;
|
|
128655
|
-
}
|
|
128656
|
-
return null;
|
|
128657
|
-
}
|
|
128658
|
-
|
|
128659
|
-
// 导出收信数据 /inbox/exportReceiveData
|
|
128660
|
-
async function exportReceiveData(params) {
|
|
128661
|
-
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
128662
|
-
if (res) {
|
|
128663
|
-
return res;
|
|
128664
|
-
}
|
|
128665
|
-
return null;
|
|
128666
|
-
}
|
|
128667
|
-
|
|
128668
|
-
// 导出发信数据 /outbox/exportSendData
|
|
128669
|
-
async function exportSendData(params) {
|
|
128670
|
-
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
128671
|
-
if (res) {
|
|
128672
|
-
return res;
|
|
128673
|
-
}
|
|
128674
|
-
return null;
|
|
128675
|
-
}
|
|
128676
128943
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/MailPage/Editor.vue?vue&type=script&lang=js
|
|
128677
128944
|
//import { uploadFile } from '@/api'
|
|
128678
128945
|
|
|
@@ -129813,7 +130080,7 @@ var AttachmentList_component = normalizeComponent(
|
|
|
129813
130080
|
methods: {
|
|
129814
130081
|
// 获取页面数据
|
|
129815
130082
|
initPageData() {
|
|
129816
|
-
|
|
130083
|
+
sendDetail(this.id).then(res => {
|
|
129817
130084
|
if (res) {
|
|
129818
130085
|
this.mailData = res.data;
|
|
129819
130086
|
}
|