wotokol-edm 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/wotokol-edm.common.js +1037 -1296
- 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 +1040 -1299
- 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
|
+
/***/ 1813:
|
|
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__(1813);
|
|
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__(1813);
|
|
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=30d1fc8e&scoped=true
|
|
85288
85288
|
var render = function render() {
|
|
85289
85289
|
var _vm = this,
|
|
85290
85290
|
_c = _vm._self._c;
|
|
@@ -91223,10 +91223,8 @@ async function test_test(params) {
|
|
|
91223
91223
|
// 模拟 hub 登陆 测试账号
|
|
91224
91224
|
// mobileOrEmail: "13262005357",
|
|
91225
91225
|
// password: "123123123"
|
|
91226
|
-
|
|
91227
|
-
|
|
91228
|
-
mobileOrEmail: "18767117493",
|
|
91229
|
-
password: "tm123456789"
|
|
91226
|
+
mobileOrEmail: "18846078060",
|
|
91227
|
+
password: "asd123456"
|
|
91230
91228
|
// mobileOrEmail: "15658187195",
|
|
91231
91229
|
// password: "wotu987412365"
|
|
91232
91230
|
}).then(res => {
|
|
@@ -91378,7 +91376,7 @@ var component = normalizeComponent(
|
|
|
91378
91376
|
staticRenderFns,
|
|
91379
91377
|
false,
|
|
91380
91378
|
null,
|
|
91381
|
-
"
|
|
91379
|
+
"30d1fc8e",
|
|
91382
91380
|
null
|
|
91383
91381
|
|
|
91384
91382
|
)
|
|
@@ -98677,14 +98675,6 @@ function delTags(id) {
|
|
|
98677
98675
|
function addTags(data) {
|
|
98678
98676
|
return request_post(`/edm/tag/addSign`, data);
|
|
98679
98677
|
}
|
|
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
|
-
}
|
|
98688
98678
|
;// ./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
|
|
98689
98679
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98690
98680
|
var _vm = this,
|
|
@@ -99427,8 +99417,16 @@ function getBlob(url, cb) {
|
|
|
99427
99417
|
xhr.onload = function () {
|
|
99428
99418
|
if (xhr.status === 200) {
|
|
99429
99419
|
cb(xhr.response);
|
|
99420
|
+
} else {
|
|
99421
|
+
window.open(url, "_blank");
|
|
99422
|
+
return false;
|
|
99430
99423
|
}
|
|
99431
99424
|
};
|
|
99425
|
+
// 处理网络错误
|
|
99426
|
+
xhr.onerror = function () {
|
|
99427
|
+
window.open(url, "_blank");
|
|
99428
|
+
return false;
|
|
99429
|
+
};
|
|
99432
99430
|
xhr.send();
|
|
99433
99431
|
}
|
|
99434
99432
|
// 保存
|
|
@@ -106581,10 +106579,6 @@ function comeGoBloggerPage(data) {
|
|
|
106581
106579
|
function pagePlan(data) {
|
|
106582
106580
|
return post(`/user/popularize/pagePlan`, data);
|
|
106583
106581
|
}
|
|
106584
|
-
// 撤回邮件
|
|
106585
|
-
function withdraw(id) {
|
|
106586
|
-
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106587
|
-
}
|
|
106588
106582
|
;// ./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
|
|
106589
106583
|
|
|
106590
106584
|
|
|
@@ -109227,8 +109221,8 @@ var detail_component = normalizeComponent(
|
|
|
109227
109221
|
)
|
|
109228
109222
|
|
|
109229
109223
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
109230
|
-
;// ./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=
|
|
109231
|
-
var
|
|
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=6c2fdda1&scoped=true
|
|
109225
|
+
var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function render() {
|
|
109232
109226
|
var _vm = this,
|
|
109233
109227
|
_c = _vm._self._c;
|
|
109234
109228
|
return _c('div', {
|
|
@@ -109593,17 +109587,7 @@ var write_emailvue_type_template_id_4a0856bf_scoped_true_render = function rende
|
|
|
109593
109587
|
staticClass: "el-icon-loading"
|
|
109594
109588
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109595
109589
|
staticClass: "operate-right"
|
|
109596
|
-
}, [_c('el-button', {
|
|
109597
|
-
staticClass: "operate-btn",
|
|
109598
|
-
attrs: {
|
|
109599
|
-
"disabled": _vm.loading
|
|
109600
|
-
},
|
|
109601
|
-
on: {
|
|
109602
|
-
"click": _vm.saveMailTemplate
|
|
109603
|
-
}
|
|
109604
|
-
}, [_vm.loading ? _c('i', {
|
|
109605
|
-
staticClass: "el-icon-loading"
|
|
109606
|
-
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109590
|
+
}, [_vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109607
109591
|
staticClass: "operate-btn",
|
|
109608
109592
|
attrs: {
|
|
109609
109593
|
"disabled": _vm.loading
|
|
@@ -109968,20 +109952,9 @@ var write_emailvue_type_template_id_4a0856bf_scoped_true_render = function rende
|
|
|
109968
109952
|
},
|
|
109969
109953
|
"updateNickName": val => _vm.nickName = val
|
|
109970
109954
|
}
|
|
109971
|
-
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109972
|
-
attrs: {
|
|
109973
|
-
"tempProductCard": _vm.tempProductCard,
|
|
109974
|
-
"mailTempList": _vm.mailList,
|
|
109975
|
-
"visible": _vm.saveMailTempDialogVisible
|
|
109976
|
-
},
|
|
109977
|
-
on: {
|
|
109978
|
-
"update:visible": function ($event) {
|
|
109979
|
-
_vm.saveMailTempDialogVisible = $event;
|
|
109980
|
-
}
|
|
109981
|
-
}
|
|
109982
109955
|
}) : _vm._e()], 1);
|
|
109983
109956
|
};
|
|
109984
|
-
var
|
|
109957
|
+
var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [function () {
|
|
109985
109958
|
var _vm = this,
|
|
109986
109959
|
_c = _vm._self._c;
|
|
109987
109960
|
return _c('div', {
|
|
@@ -110002,7 +109975,7 @@ var write_emailvue_type_template_id_4a0856bf_scoped_true_staticRenderFns = [func
|
|
|
110002
109975
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
110003
109976
|
}];
|
|
110004
109977
|
|
|
110005
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
109978
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=6c2fdda1&scoped=true
|
|
110006
109979
|
|
|
110007
109980
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
110008
109981
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -110216,11 +110189,6 @@ function getOauthLink(params) {
|
|
|
110216
110189
|
function bindOutlookEmail(params) {
|
|
110217
110190
|
return request_get("/edm/qiye/saveToken", params);
|
|
110218
110191
|
}
|
|
110219
|
-
|
|
110220
|
-
// 获取模板详情
|
|
110221
|
-
function templatesDetail(id) {
|
|
110222
|
-
return request_get(`/edm/template/template/${id}`);
|
|
110223
|
-
}
|
|
110224
110192
|
;// ./src/api/send/outbox.js
|
|
110225
110193
|
|
|
110226
110194
|
// 分页查看发件箱列表
|
|
@@ -114364,59 +114332,6 @@ const moneyTypeOpts = [{
|
|
|
114364
114332
|
code: "IDR",
|
|
114365
114333
|
symbol: "Rp"
|
|
114366
114334
|
}];
|
|
114367
|
-
const const_language = [{
|
|
114368
|
-
value: 7,
|
|
114369
|
-
label: '汉语',
|
|
114370
|
-
enLabel: 'Chinese'
|
|
114371
|
-
}, {
|
|
114372
|
-
value: 1,
|
|
114373
|
-
label: '英语',
|
|
114374
|
-
enLabel: 'English'
|
|
114375
|
-
}, {
|
|
114376
|
-
value: 3,
|
|
114377
|
-
label: '法语',
|
|
114378
|
-
enLabel: 'French'
|
|
114379
|
-
}, {
|
|
114380
|
-
value: 8,
|
|
114381
|
-
label: '德语',
|
|
114382
|
-
enLabel: 'German'
|
|
114383
|
-
}, {
|
|
114384
|
-
value: 6,
|
|
114385
|
-
label: '日语',
|
|
114386
|
-
enLabel: 'Japanese'
|
|
114387
|
-
}, {
|
|
114388
|
-
value: 9,
|
|
114389
|
-
label: '韩语',
|
|
114390
|
-
enLabel: 'Korean'
|
|
114391
|
-
}, {
|
|
114392
|
-
value: 10,
|
|
114393
|
-
label: '越南语',
|
|
114394
|
-
enLabel: 'Vietnamese'
|
|
114395
|
-
}, {
|
|
114396
|
-
value: 11,
|
|
114397
|
-
label: '泰国语',
|
|
114398
|
-
enLabel: 'Thai'
|
|
114399
|
-
}, {
|
|
114400
|
-
value: 12,
|
|
114401
|
-
label: '菲律宾语',
|
|
114402
|
-
enLabel: 'Filipino'
|
|
114403
|
-
}, {
|
|
114404
|
-
value: 13,
|
|
114405
|
-
label: '印度尼西亚语',
|
|
114406
|
-
enLabel: 'Indonesian'
|
|
114407
|
-
}, {
|
|
114408
|
-
value: 14,
|
|
114409
|
-
label: '俄罗斯语',
|
|
114410
|
-
enLabel: 'Russian'
|
|
114411
|
-
}, {
|
|
114412
|
-
value: 4,
|
|
114413
|
-
label: '西班牙语',
|
|
114414
|
-
enLabel: 'Spanish'
|
|
114415
|
-
}, {
|
|
114416
|
-
value: 15,
|
|
114417
|
-
label: '意大利语',
|
|
114418
|
-
enLabel: 'Italian'
|
|
114419
|
-
}];
|
|
114420
114335
|
;// ./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
|
|
114421
114336
|
|
|
114422
114337
|
|
|
@@ -118427,719 +118342,1004 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118427
118342
|
};
|
|
118428
118343
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118429
118344
|
|
|
118430
|
-
;// ./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=
|
|
118431
|
-
|
|
118432
|
-
|
|
118433
|
-
var TemplateListvue_type_template_id_d1b92a60_scoped_true_render = function render() {
|
|
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=13a1b12d&scoped=true
|
|
118346
|
+
var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function render() {
|
|
118434
118347
|
var _vm = this,
|
|
118435
118348
|
_c = _vm._self._c;
|
|
118436
118349
|
return _c('div', {
|
|
118437
118350
|
staticClass: "wrap"
|
|
118438
118351
|
}, [_c('div', {
|
|
118439
|
-
staticClass: "
|
|
118440
|
-
}, [_c('el-row', {
|
|
118441
|
-
attrs: {
|
|
118442
|
-
"gutter": 12
|
|
118443
|
-
}
|
|
118444
|
-
}, [_c('el-col', {
|
|
118445
|
-
attrs: {
|
|
118446
|
-
"span": 8
|
|
118447
|
-
}
|
|
118352
|
+
staticClass: "grid grid-cols-3 px24 mb24"
|
|
118448
118353
|
}, [_c('div', {
|
|
118449
|
-
staticClass: "
|
|
118354
|
+
staticClass: "form-item mr16"
|
|
118450
118355
|
}, [_c('el-select', {
|
|
118451
|
-
staticClass: "template_select",
|
|
118452
|
-
attrs: {
|
|
118453
|
-
"slot": "prepend",
|
|
118454
|
-
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118455
|
-
},
|
|
118456
118356
|
on: {
|
|
118457
118357
|
"change": function ($event) {
|
|
118458
|
-
_vm.searchForm.
|
|
118459
|
-
_vm.
|
|
118358
|
+
_vm.searchForm.currentPage = 1;
|
|
118359
|
+
_vm.searchForm.modelLanguage = _vm.searchForm.type === 1 ? 1 : '';
|
|
118360
|
+
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118361
|
+
_vm.init();
|
|
118460
118362
|
}
|
|
118461
118363
|
},
|
|
118462
|
-
slot: "prepend",
|
|
118463
118364
|
model: {
|
|
118464
|
-
value: _vm.
|
|
118365
|
+
value: _vm.searchForm.type,
|
|
118465
118366
|
callback: function ($$v) {
|
|
118466
|
-
_vm.
|
|
118367
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118467
118368
|
},
|
|
118468
|
-
expression: "
|
|
118369
|
+
expression: "searchForm.type"
|
|
118469
118370
|
}
|
|
118470
118371
|
}, [_c('el-option', {
|
|
118471
118372
|
attrs: {
|
|
118472
|
-
"label":
|
|
118473
|
-
"value":
|
|
118373
|
+
"label": _vm.$i18n.t('template.system_template'),
|
|
118374
|
+
"value": 1
|
|
118474
118375
|
}
|
|
118475
118376
|
}), _c('el-option', {
|
|
118476
118377
|
attrs: {
|
|
118477
|
-
"label":
|
|
118478
|
-
"value":
|
|
118378
|
+
"label": _vm.$i18n.t('template.custom_template'),
|
|
118379
|
+
"value": 2
|
|
118479
118380
|
}
|
|
118480
|
-
})], 1),
|
|
118481
|
-
staticClass: "
|
|
118381
|
+
})], 1)], 1), _c('div', {
|
|
118382
|
+
staticClass: "form-item mr24"
|
|
118482
118383
|
}, [_c('el-select', {
|
|
118483
118384
|
attrs: {
|
|
118484
|
-
"
|
|
118485
|
-
"
|
|
118385
|
+
"placeholder": _vm.$i18n.t('template.template_language'),
|
|
118386
|
+
"clearable": ""
|
|
118387
|
+
},
|
|
118388
|
+
on: {
|
|
118389
|
+
"change": function ($event) {
|
|
118390
|
+
_vm.searchForm.currentPage = 1;
|
|
118391
|
+
_vm.init();
|
|
118392
|
+
}
|
|
118486
118393
|
},
|
|
118487
|
-
slot: "prepend",
|
|
118488
118394
|
model: {
|
|
118489
|
-
value: _vm.searchForm.
|
|
118395
|
+
value: _vm.searchForm.modelLanguage,
|
|
118490
118396
|
callback: function ($$v) {
|
|
118491
|
-
_vm.$set(_vm.searchForm, "
|
|
118397
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118492
118398
|
},
|
|
118493
|
-
expression: "searchForm.
|
|
118399
|
+
expression: "searchForm.modelLanguage"
|
|
118494
118400
|
}
|
|
118495
|
-
}, _vm._l(_vm.
|
|
118401
|
+
}, _vm._l(_vm.searchForm.type === 1 ? _vm.enumData.sysLanguage : _vm.enumData.modelLanguage, function (t, i) {
|
|
118496
118402
|
return _c('el-option', {
|
|
118497
|
-
key:
|
|
118403
|
+
key: i,
|
|
118498
118404
|
attrs: {
|
|
118499
|
-
"
|
|
118500
|
-
"
|
|
118405
|
+
"value": Number(t.value),
|
|
118406
|
+
"label": _vm.$i18n.locale === 'zh' || _vm.$i18n.locale === 'zh-CN' ? t.label : t.enLabel
|
|
118501
118407
|
}
|
|
118502
118408
|
});
|
|
118503
|
-
}), 1)], 1)
|
|
118504
|
-
staticClass: "
|
|
118505
|
-
}, [_c('
|
|
118506
|
-
staticClass: "
|
|
118507
|
-
|
|
118508
|
-
"
|
|
118409
|
+
}), 1)], 1), _c('div', {
|
|
118410
|
+
staticClass: "form-item"
|
|
118411
|
+
}, [_c('button', {
|
|
118412
|
+
staticClass: "search-btn search-btn-face",
|
|
118413
|
+
on: {
|
|
118414
|
+
"click": function ($event) {
|
|
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
|
|
118509
118423
|
},
|
|
118510
118424
|
model: {
|
|
118511
|
-
value: _vm.
|
|
118425
|
+
value: _vm.searchForm.modelType,
|
|
118512
118426
|
callback: function ($$v) {
|
|
118513
|
-
_vm.
|
|
118427
|
+
_vm.$set(_vm.searchForm, "modelType", $$v);
|
|
118514
118428
|
},
|
|
118515
|
-
expression: "
|
|
118516
|
-
}
|
|
118517
|
-
})], 1)], 1)]), _c('el-col', {
|
|
118518
|
-
attrs: {
|
|
118519
|
-
"span": 8
|
|
118429
|
+
expression: "searchForm.modelType"
|
|
118520
118430
|
}
|
|
118521
|
-
},
|
|
118522
|
-
|
|
118523
|
-
|
|
118524
|
-
|
|
118431
|
+
}, _vm._l(_vm.tabOpts, function (item) {
|
|
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
118515
|
attrs: {
|
|
118526
|
-
"
|
|
118516
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118517
|
+
"total": _vm.tableTotal,
|
|
118518
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118519
|
+
"pager-count": 5,
|
|
118520
|
+
"small": "",
|
|
118521
|
+
"layout": "total, prev, pager, next, jumper"
|
|
118527
118522
|
},
|
|
118528
|
-
|
|
118529
|
-
|
|
118530
|
-
callback: function ($$v) {
|
|
118531
|
-
_vm.mailTitleInput = $$v;
|
|
118532
|
-
},
|
|
118533
|
-
expression: "mailTitleInput"
|
|
118523
|
+
on: {
|
|
118524
|
+
"current-change": _vm.changePage
|
|
118534
118525
|
}
|
|
118535
|
-
},
|
|
118526
|
+
})], 1), _c('el-drawer', {
|
|
118536
118527
|
attrs: {
|
|
118537
|
-
"
|
|
118538
|
-
"
|
|
118528
|
+
"visible": _vm.isShowSet,
|
|
118529
|
+
"with-header": false,
|
|
118530
|
+
"wrapper-closable": false,
|
|
118531
|
+
"append-to-body": "",
|
|
118532
|
+
"size": "800px"
|
|
118539
118533
|
},
|
|
118540
118534
|
on: {
|
|
118541
|
-
"
|
|
118542
|
-
_vm.
|
|
118543
|
-
_vm.searchForm.content = '';
|
|
118544
|
-
_vm.searchForm.mailSubject = '';
|
|
118535
|
+
"update:visible": function ($event) {
|
|
118536
|
+
_vm.isShowSet = $event;
|
|
118545
118537
|
}
|
|
118538
|
+
}
|
|
118539
|
+
}, [_vm.isShowSet ? _c('set-template', {
|
|
118540
|
+
attrs: {
|
|
118541
|
+
"id": _vm.setId,
|
|
118542
|
+
"rowData": _vm.rowData,
|
|
118543
|
+
"selectType": _vm.searchForm.type
|
|
118546
118544
|
},
|
|
118547
|
-
|
|
118548
|
-
|
|
118549
|
-
|
|
118550
|
-
|
|
118551
|
-
_vm.mailTitleSelect = $$v;
|
|
118545
|
+
on: {
|
|
118546
|
+
"init": function ($event) {
|
|
118547
|
+
_vm.searchForm.currentPage = 1;
|
|
118548
|
+
_vm.init();
|
|
118552
118549
|
},
|
|
118553
|
-
|
|
118550
|
+
"close": function ($event) {
|
|
118551
|
+
_vm.setId = 0;
|
|
118552
|
+
_vm.isShowSet = false;
|
|
118553
|
+
}
|
|
118554
118554
|
}
|
|
118555
|
-
},
|
|
118555
|
+
}) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
|
|
118556
118556
|
attrs: {
|
|
118557
|
-
"
|
|
118558
|
-
"
|
|
118557
|
+
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118558
|
+
"tabOpts": _vm.tabOpts,
|
|
118559
|
+
"mailId": _vm.mailId
|
|
118560
|
+
},
|
|
118561
|
+
on: {
|
|
118562
|
+
"closeDialog": _vm.closeDialog
|
|
118559
118563
|
}
|
|
118560
|
-
})
|
|
118561
|
-
|
|
118562
|
-
|
|
118563
|
-
|
|
118564
|
+
}) : _vm._e()], 1);
|
|
118565
|
+
};
|
|
118566
|
+
var TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns = [];
|
|
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
|
+
}
|
|
118564
118609
|
}
|
|
118565
|
-
}
|
|
118610
|
+
}, [_c('i', {
|
|
118611
|
+
staticClass: "dss-iconfont icon-close"
|
|
118612
|
+
})])]), _c('div', {
|
|
118613
|
+
staticClass: "drawer-body hidden-scrollbar"
|
|
118614
|
+
}, [_c('el-form', {
|
|
118615
|
+
ref: "form",
|
|
118566
118616
|
attrs: {
|
|
118567
|
-
"
|
|
118617
|
+
"model": _vm.form,
|
|
118618
|
+
"rules": _vm.verifyForm
|
|
118568
118619
|
}
|
|
118569
118620
|
}, [_c('div', {
|
|
118570
|
-
staticClass: "
|
|
118571
|
-
}, [_c('span', {
|
|
118572
|
-
staticClass: "col-span"
|
|
118573
|
-
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118574
|
-
staticClass: "col-select",
|
|
118621
|
+
staticClass: "form-item"
|
|
118622
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118575
118623
|
attrs: {
|
|
118576
|
-
"
|
|
118577
|
-
|
|
118578
|
-
|
|
118624
|
+
"prop": "templatesTitle"
|
|
118625
|
+
}
|
|
118626
|
+
}, [_c('el-input', {
|
|
118627
|
+
attrs: {
|
|
118628
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118629
|
+
"placeholder": _vm.$i18n.t('common.please_input') + `(30` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118630
|
+
"clearable": ""
|
|
118579
118631
|
},
|
|
118580
118632
|
model: {
|
|
118581
|
-
value: _vm.
|
|
118633
|
+
value: _vm.form.templatesTitle,
|
|
118582
118634
|
callback: function ($$v) {
|
|
118583
|
-
_vm.$set(_vm.
|
|
118635
|
+
_vm.$set(_vm.form, "templatesTitle", $$v);
|
|
118584
118636
|
},
|
|
118585
|
-
expression: "
|
|
118586
|
-
}
|
|
118587
|
-
}, _vm._l(_vm.language, function (item) {
|
|
118588
|
-
return _c('el-option', {
|
|
118589
|
-
key: item.value,
|
|
118590
|
-
attrs: {
|
|
118591
|
-
"value": item.value,
|
|
118592
|
-
"label": item.label
|
|
118593
|
-
}
|
|
118594
|
-
});
|
|
118595
|
-
}), 1)], 1)])], 1), _c('el-row', {
|
|
118596
|
-
staticStyle: {
|
|
118597
|
-
"margin-top": "8px"
|
|
118598
|
-
},
|
|
118599
|
-
attrs: {
|
|
118600
|
-
"gutter": 12
|
|
118637
|
+
expression: "form.templatesTitle"
|
|
118601
118638
|
}
|
|
118602
|
-
},
|
|
118639
|
+
})], 1)], 1), _c('div', {
|
|
118640
|
+
staticClass: "form-item"
|
|
118641
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
|
|
118603
118642
|
attrs: {
|
|
118604
|
-
"
|
|
118643
|
+
"prop": "mailSubject"
|
|
118605
118644
|
}
|
|
118606
|
-
}, [_c('
|
|
118607
|
-
|
|
118608
|
-
}, [_c('span', {
|
|
118609
|
-
staticClass: "col-span"
|
|
118610
|
-
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118611
|
-
staticClass: "col-select",
|
|
118645
|
+
}, [_c('el-input', {
|
|
118646
|
+
ref: "mailSubjectIpt",
|
|
118612
118647
|
attrs: {
|
|
118613
|
-
"
|
|
118648
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118649
|
+
"placeholder": _vm.$i18n.t('common.please_input'),
|
|
118614
118650
|
"clearable": ""
|
|
118615
118651
|
},
|
|
118616
118652
|
on: {
|
|
118617
|
-
"
|
|
118653
|
+
"focus": function ($event) {
|
|
118654
|
+
_vm.isFocusSubject = true;
|
|
118655
|
+
}
|
|
118618
118656
|
},
|
|
118619
118657
|
model: {
|
|
118620
|
-
value: _vm.
|
|
118658
|
+
value: _vm.form.mailSubject,
|
|
118621
118659
|
callback: function ($$v) {
|
|
118622
|
-
_vm.$set(_vm.
|
|
118660
|
+
_vm.$set(_vm.form, "mailSubject", $$v);
|
|
118623
118661
|
},
|
|
118624
|
-
expression: "
|
|
118662
|
+
expression: "form.mailSubject"
|
|
118625
118663
|
}
|
|
118626
|
-
},
|
|
118627
|
-
|
|
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",
|
|
118628
118670
|
attrs: {
|
|
118629
|
-
"
|
|
118630
|
-
"
|
|
118671
|
+
"height": 400,
|
|
118672
|
+
"theme": "light"
|
|
118673
|
+
},
|
|
118674
|
+
on: {
|
|
118675
|
+
"click": function ($event) {
|
|
118676
|
+
_vm.isFocusSubject = false;
|
|
118677
|
+
}
|
|
118631
118678
|
}
|
|
118632
|
-
}), _c('
|
|
118633
|
-
|
|
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",
|
|
118634
118689
|
attrs: {
|
|
118635
|
-
"
|
|
118636
|
-
|
|
118690
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118691
|
+
},
|
|
118692
|
+
on: {
|
|
118693
|
+
"click": function ($event) {
|
|
118694
|
+
$event.preventDefault();
|
|
118695
|
+
return _vm.setVariable(0);
|
|
118696
|
+
}
|
|
118637
118697
|
}
|
|
118638
|
-
}
|
|
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
|
+
}
|
|
118705
|
+
}
|
|
118706
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_Id")) + " ")]), _c('button', {
|
|
118707
|
+
staticClass: "mb8 mr16",
|
|
118708
|
+
attrs: {
|
|
118709
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118710
|
+
},
|
|
118711
|
+
on: {
|
|
118712
|
+
"click": function ($event) {
|
|
118713
|
+
$event.preventDefault();
|
|
118714
|
+
return _vm.setVariable(1);
|
|
118715
|
+
}
|
|
118716
|
+
}
|
|
118717
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.fans_num")) + " ")]), _c('button', {
|
|
118639
118718
|
attrs: {
|
|
118640
|
-
"
|
|
118719
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118720
|
+
},
|
|
118721
|
+
on: {
|
|
118722
|
+
"click": function ($event) {
|
|
118723
|
+
$event.preventDefault();
|
|
118724
|
+
return _vm.setVariable(2);
|
|
118725
|
+
}
|
|
118641
118726
|
}
|
|
118642
|
-
}, [_c('div', {
|
|
118643
|
-
staticClass: "
|
|
118644
|
-
}, [_c('span', {
|
|
118645
|
-
staticClass: "col-span"
|
|
118646
|
-
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118647
|
-
staticClass: "col-select",
|
|
118727
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_link")) + " ")])])]) : _vm._e()], 1)]), _c('div', {
|
|
118728
|
+
staticClass: "form-item"
|
|
118729
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118648
118730
|
attrs: {
|
|
118649
|
-
"
|
|
118731
|
+
"prop": "scene"
|
|
118732
|
+
}
|
|
118733
|
+
}, [_c('el-input', {
|
|
118734
|
+
attrs: {
|
|
118735
|
+
"placeholder": _vm.$i18n.t('common.please_input') + `(20` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118736
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118650
118737
|
"clearable": ""
|
|
118651
118738
|
},
|
|
118652
118739
|
model: {
|
|
118653
|
-
value: _vm.
|
|
118740
|
+
value: _vm.form.scene,
|
|
118654
118741
|
callback: function ($$v) {
|
|
118655
|
-
_vm.$set(_vm.
|
|
118742
|
+
_vm.$set(_vm.form, "scene", $$v);
|
|
118656
118743
|
},
|
|
118657
|
-
expression: "
|
|
118744
|
+
expression: "form.scene"
|
|
118658
118745
|
}
|
|
118659
|
-
},
|
|
118660
|
-
|
|
118661
|
-
|
|
118662
|
-
"value": true,
|
|
118663
|
-
"label": "公开"
|
|
118664
|
-
}
|
|
118665
|
-
}), _c('el-option', {
|
|
118666
|
-
key: 2,
|
|
118667
|
-
attrs: {
|
|
118668
|
-
"value": false,
|
|
118669
|
-
"label": "私有"
|
|
118670
|
-
}
|
|
118671
|
-
})], 1)], 1)]), _c('el-col', {
|
|
118746
|
+
})], 1)], 1), _c('div', {
|
|
118747
|
+
staticClass: "form-item mb24"
|
|
118748
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118672
118749
|
attrs: {
|
|
118673
|
-
"
|
|
118750
|
+
"prop": "modelLanguage"
|
|
118674
118751
|
}
|
|
118675
|
-
}, [_c('
|
|
118676
|
-
staticClass: "col-item"
|
|
118677
|
-
}, [_c('span', {
|
|
118678
|
-
staticClass: "col-span"
|
|
118679
|
-
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118680
|
-
staticClass: "col-select",
|
|
118752
|
+
}, [_c('el-select', {
|
|
118681
118753
|
attrs: {
|
|
118682
118754
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118683
|
-
"
|
|
118684
|
-
"
|
|
118755
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118756
|
+
"clearable": ""
|
|
118685
118757
|
},
|
|
118686
118758
|
model: {
|
|
118687
|
-
value: _vm.
|
|
118759
|
+
value: _vm.form.modelLanguage,
|
|
118688
118760
|
callback: function ($$v) {
|
|
118689
|
-
_vm.$set(_vm.
|
|
118761
|
+
_vm.$set(_vm.form, "modelLanguage", $$v);
|
|
118690
118762
|
},
|
|
118691
|
-
expression: "
|
|
118763
|
+
expression: "form.modelLanguage"
|
|
118692
118764
|
}
|
|
118693
|
-
}, _vm._l(_vm.
|
|
118765
|
+
}, _vm._l(_vm.enumData.language, function (t, i) {
|
|
118694
118766
|
return _c('el-option', {
|
|
118695
|
-
key:
|
|
118767
|
+
key: i,
|
|
118696
118768
|
attrs: {
|
|
118697
|
-
"
|
|
118698
|
-
"
|
|
118769
|
+
"value": Number(t.value),
|
|
118770
|
+
"label": t.label
|
|
118699
118771
|
}
|
|
118700
118772
|
});
|
|
118701
|
-
}), 1)], 1)])], 1), _c('
|
|
118702
|
-
|
|
118703
|
-
|
|
118704
|
-
|
|
118705
|
-
attrs: {
|
|
118706
|
-
"gutter": 20
|
|
118707
|
-
}
|
|
118708
|
-
}, [_c('el-col', {
|
|
118709
|
-
attrs: {
|
|
118710
|
-
"span": 24
|
|
118711
|
-
}
|
|
118712
|
-
}, [_c('div', {
|
|
118713
|
-
staticClass: "btns_box"
|
|
118714
|
-
}, [_c('div', [_c('el-button', {
|
|
118715
|
-
attrs: {
|
|
118716
|
-
"type": "primary"
|
|
118717
|
-
},
|
|
118773
|
+
}), 1)], 1)], 1)])], 1), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118774
|
+
staticClass: "drawer-foot"
|
|
118775
|
+
}, [_c('button', {
|
|
118776
|
+
staticClass: "drawer-btn drawer-btn-linear mr24",
|
|
118718
118777
|
on: {
|
|
118719
118778
|
"click": function ($event) {
|
|
118720
|
-
_vm.
|
|
118721
|
-
_vm.getCardList();
|
|
118779
|
+
return _vm.close();
|
|
118722
118780
|
}
|
|
118723
118781
|
}
|
|
118724
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118725
|
-
|
|
118726
|
-
"click": _vm.resetEvt
|
|
118727
|
-
}
|
|
118728
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118729
|
-
staticStyle: {
|
|
118730
|
-
"display": "flex",
|
|
118731
|
-
"align-items": "center"
|
|
118732
|
-
}
|
|
118733
|
-
}, [_c('div', {
|
|
118734
|
-
staticClass: "right_sort"
|
|
118735
|
-
}, [_c('el-dropdown', {
|
|
118736
|
-
attrs: {
|
|
118737
|
-
"placement": "bottom"
|
|
118738
|
-
}
|
|
118739
|
-
}, [_c('div', {
|
|
118740
|
-
staticClass: "sort_btn"
|
|
118741
|
-
}, [_c('i', {
|
|
118742
|
-
staticClass: "dss-iconfont"
|
|
118743
|
-
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118744
|
-
attrs: {
|
|
118745
|
-
"slot": "dropdown"
|
|
118746
|
-
},
|
|
118747
|
-
slot: "dropdown"
|
|
118748
|
-
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118749
|
-
return _c('el-dropdown-item', {
|
|
118750
|
-
key: index,
|
|
118751
|
-
staticStyle: {
|
|
118752
|
-
"white-space": "nowrap"
|
|
118753
|
-
},
|
|
118754
|
-
attrs: {
|
|
118755
|
-
"command": item.value
|
|
118756
|
-
},
|
|
118757
|
-
nativeOn: {
|
|
118758
|
-
"click": function ($event) {
|
|
118759
|
-
return _vm.clickDropdownItem(item);
|
|
118760
|
-
}
|
|
118761
|
-
}
|
|
118762
|
-
}, [_vm._v(_vm._s(item.label))]);
|
|
118763
|
-
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118764
|
-
directives: [{
|
|
118765
|
-
name: "loading",
|
|
118766
|
-
rawName: "v-loading",
|
|
118767
|
-
value: _vm.loading,
|
|
118768
|
-
expression: "loading"
|
|
118769
|
-
}],
|
|
118770
|
-
staticClass: "temp_box"
|
|
118771
|
-
}, [_vm.templateList.length ? _c('div', {
|
|
118772
|
-
staticClass: "temp_list"
|
|
118773
|
-
}, _vm._l(_vm.templateList, function (item) {
|
|
118774
|
-
return _c('div', {
|
|
118775
|
-
key: item.id,
|
|
118776
|
-
staticClass: "temp_item"
|
|
118777
|
-
}, [_c('div', {
|
|
118778
|
-
staticClass: "temp_content"
|
|
118779
|
-
}, [_c('div', {
|
|
118780
|
-
staticClass: "temp_top"
|
|
118781
|
-
}, [_c('div', {
|
|
118782
|
-
staticClass: "temp_title"
|
|
118783
|
-
}, [_c('div', {
|
|
118784
|
-
staticClass: "title_text"
|
|
118785
|
-
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118786
|
-
staticClass: "more_icon",
|
|
118787
|
-
on: {
|
|
118788
|
-
"click": function ($event) {
|
|
118789
|
-
return _vm.toDetail(item);
|
|
118790
|
-
}
|
|
118791
|
-
}
|
|
118792
|
-
}, [_vm._v(" 详情"), _c('i', {
|
|
118793
|
-
staticClass: "el-icon-arrow-right"
|
|
118794
|
-
})])]), _c('div', {
|
|
118795
|
-
staticClass: "num_box"
|
|
118796
|
-
}, [_c('div', {
|
|
118797
|
-
staticClass: "lang_box"
|
|
118798
|
-
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), item.attachmentNum ? _c('div', {
|
|
118799
|
-
staticClass: "lang_box"
|
|
118800
|
-
}, [_vm._v(" 附件:" + _vm._s(item.attachmentNum) + "个 ")]) : _vm._e(), item.productCardNum ? _c('div', {
|
|
118801
|
-
staticClass: "lang_box"
|
|
118802
|
-
}, [_vm._v(" 商品卡:" + _vm._s(item.productCardNum) + "个 ")]) : _vm._e()])]), _c('div', {
|
|
118803
|
-
staticClass: "temp_middle"
|
|
118804
|
-
}, [_c('div', {
|
|
118805
|
-
staticClass: "nu_box"
|
|
118806
|
-
}, [_c('div', {
|
|
118807
|
-
staticClass: "nu_title"
|
|
118808
|
-
}, [_vm._v("送达率")]), _c('div', {
|
|
118809
|
-
staticClass: "nu_number"
|
|
118810
|
-
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118811
|
-
staticClass: "nu_box"
|
|
118812
|
-
}, [_c('div', {
|
|
118813
|
-
staticClass: "nu_title"
|
|
118814
|
-
}, [_vm._v("打开率")]), _c('div', {
|
|
118815
|
-
staticClass: "nu_number"
|
|
118816
|
-
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118817
|
-
staticClass: "nu_box"
|
|
118818
|
-
}, [_c('div', {
|
|
118819
|
-
staticClass: "nu_title"
|
|
118820
|
-
}, [_vm._v("回复率")]), _c('div', {
|
|
118821
|
-
staticClass: "nu_number"
|
|
118822
|
-
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118823
|
-
staticClass: "nu_box"
|
|
118824
|
-
}, [_c('div', {
|
|
118825
|
-
staticClass: "nu_title"
|
|
118826
|
-
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118827
|
-
staticClass: "nu_number"
|
|
118828
|
-
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118829
|
-
staticClass: "tem_bottom"
|
|
118830
|
-
}, [_c('div', {
|
|
118831
|
-
staticClass: "tem_desc"
|
|
118832
|
-
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118833
|
-
staticClass: "tem_desc"
|
|
118834
|
-
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118835
|
-
staticClass: "desc_btns"
|
|
118836
|
-
}, [_c('div', {
|
|
118837
|
-
staticClass: "desc_text"
|
|
118838
|
-
}, [_c('div', {
|
|
118839
|
-
staticClass: "tem_desc"
|
|
118840
|
-
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118841
|
-
staticClass: "tem_desc"
|
|
118842
|
-
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118843
|
-
staticClass: "apply_btn"
|
|
118844
|
-
}, [_c('el-button', {
|
|
118845
|
-
attrs: {
|
|
118846
|
-
"type": "primary"
|
|
118847
|
-
},
|
|
118848
|
-
on: {
|
|
118849
|
-
"click": function ($event) {
|
|
118850
|
-
return _vm.setMailTemplate(item);
|
|
118851
|
-
}
|
|
118852
|
-
}
|
|
118853
|
-
}, [_vm._v("应用")])], 1)])])])]);
|
|
118854
|
-
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118855
|
-
staticClass: "page_box"
|
|
118856
|
-
}, [_c('el-pagination', {
|
|
118782
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.cancle")) + " ")]), _c('button', {
|
|
118783
|
+
staticClass: "drawer-btn drawer-btn-face",
|
|
118857
118784
|
attrs: {
|
|
118858
|
-
"
|
|
118859
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118860
|
-
"layout": "total,prev, pager, next, jumper",
|
|
118861
|
-
"total": _vm.total
|
|
118785
|
+
"disabled": _vm.isSubmit
|
|
118862
118786
|
},
|
|
118863
118787
|
on: {
|
|
118864
|
-
"
|
|
118865
|
-
"current-change": _vm.handleCurrentChange,
|
|
118866
|
-
"update:currentPage": function ($event) {
|
|
118867
|
-
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118868
|
-
},
|
|
118869
|
-
"update:current-page": function ($event) {
|
|
118870
|
-
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118871
|
-
}
|
|
118788
|
+
"click": _vm.submit
|
|
118872
118789
|
}
|
|
118873
|
-
}
|
|
118790
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.confirm")) + " "), _vm.isSubmit ? _c('i', {
|
|
118791
|
+
staticClass: "el-icon-loading"
|
|
118792
|
+
}) : _vm._e()])]) : _vm._e()]);
|
|
118874
118793
|
};
|
|
118875
|
-
var
|
|
118876
|
-
|
|
118877
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=d1b92a60&scoped=true
|
|
118878
|
-
|
|
118879
|
-
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
118880
|
-
|
|
118881
|
-
const TemplateCom_const_language = [{
|
|
118882
|
-
value: '7',
|
|
118883
|
-
label: '汉语',
|
|
118884
|
-
enLabel: 'Chinese'
|
|
118885
|
-
}, {
|
|
118886
|
-
value: '1',
|
|
118887
|
-
label: '英语',
|
|
118888
|
-
enLabel: 'English'
|
|
118889
|
-
}, {
|
|
118890
|
-
value: '3',
|
|
118891
|
-
label: '法语',
|
|
118892
|
-
enLabel: 'French'
|
|
118893
|
-
}, {
|
|
118894
|
-
value: '8',
|
|
118895
|
-
label: '德语',
|
|
118896
|
-
enLabel: 'German'
|
|
118897
|
-
}, {
|
|
118898
|
-
value: '6',
|
|
118899
|
-
label: '日语',
|
|
118900
|
-
enLabel: 'Japanese'
|
|
118901
|
-
}, {
|
|
118902
|
-
value: '9',
|
|
118903
|
-
label: '韩语',
|
|
118904
|
-
enLabel: 'Korean'
|
|
118905
|
-
}, {
|
|
118906
|
-
value: '10',
|
|
118907
|
-
label: '越南语',
|
|
118908
|
-
enLabel: 'Vietnamese'
|
|
118909
|
-
}, {
|
|
118910
|
-
value: '11',
|
|
118911
|
-
label: '泰国语',
|
|
118912
|
-
enLabel: 'Thai'
|
|
118913
|
-
}, {
|
|
118914
|
-
value: '12',
|
|
118915
|
-
label: '菲律宾语',
|
|
118916
|
-
enLabel: 'Filipino'
|
|
118917
|
-
}, {
|
|
118918
|
-
value: '13',
|
|
118919
|
-
label: '印度尼西亚语',
|
|
118920
|
-
enLabel: 'Indonesian'
|
|
118921
|
-
}, {
|
|
118922
|
-
value: '14',
|
|
118923
|
-
label: '俄罗斯语',
|
|
118924
|
-
enLabel: 'Russian'
|
|
118925
|
-
}, {
|
|
118926
|
-
value: '4',
|
|
118927
|
-
label: '西班牙语',
|
|
118928
|
-
enLabel: 'Spanish'
|
|
118929
|
-
}, {
|
|
118930
|
-
value: '15',
|
|
118931
|
-
label: '意大利语',
|
|
118932
|
-
enLabel: 'Italian'
|
|
118933
|
-
}];
|
|
118934
|
-
const sortConfig = [{
|
|
118935
|
-
label: '按创建时间倒序',
|
|
118936
|
-
value: 0
|
|
118937
|
-
}, {
|
|
118938
|
-
label: '按更新时间倒序',
|
|
118939
|
-
value: 1
|
|
118940
|
-
}, {
|
|
118941
|
-
label: '按送达率倒序',
|
|
118942
|
-
value: 2
|
|
118943
|
-
}, {
|
|
118944
|
-
label: '按打开率倒序',
|
|
118945
|
-
value: 3
|
|
118946
|
-
}, {
|
|
118947
|
-
label: '按回复率倒序',
|
|
118948
|
-
value: 4
|
|
118949
|
-
}, {
|
|
118950
|
-
label: '按累计发送数倒序',
|
|
118951
|
-
value: 5
|
|
118952
|
-
}];
|
|
118953
|
-
// 系统模版场景
|
|
118954
|
-
const templateSystemScene = [{
|
|
118955
|
-
value: '1',
|
|
118956
|
-
label: `${src_language.t('template.invite_cooperation')}`
|
|
118957
|
-
},
|
|
118958
|
-
//合作邀请
|
|
118959
|
-
{
|
|
118960
|
-
value: '2',
|
|
118961
|
-
label: `${src_language.t('template.price_negotiation')}`
|
|
118962
|
-
},
|
|
118963
|
-
//价格协商
|
|
118964
|
-
{
|
|
118965
|
-
value: '3',
|
|
118966
|
-
label: `${src_language.t('template.contract_template')}`
|
|
118967
|
-
},
|
|
118968
|
-
//合同模板
|
|
118969
|
-
{
|
|
118970
|
-
value: '4',
|
|
118971
|
-
label: `${src_language.t('template.video_production')}`
|
|
118972
|
-
},
|
|
118973
|
-
//视频制作
|
|
118974
|
-
{
|
|
118975
|
-
value: '5',
|
|
118976
|
-
label: `${src_language.t('template.expense_settlement')}`
|
|
118977
|
-
} //费用结算
|
|
118978
|
-
];
|
|
118979
|
-
;// ./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
|
|
118794
|
+
var SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns = [];
|
|
118980
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
|
|
118981
118797
|
|
|
118982
118798
|
|
|
118983
118799
|
|
|
118984
|
-
|
|
118985
|
-
|
|
118986
|
-
function createSearchForm(tar) {
|
|
118987
|
-
let raw = {
|
|
118988
|
-
templatesTitle: "",
|
|
118989
|
-
//模板标题
|
|
118990
|
-
scene: "",
|
|
118991
|
-
//应用场景
|
|
118992
|
-
mailSubject: "",
|
|
118993
|
-
//邮件主题
|
|
118994
|
-
content: "",
|
|
118995
|
-
//正文
|
|
118996
|
-
type: null,
|
|
118997
|
-
//模版类型 1-系统模板;2-自定义模板
|
|
118998
|
-
modelLanguage: "",
|
|
118999
|
-
//语言
|
|
119000
|
-
isShared: "",
|
|
119001
|
-
//是否共享
|
|
119002
|
-
userId: "",
|
|
119003
|
-
//创建人
|
|
119004
|
-
searchSort: 1,
|
|
119005
|
-
//排序
|
|
119006
|
-
currentPage: 1,
|
|
119007
|
-
pageSize: 10
|
|
119008
|
-
};
|
|
119009
|
-
if (tar) {
|
|
119010
|
-
raw = Object.assign(raw, tar);
|
|
119011
|
-
}
|
|
119012
|
-
return raw;
|
|
119013
|
-
}
|
|
119014
|
-
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
118800
|
+
/* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
|
|
119015
118801
|
components: {
|
|
119016
|
-
|
|
118802
|
+
Editor: Editor
|
|
119017
118803
|
},
|
|
119018
118804
|
props: {
|
|
119019
|
-
|
|
118805
|
+
id: {
|
|
118806
|
+
default: 0,
|
|
118807
|
+
type: Number
|
|
118808
|
+
},
|
|
118809
|
+
rowData: {
|
|
118810
|
+
type: Object,
|
|
118811
|
+
default: () => {
|
|
118812
|
+
return {};
|
|
118813
|
+
}
|
|
118814
|
+
},
|
|
118815
|
+
// 自定义模板/系统模板
|
|
118816
|
+
selectType: {
|
|
119020
118817
|
type: [Number, String],
|
|
119021
118818
|
default: ""
|
|
119022
118819
|
}
|
|
119023
118820
|
},
|
|
119024
118821
|
data() {
|
|
119025
118822
|
return {
|
|
119026
|
-
|
|
119027
|
-
|
|
119028
|
-
|
|
119029
|
-
//
|
|
119030
|
-
|
|
119031
|
-
|
|
119032
|
-
|
|
119033
|
-
|
|
119034
|
-
|
|
119035
|
-
|
|
119036
|
-
|
|
119037
|
-
|
|
119038
|
-
|
|
119039
|
-
|
|
118823
|
+
enumData: {
|
|
118824
|
+
language: language
|
|
118825
|
+
},
|
|
118826
|
+
// 枚举数据
|
|
118827
|
+
form: {
|
|
118828
|
+
// 表单
|
|
118829
|
+
templatesTitle: "",
|
|
118830
|
+
//模板标题
|
|
118831
|
+
mailSubject: "",
|
|
118832
|
+
//邮件标题
|
|
118833
|
+
scene: "",
|
|
118834
|
+
//应用场景
|
|
118835
|
+
modelLanguage: ""
|
|
118836
|
+
},
|
|
118837
|
+
verifyForm: {
|
|
118838
|
+
templatesTitle: [{
|
|
118839
|
+
required: true,
|
|
118840
|
+
message: `${this.$i18n.t("template.title_not_empty")}`,
|
|
118841
|
+
trigger: "blur"
|
|
118842
|
+
}, {
|
|
118843
|
+
max: 30,
|
|
118844
|
+
message: `${this.$i18n.t("template.title_word_limit")}`,
|
|
118845
|
+
trigger: "blur"
|
|
118846
|
+
}],
|
|
118847
|
+
mailSubject: [{
|
|
118848
|
+
required: true,
|
|
118849
|
+
message: `${this.$i18n.t("template.subject_not_empty")}`,
|
|
118850
|
+
trigger: "blur"
|
|
118851
|
+
}],
|
|
118852
|
+
scene: [{
|
|
118853
|
+
required: true,
|
|
118854
|
+
message: `${this.$i18n.t("template.scene_not_empty")}`,
|
|
118855
|
+
trigger: "blur"
|
|
118856
|
+
}, {
|
|
118857
|
+
max: 20,
|
|
118858
|
+
message: `${this.$i18n.t("template.scene_word_limit")}`,
|
|
118859
|
+
trigger: "blur"
|
|
118860
|
+
}],
|
|
118861
|
+
modelLanguage: [{
|
|
118862
|
+
required: true,
|
|
118863
|
+
message: `${this.$i18n.t("template.language_not_empty")}`,
|
|
118864
|
+
trigger: "change"
|
|
118865
|
+
}]
|
|
118866
|
+
},
|
|
118867
|
+
// 标签表单校验规则
|
|
118868
|
+
isFocusSubject: false,
|
|
118869
|
+
// 主题是否获取焦点
|
|
118870
|
+
isSubmit: false // 是否正在提交
|
|
119040
118871
|
};
|
|
119041
118872
|
},
|
|
119042
|
-
|
|
119043
|
-
this.
|
|
119044
|
-
|
|
118873
|
+
created() {
|
|
118874
|
+
if (this.id) {
|
|
118875
|
+
// 初始化
|
|
118876
|
+
this.init();
|
|
118877
|
+
}
|
|
119045
118878
|
},
|
|
119046
118879
|
methods: {
|
|
119047
|
-
//
|
|
119048
|
-
|
|
119049
|
-
|
|
119050
|
-
|
|
119051
|
-
|
|
118880
|
+
// 初始化
|
|
118881
|
+
init() {
|
|
118882
|
+
if (this.id) {
|
|
118883
|
+
setTimeout(() => {
|
|
118884
|
+
this.$refs.templateContent.setContent(this.rowData.content);
|
|
118885
|
+
if (this.selectType == 1) {
|
|
118886
|
+
this.$refs.templateContent.setDisable();
|
|
118887
|
+
}
|
|
118888
|
+
}, 200);
|
|
118889
|
+
this.form = {
|
|
118890
|
+
templatesTitle: this.rowData.templatesTitle,
|
|
118891
|
+
mailSubject: this.rowData.mailSubject,
|
|
118892
|
+
scene: this.rowData.scene,
|
|
118893
|
+
modelLanguage: this.rowData.modelLanguage
|
|
118894
|
+
};
|
|
119052
118895
|
}
|
|
119053
118896
|
},
|
|
119054
|
-
//
|
|
119055
|
-
|
|
119056
|
-
this.$
|
|
119057
|
-
|
|
119058
|
-
|
|
119059
|
-
|
|
119060
|
-
|
|
119061
|
-
|
|
119062
|
-
|
|
119063
|
-
|
|
119064
|
-
|
|
118897
|
+
// 提交
|
|
118898
|
+
submit() {
|
|
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;
|
|
119065
118941
|
}
|
|
119066
118942
|
});
|
|
119067
|
-
window.open(routeData.href, "_blank");
|
|
119068
118943
|
},
|
|
119069
|
-
//
|
|
119070
|
-
|
|
119071
|
-
|
|
119072
|
-
|
|
119073
|
-
|
|
119074
|
-
|
|
119075
|
-
|
|
119076
|
-
|
|
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;
|
|
119077
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
|
+
;
|
|
119010
|
+
|
|
119011
|
+
|
|
119012
|
+
/* normalize component */
|
|
119013
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
119085
|
+
/* harmony default export */ var SetSysTemplatevue_type_script_lang_js = ({
|
|
119086
|
+
props: {
|
|
119087
|
+
isShowSetSystem: {
|
|
119088
|
+
type: Boolean,
|
|
119089
|
+
default: false
|
|
119090
|
+
},
|
|
119091
|
+
mailId: {
|
|
119092
|
+
type: [String, Number],
|
|
119093
|
+
default: ""
|
|
119094
|
+
},
|
|
119095
|
+
tabOpts: {
|
|
119096
|
+
type: Array,
|
|
119097
|
+
default: () => {
|
|
119098
|
+
return [];
|
|
119078
119099
|
}
|
|
119079
|
-
|
|
119080
|
-
|
|
119081
|
-
|
|
119082
|
-
|
|
119100
|
+
}
|
|
119101
|
+
},
|
|
119102
|
+
data() {
|
|
119103
|
+
return {
|
|
119104
|
+
isShowSetSystemDialog: this.isShowSetSystem,
|
|
119105
|
+
setSystemForm: {
|
|
119106
|
+
// 设置系统模板表单
|
|
119107
|
+
id: this.mailId,
|
|
119108
|
+
modelType: ""
|
|
119083
119109
|
}
|
|
119084
|
-
|
|
119085
|
-
|
|
119086
|
-
|
|
119087
|
-
|
|
119088
|
-
|
|
119089
|
-
|
|
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
|
+
});
|
|
119090
119128
|
} else {
|
|
119091
|
-
this.loading = false;
|
|
119092
119129
|
this.$message.error(res.message);
|
|
119130
|
+
this.closeEvt();
|
|
119093
119131
|
}
|
|
119094
119132
|
});
|
|
119095
119133
|
},
|
|
119096
|
-
|
|
119097
|
-
|
|
119098
|
-
this.
|
|
119099
|
-
this
|
|
119100
|
-
}
|
|
119101
|
-
|
|
119102
|
-
|
|
119103
|
-
|
|
119104
|
-
|
|
119105
|
-
|
|
119106
|
-
|
|
119107
|
-
|
|
119108
|
-
|
|
119109
|
-
|
|
119110
|
-
|
|
119111
|
-
|
|
119112
|
-
|
|
119113
|
-
|
|
119114
|
-
|
|
119134
|
+
closeEvt() {
|
|
119135
|
+
this.setSystemForm.id = "";
|
|
119136
|
+
this.setSystemForm.modelType = "";
|
|
119137
|
+
this.$emit("closeDialog");
|
|
119138
|
+
}
|
|
119139
|
+
}
|
|
119140
|
+
});
|
|
119141
|
+
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
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
|
+
|
|
119175
|
+
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119176
|
+
components: {
|
|
119177
|
+
SetTemplate: SetTemplate,
|
|
119178
|
+
SetSysTemplate: SetSysTemplate
|
|
119179
|
+
},
|
|
119180
|
+
props: {
|
|
119181
|
+
userId: {
|
|
119182
|
+
type: [Number, String],
|
|
119183
|
+
default: ""
|
|
119184
|
+
}
|
|
119185
|
+
},
|
|
119186
|
+
data() {
|
|
119187
|
+
return {
|
|
119188
|
+
enumData: {
|
|
119189
|
+
modelLanguage: language,
|
|
119190
|
+
sysLanguage: sysLanguage
|
|
119191
|
+
},
|
|
119192
|
+
// 枚举数据
|
|
119193
|
+
searchForm: {
|
|
119194
|
+
// 检索字段
|
|
119195
|
+
modelType: "1",
|
|
119196
|
+
//模板类型1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119197
|
+
type: 1,
|
|
119198
|
+
//模板选择1-系统模板;2-自定义模板
|
|
119199
|
+
modelLanguage: "",
|
|
119200
|
+
//模板语言
|
|
119201
|
+
currentPage: 1,
|
|
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: ""
|
|
119247
|
+
};
|
|
119248
|
+
},
|
|
119249
|
+
created() {
|
|
119250
|
+
// 初始化
|
|
119251
|
+
this.init();
|
|
119252
|
+
},
|
|
119253
|
+
methods: {
|
|
119254
|
+
// 初始化
|
|
119255
|
+
init() {
|
|
119256
|
+
this.loading = true;
|
|
119257
|
+
if (this.searchForm.type === 2) {
|
|
119258
|
+
delete this.searchForm.modelType;
|
|
119259
|
+
}
|
|
119260
|
+
getTemplateList(this.searchForm).then(res => {
|
|
119261
|
+
this.loading = false;
|
|
119262
|
+
if (res.code == 0) {
|
|
119263
|
+
this.tableData = res.data.rows;
|
|
119264
|
+
this.tableTotal = res.data.total;
|
|
119115
119265
|
} else {
|
|
119116
119266
|
this.$message.error(res.message);
|
|
119117
119267
|
}
|
|
119118
119268
|
});
|
|
119119
119269
|
},
|
|
119120
|
-
//
|
|
119121
|
-
|
|
119122
|
-
this.searchForm.currentPage =
|
|
119123
|
-
this.
|
|
119124
|
-
this.getCardList();
|
|
119270
|
+
// 翻页
|
|
119271
|
+
changePage(curr) {
|
|
119272
|
+
this.searchForm.currentPage = curr;
|
|
119273
|
+
this.init();
|
|
119125
119274
|
},
|
|
119126
|
-
|
|
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(() => {});
|
|
119296
|
+
},
|
|
119297
|
+
// 设置邮件模板
|
|
119298
|
+
setMailTemplate(data) {
|
|
119299
|
+
this.$emit("setMailTemplate", data);
|
|
119300
|
+
},
|
|
119301
|
+
// 打开编辑模板
|
|
119302
|
+
showSetTemplate(row) {
|
|
119303
|
+
this.setId = row.id;
|
|
119304
|
+
this.rowData = row;
|
|
119305
|
+
this.isShowSet = true;
|
|
119306
|
+
},
|
|
119307
|
+
// 切换选项卡
|
|
119308
|
+
swicthTab(tab) {
|
|
119309
|
+
this.searchForm.modelType = tab.name;
|
|
119127
119310
|
this.searchForm.currentPage = 1;
|
|
119128
|
-
this.
|
|
119129
|
-
this.getCardList();
|
|
119311
|
+
this.init();
|
|
119130
119312
|
},
|
|
119131
|
-
|
|
119132
|
-
|
|
119133
|
-
|
|
119313
|
+
// 时间戳转换
|
|
119314
|
+
parseTime(date, format) {
|
|
119315
|
+
return parseTime(date, format);
|
|
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;
|
|
119325
|
+
},
|
|
119326
|
+
// 关闭转为系统模版弹窗
|
|
119327
|
+
closeDialog() {
|
|
119328
|
+
this.isShowSetSystem = false;
|
|
119134
119329
|
}
|
|
119135
119330
|
}
|
|
119136
119331
|
});
|
|
119137
119332
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119138
119333
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
119139
|
-
;// ./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=
|
|
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=13a1b12d&prod&lang=scss&scoped=true
|
|
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
|
|
119140
119340
|
// extracted by mini-css-extract-plugin
|
|
119141
119341
|
|
|
119142
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=
|
|
119342
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119143
119343
|
|
|
119144
119344
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119145
119345
|
|
|
@@ -119148,15 +119348,16 @@ function createSearchForm(tar) {
|
|
|
119148
119348
|
;
|
|
119149
119349
|
|
|
119150
119350
|
|
|
119351
|
+
|
|
119151
119352
|
/* normalize component */
|
|
119152
119353
|
|
|
119153
119354
|
var TemplateList_component = normalizeComponent(
|
|
119154
119355
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119155
|
-
|
|
119156
|
-
|
|
119356
|
+
TemplateListvue_type_template_id_13a1b12d_scoped_true_render,
|
|
119357
|
+
TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns,
|
|
119157
119358
|
false,
|
|
119158
119359
|
null,
|
|
119159
|
-
"
|
|
119360
|
+
"13a1b12d",
|
|
119160
119361
|
null
|
|
119161
119362
|
|
|
119162
119363
|
)
|
|
@@ -121532,406 +121733,6 @@ function inviteEmailSave(data) {
|
|
|
121532
121733
|
function inviteEmailGet(taskId) {
|
|
121533
121734
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121534
121735
|
}
|
|
121535
|
-
;// ./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
|
|
121536
|
-
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render = function render() {
|
|
121537
|
-
var _vm = this,
|
|
121538
|
-
_c = _vm._self._c;
|
|
121539
|
-
return _c('el-dialog', {
|
|
121540
|
-
attrs: {
|
|
121541
|
-
"visible": _vm.visible,
|
|
121542
|
-
"title": "存为模版",
|
|
121543
|
-
"width": "480px",
|
|
121544
|
-
"before-close": _vm.closeDialog,
|
|
121545
|
-
"custom-class": "setting-nickname-dialog",
|
|
121546
|
-
"close-on-click-modal": false
|
|
121547
|
-
}
|
|
121548
|
-
}, [_c('div', {
|
|
121549
|
-
directives: [{
|
|
121550
|
-
name: "loading",
|
|
121551
|
-
rawName: "v-loading",
|
|
121552
|
-
value: _vm.loading,
|
|
121553
|
-
expression: "loading"
|
|
121554
|
-
}]
|
|
121555
|
-
}, [_c('el-form', {
|
|
121556
|
-
ref: "ruleForm",
|
|
121557
|
-
staticClass: "demo-ruleForm",
|
|
121558
|
-
attrs: {
|
|
121559
|
-
"label-position": "top",
|
|
121560
|
-
"model": _vm.ruleForm,
|
|
121561
|
-
"rules": _vm.rules,
|
|
121562
|
-
"label-width": "100px"
|
|
121563
|
-
}
|
|
121564
|
-
}, [_c('el-form-item', {
|
|
121565
|
-
attrs: {
|
|
121566
|
-
"label": "模版名称",
|
|
121567
|
-
"prop": "templatesTitle"
|
|
121568
|
-
}
|
|
121569
|
-
}, [_c('el-input', {
|
|
121570
|
-
attrs: {
|
|
121571
|
-
"clearable": ""
|
|
121572
|
-
},
|
|
121573
|
-
model: {
|
|
121574
|
-
value: _vm.ruleForm.templatesTitle,
|
|
121575
|
-
callback: function ($$v) {
|
|
121576
|
-
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121577
|
-
},
|
|
121578
|
-
expression: "ruleForm.templatesTitle"
|
|
121579
|
-
}
|
|
121580
|
-
})], 1), _c('el-form-item', {
|
|
121581
|
-
attrs: {
|
|
121582
|
-
"label": "应用场景",
|
|
121583
|
-
"prop": "scene"
|
|
121584
|
-
}
|
|
121585
|
-
}, [_c('el-input', {
|
|
121586
|
-
attrs: {
|
|
121587
|
-
"clearable": ""
|
|
121588
|
-
},
|
|
121589
|
-
model: {
|
|
121590
|
-
value: _vm.ruleForm.scene,
|
|
121591
|
-
callback: function ($$v) {
|
|
121592
|
-
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121593
|
-
},
|
|
121594
|
-
expression: "ruleForm.scene"
|
|
121595
|
-
}
|
|
121596
|
-
})], 1), _c('el-form-item', {
|
|
121597
|
-
attrs: {
|
|
121598
|
-
"label": "语言",
|
|
121599
|
-
"prop": "modelLanguage"
|
|
121600
|
-
}
|
|
121601
|
-
}, [_c('el-select', {
|
|
121602
|
-
attrs: {
|
|
121603
|
-
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121604
|
-
"clearable": "",
|
|
121605
|
-
"filterable": ""
|
|
121606
|
-
},
|
|
121607
|
-
model: {
|
|
121608
|
-
value: _vm.ruleForm.modelLanguage,
|
|
121609
|
-
callback: function ($$v) {
|
|
121610
|
-
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121611
|
-
},
|
|
121612
|
-
expression: "ruleForm.modelLanguage"
|
|
121613
|
-
}
|
|
121614
|
-
}, _vm._l(_vm.language, function (item) {
|
|
121615
|
-
return _c('el-option', {
|
|
121616
|
-
key: item.value,
|
|
121617
|
-
attrs: {
|
|
121618
|
-
"value": item.value,
|
|
121619
|
-
"label": item.label
|
|
121620
|
-
}
|
|
121621
|
-
});
|
|
121622
|
-
}), 1)], 1), _c('el-form-item', {
|
|
121623
|
-
attrs: {
|
|
121624
|
-
"label": "共享状态"
|
|
121625
|
-
}
|
|
121626
|
-
}, [_c('el-select', {
|
|
121627
|
-
attrs: {
|
|
121628
|
-
"clearable": "",
|
|
121629
|
-
"placeholder": "请选择共享状态"
|
|
121630
|
-
},
|
|
121631
|
-
model: {
|
|
121632
|
-
value: _vm.ruleForm.isShared,
|
|
121633
|
-
callback: function ($$v) {
|
|
121634
|
-
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121635
|
-
},
|
|
121636
|
-
expression: "ruleForm.isShared"
|
|
121637
|
-
}
|
|
121638
|
-
}, [_c('el-option', {
|
|
121639
|
-
key: 1,
|
|
121640
|
-
attrs: {
|
|
121641
|
-
"value": true,
|
|
121642
|
-
"label": "公开"
|
|
121643
|
-
}
|
|
121644
|
-
}), _c('el-option', {
|
|
121645
|
-
key: 2,
|
|
121646
|
-
attrs: {
|
|
121647
|
-
"value": false,
|
|
121648
|
-
"label": "私有"
|
|
121649
|
-
}
|
|
121650
|
-
})], 1)], 1)], 1), _c('div', {
|
|
121651
|
-
staticClass: "footer-btn"
|
|
121652
|
-
}, [_c('el-button', {
|
|
121653
|
-
on: {
|
|
121654
|
-
"click": function ($event) {
|
|
121655
|
-
return _vm.resetForm('ruleForm');
|
|
121656
|
-
}
|
|
121657
|
-
}
|
|
121658
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121659
|
-
attrs: {
|
|
121660
|
-
"type": "primary",
|
|
121661
|
-
"loading": _vm.confirmBtnLoading
|
|
121662
|
-
},
|
|
121663
|
-
on: {
|
|
121664
|
-
"click": function ($event) {
|
|
121665
|
-
return _vm.submitForm('ruleForm');
|
|
121666
|
-
}
|
|
121667
|
-
}
|
|
121668
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121669
|
-
};
|
|
121670
|
-
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns = [];
|
|
121671
|
-
|
|
121672
|
-
;// ./src/api/mailData/index.js
|
|
121673
|
-
|
|
121674
|
-
|
|
121675
|
-
// 文件上传
|
|
121676
|
-
async function mailData_uploadFile(data) {
|
|
121677
|
-
let res = await post("/edm/mail/upload_file", data);
|
|
121678
|
-
return res;
|
|
121679
|
-
}
|
|
121680
|
-
// 邮件发送数据
|
|
121681
|
-
async function getSendList(data) {
|
|
121682
|
-
let res = await request_post("/edm/outbox/sendData", data);
|
|
121683
|
-
if (res.code === '0') {
|
|
121684
|
-
return res;
|
|
121685
|
-
}
|
|
121686
|
-
return null;
|
|
121687
|
-
}
|
|
121688
|
-
|
|
121689
|
-
// 邮件接收数据 inbox/receiveData
|
|
121690
|
-
async function getReceiveList(data) {
|
|
121691
|
-
let res = await request_post("/edm/inbox/receiveData", data);
|
|
121692
|
-
if (res) {
|
|
121693
|
-
return res;
|
|
121694
|
-
}
|
|
121695
|
-
return null;
|
|
121696
|
-
}
|
|
121697
|
-
|
|
121698
|
-
// 查看详情-收件数据
|
|
121699
|
-
async function mailData_getInboxDetail(id) {
|
|
121700
|
-
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
121701
|
-
if (res) {
|
|
121702
|
-
return res;
|
|
121703
|
-
}
|
|
121704
|
-
return null;
|
|
121705
|
-
}
|
|
121706
|
-
|
|
121707
|
-
// 查看会话-收件数据
|
|
121708
|
-
async function getInboxDialogue(chatId) {
|
|
121709
|
-
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
121710
|
-
if (res) {
|
|
121711
|
-
return res;
|
|
121712
|
-
}
|
|
121713
|
-
return null;
|
|
121714
|
-
}
|
|
121715
|
-
|
|
121716
|
-
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
121717
|
-
async function getInboxDialogue1(id) {
|
|
121718
|
-
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
121719
|
-
if (res) {
|
|
121720
|
-
return res;
|
|
121721
|
-
}
|
|
121722
|
-
return null;
|
|
121723
|
-
}
|
|
121724
|
-
|
|
121725
|
-
//发送详情
|
|
121726
|
-
async function getSendDetail(id) {
|
|
121727
|
-
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
121728
|
-
if (res.code === '0') {
|
|
121729
|
-
return res;
|
|
121730
|
-
}
|
|
121731
|
-
return null;
|
|
121732
|
-
}
|
|
121733
|
-
|
|
121734
|
-
// 发信详情 sendDetail/{id}
|
|
121735
|
-
async function getDetailReceive() {
|
|
121736
|
-
let res = await get(`/edm/inbox/receiveData`);
|
|
121737
|
-
if (res.code === '0') {
|
|
121738
|
-
return res;
|
|
121739
|
-
}
|
|
121740
|
-
return null;
|
|
121741
|
-
}
|
|
121742
|
-
|
|
121743
|
-
// 发件数据详情 --和邮件往来一样
|
|
121744
|
-
async function sendDetail(id) {
|
|
121745
|
-
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
121746
|
-
if (res.code === '0') {
|
|
121747
|
-
return res;
|
|
121748
|
-
}
|
|
121749
|
-
return null;
|
|
121750
|
-
}
|
|
121751
|
-
|
|
121752
|
-
// 收信详情
|
|
121753
|
-
async function getDetailSend(id) {
|
|
121754
|
-
let res = await get(`/edm/outbox/sendData`);
|
|
121755
|
-
if (res.code === '0') {
|
|
121756
|
-
return res;
|
|
121757
|
-
}
|
|
121758
|
-
return null;
|
|
121759
|
-
}
|
|
121760
|
-
|
|
121761
|
-
// 查看AI回复 - 发件
|
|
121762
|
-
async function AiReplyDetail(id) {
|
|
121763
|
-
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
121764
|
-
if (res) {
|
|
121765
|
-
return res;
|
|
121766
|
-
}
|
|
121767
|
-
return null;
|
|
121768
|
-
}
|
|
121769
|
-
|
|
121770
|
-
// 查看AI回复 收件
|
|
121771
|
-
async function aiReply(params) {
|
|
121772
|
-
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
121773
|
-
if (res) {
|
|
121774
|
-
return res;
|
|
121775
|
-
}
|
|
121776
|
-
return null;
|
|
121777
|
-
}
|
|
121778
|
-
|
|
121779
|
-
// 导出收信数据 /inbox/exportReceiveData
|
|
121780
|
-
async function exportReceiveData(params) {
|
|
121781
|
-
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
121782
|
-
if (res) {
|
|
121783
|
-
return res;
|
|
121784
|
-
}
|
|
121785
|
-
return null;
|
|
121786
|
-
}
|
|
121787
|
-
|
|
121788
|
-
// 导出发信数据 /outbox/exportSendData
|
|
121789
|
-
async function exportSendData(params) {
|
|
121790
|
-
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
121791
|
-
if (res) {
|
|
121792
|
-
return res;
|
|
121793
|
-
}
|
|
121794
|
-
return null;
|
|
121795
|
-
}
|
|
121796
|
-
// 保存模版
|
|
121797
|
-
|
|
121798
|
-
async function addTemplate(params) {
|
|
121799
|
-
let res = await request_post(`/edm/template/addTemplate`, params);
|
|
121800
|
-
if (res) {
|
|
121801
|
-
return res;
|
|
121802
|
-
}
|
|
121803
|
-
return null;
|
|
121804
|
-
}
|
|
121805
|
-
;// ./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
|
|
121806
|
-
|
|
121807
|
-
|
|
121808
|
-
|
|
121809
|
-
|
|
121810
|
-
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121811
|
-
props: {
|
|
121812
|
-
visible: {
|
|
121813
|
-
type: Boolean,
|
|
121814
|
-
default: false
|
|
121815
|
-
},
|
|
121816
|
-
mailTempList: {
|
|
121817
|
-
type: Array,
|
|
121818
|
-
default: () => []
|
|
121819
|
-
},
|
|
121820
|
-
tempProductCard: {
|
|
121821
|
-
type: String,
|
|
121822
|
-
default: ""
|
|
121823
|
-
}
|
|
121824
|
-
},
|
|
121825
|
-
data() {
|
|
121826
|
-
return {
|
|
121827
|
-
confirmBtnLoading: false,
|
|
121828
|
-
loading: false,
|
|
121829
|
-
ruleForm: {
|
|
121830
|
-
templatesTitle: "",
|
|
121831
|
-
scene: "",
|
|
121832
|
-
modelLanguage: "",
|
|
121833
|
-
isShared: false
|
|
121834
|
-
},
|
|
121835
|
-
rules: {
|
|
121836
|
-
templatesTitle: [{
|
|
121837
|
-
required: true,
|
|
121838
|
-
message: "请输入模版名称",
|
|
121839
|
-
trigger: "blur"
|
|
121840
|
-
}],
|
|
121841
|
-
modelLanguage: [{
|
|
121842
|
-
required: true,
|
|
121843
|
-
message: "请选择模版语言",
|
|
121844
|
-
trigger: "change"
|
|
121845
|
-
}],
|
|
121846
|
-
scene: [{
|
|
121847
|
-
required: true,
|
|
121848
|
-
message: "请输入应用场景",
|
|
121849
|
-
trigger: "change"
|
|
121850
|
-
}]
|
|
121851
|
-
},
|
|
121852
|
-
language: const_language
|
|
121853
|
-
};
|
|
121854
|
-
},
|
|
121855
|
-
created() {},
|
|
121856
|
-
methods: {
|
|
121857
|
-
// 处理邮件参数
|
|
121858
|
-
getMailParams() {
|
|
121859
|
-
// 处理邮件
|
|
121860
|
-
const currentMail = this.mailTempList.find(item => item.active);
|
|
121861
|
-
let content = "";
|
|
121862
|
-
if (currentMail.getReplyHtml()) {
|
|
121863
|
-
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121864
|
-
} else {
|
|
121865
|
-
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121866
|
-
}
|
|
121867
|
-
return {
|
|
121868
|
-
mailSubject: currentMail.subject,
|
|
121869
|
-
content,
|
|
121870
|
-
attachments: currentMail.fileList
|
|
121871
|
-
};
|
|
121872
|
-
},
|
|
121873
|
-
// 表单验证
|
|
121874
|
-
submitForm(formName) {
|
|
121875
|
-
const mailParams = this.getMailParams();
|
|
121876
|
-
this.$refs[formName].validate(valid => {
|
|
121877
|
-
if (valid) {
|
|
121878
|
-
const paramsObj = {
|
|
121879
|
-
...this.ruleForm,
|
|
121880
|
-
...mailParams
|
|
121881
|
-
};
|
|
121882
|
-
//新增
|
|
121883
|
-
addTemplate(paramsObj).then(res => {
|
|
121884
|
-
console.log(res, "resss");
|
|
121885
|
-
if (res.code == "0") {
|
|
121886
|
-
this.$message.success("保存成功");
|
|
121887
|
-
this.closeDialog();
|
|
121888
|
-
} else {
|
|
121889
|
-
this.$message.error(res.message);
|
|
121890
|
-
}
|
|
121891
|
-
});
|
|
121892
|
-
} else {
|
|
121893
|
-
console.log("error submit!!");
|
|
121894
|
-
return false;
|
|
121895
|
-
}
|
|
121896
|
-
});
|
|
121897
|
-
},
|
|
121898
|
-
resetForm(formName) {
|
|
121899
|
-
this.$refs[formName].resetFields();
|
|
121900
|
-
this.closeDialog();
|
|
121901
|
-
},
|
|
121902
|
-
closeDialog() {
|
|
121903
|
-
this.$emit("update:visible", false);
|
|
121904
|
-
}
|
|
121905
|
-
}
|
|
121906
|
-
});
|
|
121907
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121908
|
-
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121909
|
-
;// ./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
|
|
121910
|
-
// extracted by mini-css-extract-plugin
|
|
121911
|
-
|
|
121912
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121913
|
-
|
|
121914
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121915
|
-
|
|
121916
|
-
|
|
121917
|
-
|
|
121918
|
-
;
|
|
121919
|
-
|
|
121920
|
-
|
|
121921
|
-
/* normalize component */
|
|
121922
|
-
|
|
121923
|
-
var saveMailTempDialog_component = normalizeComponent(
|
|
121924
|
-
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121925
|
-
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render,
|
|
121926
|
-
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns,
|
|
121927
|
-
false,
|
|
121928
|
-
null,
|
|
121929
|
-
"62cde375",
|
|
121930
|
-
null
|
|
121931
|
-
|
|
121932
|
-
)
|
|
121933
|
-
|
|
121934
|
-
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121935
121736
|
;// ./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
|
|
121936
121737
|
|
|
121937
121738
|
|
|
@@ -121973,7 +121774,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
121973
121774
|
|
|
121974
121775
|
|
|
121975
121776
|
|
|
121976
|
-
|
|
121977
121777
|
|
|
121978
121778
|
|
|
121979
121779
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121996,8 +121796,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
121996
121796
|
SignTextDrawer: signText,
|
|
121997
121797
|
MailTemplateDrawer: mailTemplate,
|
|
121998
121798
|
AiMailDialog: aiMail,
|
|
121999
|
-
MailOptimizeDrawer: mailOptimize
|
|
122000
|
-
saveMailTempDialog: saveMailTempDialog
|
|
121799
|
+
MailOptimizeDrawer: mailOptimize
|
|
122001
121800
|
},
|
|
122002
121801
|
props: {
|
|
122003
121802
|
// pm 添加
|
|
@@ -122226,11 +122025,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122226
122025
|
nickName: "",
|
|
122227
122026
|
// 发件人昵称
|
|
122228
122027
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122229
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122230
|
-
// 当前使用的AI平台
|
|
122231
|
-
saveMailTempDialogVisible: false,
|
|
122232
|
-
// 保存模版弹窗
|
|
122233
|
-
tempProductCard: '' // 模版产品卡
|
|
122028
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '' // 当前使用的AI平台
|
|
122234
122029
|
};
|
|
122235
122030
|
},
|
|
122236
122031
|
created() {
|
|
@@ -122306,18 +122101,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122306
122101
|
window.onbeforeunload = null;
|
|
122307
122102
|
},
|
|
122308
122103
|
methods: {
|
|
122309
|
-
// 保存邮件模版
|
|
122310
|
-
saveMailTemplate() {
|
|
122311
|
-
const currentMail = this.mailList.find(item => item.active);
|
|
122312
|
-
if (currentMail.subject == '') {
|
|
122313
|
-
this.$message.error('请输入邮件主题');
|
|
122314
|
-
return;
|
|
122315
|
-
}
|
|
122316
|
-
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122317
|
-
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122318
|
-
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122319
|
-
this.saveMailTempDialogVisible = true;
|
|
122320
|
-
},
|
|
122321
122104
|
// 初始化邮件模版
|
|
122322
122105
|
payInitTemplate() {
|
|
122323
122106
|
// 初始化收件人
|
|
@@ -122724,7 +122507,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122724
122507
|
active: idx === 0,
|
|
122725
122508
|
// 是否当前选中
|
|
122726
122509
|
isAiContent: false,
|
|
122727
|
-
templateId: item.templateId,
|
|
122728
122510
|
getContent: () => {},
|
|
122729
122511
|
getTextContent: () => {},
|
|
122730
122512
|
setContent: () => {},
|
|
@@ -122949,8 +122731,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122949
122731
|
id: item.id,
|
|
122950
122732
|
subject: item.subject,
|
|
122951
122733
|
content: content,
|
|
122952
|
-
attachments: item.fileList
|
|
122953
|
-
templateId: item.templateId
|
|
122734
|
+
attachments: item.fileList
|
|
122954
122735
|
};
|
|
122955
122736
|
});
|
|
122956
122737
|
|
|
@@ -123127,8 +122908,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123127
122908
|
id: item.id,
|
|
123128
122909
|
subject: item.subject,
|
|
123129
122910
|
content: item.getContent() + " " + item.getReplyHtml() + sendProductCard,
|
|
123130
|
-
attachments: item.fileList
|
|
123131
|
-
templateId: item.templateId
|
|
122911
|
+
attachments: item.fileList
|
|
123132
122912
|
};
|
|
123133
122913
|
});
|
|
123134
122914
|
// 处理红人
|
|
@@ -123281,38 +123061,15 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123281
123061
|
},
|
|
123282
123062
|
// 设置模板
|
|
123283
123063
|
setMailTemplate(data) {
|
|
123284
|
-
this.
|
|
123285
|
-
|
|
123286
|
-
|
|
123287
|
-
|
|
123288
|
-
|
|
123289
|
-
// 获取模版详情
|
|
123290
|
-
this.mailList.forEach(mail => {
|
|
123291
|
-
if (mail.active) {
|
|
123292
|
-
mail.subject = detailObj.mailSubject;
|
|
123293
|
-
mail.templateId = detailObj.id;
|
|
123294
|
-
mail.fileList = detailObj.attachmentRes;
|
|
123295
|
-
if (mail.setContent) {
|
|
123296
|
-
mail.setContent(detailObj.content);
|
|
123297
|
-
}
|
|
123298
|
-
}
|
|
123299
|
-
});
|
|
123300
|
-
// 商品卡相关逻辑
|
|
123301
|
-
if (detailObj.content) {
|
|
123302
|
-
let productCardStart = detailObj.content.indexOf('<product-card');
|
|
123303
|
-
let productCardEnd = detailObj.content.indexOf('</product-card>');
|
|
123304
|
-
let productCardHtml = detailObj.content.slice(productCardStart, productCardEnd + 15);
|
|
123305
|
-
const cardIdsMatch = productCardHtml.match(/cardids="([^"]+)"/);
|
|
123306
|
-
if (cardIdsMatch && cardIdsMatch[1]) {
|
|
123307
|
-
const cardIds = cardIdsMatch[1]; // 获取匹配到的cardids值
|
|
123308
|
-
this.addProductCard(cardIds.split(","));
|
|
123309
|
-
}
|
|
123310
|
-
}
|
|
123064
|
+
this.mailList.forEach(mail => {
|
|
123065
|
+
if (mail.active) {
|
|
123066
|
+
mail.subject = data.mailSubject;
|
|
123067
|
+
if (mail.setContent) {
|
|
123068
|
+
mail.setContent(data.content);
|
|
123311
123069
|
}
|
|
123312
|
-
} else {
|
|
123313
|
-
this.$message.error(res.message);
|
|
123314
123070
|
}
|
|
123315
|
-
})
|
|
123071
|
+
});
|
|
123072
|
+
this.mailTemplateDrawerVisible = false;
|
|
123316
123073
|
},
|
|
123317
123074
|
// 设置签名
|
|
123318
123075
|
setMailSign(data) {
|
|
@@ -123651,15 +123408,15 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123651
123408
|
});
|
|
123652
123409
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123653
123410
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
123654
|
-
;// ./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=
|
|
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=6c2fdda1&prod&lang=scss&scoped=true
|
|
123655
123412
|
// extracted by mini-css-extract-plugin
|
|
123656
123413
|
|
|
123657
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123414
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=6c2fdda1&prod&lang=scss&scoped=true
|
|
123658
123415
|
|
|
123659
|
-
;// ./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=
|
|
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=6c2fdda1&prod&lang=scss
|
|
123660
123417
|
// extracted by mini-css-extract-plugin
|
|
123661
123418
|
|
|
123662
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123419
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=6c2fdda1&prod&lang=scss
|
|
123663
123420
|
|
|
123664
123421
|
;// ./src/package/write-email/index.vue
|
|
123665
123422
|
|
|
@@ -123673,11 +123430,11 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123673
123430
|
|
|
123674
123431
|
var write_email_component = normalizeComponent(
|
|
123675
123432
|
package_write_emailvue_type_script_lang_js,
|
|
123676
|
-
|
|
123677
|
-
|
|
123433
|
+
write_emailvue_type_template_id_6c2fdda1_scoped_true_render,
|
|
123434
|
+
write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns,
|
|
123678
123435
|
false,
|
|
123679
123436
|
null,
|
|
123680
|
-
"
|
|
123437
|
+
"6c2fdda1",
|
|
123681
123438
|
null
|
|
123682
123439
|
|
|
123683
123440
|
)
|
|
@@ -123744,8 +123501,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123744
123501
|
};
|
|
123745
123502
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123746
123503
|
|
|
123747
|
-
;// ./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=
|
|
123748
|
-
var
|
|
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=1f01a884&scoped=true
|
|
123505
|
+
var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function render() {
|
|
123749
123506
|
var _vm = this,
|
|
123750
123507
|
_c = _vm._self._c;
|
|
123751
123508
|
return _c('div', {
|
|
@@ -124066,25 +123823,6 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
|
|
|
124066
123823
|
}
|
|
124067
123824
|
})];
|
|
124068
123825
|
}
|
|
124069
|
-
}, {
|
|
124070
|
-
key: "operation",
|
|
124071
|
-
fn: function ({
|
|
124072
|
-
data
|
|
124073
|
-
}) {
|
|
124074
|
-
return [_c('el-link', {
|
|
124075
|
-
attrs: {
|
|
124076
|
-
"type": "primary",
|
|
124077
|
-
"size": "small",
|
|
124078
|
-
"underline": false
|
|
124079
|
-
},
|
|
124080
|
-
on: {
|
|
124081
|
-
"click": function ($event) {
|
|
124082
|
-
$event.stopPropagation();
|
|
124083
|
-
return _vm.recallMail(data.scope);
|
|
124084
|
-
}
|
|
124085
|
-
}
|
|
124086
|
-
}, [_vm._v("撤回")])];
|
|
124087
|
-
}
|
|
124088
123826
|
}])
|
|
124089
123827
|
}), _c('div', {
|
|
124090
123828
|
staticClass: "tool"
|
|
@@ -124126,7 +123864,7 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
|
|
|
124126
123864
|
staticClass: "dss-iconfont"
|
|
124127
123865
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
124128
123866
|
};
|
|
124129
|
-
var
|
|
123867
|
+
var singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns = [];
|
|
124130
123868
|
|
|
124131
123869
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
124132
123870
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -124214,10 +123952,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124214
123952
|
label: src_language.t("edm2.mailEn12"),
|
|
124215
123953
|
prop: "sendTime",
|
|
124216
123954
|
width: "200"
|
|
124217
|
-
}, {
|
|
124218
|
-
label: "操作",
|
|
124219
|
-
scope: "operation",
|
|
124220
|
-
width: "100"
|
|
124221
123955
|
}],
|
|
124222
123956
|
tableData: [],
|
|
124223
123957
|
loading: false,
|
|
@@ -124266,32 +124000,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124266
124000
|
localStorage.removeItem("searchFlag");
|
|
124267
124001
|
},
|
|
124268
124002
|
methods: {
|
|
124269
|
-
// 撤回邮件
|
|
124270
|
-
recallMail(row) {
|
|
124271
|
-
console.log(row, "row");
|
|
124272
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124273
|
-
confirmButtonText: "确定",
|
|
124274
|
-
cancelButtonText: "取消",
|
|
124275
|
-
type: "warning"
|
|
124276
|
-
}).then(() => {
|
|
124277
|
-
withdraw(row.id).then(res => {
|
|
124278
|
-
if (res.code == "0") {
|
|
124279
|
-
this.$message({
|
|
124280
|
-
type: "success",
|
|
124281
|
-
duration: 7000,
|
|
124282
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124283
|
-
});
|
|
124284
|
-
this.init();
|
|
124285
|
-
} else {
|
|
124286
|
-
this.$message({
|
|
124287
|
-
type: "error",
|
|
124288
|
-
duration: 7000,
|
|
124289
|
-
message: res.message
|
|
124290
|
-
});
|
|
124291
|
-
}
|
|
124292
|
-
});
|
|
124293
|
-
}).catch(() => {});
|
|
124294
|
-
},
|
|
124295
124003
|
// 主题-正文
|
|
124296
124004
|
changeContentMode(val) {
|
|
124297
124005
|
this.contentSelect = val;
|
|
@@ -124485,10 +124193,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124485
124193
|
});
|
|
124486
124194
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124487
124195
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
124488
|
-
;// ./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=
|
|
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=1f01a884&prod&lang=scss&scoped=true
|
|
124489
124197
|
// extracted by mini-css-extract-plugin
|
|
124490
124198
|
|
|
124491
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124199
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
|
|
124492
124200
|
|
|
124493
124201
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124494
124202
|
|
|
@@ -124501,18 +124209,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124501
124209
|
|
|
124502
124210
|
var singleSendMail_component = normalizeComponent(
|
|
124503
124211
|
components_singleSendMailvue_type_script_lang_js,
|
|
124504
|
-
|
|
124505
|
-
|
|
124212
|
+
singleSendMailvue_type_template_id_1f01a884_scoped_true_render,
|
|
124213
|
+
singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns,
|
|
124506
124214
|
false,
|
|
124507
124215
|
null,
|
|
124508
|
-
"
|
|
124216
|
+
"1f01a884",
|
|
124509
124217
|
null
|
|
124510
124218
|
|
|
124511
124219
|
)
|
|
124512
124220
|
|
|
124513
124221
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
124514
|
-
;// ./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=
|
|
124515
|
-
var
|
|
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=9bfe54da&scoped=true
|
|
124223
|
+
var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function render() {
|
|
124516
124224
|
var _vm = this,
|
|
124517
124225
|
_c = _vm._self._c;
|
|
124518
124226
|
return _c('div', {
|
|
@@ -124802,25 +124510,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
|
|
|
124802
124510
|
}
|
|
124803
124511
|
})];
|
|
124804
124512
|
}
|
|
124805
|
-
}, {
|
|
124806
|
-
key: "operation",
|
|
124807
|
-
fn: function ({
|
|
124808
|
-
data
|
|
124809
|
-
}) {
|
|
124810
|
-
return [_c('el-link', {
|
|
124811
|
-
attrs: {
|
|
124812
|
-
"type": "primary",
|
|
124813
|
-
"size": "small",
|
|
124814
|
-
"underline": false
|
|
124815
|
-
},
|
|
124816
|
-
on: {
|
|
124817
|
-
"click": function ($event) {
|
|
124818
|
-
$event.stopPropagation();
|
|
124819
|
-
return _vm.recallMail(data.scope);
|
|
124820
|
-
}
|
|
124821
|
-
}
|
|
124822
|
-
}, [_vm._v("撤回")])];
|
|
124823
|
-
}
|
|
124824
124513
|
}])
|
|
124825
124514
|
}), _c('div', {
|
|
124826
124515
|
staticClass: "tool"
|
|
@@ -124847,7 +124536,7 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
|
|
|
124847
124536
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124848
124537
|
})])])])], 1)]);
|
|
124849
124538
|
};
|
|
124850
|
-
var
|
|
124539
|
+
var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
124851
124540
|
|
|
124852
124541
|
;// ./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
|
|
124853
124542
|
|
|
@@ -124919,10 +124608,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
124919
124608
|
label: src_language.t("edm2.mailEn12"),
|
|
124920
124609
|
prop: "sendTime",
|
|
124921
124610
|
width: "200"
|
|
124922
|
-
}, {
|
|
124923
|
-
label: "操作",
|
|
124924
|
-
scope: "operation",
|
|
124925
|
-
width: "100"
|
|
124926
124611
|
}],
|
|
124927
124612
|
contentInput: "",
|
|
124928
124613
|
contentSelect: "1",
|
|
@@ -124974,32 +124659,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
124974
124659
|
localStorage.removeItem("searchFlag");
|
|
124975
124660
|
},
|
|
124976
124661
|
methods: {
|
|
124977
|
-
// 撤回邮件
|
|
124978
|
-
recallMail(row) {
|
|
124979
|
-
console.log(row, "row");
|
|
124980
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124981
|
-
confirmButtonText: "确定",
|
|
124982
|
-
cancelButtonText: "取消",
|
|
124983
|
-
type: "warning"
|
|
124984
|
-
}).then(() => {
|
|
124985
|
-
withdraw(row.id).then(res => {
|
|
124986
|
-
if (res.code == "0") {
|
|
124987
|
-
this.$message({
|
|
124988
|
-
type: "success",
|
|
124989
|
-
duration: 7000,
|
|
124990
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124991
|
-
});
|
|
124992
|
-
this.init();
|
|
124993
|
-
} else {
|
|
124994
|
-
this.$message({
|
|
124995
|
-
type: "error",
|
|
124996
|
-
duration: 7000,
|
|
124997
|
-
message: res.message
|
|
124998
|
-
});
|
|
124999
|
-
}
|
|
125000
|
-
});
|
|
125001
|
-
}).catch(() => {});
|
|
125002
|
-
},
|
|
125003
124662
|
// 去除html标签
|
|
125004
124663
|
filterHtmlTag(str) {
|
|
125005
124664
|
if (str) {
|
|
@@ -125211,10 +124870,10 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
125211
124870
|
});
|
|
125212
124871
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
125213
124872
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
125214
|
-
;// ./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=
|
|
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=9bfe54da&prod&lang=scss&scoped=true
|
|
125215
124874
|
// extracted by mini-css-extract-plugin
|
|
125216
124875
|
|
|
125217
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
124876
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
|
|
125218
124877
|
|
|
125219
124878
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
125220
124879
|
|
|
@@ -125227,11 +124886,11 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
125227
124886
|
|
|
125228
124887
|
var replySendMail_component = normalizeComponent(
|
|
125229
124888
|
components_replySendMailvue_type_script_lang_js,
|
|
125230
|
-
|
|
125231
|
-
|
|
124889
|
+
replySendMailvue_type_template_id_9bfe54da_scoped_true_render,
|
|
124890
|
+
replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns,
|
|
125232
124891
|
false,
|
|
125233
124892
|
null,
|
|
125234
|
-
"
|
|
124893
|
+
"9bfe54da",
|
|
125235
124894
|
null
|
|
125236
124895
|
|
|
125237
124896
|
)
|
|
@@ -126699,8 +126358,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126699
126358
|
)
|
|
126700
126359
|
|
|
126701
126360
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
126702
|
-
;// ./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=
|
|
126703
|
-
var
|
|
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=cfc1a914&scoped=true
|
|
126362
|
+
var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
126704
126363
|
var _vm = this,
|
|
126705
126364
|
_c = _vm._self._c;
|
|
126706
126365
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126713,11 +126372,6 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
|
126713
126372
|
}, [_c('i', {
|
|
126714
126373
|
staticClass: "el-icon-arrow-left"
|
|
126715
126374
|
})]), _c('div', {
|
|
126716
|
-
staticClass: "back recall_btn",
|
|
126717
|
-
on: {
|
|
126718
|
-
"click": _vm.recallMail
|
|
126719
|
-
}
|
|
126720
|
-
}, [_vm._m(0)]), _c('div', {
|
|
126721
126375
|
staticClass: "mail-items-box"
|
|
126722
126376
|
}, [_c('div', {
|
|
126723
126377
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126944,19 +126598,7 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
|
126944
126598
|
}
|
|
126945
126599
|
}) : _vm._e()], 1) : _vm._e();
|
|
126946
126600
|
};
|
|
126947
|
-
var
|
|
126948
|
-
var _vm = this,
|
|
126949
|
-
_c = _vm._self._c;
|
|
126950
|
-
return _c('div', {
|
|
126951
|
-
staticClass: "re_box"
|
|
126952
|
-
}, [_c('i', {
|
|
126953
|
-
staticClass: "dss-iconfont btn_con"
|
|
126954
|
-
}, [_vm._v("")]), _c('span', {
|
|
126955
|
-
staticClass: "btn_con"
|
|
126956
|
-
}, [_vm._v("撤回")])]);
|
|
126957
|
-
}];
|
|
126958
|
-
|
|
126959
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=ad633b50&scoped=true
|
|
126601
|
+
var detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns = [];
|
|
126960
126602
|
|
|
126961
126603
|
;// ./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
|
|
126962
126604
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -127205,31 +126847,6 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127205
126847
|
localStorage.setItem("searchFlag", true);
|
|
127206
126848
|
},
|
|
127207
126849
|
methods: {
|
|
127208
|
-
// 撤回邮件
|
|
127209
|
-
recallMail() {
|
|
127210
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127211
|
-
confirmButtonText: "确定",
|
|
127212
|
-
cancelButtonText: "取消",
|
|
127213
|
-
type: "warning"
|
|
127214
|
-
}).then(() => {
|
|
127215
|
-
withdraw(this.$route.query.id).then(res => {
|
|
127216
|
-
if (res.code == "0") {
|
|
127217
|
-
this.$message({
|
|
127218
|
-
type: "success",
|
|
127219
|
-
duration: 7000,
|
|
127220
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127221
|
-
});
|
|
127222
|
-
this.backToOutbox();
|
|
127223
|
-
} else {
|
|
127224
|
-
this.$message({
|
|
127225
|
-
type: "error",
|
|
127226
|
-
duration: 7000,
|
|
127227
|
-
message: res.message
|
|
127228
|
-
});
|
|
127229
|
-
}
|
|
127230
|
-
});
|
|
127231
|
-
}).catch(() => {});
|
|
127232
|
-
},
|
|
127233
126850
|
// 红人档案侧抽
|
|
127234
126851
|
toBloggerDeatil(item) {
|
|
127235
126852
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -127361,10 +126978,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127361
126978
|
});
|
|
127362
126979
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
127363
126980
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
127364
|
-
;// ./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=
|
|
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=cfc1a914&prod&lang=scss&scoped=true
|
|
127365
126982
|
// extracted by mini-css-extract-plugin
|
|
127366
126983
|
|
|
127367
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
126984
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=cfc1a914&prod&lang=scss&scoped=true
|
|
127368
126985
|
|
|
127369
126986
|
;// ./src/package/outbox-email/detail.vue
|
|
127370
126987
|
|
|
@@ -127377,11 +126994,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127377
126994
|
|
|
127378
126995
|
var outbox_email_detail_component = normalizeComponent(
|
|
127379
126996
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
127380
|
-
|
|
127381
|
-
|
|
126997
|
+
detailvue_type_template_id_cfc1a914_scoped_true_render,
|
|
126998
|
+
detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns,
|
|
127382
126999
|
false,
|
|
127383
127000
|
null,
|
|
127384
|
-
"
|
|
127001
|
+
"cfc1a914",
|
|
127385
127002
|
null
|
|
127386
127003
|
|
|
127387
127004
|
)
|
|
@@ -127687,7 +127304,7 @@ async function mailList2(data) {
|
|
|
127687
127304
|
}
|
|
127688
127305
|
|
|
127689
127306
|
// 查看邮件往来里的发件详情
|
|
127690
|
-
async function
|
|
127307
|
+
async function sendDetail(params) {
|
|
127691
127308
|
let res = await get(`/edm/mail/sendDetail/${params.id}`);
|
|
127692
127309
|
return res;
|
|
127693
127310
|
}
|
|
@@ -128932,6 +128549,130 @@ var Editorvue_type_template_id_16051201_scoped_true_render = function render() {
|
|
|
128932
128549
|
};
|
|
128933
128550
|
var Editorvue_type_template_id_16051201_scoped_true_staticRenderFns = [];
|
|
128934
128551
|
|
|
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
|
+
}
|
|
128935
128676
|
;// ./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
|
|
128936
128677
|
//import { uploadFile } from '@/api'
|
|
128937
128678
|
|
|
@@ -130072,7 +129813,7 @@ var AttachmentList_component = normalizeComponent(
|
|
|
130072
129813
|
methods: {
|
|
130073
129814
|
// 获取页面数据
|
|
130074
129815
|
initPageData() {
|
|
130075
|
-
|
|
129816
|
+
mailData_sendDetail(this.id).then(res => {
|
|
130076
129817
|
if (res) {
|
|
130077
129818
|
this.mailData = res.data;
|
|
130078
129819
|
}
|