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.common.js
CHANGED
|
@@ -85274,7 +85274,7 @@ if (typeof window !== 'undefined') {
|
|
|
85274
85274
|
var esnext_iterator_constructor = __webpack_require__(8992);
|
|
85275
85275
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
|
|
85276
85276
|
var esnext_iterator_for_each = __webpack_require__(3949);
|
|
85277
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-button/index.vue?vue&type=template&id=
|
|
85277
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-button/index.vue?vue&type=template&id=30d1fc8e&scoped=true
|
|
85278
85278
|
var render = function render() {
|
|
85279
85279
|
var _vm = this,
|
|
85280
85280
|
_c = _vm._self._c;
|
|
@@ -91213,10 +91213,8 @@ async function test_test(params) {
|
|
|
91213
91213
|
// 模拟 hub 登陆 测试账号
|
|
91214
91214
|
// mobileOrEmail: "13262005357",
|
|
91215
91215
|
// password: "123123123"
|
|
91216
|
-
|
|
91217
|
-
|
|
91218
|
-
mobileOrEmail: "18767117493",
|
|
91219
|
-
password: "tm123456789"
|
|
91216
|
+
mobileOrEmail: "18846078060",
|
|
91217
|
+
password: "asd123456"
|
|
91220
91218
|
// mobileOrEmail: "15658187195",
|
|
91221
91219
|
// password: "wotu987412365"
|
|
91222
91220
|
}).then(res => {
|
|
@@ -91368,7 +91366,7 @@ var component = normalizeComponent(
|
|
|
91368
91366
|
staticRenderFns,
|
|
91369
91367
|
false,
|
|
91370
91368
|
null,
|
|
91371
|
-
"
|
|
91369
|
+
"30d1fc8e",
|
|
91372
91370
|
null
|
|
91373
91371
|
|
|
91374
91372
|
)
|
|
@@ -98667,14 +98665,6 @@ function delTags(id) {
|
|
|
98667
98665
|
function addTags(data) {
|
|
98668
98666
|
return request_post(`/edm/tag/addSign`, data);
|
|
98669
98667
|
}
|
|
98670
|
-
// 获取账号
|
|
98671
|
-
function hubUserSonFather(params) {
|
|
98672
|
-
return request_get(`/user/hubUser/sonFather`, params);
|
|
98673
|
-
}
|
|
98674
|
-
// 分页查看模板列表
|
|
98675
|
-
function templatesList(params) {
|
|
98676
|
-
return request_get(`/edm/template/templates`, params);
|
|
98677
|
-
}
|
|
98678
98668
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-search/index.vue?vue&type=template&id=4d651f22&scoped=true
|
|
98679
98669
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98680
98670
|
var _vm = this,
|
|
@@ -99417,8 +99407,16 @@ function getBlob(url, cb) {
|
|
|
99417
99407
|
xhr.onload = function () {
|
|
99418
99408
|
if (xhr.status === 200) {
|
|
99419
99409
|
cb(xhr.response);
|
|
99410
|
+
} else {
|
|
99411
|
+
window.open(url, "_blank");
|
|
99412
|
+
return false;
|
|
99420
99413
|
}
|
|
99421
99414
|
};
|
|
99415
|
+
// 处理网络错误
|
|
99416
|
+
xhr.onerror = function () {
|
|
99417
|
+
window.open(url, "_blank");
|
|
99418
|
+
return false;
|
|
99419
|
+
};
|
|
99422
99420
|
xhr.send();
|
|
99423
99421
|
}
|
|
99424
99422
|
// 保存
|
|
@@ -106571,10 +106569,6 @@ function comeGoBloggerPage(data) {
|
|
|
106571
106569
|
function pagePlan(data) {
|
|
106572
106570
|
return post(`/user/popularize/pagePlan`, data);
|
|
106573
106571
|
}
|
|
106574
|
-
// 撤回邮件
|
|
106575
|
-
function withdraw(id) {
|
|
106576
|
-
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106577
|
-
}
|
|
106578
106572
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmailPlan/index.vue?vue&type=script&lang=js
|
|
106579
106573
|
|
|
106580
106574
|
|
|
@@ -109217,8 +109211,8 @@ var detail_component = normalizeComponent(
|
|
|
109217
109211
|
)
|
|
109218
109212
|
|
|
109219
109213
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
109220
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=
|
|
109221
|
-
var
|
|
109214
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=6c2fdda1&scoped=true
|
|
109215
|
+
var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function render() {
|
|
109222
109216
|
var _vm = this,
|
|
109223
109217
|
_c = _vm._self._c;
|
|
109224
109218
|
return _c('div', {
|
|
@@ -109583,17 +109577,7 @@ var write_emailvue_type_template_id_4a0856bf_scoped_true_render = function rende
|
|
|
109583
109577
|
staticClass: "el-icon-loading"
|
|
109584
109578
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109585
109579
|
staticClass: "operate-right"
|
|
109586
|
-
}, [_c('el-button', {
|
|
109587
|
-
staticClass: "operate-btn",
|
|
109588
|
-
attrs: {
|
|
109589
|
-
"disabled": _vm.loading
|
|
109590
|
-
},
|
|
109591
|
-
on: {
|
|
109592
|
-
"click": _vm.saveMailTemplate
|
|
109593
|
-
}
|
|
109594
|
-
}, [_vm.loading ? _c('i', {
|
|
109595
|
-
staticClass: "el-icon-loading"
|
|
109596
|
-
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109580
|
+
}, [_vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109597
109581
|
staticClass: "operate-btn",
|
|
109598
109582
|
attrs: {
|
|
109599
109583
|
"disabled": _vm.loading
|
|
@@ -109958,20 +109942,9 @@ var write_emailvue_type_template_id_4a0856bf_scoped_true_render = function rende
|
|
|
109958
109942
|
},
|
|
109959
109943
|
"updateNickName": val => _vm.nickName = val
|
|
109960
109944
|
}
|
|
109961
|
-
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109962
|
-
attrs: {
|
|
109963
|
-
"tempProductCard": _vm.tempProductCard,
|
|
109964
|
-
"mailTempList": _vm.mailList,
|
|
109965
|
-
"visible": _vm.saveMailTempDialogVisible
|
|
109966
|
-
},
|
|
109967
|
-
on: {
|
|
109968
|
-
"update:visible": function ($event) {
|
|
109969
|
-
_vm.saveMailTempDialogVisible = $event;
|
|
109970
|
-
}
|
|
109971
|
-
}
|
|
109972
109945
|
}) : _vm._e()], 1);
|
|
109973
109946
|
};
|
|
109974
|
-
var
|
|
109947
|
+
var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [function () {
|
|
109975
109948
|
var _vm = this,
|
|
109976
109949
|
_c = _vm._self._c;
|
|
109977
109950
|
return _c('div', {
|
|
@@ -109992,7 +109965,7 @@ var write_emailvue_type_template_id_4a0856bf_scoped_true_staticRenderFns = [func
|
|
|
109992
109965
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109993
109966
|
}];
|
|
109994
109967
|
|
|
109995
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
109968
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=6c2fdda1&scoped=true
|
|
109996
109969
|
|
|
109997
109970
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109998
109971
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -110206,11 +110179,6 @@ function getOauthLink(params) {
|
|
|
110206
110179
|
function bindOutlookEmail(params) {
|
|
110207
110180
|
return request_get("/edm/qiye/saveToken", params);
|
|
110208
110181
|
}
|
|
110209
|
-
|
|
110210
|
-
// 获取模板详情
|
|
110211
|
-
function templatesDetail(id) {
|
|
110212
|
-
return request_get(`/edm/template/template/${id}`);
|
|
110213
|
-
}
|
|
110214
110182
|
;// ./src/api/send/outbox.js
|
|
110215
110183
|
|
|
110216
110184
|
// 分页查看发件箱列表
|
|
@@ -114354,59 +114322,6 @@ const moneyTypeOpts = [{
|
|
|
114354
114322
|
code: "IDR",
|
|
114355
114323
|
symbol: "Rp"
|
|
114356
114324
|
}];
|
|
114357
|
-
const const_language = [{
|
|
114358
|
-
value: 7,
|
|
114359
|
-
label: '汉语',
|
|
114360
|
-
enLabel: 'Chinese'
|
|
114361
|
-
}, {
|
|
114362
|
-
value: 1,
|
|
114363
|
-
label: '英语',
|
|
114364
|
-
enLabel: 'English'
|
|
114365
|
-
}, {
|
|
114366
|
-
value: 3,
|
|
114367
|
-
label: '法语',
|
|
114368
|
-
enLabel: 'French'
|
|
114369
|
-
}, {
|
|
114370
|
-
value: 8,
|
|
114371
|
-
label: '德语',
|
|
114372
|
-
enLabel: 'German'
|
|
114373
|
-
}, {
|
|
114374
|
-
value: 6,
|
|
114375
|
-
label: '日语',
|
|
114376
|
-
enLabel: 'Japanese'
|
|
114377
|
-
}, {
|
|
114378
|
-
value: 9,
|
|
114379
|
-
label: '韩语',
|
|
114380
|
-
enLabel: 'Korean'
|
|
114381
|
-
}, {
|
|
114382
|
-
value: 10,
|
|
114383
|
-
label: '越南语',
|
|
114384
|
-
enLabel: 'Vietnamese'
|
|
114385
|
-
}, {
|
|
114386
|
-
value: 11,
|
|
114387
|
-
label: '泰国语',
|
|
114388
|
-
enLabel: 'Thai'
|
|
114389
|
-
}, {
|
|
114390
|
-
value: 12,
|
|
114391
|
-
label: '菲律宾语',
|
|
114392
|
-
enLabel: 'Filipino'
|
|
114393
|
-
}, {
|
|
114394
|
-
value: 13,
|
|
114395
|
-
label: '印度尼西亚语',
|
|
114396
|
-
enLabel: 'Indonesian'
|
|
114397
|
-
}, {
|
|
114398
|
-
value: 14,
|
|
114399
|
-
label: '俄罗斯语',
|
|
114400
|
-
enLabel: 'Russian'
|
|
114401
|
-
}, {
|
|
114402
|
-
value: 4,
|
|
114403
|
-
label: '西班牙语',
|
|
114404
|
-
enLabel: 'Spanish'
|
|
114405
|
-
}, {
|
|
114406
|
-
value: 15,
|
|
114407
|
-
label: '意大利语',
|
|
114408
|
-
enLabel: 'Italian'
|
|
114409
|
-
}];
|
|
114410
114325
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/productNewCom/detail.vue?vue&type=script&lang=js
|
|
114411
114326
|
|
|
114412
114327
|
|
|
@@ -118417,719 +118332,1004 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118417
118332
|
};
|
|
118418
118333
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118419
118334
|
|
|
118420
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=
|
|
118421
|
-
|
|
118422
|
-
|
|
118423
|
-
var TemplateListvue_type_template_id_d1b92a60_scoped_true_render = function render() {
|
|
118335
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=13a1b12d&scoped=true
|
|
118336
|
+
var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function render() {
|
|
118424
118337
|
var _vm = this,
|
|
118425
118338
|
_c = _vm._self._c;
|
|
118426
118339
|
return _c('div', {
|
|
118427
118340
|
staticClass: "wrap"
|
|
118428
118341
|
}, [_c('div', {
|
|
118429
|
-
staticClass: "
|
|
118430
|
-
}, [_c('el-row', {
|
|
118431
|
-
attrs: {
|
|
118432
|
-
"gutter": 12
|
|
118433
|
-
}
|
|
118434
|
-
}, [_c('el-col', {
|
|
118435
|
-
attrs: {
|
|
118436
|
-
"span": 8
|
|
118437
|
-
}
|
|
118342
|
+
staticClass: "grid grid-cols-3 px24 mb24"
|
|
118438
118343
|
}, [_c('div', {
|
|
118439
|
-
staticClass: "
|
|
118344
|
+
staticClass: "form-item mr16"
|
|
118440
118345
|
}, [_c('el-select', {
|
|
118441
|
-
staticClass: "template_select",
|
|
118442
|
-
attrs: {
|
|
118443
|
-
"slot": "prepend",
|
|
118444
|
-
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118445
|
-
},
|
|
118446
118346
|
on: {
|
|
118447
118347
|
"change": function ($event) {
|
|
118448
|
-
_vm.searchForm.
|
|
118449
|
-
_vm.
|
|
118348
|
+
_vm.searchForm.currentPage = 1;
|
|
118349
|
+
_vm.searchForm.modelLanguage = _vm.searchForm.type === 1 ? 1 : '';
|
|
118350
|
+
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118351
|
+
_vm.init();
|
|
118450
118352
|
}
|
|
118451
118353
|
},
|
|
118452
|
-
slot: "prepend",
|
|
118453
118354
|
model: {
|
|
118454
|
-
value: _vm.
|
|
118355
|
+
value: _vm.searchForm.type,
|
|
118455
118356
|
callback: function ($$v) {
|
|
118456
|
-
_vm.
|
|
118357
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118457
118358
|
},
|
|
118458
|
-
expression: "
|
|
118359
|
+
expression: "searchForm.type"
|
|
118459
118360
|
}
|
|
118460
118361
|
}, [_c('el-option', {
|
|
118461
118362
|
attrs: {
|
|
118462
|
-
"label":
|
|
118463
|
-
"value":
|
|
118363
|
+
"label": _vm.$i18n.t('template.system_template'),
|
|
118364
|
+
"value": 1
|
|
118464
118365
|
}
|
|
118465
118366
|
}), _c('el-option', {
|
|
118466
118367
|
attrs: {
|
|
118467
|
-
"label":
|
|
118468
|
-
"value":
|
|
118368
|
+
"label": _vm.$i18n.t('template.custom_template'),
|
|
118369
|
+
"value": 2
|
|
118469
118370
|
}
|
|
118470
|
-
})], 1),
|
|
118471
|
-
staticClass: "
|
|
118371
|
+
})], 1)], 1), _c('div', {
|
|
118372
|
+
staticClass: "form-item mr24"
|
|
118472
118373
|
}, [_c('el-select', {
|
|
118473
118374
|
attrs: {
|
|
118474
|
-
"
|
|
118475
|
-
"
|
|
118375
|
+
"placeholder": _vm.$i18n.t('template.template_language'),
|
|
118376
|
+
"clearable": ""
|
|
118377
|
+
},
|
|
118378
|
+
on: {
|
|
118379
|
+
"change": function ($event) {
|
|
118380
|
+
_vm.searchForm.currentPage = 1;
|
|
118381
|
+
_vm.init();
|
|
118382
|
+
}
|
|
118476
118383
|
},
|
|
118477
|
-
slot: "prepend",
|
|
118478
118384
|
model: {
|
|
118479
|
-
value: _vm.searchForm.
|
|
118385
|
+
value: _vm.searchForm.modelLanguage,
|
|
118480
118386
|
callback: function ($$v) {
|
|
118481
|
-
_vm.$set(_vm.searchForm, "
|
|
118387
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118482
118388
|
},
|
|
118483
|
-
expression: "searchForm.
|
|
118389
|
+
expression: "searchForm.modelLanguage"
|
|
118484
118390
|
}
|
|
118485
|
-
}, _vm._l(_vm.
|
|
118391
|
+
}, _vm._l(_vm.searchForm.type === 1 ? _vm.enumData.sysLanguage : _vm.enumData.modelLanguage, function (t, i) {
|
|
118486
118392
|
return _c('el-option', {
|
|
118487
|
-
key:
|
|
118393
|
+
key: i,
|
|
118488
118394
|
attrs: {
|
|
118489
|
-
"
|
|
118490
|
-
"
|
|
118395
|
+
"value": Number(t.value),
|
|
118396
|
+
"label": _vm.$i18n.locale === 'zh' || _vm.$i18n.locale === 'zh-CN' ? t.label : t.enLabel
|
|
118491
118397
|
}
|
|
118492
118398
|
});
|
|
118493
|
-
}), 1)], 1)
|
|
118494
|
-
staticClass: "
|
|
118495
|
-
}, [_c('
|
|
118496
|
-
staticClass: "
|
|
118497
|
-
|
|
118498
|
-
"
|
|
118399
|
+
}), 1)], 1), _c('div', {
|
|
118400
|
+
staticClass: "form-item"
|
|
118401
|
+
}, [_c('button', {
|
|
118402
|
+
staticClass: "search-btn search-btn-face",
|
|
118403
|
+
on: {
|
|
118404
|
+
"click": function ($event) {
|
|
118405
|
+
_vm.isShowSet = true;
|
|
118406
|
+
}
|
|
118407
|
+
}
|
|
118408
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.create_template")) + " ")])])]), _vm.searchForm.type === 1 ? _c('div', {
|
|
118409
|
+
staticClass: "tab px24 mb24"
|
|
118410
|
+
}, [_c('el-tabs', {
|
|
118411
|
+
on: {
|
|
118412
|
+
"tab-click": _vm.swicthTab
|
|
118499
118413
|
},
|
|
118500
118414
|
model: {
|
|
118501
|
-
value: _vm.
|
|
118415
|
+
value: _vm.searchForm.modelType,
|
|
118502
118416
|
callback: function ($$v) {
|
|
118503
|
-
_vm.
|
|
118417
|
+
_vm.$set(_vm.searchForm, "modelType", $$v);
|
|
118504
118418
|
},
|
|
118505
|
-
expression: "
|
|
118506
|
-
}
|
|
118507
|
-
})], 1)], 1)]), _c('el-col', {
|
|
118508
|
-
attrs: {
|
|
118509
|
-
"span": 8
|
|
118419
|
+
expression: "searchForm.modelType"
|
|
118510
118420
|
}
|
|
118511
|
-
},
|
|
118512
|
-
|
|
118513
|
-
|
|
118514
|
-
|
|
118421
|
+
}, _vm._l(_vm.tabOpts, function (item) {
|
|
118422
|
+
return _c('el-tab-pane', {
|
|
118423
|
+
key: item.name,
|
|
118424
|
+
attrs: {
|
|
118425
|
+
"name": item.name,
|
|
118426
|
+
"label": item.label
|
|
118427
|
+
}
|
|
118428
|
+
});
|
|
118429
|
+
}), 1)], 1) : _vm._e(), _c('div', {
|
|
118430
|
+
directives: [{
|
|
118431
|
+
name: "loading",
|
|
118432
|
+
rawName: "v-loading",
|
|
118433
|
+
value: _vm.loading,
|
|
118434
|
+
expression: "loading"
|
|
118435
|
+
}],
|
|
118436
|
+
staticClass: "list hidden-scrollbar"
|
|
118437
|
+
}, [_vm.tableTotal ? _vm._l(_vm.tableData, function (t, i) {
|
|
118438
|
+
return _c('div', {
|
|
118439
|
+
key: i,
|
|
118440
|
+
staticClass: "list-item grid grid-cols-2 mb16"
|
|
118441
|
+
}, [_c('div', {
|
|
118442
|
+
staticClass: "desc"
|
|
118443
|
+
}, [_c('h3', {
|
|
118444
|
+
staticClass: "beyond_eip mb16"
|
|
118445
|
+
}, [_vm._v(" " + _vm._s(t.templatesTitle) + " ")]), _c('p', {
|
|
118446
|
+
staticClass: "beyond_eip mb8"
|
|
118447
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.apply_scene")) + ":" + _vm._s(t.scene) + " ")]), _c('p', [_vm._v(" " + _vm._s(_vm.$i18n.t("common.update_on")) + _vm._s(_vm.parseTime(t.gmtModify, "{y}-{m}-{d}")) + " ")])]), _c('div', {
|
|
118448
|
+
staticClass: "operate"
|
|
118449
|
+
}, [_c('button', {
|
|
118450
|
+
staticClass: "operate-detail",
|
|
118451
|
+
on: {
|
|
118452
|
+
"click": function ($event) {
|
|
118453
|
+
return _vm.showSetTemplate(t);
|
|
118454
|
+
}
|
|
118455
|
+
}
|
|
118456
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.detail"))), _c('i', {
|
|
118457
|
+
staticClass: "dss-iconfont icon-arrow"
|
|
118458
|
+
})]), _c('div', {
|
|
118459
|
+
staticClass: "operate-btns"
|
|
118460
|
+
}, [_vm.searchForm.type == 2 || _vm.searchForm.type == 1 && _vm.userId == 1 ? _c('button', {
|
|
118461
|
+
staticClass: "operate-btn operate-btn-linear mr8",
|
|
118462
|
+
on: {
|
|
118463
|
+
"click": function ($event) {
|
|
118464
|
+
return _vm.del(t.id);
|
|
118465
|
+
}
|
|
118466
|
+
}
|
|
118467
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.delete")) + " ")]) : _vm._e(), _vm.searchForm.type === 2 && _vm.userId === 1 ? _c('el-button', {
|
|
118468
|
+
staticClass: "operate-btn-setsys mr8",
|
|
118469
|
+
attrs: {
|
|
118470
|
+
"type": "primary",
|
|
118471
|
+
"size": "small"
|
|
118472
|
+
},
|
|
118473
|
+
on: {
|
|
118474
|
+
"click": function ($event) {
|
|
118475
|
+
return _vm.showSetSystem(t);
|
|
118476
|
+
}
|
|
118477
|
+
}
|
|
118478
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.set_system_template")) + " ")]) : _vm._e(), t.isShowDownload === 1 ? _c('el-button', {
|
|
118479
|
+
staticClass: "mr8",
|
|
118480
|
+
attrs: {
|
|
118481
|
+
"type": "primary",
|
|
118482
|
+
"size": "small"
|
|
118483
|
+
},
|
|
118484
|
+
on: {
|
|
118485
|
+
"click": function ($event) {
|
|
118486
|
+
return _vm.downloadTem(t);
|
|
118487
|
+
}
|
|
118488
|
+
}
|
|
118489
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.download")) + " ")]) : _vm._e(), _c('el-button', {
|
|
118490
|
+
attrs: {
|
|
118491
|
+
"type": "primary",
|
|
118492
|
+
"size": "small"
|
|
118493
|
+
},
|
|
118494
|
+
on: {
|
|
118495
|
+
"click": function ($event) {
|
|
118496
|
+
return _vm.setMailTemplate(t);
|
|
118497
|
+
}
|
|
118498
|
+
}
|
|
118499
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.apply")) + " ")])], 1)])]);
|
|
118500
|
+
}) : _vm._e(), !_vm.tableTotal ? _c('div', {
|
|
118501
|
+
staticClass: "w-full h-full flex items-center justify-center"
|
|
118502
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.no_data")) + " ")]) : _vm._e()], 2), _c('div', {
|
|
118503
|
+
staticClass: "list-page"
|
|
118504
|
+
}, [_c('el-pagination', {
|
|
118515
118505
|
attrs: {
|
|
118516
|
-
"
|
|
118506
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118507
|
+
"total": _vm.tableTotal,
|
|
118508
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118509
|
+
"pager-count": 5,
|
|
118510
|
+
"small": "",
|
|
118511
|
+
"layout": "total, prev, pager, next, jumper"
|
|
118517
118512
|
},
|
|
118518
|
-
|
|
118519
|
-
|
|
118520
|
-
callback: function ($$v) {
|
|
118521
|
-
_vm.mailTitleInput = $$v;
|
|
118522
|
-
},
|
|
118523
|
-
expression: "mailTitleInput"
|
|
118513
|
+
on: {
|
|
118514
|
+
"current-change": _vm.changePage
|
|
118524
118515
|
}
|
|
118525
|
-
},
|
|
118516
|
+
})], 1), _c('el-drawer', {
|
|
118526
118517
|
attrs: {
|
|
118527
|
-
"
|
|
118528
|
-
"
|
|
118518
|
+
"visible": _vm.isShowSet,
|
|
118519
|
+
"with-header": false,
|
|
118520
|
+
"wrapper-closable": false,
|
|
118521
|
+
"append-to-body": "",
|
|
118522
|
+
"size": "800px"
|
|
118529
118523
|
},
|
|
118530
118524
|
on: {
|
|
118531
|
-
"
|
|
118532
|
-
_vm.
|
|
118533
|
-
_vm.searchForm.content = '';
|
|
118534
|
-
_vm.searchForm.mailSubject = '';
|
|
118525
|
+
"update:visible": function ($event) {
|
|
118526
|
+
_vm.isShowSet = $event;
|
|
118535
118527
|
}
|
|
118528
|
+
}
|
|
118529
|
+
}, [_vm.isShowSet ? _c('set-template', {
|
|
118530
|
+
attrs: {
|
|
118531
|
+
"id": _vm.setId,
|
|
118532
|
+
"rowData": _vm.rowData,
|
|
118533
|
+
"selectType": _vm.searchForm.type
|
|
118536
118534
|
},
|
|
118537
|
-
|
|
118538
|
-
|
|
118539
|
-
|
|
118540
|
-
|
|
118541
|
-
_vm.mailTitleSelect = $$v;
|
|
118535
|
+
on: {
|
|
118536
|
+
"init": function ($event) {
|
|
118537
|
+
_vm.searchForm.currentPage = 1;
|
|
118538
|
+
_vm.init();
|
|
118542
118539
|
},
|
|
118543
|
-
|
|
118540
|
+
"close": function ($event) {
|
|
118541
|
+
_vm.setId = 0;
|
|
118542
|
+
_vm.isShowSet = false;
|
|
118543
|
+
}
|
|
118544
118544
|
}
|
|
118545
|
-
},
|
|
118545
|
+
}) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
|
|
118546
118546
|
attrs: {
|
|
118547
|
-
"
|
|
118548
|
-
"
|
|
118547
|
+
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118548
|
+
"tabOpts": _vm.tabOpts,
|
|
118549
|
+
"mailId": _vm.mailId
|
|
118550
|
+
},
|
|
118551
|
+
on: {
|
|
118552
|
+
"closeDialog": _vm.closeDialog
|
|
118549
118553
|
}
|
|
118550
|
-
})
|
|
118551
|
-
|
|
118552
|
-
|
|
118553
|
-
|
|
118554
|
+
}) : _vm._e()], 1);
|
|
118555
|
+
};
|
|
118556
|
+
var TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns = [];
|
|
118557
|
+
|
|
118558
|
+
;// ./src/api/send/template.js
|
|
118559
|
+
|
|
118560
|
+
// 分页查看模板列表
|
|
118561
|
+
async function getTemplateList(params) {
|
|
118562
|
+
let res = await request_get("/edm/template/templates", params);
|
|
118563
|
+
return res;
|
|
118564
|
+
}
|
|
118565
|
+
// 添加模板
|
|
118566
|
+
async function addTemplate(data) {
|
|
118567
|
+
let res = await request_post("/edm/template/addTemplate", data);
|
|
118568
|
+
return res;
|
|
118569
|
+
}
|
|
118570
|
+
// 编辑模板
|
|
118571
|
+
async function editTemplate(data) {
|
|
118572
|
+
let res = await request_post("/edm/template/editTemplate", data);
|
|
118573
|
+
return res;
|
|
118574
|
+
}
|
|
118575
|
+
// 删除模板
|
|
118576
|
+
async function delTemplate(data) {
|
|
118577
|
+
let res = await request_del(`/edm/template/delTemplate/${data.id}`);
|
|
118578
|
+
return res;
|
|
118579
|
+
}
|
|
118580
|
+
// 设为系统模版
|
|
118581
|
+
async function setSysTemplate(data) {
|
|
118582
|
+
let res = await request_put(`/edm/template/setSysTemplate`, data);
|
|
118583
|
+
return res;
|
|
118584
|
+
}
|
|
118585
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=template&id=87417d06&scoped=true
|
|
118586
|
+
var SetTemplatevue_type_template_id_87417d06_scoped_true_render = function render() {
|
|
118587
|
+
var _vm = this,
|
|
118588
|
+
_c = _vm._self._c;
|
|
118589
|
+
return _c('div', {
|
|
118590
|
+
staticClass: "drawer"
|
|
118591
|
+
}, [_c('div', {
|
|
118592
|
+
staticClass: "drawer-head"
|
|
118593
|
+
}, [_c('h3', [_vm._v(" " + _vm._s(_vm.id ? `${_vm.$i18n.t("template.edit_template")}` : `${_vm.$i18n.t("template.new_template")}`) + " ")]), _c('button', {
|
|
118594
|
+
staticClass: "close-btn",
|
|
118595
|
+
on: {
|
|
118596
|
+
"click": function ($event) {
|
|
118597
|
+
return _vm.close();
|
|
118598
|
+
}
|
|
118554
118599
|
}
|
|
118555
|
-
}
|
|
118600
|
+
}, [_c('i', {
|
|
118601
|
+
staticClass: "dss-iconfont icon-close"
|
|
118602
|
+
})])]), _c('div', {
|
|
118603
|
+
staticClass: "drawer-body hidden-scrollbar"
|
|
118604
|
+
}, [_c('el-form', {
|
|
118605
|
+
ref: "form",
|
|
118556
118606
|
attrs: {
|
|
118557
|
-
"
|
|
118607
|
+
"model": _vm.form,
|
|
118608
|
+
"rules": _vm.verifyForm
|
|
118558
118609
|
}
|
|
118559
118610
|
}, [_c('div', {
|
|
118560
|
-
staticClass: "
|
|
118561
|
-
}, [_c('span', {
|
|
118562
|
-
staticClass: "col-span"
|
|
118563
|
-
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118564
|
-
staticClass: "col-select",
|
|
118611
|
+
staticClass: "form-item"
|
|
118612
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118565
118613
|
attrs: {
|
|
118566
|
-
"
|
|
118567
|
-
|
|
118568
|
-
|
|
118614
|
+
"prop": "templatesTitle"
|
|
118615
|
+
}
|
|
118616
|
+
}, [_c('el-input', {
|
|
118617
|
+
attrs: {
|
|
118618
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118619
|
+
"placeholder": _vm.$i18n.t('common.please_input') + `(30` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118620
|
+
"clearable": ""
|
|
118569
118621
|
},
|
|
118570
118622
|
model: {
|
|
118571
|
-
value: _vm.
|
|
118623
|
+
value: _vm.form.templatesTitle,
|
|
118572
118624
|
callback: function ($$v) {
|
|
118573
|
-
_vm.$set(_vm.
|
|
118625
|
+
_vm.$set(_vm.form, "templatesTitle", $$v);
|
|
118574
118626
|
},
|
|
118575
|
-
expression: "
|
|
118576
|
-
}
|
|
118577
|
-
}, _vm._l(_vm.language, function (item) {
|
|
118578
|
-
return _c('el-option', {
|
|
118579
|
-
key: item.value,
|
|
118580
|
-
attrs: {
|
|
118581
|
-
"value": item.value,
|
|
118582
|
-
"label": item.label
|
|
118583
|
-
}
|
|
118584
|
-
});
|
|
118585
|
-
}), 1)], 1)])], 1), _c('el-row', {
|
|
118586
|
-
staticStyle: {
|
|
118587
|
-
"margin-top": "8px"
|
|
118588
|
-
},
|
|
118589
|
-
attrs: {
|
|
118590
|
-
"gutter": 12
|
|
118627
|
+
expression: "form.templatesTitle"
|
|
118591
118628
|
}
|
|
118592
|
-
},
|
|
118629
|
+
})], 1)], 1), _c('div', {
|
|
118630
|
+
staticClass: "form-item"
|
|
118631
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
|
|
118593
118632
|
attrs: {
|
|
118594
|
-
"
|
|
118633
|
+
"prop": "mailSubject"
|
|
118595
118634
|
}
|
|
118596
|
-
}, [_c('
|
|
118597
|
-
|
|
118598
|
-
}, [_c('span', {
|
|
118599
|
-
staticClass: "col-span"
|
|
118600
|
-
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118601
|
-
staticClass: "col-select",
|
|
118635
|
+
}, [_c('el-input', {
|
|
118636
|
+
ref: "mailSubjectIpt",
|
|
118602
118637
|
attrs: {
|
|
118603
|
-
"
|
|
118638
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118639
|
+
"placeholder": _vm.$i18n.t('common.please_input'),
|
|
118604
118640
|
"clearable": ""
|
|
118605
118641
|
},
|
|
118606
118642
|
on: {
|
|
118607
|
-
"
|
|
118643
|
+
"focus": function ($event) {
|
|
118644
|
+
_vm.isFocusSubject = true;
|
|
118645
|
+
}
|
|
118608
118646
|
},
|
|
118609
118647
|
model: {
|
|
118610
|
-
value: _vm.
|
|
118648
|
+
value: _vm.form.mailSubject,
|
|
118611
118649
|
callback: function ($$v) {
|
|
118612
|
-
_vm.$set(_vm.
|
|
118650
|
+
_vm.$set(_vm.form, "mailSubject", $$v);
|
|
118613
118651
|
},
|
|
118614
|
-
expression: "
|
|
118652
|
+
expression: "form.mailSubject"
|
|
118615
118653
|
}
|
|
118616
|
-
},
|
|
118617
|
-
|
|
118654
|
+
})], 1)], 1), _c('div', {
|
|
118655
|
+
staticClass: "form-editor mb24"
|
|
118656
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.content")))]), _c('div', {
|
|
118657
|
+
staticClass: "form-editor-wrap"
|
|
118658
|
+
}, [_c('editor', {
|
|
118659
|
+
ref: "templateContent",
|
|
118618
118660
|
attrs: {
|
|
118619
|
-
"
|
|
118620
|
-
"
|
|
118661
|
+
"height": 400,
|
|
118662
|
+
"theme": "light"
|
|
118663
|
+
},
|
|
118664
|
+
on: {
|
|
118665
|
+
"click": function ($event) {
|
|
118666
|
+
_vm.isFocusSubject = false;
|
|
118667
|
+
}
|
|
118621
118668
|
}
|
|
118622
|
-
}), _c('
|
|
118623
|
-
|
|
118669
|
+
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118670
|
+
staticClass: "form-tool"
|
|
118671
|
+
}, [_c('div', {
|
|
118672
|
+
staticClass: "form-tool-title"
|
|
118673
|
+
}, [_c('i', {
|
|
118674
|
+
staticClass: "dss-iconfont icon-info"
|
|
118675
|
+
}), _c('p', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.template_var")))])]), _c('div', {
|
|
118676
|
+
staticClass: "form-tool-main"
|
|
118677
|
+
}, [_c('button', {
|
|
118678
|
+
staticClass: "mb8 mr16",
|
|
118624
118679
|
attrs: {
|
|
118625
|
-
"
|
|
118626
|
-
|
|
118680
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118681
|
+
},
|
|
118682
|
+
on: {
|
|
118683
|
+
"click": function ($event) {
|
|
118684
|
+
$event.preventDefault();
|
|
118685
|
+
return _vm.setVariable(0);
|
|
118686
|
+
}
|
|
118627
118687
|
}
|
|
118628
|
-
}
|
|
118688
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_name")) + " ")]), _c('button', {
|
|
118689
|
+
staticClass: "mb8 mr16",
|
|
118690
|
+
on: {
|
|
118691
|
+
"click": function ($event) {
|
|
118692
|
+
$event.preventDefault();
|
|
118693
|
+
return _vm.setVariable(3);
|
|
118694
|
+
}
|
|
118695
|
+
}
|
|
118696
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_Id")) + " ")]), _c('button', {
|
|
118697
|
+
staticClass: "mb8 mr16",
|
|
118698
|
+
attrs: {
|
|
118699
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118700
|
+
},
|
|
118701
|
+
on: {
|
|
118702
|
+
"click": function ($event) {
|
|
118703
|
+
$event.preventDefault();
|
|
118704
|
+
return _vm.setVariable(1);
|
|
118705
|
+
}
|
|
118706
|
+
}
|
|
118707
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.fans_num")) + " ")]), _c('button', {
|
|
118629
118708
|
attrs: {
|
|
118630
|
-
"
|
|
118709
|
+
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118710
|
+
},
|
|
118711
|
+
on: {
|
|
118712
|
+
"click": function ($event) {
|
|
118713
|
+
$event.preventDefault();
|
|
118714
|
+
return _vm.setVariable(2);
|
|
118715
|
+
}
|
|
118631
118716
|
}
|
|
118632
|
-
}, [_c('div', {
|
|
118633
|
-
staticClass: "
|
|
118634
|
-
}, [_c('span', {
|
|
118635
|
-
staticClass: "col-span"
|
|
118636
|
-
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118637
|
-
staticClass: "col-select",
|
|
118717
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_link")) + " ")])])]) : _vm._e()], 1)]), _c('div', {
|
|
118718
|
+
staticClass: "form-item"
|
|
118719
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118638
118720
|
attrs: {
|
|
118639
|
-
"
|
|
118721
|
+
"prop": "scene"
|
|
118722
|
+
}
|
|
118723
|
+
}, [_c('el-input', {
|
|
118724
|
+
attrs: {
|
|
118725
|
+
"placeholder": _vm.$i18n.t('common.please_input') + `(20` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118726
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118640
118727
|
"clearable": ""
|
|
118641
118728
|
},
|
|
118642
118729
|
model: {
|
|
118643
|
-
value: _vm.
|
|
118730
|
+
value: _vm.form.scene,
|
|
118644
118731
|
callback: function ($$v) {
|
|
118645
|
-
_vm.$set(_vm.
|
|
118732
|
+
_vm.$set(_vm.form, "scene", $$v);
|
|
118646
118733
|
},
|
|
118647
|
-
expression: "
|
|
118734
|
+
expression: "form.scene"
|
|
118648
118735
|
}
|
|
118649
|
-
},
|
|
118650
|
-
|
|
118651
|
-
|
|
118652
|
-
"value": true,
|
|
118653
|
-
"label": "公开"
|
|
118654
|
-
}
|
|
118655
|
-
}), _c('el-option', {
|
|
118656
|
-
key: 2,
|
|
118657
|
-
attrs: {
|
|
118658
|
-
"value": false,
|
|
118659
|
-
"label": "私有"
|
|
118660
|
-
}
|
|
118661
|
-
})], 1)], 1)]), _c('el-col', {
|
|
118736
|
+
})], 1)], 1), _c('div', {
|
|
118737
|
+
staticClass: "form-item mb24"
|
|
118738
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118662
118739
|
attrs: {
|
|
118663
|
-
"
|
|
118740
|
+
"prop": "modelLanguage"
|
|
118664
118741
|
}
|
|
118665
|
-
}, [_c('
|
|
118666
|
-
staticClass: "col-item"
|
|
118667
|
-
}, [_c('span', {
|
|
118668
|
-
staticClass: "col-span"
|
|
118669
|
-
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118670
|
-
staticClass: "col-select",
|
|
118742
|
+
}, [_c('el-select', {
|
|
118671
118743
|
attrs: {
|
|
118672
118744
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118673
|
-
"
|
|
118674
|
-
"
|
|
118745
|
+
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118746
|
+
"clearable": ""
|
|
118675
118747
|
},
|
|
118676
118748
|
model: {
|
|
118677
|
-
value: _vm.
|
|
118749
|
+
value: _vm.form.modelLanguage,
|
|
118678
118750
|
callback: function ($$v) {
|
|
118679
|
-
_vm.$set(_vm.
|
|
118751
|
+
_vm.$set(_vm.form, "modelLanguage", $$v);
|
|
118680
118752
|
},
|
|
118681
|
-
expression: "
|
|
118753
|
+
expression: "form.modelLanguage"
|
|
118682
118754
|
}
|
|
118683
|
-
}, _vm._l(_vm.
|
|
118755
|
+
}, _vm._l(_vm.enumData.language, function (t, i) {
|
|
118684
118756
|
return _c('el-option', {
|
|
118685
|
-
key:
|
|
118757
|
+
key: i,
|
|
118686
118758
|
attrs: {
|
|
118687
|
-
"
|
|
118688
|
-
"
|
|
118759
|
+
"value": Number(t.value),
|
|
118760
|
+
"label": t.label
|
|
118689
118761
|
}
|
|
118690
118762
|
});
|
|
118691
|
-
}), 1)], 1)])], 1), _c('
|
|
118692
|
-
|
|
118693
|
-
|
|
118694
|
-
|
|
118695
|
-
attrs: {
|
|
118696
|
-
"gutter": 20
|
|
118697
|
-
}
|
|
118698
|
-
}, [_c('el-col', {
|
|
118699
|
-
attrs: {
|
|
118700
|
-
"span": 24
|
|
118701
|
-
}
|
|
118702
|
-
}, [_c('div', {
|
|
118703
|
-
staticClass: "btns_box"
|
|
118704
|
-
}, [_c('div', [_c('el-button', {
|
|
118705
|
-
attrs: {
|
|
118706
|
-
"type": "primary"
|
|
118707
|
-
},
|
|
118763
|
+
}), 1)], 1)], 1)])], 1), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118764
|
+
staticClass: "drawer-foot"
|
|
118765
|
+
}, [_c('button', {
|
|
118766
|
+
staticClass: "drawer-btn drawer-btn-linear mr24",
|
|
118708
118767
|
on: {
|
|
118709
118768
|
"click": function ($event) {
|
|
118710
|
-
_vm.
|
|
118711
|
-
_vm.getCardList();
|
|
118769
|
+
return _vm.close();
|
|
118712
118770
|
}
|
|
118713
118771
|
}
|
|
118714
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118715
|
-
|
|
118716
|
-
"click": _vm.resetEvt
|
|
118717
|
-
}
|
|
118718
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118719
|
-
staticStyle: {
|
|
118720
|
-
"display": "flex",
|
|
118721
|
-
"align-items": "center"
|
|
118722
|
-
}
|
|
118723
|
-
}, [_c('div', {
|
|
118724
|
-
staticClass: "right_sort"
|
|
118725
|
-
}, [_c('el-dropdown', {
|
|
118726
|
-
attrs: {
|
|
118727
|
-
"placement": "bottom"
|
|
118728
|
-
}
|
|
118729
|
-
}, [_c('div', {
|
|
118730
|
-
staticClass: "sort_btn"
|
|
118731
|
-
}, [_c('i', {
|
|
118732
|
-
staticClass: "dss-iconfont"
|
|
118733
|
-
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118734
|
-
attrs: {
|
|
118735
|
-
"slot": "dropdown"
|
|
118736
|
-
},
|
|
118737
|
-
slot: "dropdown"
|
|
118738
|
-
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118739
|
-
return _c('el-dropdown-item', {
|
|
118740
|
-
key: index,
|
|
118741
|
-
staticStyle: {
|
|
118742
|
-
"white-space": "nowrap"
|
|
118743
|
-
},
|
|
118744
|
-
attrs: {
|
|
118745
|
-
"command": item.value
|
|
118746
|
-
},
|
|
118747
|
-
nativeOn: {
|
|
118748
|
-
"click": function ($event) {
|
|
118749
|
-
return _vm.clickDropdownItem(item);
|
|
118750
|
-
}
|
|
118751
|
-
}
|
|
118752
|
-
}, [_vm._v(_vm._s(item.label))]);
|
|
118753
|
-
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118754
|
-
directives: [{
|
|
118755
|
-
name: "loading",
|
|
118756
|
-
rawName: "v-loading",
|
|
118757
|
-
value: _vm.loading,
|
|
118758
|
-
expression: "loading"
|
|
118759
|
-
}],
|
|
118760
|
-
staticClass: "temp_box"
|
|
118761
|
-
}, [_vm.templateList.length ? _c('div', {
|
|
118762
|
-
staticClass: "temp_list"
|
|
118763
|
-
}, _vm._l(_vm.templateList, function (item) {
|
|
118764
|
-
return _c('div', {
|
|
118765
|
-
key: item.id,
|
|
118766
|
-
staticClass: "temp_item"
|
|
118767
|
-
}, [_c('div', {
|
|
118768
|
-
staticClass: "temp_content"
|
|
118769
|
-
}, [_c('div', {
|
|
118770
|
-
staticClass: "temp_top"
|
|
118771
|
-
}, [_c('div', {
|
|
118772
|
-
staticClass: "temp_title"
|
|
118773
|
-
}, [_c('div', {
|
|
118774
|
-
staticClass: "title_text"
|
|
118775
|
-
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118776
|
-
staticClass: "more_icon",
|
|
118777
|
-
on: {
|
|
118778
|
-
"click": function ($event) {
|
|
118779
|
-
return _vm.toDetail(item);
|
|
118780
|
-
}
|
|
118781
|
-
}
|
|
118782
|
-
}, [_vm._v(" 详情"), _c('i', {
|
|
118783
|
-
staticClass: "el-icon-arrow-right"
|
|
118784
|
-
})])]), _c('div', {
|
|
118785
|
-
staticClass: "num_box"
|
|
118786
|
-
}, [_c('div', {
|
|
118787
|
-
staticClass: "lang_box"
|
|
118788
|
-
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), item.attachmentNum ? _c('div', {
|
|
118789
|
-
staticClass: "lang_box"
|
|
118790
|
-
}, [_vm._v(" 附件:" + _vm._s(item.attachmentNum) + "个 ")]) : _vm._e(), item.productCardNum ? _c('div', {
|
|
118791
|
-
staticClass: "lang_box"
|
|
118792
|
-
}, [_vm._v(" 商品卡:" + _vm._s(item.productCardNum) + "个 ")]) : _vm._e()])]), _c('div', {
|
|
118793
|
-
staticClass: "temp_middle"
|
|
118794
|
-
}, [_c('div', {
|
|
118795
|
-
staticClass: "nu_box"
|
|
118796
|
-
}, [_c('div', {
|
|
118797
|
-
staticClass: "nu_title"
|
|
118798
|
-
}, [_vm._v("送达率")]), _c('div', {
|
|
118799
|
-
staticClass: "nu_number"
|
|
118800
|
-
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118801
|
-
staticClass: "nu_box"
|
|
118802
|
-
}, [_c('div', {
|
|
118803
|
-
staticClass: "nu_title"
|
|
118804
|
-
}, [_vm._v("打开率")]), _c('div', {
|
|
118805
|
-
staticClass: "nu_number"
|
|
118806
|
-
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118807
|
-
staticClass: "nu_box"
|
|
118808
|
-
}, [_c('div', {
|
|
118809
|
-
staticClass: "nu_title"
|
|
118810
|
-
}, [_vm._v("回复率")]), _c('div', {
|
|
118811
|
-
staticClass: "nu_number"
|
|
118812
|
-
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118813
|
-
staticClass: "nu_box"
|
|
118814
|
-
}, [_c('div', {
|
|
118815
|
-
staticClass: "nu_title"
|
|
118816
|
-
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118817
|
-
staticClass: "nu_number"
|
|
118818
|
-
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118819
|
-
staticClass: "tem_bottom"
|
|
118820
|
-
}, [_c('div', {
|
|
118821
|
-
staticClass: "tem_desc"
|
|
118822
|
-
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118823
|
-
staticClass: "tem_desc"
|
|
118824
|
-
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118825
|
-
staticClass: "desc_btns"
|
|
118826
|
-
}, [_c('div', {
|
|
118827
|
-
staticClass: "desc_text"
|
|
118828
|
-
}, [_c('div', {
|
|
118829
|
-
staticClass: "tem_desc"
|
|
118830
|
-
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118831
|
-
staticClass: "tem_desc"
|
|
118832
|
-
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118833
|
-
staticClass: "apply_btn"
|
|
118834
|
-
}, [_c('el-button', {
|
|
118835
|
-
attrs: {
|
|
118836
|
-
"type": "primary"
|
|
118837
|
-
},
|
|
118838
|
-
on: {
|
|
118839
|
-
"click": function ($event) {
|
|
118840
|
-
return _vm.setMailTemplate(item);
|
|
118841
|
-
}
|
|
118842
|
-
}
|
|
118843
|
-
}, [_vm._v("应用")])], 1)])])])]);
|
|
118844
|
-
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118845
|
-
staticClass: "page_box"
|
|
118846
|
-
}, [_c('el-pagination', {
|
|
118772
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.cancle")) + " ")]), _c('button', {
|
|
118773
|
+
staticClass: "drawer-btn drawer-btn-face",
|
|
118847
118774
|
attrs: {
|
|
118848
|
-
"
|
|
118849
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118850
|
-
"layout": "total,prev, pager, next, jumper",
|
|
118851
|
-
"total": _vm.total
|
|
118775
|
+
"disabled": _vm.isSubmit
|
|
118852
118776
|
},
|
|
118853
118777
|
on: {
|
|
118854
|
-
"
|
|
118855
|
-
"current-change": _vm.handleCurrentChange,
|
|
118856
|
-
"update:currentPage": function ($event) {
|
|
118857
|
-
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118858
|
-
},
|
|
118859
|
-
"update:current-page": function ($event) {
|
|
118860
|
-
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118861
|
-
}
|
|
118778
|
+
"click": _vm.submit
|
|
118862
118779
|
}
|
|
118863
|
-
}
|
|
118780
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.confirm")) + " "), _vm.isSubmit ? _c('i', {
|
|
118781
|
+
staticClass: "el-icon-loading"
|
|
118782
|
+
}) : _vm._e()])]) : _vm._e()]);
|
|
118864
118783
|
};
|
|
118865
|
-
var
|
|
118866
|
-
|
|
118867
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=d1b92a60&scoped=true
|
|
118868
|
-
|
|
118869
|
-
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
118870
|
-
|
|
118871
|
-
const TemplateCom_const_language = [{
|
|
118872
|
-
value: '7',
|
|
118873
|
-
label: '汉语',
|
|
118874
|
-
enLabel: 'Chinese'
|
|
118875
|
-
}, {
|
|
118876
|
-
value: '1',
|
|
118877
|
-
label: '英语',
|
|
118878
|
-
enLabel: 'English'
|
|
118879
|
-
}, {
|
|
118880
|
-
value: '3',
|
|
118881
|
-
label: '法语',
|
|
118882
|
-
enLabel: 'French'
|
|
118883
|
-
}, {
|
|
118884
|
-
value: '8',
|
|
118885
|
-
label: '德语',
|
|
118886
|
-
enLabel: 'German'
|
|
118887
|
-
}, {
|
|
118888
|
-
value: '6',
|
|
118889
|
-
label: '日语',
|
|
118890
|
-
enLabel: 'Japanese'
|
|
118891
|
-
}, {
|
|
118892
|
-
value: '9',
|
|
118893
|
-
label: '韩语',
|
|
118894
|
-
enLabel: 'Korean'
|
|
118895
|
-
}, {
|
|
118896
|
-
value: '10',
|
|
118897
|
-
label: '越南语',
|
|
118898
|
-
enLabel: 'Vietnamese'
|
|
118899
|
-
}, {
|
|
118900
|
-
value: '11',
|
|
118901
|
-
label: '泰国语',
|
|
118902
|
-
enLabel: 'Thai'
|
|
118903
|
-
}, {
|
|
118904
|
-
value: '12',
|
|
118905
|
-
label: '菲律宾语',
|
|
118906
|
-
enLabel: 'Filipino'
|
|
118907
|
-
}, {
|
|
118908
|
-
value: '13',
|
|
118909
|
-
label: '印度尼西亚语',
|
|
118910
|
-
enLabel: 'Indonesian'
|
|
118911
|
-
}, {
|
|
118912
|
-
value: '14',
|
|
118913
|
-
label: '俄罗斯语',
|
|
118914
|
-
enLabel: 'Russian'
|
|
118915
|
-
}, {
|
|
118916
|
-
value: '4',
|
|
118917
|
-
label: '西班牙语',
|
|
118918
|
-
enLabel: 'Spanish'
|
|
118919
|
-
}, {
|
|
118920
|
-
value: '15',
|
|
118921
|
-
label: '意大利语',
|
|
118922
|
-
enLabel: 'Italian'
|
|
118923
|
-
}];
|
|
118924
|
-
const sortConfig = [{
|
|
118925
|
-
label: '按创建时间倒序',
|
|
118926
|
-
value: 0
|
|
118927
|
-
}, {
|
|
118928
|
-
label: '按更新时间倒序',
|
|
118929
|
-
value: 1
|
|
118930
|
-
}, {
|
|
118931
|
-
label: '按送达率倒序',
|
|
118932
|
-
value: 2
|
|
118933
|
-
}, {
|
|
118934
|
-
label: '按打开率倒序',
|
|
118935
|
-
value: 3
|
|
118936
|
-
}, {
|
|
118937
|
-
label: '按回复率倒序',
|
|
118938
|
-
value: 4
|
|
118939
|
-
}, {
|
|
118940
|
-
label: '按累计发送数倒序',
|
|
118941
|
-
value: 5
|
|
118942
|
-
}];
|
|
118943
|
-
// 系统模版场景
|
|
118944
|
-
const templateSystemScene = [{
|
|
118945
|
-
value: '1',
|
|
118946
|
-
label: `${src_language.t('template.invite_cooperation')}`
|
|
118947
|
-
},
|
|
118948
|
-
//合作邀请
|
|
118949
|
-
{
|
|
118950
|
-
value: '2',
|
|
118951
|
-
label: `${src_language.t('template.price_negotiation')}`
|
|
118952
|
-
},
|
|
118953
|
-
//价格协商
|
|
118954
|
-
{
|
|
118955
|
-
value: '3',
|
|
118956
|
-
label: `${src_language.t('template.contract_template')}`
|
|
118957
|
-
},
|
|
118958
|
-
//合同模板
|
|
118959
|
-
{
|
|
118960
|
-
value: '4',
|
|
118961
|
-
label: `${src_language.t('template.video_production')}`
|
|
118962
|
-
},
|
|
118963
|
-
//视频制作
|
|
118964
|
-
{
|
|
118965
|
-
value: '5',
|
|
118966
|
-
label: `${src_language.t('template.expense_settlement')}`
|
|
118967
|
-
} //费用结算
|
|
118968
|
-
];
|
|
118969
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
118784
|
+
var SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns = [];
|
|
118970
118785
|
|
|
118786
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118971
118787
|
|
|
118972
118788
|
|
|
118973
118789
|
|
|
118974
|
-
|
|
118975
|
-
|
|
118976
|
-
function createSearchForm(tar) {
|
|
118977
|
-
let raw = {
|
|
118978
|
-
templatesTitle: "",
|
|
118979
|
-
//模板标题
|
|
118980
|
-
scene: "",
|
|
118981
|
-
//应用场景
|
|
118982
|
-
mailSubject: "",
|
|
118983
|
-
//邮件主题
|
|
118984
|
-
content: "",
|
|
118985
|
-
//正文
|
|
118986
|
-
type: null,
|
|
118987
|
-
//模版类型 1-系统模板;2-自定义模板
|
|
118988
|
-
modelLanguage: "",
|
|
118989
|
-
//语言
|
|
118990
|
-
isShared: "",
|
|
118991
|
-
//是否共享
|
|
118992
|
-
userId: "",
|
|
118993
|
-
//创建人
|
|
118994
|
-
searchSort: 1,
|
|
118995
|
-
//排序
|
|
118996
|
-
currentPage: 1,
|
|
118997
|
-
pageSize: 10
|
|
118998
|
-
};
|
|
118999
|
-
if (tar) {
|
|
119000
|
-
raw = Object.assign(raw, tar);
|
|
119001
|
-
}
|
|
119002
|
-
return raw;
|
|
119003
|
-
}
|
|
119004
|
-
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
118790
|
+
/* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
|
|
119005
118791
|
components: {
|
|
119006
|
-
|
|
118792
|
+
Editor: Editor
|
|
119007
118793
|
},
|
|
119008
118794
|
props: {
|
|
119009
|
-
|
|
118795
|
+
id: {
|
|
118796
|
+
default: 0,
|
|
118797
|
+
type: Number
|
|
118798
|
+
},
|
|
118799
|
+
rowData: {
|
|
118800
|
+
type: Object,
|
|
118801
|
+
default: () => {
|
|
118802
|
+
return {};
|
|
118803
|
+
}
|
|
118804
|
+
},
|
|
118805
|
+
// 自定义模板/系统模板
|
|
118806
|
+
selectType: {
|
|
119010
118807
|
type: [Number, String],
|
|
119011
118808
|
default: ""
|
|
119012
118809
|
}
|
|
119013
118810
|
},
|
|
119014
118811
|
data() {
|
|
119015
118812
|
return {
|
|
119016
|
-
|
|
119017
|
-
|
|
119018
|
-
|
|
119019
|
-
//
|
|
119020
|
-
|
|
119021
|
-
|
|
119022
|
-
|
|
119023
|
-
|
|
119024
|
-
|
|
119025
|
-
|
|
119026
|
-
|
|
119027
|
-
|
|
119028
|
-
|
|
119029
|
-
|
|
118813
|
+
enumData: {
|
|
118814
|
+
language: language
|
|
118815
|
+
},
|
|
118816
|
+
// 枚举数据
|
|
118817
|
+
form: {
|
|
118818
|
+
// 表单
|
|
118819
|
+
templatesTitle: "",
|
|
118820
|
+
//模板标题
|
|
118821
|
+
mailSubject: "",
|
|
118822
|
+
//邮件标题
|
|
118823
|
+
scene: "",
|
|
118824
|
+
//应用场景
|
|
118825
|
+
modelLanguage: ""
|
|
118826
|
+
},
|
|
118827
|
+
verifyForm: {
|
|
118828
|
+
templatesTitle: [{
|
|
118829
|
+
required: true,
|
|
118830
|
+
message: `${this.$i18n.t("template.title_not_empty")}`,
|
|
118831
|
+
trigger: "blur"
|
|
118832
|
+
}, {
|
|
118833
|
+
max: 30,
|
|
118834
|
+
message: `${this.$i18n.t("template.title_word_limit")}`,
|
|
118835
|
+
trigger: "blur"
|
|
118836
|
+
}],
|
|
118837
|
+
mailSubject: [{
|
|
118838
|
+
required: true,
|
|
118839
|
+
message: `${this.$i18n.t("template.subject_not_empty")}`,
|
|
118840
|
+
trigger: "blur"
|
|
118841
|
+
}],
|
|
118842
|
+
scene: [{
|
|
118843
|
+
required: true,
|
|
118844
|
+
message: `${this.$i18n.t("template.scene_not_empty")}`,
|
|
118845
|
+
trigger: "blur"
|
|
118846
|
+
}, {
|
|
118847
|
+
max: 20,
|
|
118848
|
+
message: `${this.$i18n.t("template.scene_word_limit")}`,
|
|
118849
|
+
trigger: "blur"
|
|
118850
|
+
}],
|
|
118851
|
+
modelLanguage: [{
|
|
118852
|
+
required: true,
|
|
118853
|
+
message: `${this.$i18n.t("template.language_not_empty")}`,
|
|
118854
|
+
trigger: "change"
|
|
118855
|
+
}]
|
|
118856
|
+
},
|
|
118857
|
+
// 标签表单校验规则
|
|
118858
|
+
isFocusSubject: false,
|
|
118859
|
+
// 主题是否获取焦点
|
|
118860
|
+
isSubmit: false // 是否正在提交
|
|
119030
118861
|
};
|
|
119031
118862
|
},
|
|
119032
|
-
|
|
119033
|
-
this.
|
|
119034
|
-
|
|
118863
|
+
created() {
|
|
118864
|
+
if (this.id) {
|
|
118865
|
+
// 初始化
|
|
118866
|
+
this.init();
|
|
118867
|
+
}
|
|
119035
118868
|
},
|
|
119036
118869
|
methods: {
|
|
119037
|
-
//
|
|
119038
|
-
|
|
119039
|
-
|
|
119040
|
-
|
|
119041
|
-
|
|
118870
|
+
// 初始化
|
|
118871
|
+
init() {
|
|
118872
|
+
if (this.id) {
|
|
118873
|
+
setTimeout(() => {
|
|
118874
|
+
this.$refs.templateContent.setContent(this.rowData.content);
|
|
118875
|
+
if (this.selectType == 1) {
|
|
118876
|
+
this.$refs.templateContent.setDisable();
|
|
118877
|
+
}
|
|
118878
|
+
}, 200);
|
|
118879
|
+
this.form = {
|
|
118880
|
+
templatesTitle: this.rowData.templatesTitle,
|
|
118881
|
+
mailSubject: this.rowData.mailSubject,
|
|
118882
|
+
scene: this.rowData.scene,
|
|
118883
|
+
modelLanguage: this.rowData.modelLanguage
|
|
118884
|
+
};
|
|
119042
118885
|
}
|
|
119043
118886
|
},
|
|
119044
|
-
//
|
|
119045
|
-
|
|
119046
|
-
this.$
|
|
119047
|
-
|
|
119048
|
-
|
|
119049
|
-
|
|
119050
|
-
|
|
119051
|
-
|
|
119052
|
-
|
|
119053
|
-
|
|
119054
|
-
|
|
118887
|
+
// 提交
|
|
118888
|
+
submit() {
|
|
118889
|
+
this.$refs.form.validate(valid => {
|
|
118890
|
+
if (valid) {
|
|
118891
|
+
if (this.$refs.templateContent.isEmpty()) {
|
|
118892
|
+
this.$message({
|
|
118893
|
+
type: "warning",
|
|
118894
|
+
message: `${this.$i18n.t("template.no_content")}`
|
|
118895
|
+
});
|
|
118896
|
+
return;
|
|
118897
|
+
}
|
|
118898
|
+
const data = this.form;
|
|
118899
|
+
data.content = this.$refs.templateContent.getContent();
|
|
118900
|
+
this.isSubmit = true;
|
|
118901
|
+
if (this.id) {
|
|
118902
|
+
data.id = this.id;
|
|
118903
|
+
// 编辑
|
|
118904
|
+
editTemplate(data).then(res => {
|
|
118905
|
+
if (res.code == 0) {
|
|
118906
|
+
this.isSubmit = false;
|
|
118907
|
+
this.$emit("init");
|
|
118908
|
+
this.close();
|
|
118909
|
+
this.$message({
|
|
118910
|
+
type: "success",
|
|
118911
|
+
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118912
|
+
});
|
|
118913
|
+
}
|
|
118914
|
+
});
|
|
118915
|
+
} else {
|
|
118916
|
+
// 新增
|
|
118917
|
+
addTemplate(data).then(res => {
|
|
118918
|
+
if (res.code == 0) {
|
|
118919
|
+
this.isSubmit = false;
|
|
118920
|
+
this.$emit("init");
|
|
118921
|
+
this.close();
|
|
118922
|
+
this.$message({
|
|
118923
|
+
type: "success",
|
|
118924
|
+
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118925
|
+
});
|
|
118926
|
+
}
|
|
118927
|
+
});
|
|
118928
|
+
}
|
|
118929
|
+
} else {
|
|
118930
|
+
return false;
|
|
119055
118931
|
}
|
|
119056
118932
|
});
|
|
119057
|
-
window.open(routeData.href, "_blank");
|
|
119058
118933
|
},
|
|
119059
|
-
//
|
|
119060
|
-
|
|
119061
|
-
|
|
119062
|
-
|
|
119063
|
-
|
|
119064
|
-
|
|
119065
|
-
|
|
119066
|
-
|
|
118934
|
+
// 使用变量
|
|
118935
|
+
setVariable(type) {
|
|
118936
|
+
let content = ``;
|
|
118937
|
+
if (this.isFocusSubject) {
|
|
118938
|
+
switch (type) {
|
|
118939
|
+
case 0:
|
|
118940
|
+
// 频道名
|
|
118941
|
+
content = `{$channelName}`;
|
|
118942
|
+
break;
|
|
118943
|
+
case 1:
|
|
118944
|
+
// 粉丝数
|
|
118945
|
+
content = `{$subscriber}`;
|
|
118946
|
+
break;
|
|
118947
|
+
case 2:
|
|
118948
|
+
// 频道链接
|
|
118949
|
+
content = `{$link}`;
|
|
118950
|
+
break;
|
|
118951
|
+
case 3:
|
|
118952
|
+
// 频道id
|
|
118953
|
+
content = `{$channelId}`;
|
|
118954
|
+
break;
|
|
119067
118955
|
}
|
|
118956
|
+
const caretPosition = this.$refs.mailSubjectIpt.$el.firstElementChild.selectionStart;
|
|
118957
|
+
const newValue = this.form.mailSubject.slice(0, caretPosition) + content + this.form.mailSubject.slice(caretPosition);
|
|
118958
|
+
this.form.mailSubject = newValue;
|
|
118959
|
+
this.isFocusSubject = false;
|
|
118960
|
+
} else {
|
|
118961
|
+
switch (type) {
|
|
118962
|
+
case 0:
|
|
118963
|
+
// 频道名
|
|
118964
|
+
content = `{$channelName}`;
|
|
118965
|
+
break;
|
|
118966
|
+
case 1:
|
|
118967
|
+
// 粉丝数
|
|
118968
|
+
content = `{$subscriber}`;
|
|
118969
|
+
break;
|
|
118970
|
+
case 2:
|
|
118971
|
+
// 频道链接
|
|
118972
|
+
content = `{$link}`;
|
|
118973
|
+
break;
|
|
118974
|
+
case 3:
|
|
118975
|
+
// 频道id
|
|
118976
|
+
content = `{$channelId}`;
|
|
118977
|
+
break;
|
|
118978
|
+
}
|
|
118979
|
+
this.$refs.templateContent.insertEditContent(content);
|
|
118980
|
+
}
|
|
118981
|
+
},
|
|
118982
|
+
// 关闭弹窗
|
|
118983
|
+
close() {
|
|
118984
|
+
this.$emit("close");
|
|
118985
|
+
}
|
|
118986
|
+
}
|
|
118987
|
+
});
|
|
118988
|
+
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118989
|
+
/* harmony default export */ var TemplateCom_SetTemplatevue_type_script_lang_js = (SetTemplatevue_type_script_lang_js);
|
|
118990
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118991
|
+
// extracted by mini-css-extract-plugin
|
|
118992
|
+
|
|
118993
|
+
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118994
|
+
|
|
118995
|
+
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue
|
|
118996
|
+
|
|
118997
|
+
|
|
118998
|
+
|
|
118999
|
+
;
|
|
119000
|
+
|
|
119001
|
+
|
|
119002
|
+
/* normalize component */
|
|
119003
|
+
|
|
119004
|
+
var SetTemplate_component = normalizeComponent(
|
|
119005
|
+
TemplateCom_SetTemplatevue_type_script_lang_js,
|
|
119006
|
+
SetTemplatevue_type_template_id_87417d06_scoped_true_render,
|
|
119007
|
+
SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns,
|
|
119008
|
+
false,
|
|
119009
|
+
null,
|
|
119010
|
+
"87417d06",
|
|
119011
|
+
null
|
|
119012
|
+
|
|
119013
|
+
)
|
|
119014
|
+
|
|
119015
|
+
/* harmony default export */ var SetTemplate = (SetTemplate_component.exports);
|
|
119016
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=template&id=3c0d8a32&scoped=true
|
|
119017
|
+
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render = function render() {
|
|
119018
|
+
var _vm = this,
|
|
119019
|
+
_c = _vm._self._c;
|
|
119020
|
+
return _c('el-dialog', {
|
|
119021
|
+
attrs: {
|
|
119022
|
+
"visible": _vm.isShowSetSystemDialog,
|
|
119023
|
+
"close-on-click-modal": false,
|
|
119024
|
+
"title": _vm.$i18n.t('template.set_system_template'),
|
|
119025
|
+
"width": "300px",
|
|
119026
|
+
"append-to-body": ""
|
|
119027
|
+
},
|
|
119028
|
+
on: {
|
|
119029
|
+
"update:visible": function ($event) {
|
|
119030
|
+
_vm.isShowSetSystemDialog = $event;
|
|
119031
|
+
},
|
|
119032
|
+
"close": _vm.closeEvt
|
|
119033
|
+
}
|
|
119034
|
+
}, [_c('div', {
|
|
119035
|
+
staticClass: "form-item flex-col mb24"
|
|
119036
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t('template.choose_type')))]), _c('el-select', {
|
|
119037
|
+
attrs: {
|
|
119038
|
+
"filterable": "",
|
|
119039
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
119040
|
+
"clearable": ""
|
|
119041
|
+
},
|
|
119042
|
+
model: {
|
|
119043
|
+
value: _vm.setSystemForm.modelType,
|
|
119044
|
+
callback: function ($$v) {
|
|
119045
|
+
_vm.$set(_vm.setSystemForm, "modelType", $$v);
|
|
119046
|
+
},
|
|
119047
|
+
expression: "setSystemForm.modelType"
|
|
119048
|
+
}
|
|
119049
|
+
}, _vm._l(_vm.tabOpts, function (item) {
|
|
119050
|
+
return _c('el-option', {
|
|
119051
|
+
key: Number(item.name),
|
|
119052
|
+
attrs: {
|
|
119053
|
+
"value": Number(item.name),
|
|
119054
|
+
"label": item.label
|
|
119055
|
+
}
|
|
119056
|
+
});
|
|
119057
|
+
}), 1)], 1), _c('div', {
|
|
119058
|
+
staticClass: "flex justify-end"
|
|
119059
|
+
}, [_c('button', {
|
|
119060
|
+
staticClass: "form-btn form-btn-disabled mr16",
|
|
119061
|
+
on: {
|
|
119062
|
+
"click": _vm.closeEvt
|
|
119063
|
+
}
|
|
119064
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('writeMail.cancle')) + " ")]), _c('button', {
|
|
119065
|
+
staticClass: "form-btn form-btn-face",
|
|
119066
|
+
on: {
|
|
119067
|
+
"click": _vm.customToSystem
|
|
119068
|
+
}
|
|
119069
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
|
|
119070
|
+
};
|
|
119071
|
+
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns = [];
|
|
119072
|
+
|
|
119073
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119074
|
+
|
|
119075
|
+
/* harmony default export */ var SetSysTemplatevue_type_script_lang_js = ({
|
|
119076
|
+
props: {
|
|
119077
|
+
isShowSetSystem: {
|
|
119078
|
+
type: Boolean,
|
|
119079
|
+
default: false
|
|
119080
|
+
},
|
|
119081
|
+
mailId: {
|
|
119082
|
+
type: [String, Number],
|
|
119083
|
+
default: ""
|
|
119084
|
+
},
|
|
119085
|
+
tabOpts: {
|
|
119086
|
+
type: Array,
|
|
119087
|
+
default: () => {
|
|
119088
|
+
return [];
|
|
119068
119089
|
}
|
|
119069
|
-
|
|
119070
|
-
|
|
119071
|
-
|
|
119072
|
-
|
|
119090
|
+
}
|
|
119091
|
+
},
|
|
119092
|
+
data() {
|
|
119093
|
+
return {
|
|
119094
|
+
isShowSetSystemDialog: this.isShowSetSystem,
|
|
119095
|
+
setSystemForm: {
|
|
119096
|
+
// 设置系统模板表单
|
|
119097
|
+
id: this.mailId,
|
|
119098
|
+
modelType: ""
|
|
119073
119099
|
}
|
|
119074
|
-
|
|
119075
|
-
|
|
119076
|
-
|
|
119077
|
-
|
|
119078
|
-
|
|
119079
|
-
|
|
119100
|
+
};
|
|
119101
|
+
},
|
|
119102
|
+
methods: {
|
|
119103
|
+
customToSystem() {
|
|
119104
|
+
if (!this.setSystemForm.modelType) {
|
|
119105
|
+
this.$message({
|
|
119106
|
+
type: "warning",
|
|
119107
|
+
message: `${this.$i18n.t('common.please_select')}${this.$i18n.t('template.template_type')}`
|
|
119108
|
+
});
|
|
119109
|
+
return;
|
|
119110
|
+
}
|
|
119111
|
+
setSysTemplate(this.setSystemForm).then(res => {
|
|
119112
|
+
if (res.code == 0) {
|
|
119113
|
+
this.closeEvt();
|
|
119114
|
+
this.$message({
|
|
119115
|
+
type: "success",
|
|
119116
|
+
message: `${this.$i18n.t('template.set_success')}`
|
|
119117
|
+
});
|
|
119080
119118
|
} else {
|
|
119081
|
-
this.loading = false;
|
|
119082
119119
|
this.$message.error(res.message);
|
|
119120
|
+
this.closeEvt();
|
|
119083
119121
|
}
|
|
119084
119122
|
});
|
|
119085
119123
|
},
|
|
119086
|
-
|
|
119087
|
-
|
|
119088
|
-
this.
|
|
119089
|
-
this
|
|
119090
|
-
}
|
|
119091
|
-
|
|
119092
|
-
|
|
119093
|
-
|
|
119094
|
-
|
|
119095
|
-
|
|
119096
|
-
|
|
119097
|
-
|
|
119098
|
-
|
|
119099
|
-
|
|
119100
|
-
|
|
119101
|
-
|
|
119102
|
-
|
|
119103
|
-
|
|
119104
|
-
|
|
119124
|
+
closeEvt() {
|
|
119125
|
+
this.setSystemForm.id = "";
|
|
119126
|
+
this.setSystemForm.modelType = "";
|
|
119127
|
+
this.$emit("closeDialog");
|
|
119128
|
+
}
|
|
119129
|
+
}
|
|
119130
|
+
});
|
|
119131
|
+
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119132
|
+
/* harmony default export */ var TemplateCom_SetSysTemplatevue_type_script_lang_js = (SetSysTemplatevue_type_script_lang_js);
|
|
119133
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119134
|
+
// extracted by mini-css-extract-plugin
|
|
119135
|
+
|
|
119136
|
+
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119137
|
+
|
|
119138
|
+
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue
|
|
119139
|
+
|
|
119140
|
+
|
|
119141
|
+
|
|
119142
|
+
;
|
|
119143
|
+
|
|
119144
|
+
|
|
119145
|
+
/* normalize component */
|
|
119146
|
+
|
|
119147
|
+
var SetSysTemplate_component = normalizeComponent(
|
|
119148
|
+
TemplateCom_SetSysTemplatevue_type_script_lang_js,
|
|
119149
|
+
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render,
|
|
119150
|
+
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns,
|
|
119151
|
+
false,
|
|
119152
|
+
null,
|
|
119153
|
+
"3c0d8a32",
|
|
119154
|
+
null
|
|
119155
|
+
|
|
119156
|
+
)
|
|
119157
|
+
|
|
119158
|
+
/* harmony default export */ var SetSysTemplate = (SetSysTemplate_component.exports);
|
|
119159
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119160
|
+
|
|
119161
|
+
|
|
119162
|
+
|
|
119163
|
+
|
|
119164
|
+
|
|
119165
|
+
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119166
|
+
components: {
|
|
119167
|
+
SetTemplate: SetTemplate,
|
|
119168
|
+
SetSysTemplate: SetSysTemplate
|
|
119169
|
+
},
|
|
119170
|
+
props: {
|
|
119171
|
+
userId: {
|
|
119172
|
+
type: [Number, String],
|
|
119173
|
+
default: ""
|
|
119174
|
+
}
|
|
119175
|
+
},
|
|
119176
|
+
data() {
|
|
119177
|
+
return {
|
|
119178
|
+
enumData: {
|
|
119179
|
+
modelLanguage: language,
|
|
119180
|
+
sysLanguage: sysLanguage
|
|
119181
|
+
},
|
|
119182
|
+
// 枚举数据
|
|
119183
|
+
searchForm: {
|
|
119184
|
+
// 检索字段
|
|
119185
|
+
modelType: "1",
|
|
119186
|
+
//模板类型1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119187
|
+
type: 1,
|
|
119188
|
+
//模板选择1-系统模板;2-自定义模板
|
|
119189
|
+
modelLanguage: "",
|
|
119190
|
+
//模板语言
|
|
119191
|
+
currentPage: 1,
|
|
119192
|
+
//当前页
|
|
119193
|
+
pageSize: 10 //当前页条数
|
|
119194
|
+
},
|
|
119195
|
+
// 选项卡 1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119196
|
+
tabOpts: [{
|
|
119197
|
+
name: "1",
|
|
119198
|
+
label: `${this.$i18n.t("template.invite_cooperation")}`
|
|
119199
|
+
},
|
|
119200
|
+
//合作邀请
|
|
119201
|
+
{
|
|
119202
|
+
name: "2",
|
|
119203
|
+
label: `${this.$i18n.t("template.price_negotiation")}`
|
|
119204
|
+
},
|
|
119205
|
+
//价格协商
|
|
119206
|
+
{
|
|
119207
|
+
name: "3",
|
|
119208
|
+
label: `${this.$i18n.t("template.contract_template")}`
|
|
119209
|
+
},
|
|
119210
|
+
//合同模板
|
|
119211
|
+
{
|
|
119212
|
+
name: "4",
|
|
119213
|
+
label: `${this.$i18n.t("template.video_production")}`
|
|
119214
|
+
},
|
|
119215
|
+
//视频制作
|
|
119216
|
+
{
|
|
119217
|
+
name: "5",
|
|
119218
|
+
label: `${this.$i18n.t("template.expense_settlement")}`
|
|
119219
|
+
} //费用结算
|
|
119220
|
+
],
|
|
119221
|
+
loading: false,
|
|
119222
|
+
// 加载中
|
|
119223
|
+
tableData: [],
|
|
119224
|
+
// 表格数据
|
|
119225
|
+
tableTotal: 1,
|
|
119226
|
+
// 表格总数
|
|
119227
|
+
isShowSet: false,
|
|
119228
|
+
// 是否显示模板设置
|
|
119229
|
+
setId: 0,
|
|
119230
|
+
// 设置模板id
|
|
119231
|
+
rowData: null,
|
|
119232
|
+
//选择的模板数据
|
|
119233
|
+
|
|
119234
|
+
isShowSetSystem: false,
|
|
119235
|
+
// 是否显示设置系统模板
|
|
119236
|
+
mailId: ""
|
|
119237
|
+
};
|
|
119238
|
+
},
|
|
119239
|
+
created() {
|
|
119240
|
+
// 初始化
|
|
119241
|
+
this.init();
|
|
119242
|
+
},
|
|
119243
|
+
methods: {
|
|
119244
|
+
// 初始化
|
|
119245
|
+
init() {
|
|
119246
|
+
this.loading = true;
|
|
119247
|
+
if (this.searchForm.type === 2) {
|
|
119248
|
+
delete this.searchForm.modelType;
|
|
119249
|
+
}
|
|
119250
|
+
getTemplateList(this.searchForm).then(res => {
|
|
119251
|
+
this.loading = false;
|
|
119252
|
+
if (res.code == 0) {
|
|
119253
|
+
this.tableData = res.data.rows;
|
|
119254
|
+
this.tableTotal = res.data.total;
|
|
119105
119255
|
} else {
|
|
119106
119256
|
this.$message.error(res.message);
|
|
119107
119257
|
}
|
|
119108
119258
|
});
|
|
119109
119259
|
},
|
|
119110
|
-
//
|
|
119111
|
-
|
|
119112
|
-
this.searchForm.currentPage =
|
|
119113
|
-
this.
|
|
119114
|
-
this.getCardList();
|
|
119260
|
+
// 翻页
|
|
119261
|
+
changePage(curr) {
|
|
119262
|
+
this.searchForm.currentPage = curr;
|
|
119263
|
+
this.init();
|
|
119115
119264
|
},
|
|
119116
|
-
|
|
119265
|
+
// 删除模板
|
|
119266
|
+
del(id) {
|
|
119267
|
+
this.$confirm(this.$t("inboxTable.delMail"), this.$t("inboxTable.tip"), {
|
|
119268
|
+
confirmButtonText: this.$t("inboxTable.confirm"),
|
|
119269
|
+
cancelButtonText: this.$t("inboxTable.cancel"),
|
|
119270
|
+
type: "warning",
|
|
119271
|
+
confirmButtonClass: "confirm_del"
|
|
119272
|
+
}).then(() => {
|
|
119273
|
+
delTemplate({
|
|
119274
|
+
id
|
|
119275
|
+
}).then(res => {
|
|
119276
|
+
if (res.code == 0) {
|
|
119277
|
+
this.init();
|
|
119278
|
+
this.$message({
|
|
119279
|
+
type: "success",
|
|
119280
|
+
message: `${this.$i18n.t("outboxMail.success")}`,
|
|
119281
|
+
duration: 1500
|
|
119282
|
+
});
|
|
119283
|
+
}
|
|
119284
|
+
});
|
|
119285
|
+
}).catch(() => {});
|
|
119286
|
+
},
|
|
119287
|
+
// 设置邮件模板
|
|
119288
|
+
setMailTemplate(data) {
|
|
119289
|
+
this.$emit("setMailTemplate", data);
|
|
119290
|
+
},
|
|
119291
|
+
// 打开编辑模板
|
|
119292
|
+
showSetTemplate(row) {
|
|
119293
|
+
this.setId = row.id;
|
|
119294
|
+
this.rowData = row;
|
|
119295
|
+
this.isShowSet = true;
|
|
119296
|
+
},
|
|
119297
|
+
// 切换选项卡
|
|
119298
|
+
swicthTab(tab) {
|
|
119299
|
+
this.searchForm.modelType = tab.name;
|
|
119117
119300
|
this.searchForm.currentPage = 1;
|
|
119118
|
-
this.
|
|
119119
|
-
this.getCardList();
|
|
119301
|
+
this.init();
|
|
119120
119302
|
},
|
|
119121
|
-
|
|
119122
|
-
|
|
119123
|
-
|
|
119303
|
+
// 时间戳转换
|
|
119304
|
+
parseTime(date, format) {
|
|
119305
|
+
return parseTime(date, format);
|
|
119306
|
+
},
|
|
119307
|
+
// 下载模板
|
|
119308
|
+
downloadTem(obj) {
|
|
119309
|
+
window.location.href = obj.downloadUrl;
|
|
119310
|
+
},
|
|
119311
|
+
// 打开转为系统模版弹窗
|
|
119312
|
+
showSetSystem(row) {
|
|
119313
|
+
this.mailId = row.id;
|
|
119314
|
+
this.isShowSetSystem = true;
|
|
119315
|
+
},
|
|
119316
|
+
// 关闭转为系统模版弹窗
|
|
119317
|
+
closeDialog() {
|
|
119318
|
+
this.isShowSetSystem = false;
|
|
119124
119319
|
}
|
|
119125
119320
|
}
|
|
119126
119321
|
});
|
|
119127
119322
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119128
119323
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
119129
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=
|
|
119324
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
|
|
119325
|
+
// extracted by mini-css-extract-plugin
|
|
119326
|
+
|
|
119327
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
|
|
119328
|
+
|
|
119329
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119130
119330
|
// extracted by mini-css-extract-plugin
|
|
119131
119331
|
|
|
119132
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=
|
|
119332
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119133
119333
|
|
|
119134
119334
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119135
119335
|
|
|
@@ -119138,15 +119338,16 @@ function createSearchForm(tar) {
|
|
|
119138
119338
|
;
|
|
119139
119339
|
|
|
119140
119340
|
|
|
119341
|
+
|
|
119141
119342
|
/* normalize component */
|
|
119142
119343
|
|
|
119143
119344
|
var TemplateList_component = normalizeComponent(
|
|
119144
119345
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119145
|
-
|
|
119146
|
-
|
|
119346
|
+
TemplateListvue_type_template_id_13a1b12d_scoped_true_render,
|
|
119347
|
+
TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns,
|
|
119147
119348
|
false,
|
|
119148
119349
|
null,
|
|
119149
|
-
"
|
|
119350
|
+
"13a1b12d",
|
|
119150
119351
|
null
|
|
119151
119352
|
|
|
119152
119353
|
)
|
|
@@ -121522,406 +121723,6 @@ function inviteEmailSave(data) {
|
|
|
121522
121723
|
function inviteEmailGet(taskId) {
|
|
121523
121724
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121524
121725
|
}
|
|
121525
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=template&id=62cde375&scoped=true
|
|
121526
|
-
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render = function render() {
|
|
121527
|
-
var _vm = this,
|
|
121528
|
-
_c = _vm._self._c;
|
|
121529
|
-
return _c('el-dialog', {
|
|
121530
|
-
attrs: {
|
|
121531
|
-
"visible": _vm.visible,
|
|
121532
|
-
"title": "存为模版",
|
|
121533
|
-
"width": "480px",
|
|
121534
|
-
"before-close": _vm.closeDialog,
|
|
121535
|
-
"custom-class": "setting-nickname-dialog",
|
|
121536
|
-
"close-on-click-modal": false
|
|
121537
|
-
}
|
|
121538
|
-
}, [_c('div', {
|
|
121539
|
-
directives: [{
|
|
121540
|
-
name: "loading",
|
|
121541
|
-
rawName: "v-loading",
|
|
121542
|
-
value: _vm.loading,
|
|
121543
|
-
expression: "loading"
|
|
121544
|
-
}]
|
|
121545
|
-
}, [_c('el-form', {
|
|
121546
|
-
ref: "ruleForm",
|
|
121547
|
-
staticClass: "demo-ruleForm",
|
|
121548
|
-
attrs: {
|
|
121549
|
-
"label-position": "top",
|
|
121550
|
-
"model": _vm.ruleForm,
|
|
121551
|
-
"rules": _vm.rules,
|
|
121552
|
-
"label-width": "100px"
|
|
121553
|
-
}
|
|
121554
|
-
}, [_c('el-form-item', {
|
|
121555
|
-
attrs: {
|
|
121556
|
-
"label": "模版名称",
|
|
121557
|
-
"prop": "templatesTitle"
|
|
121558
|
-
}
|
|
121559
|
-
}, [_c('el-input', {
|
|
121560
|
-
attrs: {
|
|
121561
|
-
"clearable": ""
|
|
121562
|
-
},
|
|
121563
|
-
model: {
|
|
121564
|
-
value: _vm.ruleForm.templatesTitle,
|
|
121565
|
-
callback: function ($$v) {
|
|
121566
|
-
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121567
|
-
},
|
|
121568
|
-
expression: "ruleForm.templatesTitle"
|
|
121569
|
-
}
|
|
121570
|
-
})], 1), _c('el-form-item', {
|
|
121571
|
-
attrs: {
|
|
121572
|
-
"label": "应用场景",
|
|
121573
|
-
"prop": "scene"
|
|
121574
|
-
}
|
|
121575
|
-
}, [_c('el-input', {
|
|
121576
|
-
attrs: {
|
|
121577
|
-
"clearable": ""
|
|
121578
|
-
},
|
|
121579
|
-
model: {
|
|
121580
|
-
value: _vm.ruleForm.scene,
|
|
121581
|
-
callback: function ($$v) {
|
|
121582
|
-
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121583
|
-
},
|
|
121584
|
-
expression: "ruleForm.scene"
|
|
121585
|
-
}
|
|
121586
|
-
})], 1), _c('el-form-item', {
|
|
121587
|
-
attrs: {
|
|
121588
|
-
"label": "语言",
|
|
121589
|
-
"prop": "modelLanguage"
|
|
121590
|
-
}
|
|
121591
|
-
}, [_c('el-select', {
|
|
121592
|
-
attrs: {
|
|
121593
|
-
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121594
|
-
"clearable": "",
|
|
121595
|
-
"filterable": ""
|
|
121596
|
-
},
|
|
121597
|
-
model: {
|
|
121598
|
-
value: _vm.ruleForm.modelLanguage,
|
|
121599
|
-
callback: function ($$v) {
|
|
121600
|
-
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121601
|
-
},
|
|
121602
|
-
expression: "ruleForm.modelLanguage"
|
|
121603
|
-
}
|
|
121604
|
-
}, _vm._l(_vm.language, function (item) {
|
|
121605
|
-
return _c('el-option', {
|
|
121606
|
-
key: item.value,
|
|
121607
|
-
attrs: {
|
|
121608
|
-
"value": item.value,
|
|
121609
|
-
"label": item.label
|
|
121610
|
-
}
|
|
121611
|
-
});
|
|
121612
|
-
}), 1)], 1), _c('el-form-item', {
|
|
121613
|
-
attrs: {
|
|
121614
|
-
"label": "共享状态"
|
|
121615
|
-
}
|
|
121616
|
-
}, [_c('el-select', {
|
|
121617
|
-
attrs: {
|
|
121618
|
-
"clearable": "",
|
|
121619
|
-
"placeholder": "请选择共享状态"
|
|
121620
|
-
},
|
|
121621
|
-
model: {
|
|
121622
|
-
value: _vm.ruleForm.isShared,
|
|
121623
|
-
callback: function ($$v) {
|
|
121624
|
-
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121625
|
-
},
|
|
121626
|
-
expression: "ruleForm.isShared"
|
|
121627
|
-
}
|
|
121628
|
-
}, [_c('el-option', {
|
|
121629
|
-
key: 1,
|
|
121630
|
-
attrs: {
|
|
121631
|
-
"value": true,
|
|
121632
|
-
"label": "公开"
|
|
121633
|
-
}
|
|
121634
|
-
}), _c('el-option', {
|
|
121635
|
-
key: 2,
|
|
121636
|
-
attrs: {
|
|
121637
|
-
"value": false,
|
|
121638
|
-
"label": "私有"
|
|
121639
|
-
}
|
|
121640
|
-
})], 1)], 1)], 1), _c('div', {
|
|
121641
|
-
staticClass: "footer-btn"
|
|
121642
|
-
}, [_c('el-button', {
|
|
121643
|
-
on: {
|
|
121644
|
-
"click": function ($event) {
|
|
121645
|
-
return _vm.resetForm('ruleForm');
|
|
121646
|
-
}
|
|
121647
|
-
}
|
|
121648
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121649
|
-
attrs: {
|
|
121650
|
-
"type": "primary",
|
|
121651
|
-
"loading": _vm.confirmBtnLoading
|
|
121652
|
-
},
|
|
121653
|
-
on: {
|
|
121654
|
-
"click": function ($event) {
|
|
121655
|
-
return _vm.submitForm('ruleForm');
|
|
121656
|
-
}
|
|
121657
|
-
}
|
|
121658
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121659
|
-
};
|
|
121660
|
-
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns = [];
|
|
121661
|
-
|
|
121662
|
-
;// ./src/api/mailData/index.js
|
|
121663
|
-
|
|
121664
|
-
|
|
121665
|
-
// 文件上传
|
|
121666
|
-
async function mailData_uploadFile(data) {
|
|
121667
|
-
let res = await post("/edm/mail/upload_file", data);
|
|
121668
|
-
return res;
|
|
121669
|
-
}
|
|
121670
|
-
// 邮件发送数据
|
|
121671
|
-
async function getSendList(data) {
|
|
121672
|
-
let res = await request_post("/edm/outbox/sendData", data);
|
|
121673
|
-
if (res.code === '0') {
|
|
121674
|
-
return res;
|
|
121675
|
-
}
|
|
121676
|
-
return null;
|
|
121677
|
-
}
|
|
121678
|
-
|
|
121679
|
-
// 邮件接收数据 inbox/receiveData
|
|
121680
|
-
async function getReceiveList(data) {
|
|
121681
|
-
let res = await request_post("/edm/inbox/receiveData", data);
|
|
121682
|
-
if (res) {
|
|
121683
|
-
return res;
|
|
121684
|
-
}
|
|
121685
|
-
return null;
|
|
121686
|
-
}
|
|
121687
|
-
|
|
121688
|
-
// 查看详情-收件数据
|
|
121689
|
-
async function mailData_getInboxDetail(id) {
|
|
121690
|
-
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
121691
|
-
if (res) {
|
|
121692
|
-
return res;
|
|
121693
|
-
}
|
|
121694
|
-
return null;
|
|
121695
|
-
}
|
|
121696
|
-
|
|
121697
|
-
// 查看会话-收件数据
|
|
121698
|
-
async function getInboxDialogue(chatId) {
|
|
121699
|
-
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
121700
|
-
if (res) {
|
|
121701
|
-
return res;
|
|
121702
|
-
}
|
|
121703
|
-
return null;
|
|
121704
|
-
}
|
|
121705
|
-
|
|
121706
|
-
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
121707
|
-
async function getInboxDialogue1(id) {
|
|
121708
|
-
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
121709
|
-
if (res) {
|
|
121710
|
-
return res;
|
|
121711
|
-
}
|
|
121712
|
-
return null;
|
|
121713
|
-
}
|
|
121714
|
-
|
|
121715
|
-
//发送详情
|
|
121716
|
-
async function getSendDetail(id) {
|
|
121717
|
-
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
121718
|
-
if (res.code === '0') {
|
|
121719
|
-
return res;
|
|
121720
|
-
}
|
|
121721
|
-
return null;
|
|
121722
|
-
}
|
|
121723
|
-
|
|
121724
|
-
// 发信详情 sendDetail/{id}
|
|
121725
|
-
async function getDetailReceive() {
|
|
121726
|
-
let res = await get(`/edm/inbox/receiveData`);
|
|
121727
|
-
if (res.code === '0') {
|
|
121728
|
-
return res;
|
|
121729
|
-
}
|
|
121730
|
-
return null;
|
|
121731
|
-
}
|
|
121732
|
-
|
|
121733
|
-
// 发件数据详情 --和邮件往来一样
|
|
121734
|
-
async function sendDetail(id) {
|
|
121735
|
-
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
121736
|
-
if (res.code === '0') {
|
|
121737
|
-
return res;
|
|
121738
|
-
}
|
|
121739
|
-
return null;
|
|
121740
|
-
}
|
|
121741
|
-
|
|
121742
|
-
// 收信详情
|
|
121743
|
-
async function getDetailSend(id) {
|
|
121744
|
-
let res = await get(`/edm/outbox/sendData`);
|
|
121745
|
-
if (res.code === '0') {
|
|
121746
|
-
return res;
|
|
121747
|
-
}
|
|
121748
|
-
return null;
|
|
121749
|
-
}
|
|
121750
|
-
|
|
121751
|
-
// 查看AI回复 - 发件
|
|
121752
|
-
async function AiReplyDetail(id) {
|
|
121753
|
-
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
121754
|
-
if (res) {
|
|
121755
|
-
return res;
|
|
121756
|
-
}
|
|
121757
|
-
return null;
|
|
121758
|
-
}
|
|
121759
|
-
|
|
121760
|
-
// 查看AI回复 收件
|
|
121761
|
-
async function aiReply(params) {
|
|
121762
|
-
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
121763
|
-
if (res) {
|
|
121764
|
-
return res;
|
|
121765
|
-
}
|
|
121766
|
-
return null;
|
|
121767
|
-
}
|
|
121768
|
-
|
|
121769
|
-
// 导出收信数据 /inbox/exportReceiveData
|
|
121770
|
-
async function exportReceiveData(params) {
|
|
121771
|
-
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
121772
|
-
if (res) {
|
|
121773
|
-
return res;
|
|
121774
|
-
}
|
|
121775
|
-
return null;
|
|
121776
|
-
}
|
|
121777
|
-
|
|
121778
|
-
// 导出发信数据 /outbox/exportSendData
|
|
121779
|
-
async function exportSendData(params) {
|
|
121780
|
-
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
121781
|
-
if (res) {
|
|
121782
|
-
return res;
|
|
121783
|
-
}
|
|
121784
|
-
return null;
|
|
121785
|
-
}
|
|
121786
|
-
// 保存模版
|
|
121787
|
-
|
|
121788
|
-
async function addTemplate(params) {
|
|
121789
|
-
let res = await request_post(`/edm/template/addTemplate`, params);
|
|
121790
|
-
if (res) {
|
|
121791
|
-
return res;
|
|
121792
|
-
}
|
|
121793
|
-
return null;
|
|
121794
|
-
}
|
|
121795
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121796
|
-
|
|
121797
|
-
|
|
121798
|
-
|
|
121799
|
-
|
|
121800
|
-
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121801
|
-
props: {
|
|
121802
|
-
visible: {
|
|
121803
|
-
type: Boolean,
|
|
121804
|
-
default: false
|
|
121805
|
-
},
|
|
121806
|
-
mailTempList: {
|
|
121807
|
-
type: Array,
|
|
121808
|
-
default: () => []
|
|
121809
|
-
},
|
|
121810
|
-
tempProductCard: {
|
|
121811
|
-
type: String,
|
|
121812
|
-
default: ""
|
|
121813
|
-
}
|
|
121814
|
-
},
|
|
121815
|
-
data() {
|
|
121816
|
-
return {
|
|
121817
|
-
confirmBtnLoading: false,
|
|
121818
|
-
loading: false,
|
|
121819
|
-
ruleForm: {
|
|
121820
|
-
templatesTitle: "",
|
|
121821
|
-
scene: "",
|
|
121822
|
-
modelLanguage: "",
|
|
121823
|
-
isShared: false
|
|
121824
|
-
},
|
|
121825
|
-
rules: {
|
|
121826
|
-
templatesTitle: [{
|
|
121827
|
-
required: true,
|
|
121828
|
-
message: "请输入模版名称",
|
|
121829
|
-
trigger: "blur"
|
|
121830
|
-
}],
|
|
121831
|
-
modelLanguage: [{
|
|
121832
|
-
required: true,
|
|
121833
|
-
message: "请选择模版语言",
|
|
121834
|
-
trigger: "change"
|
|
121835
|
-
}],
|
|
121836
|
-
scene: [{
|
|
121837
|
-
required: true,
|
|
121838
|
-
message: "请输入应用场景",
|
|
121839
|
-
trigger: "change"
|
|
121840
|
-
}]
|
|
121841
|
-
},
|
|
121842
|
-
language: const_language
|
|
121843
|
-
};
|
|
121844
|
-
},
|
|
121845
|
-
created() {},
|
|
121846
|
-
methods: {
|
|
121847
|
-
// 处理邮件参数
|
|
121848
|
-
getMailParams() {
|
|
121849
|
-
// 处理邮件
|
|
121850
|
-
const currentMail = this.mailTempList.find(item => item.active);
|
|
121851
|
-
let content = "";
|
|
121852
|
-
if (currentMail.getReplyHtml()) {
|
|
121853
|
-
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121854
|
-
} else {
|
|
121855
|
-
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121856
|
-
}
|
|
121857
|
-
return {
|
|
121858
|
-
mailSubject: currentMail.subject,
|
|
121859
|
-
content,
|
|
121860
|
-
attachments: currentMail.fileList
|
|
121861
|
-
};
|
|
121862
|
-
},
|
|
121863
|
-
// 表单验证
|
|
121864
|
-
submitForm(formName) {
|
|
121865
|
-
const mailParams = this.getMailParams();
|
|
121866
|
-
this.$refs[formName].validate(valid => {
|
|
121867
|
-
if (valid) {
|
|
121868
|
-
const paramsObj = {
|
|
121869
|
-
...this.ruleForm,
|
|
121870
|
-
...mailParams
|
|
121871
|
-
};
|
|
121872
|
-
//新增
|
|
121873
|
-
addTemplate(paramsObj).then(res => {
|
|
121874
|
-
console.log(res, "resss");
|
|
121875
|
-
if (res.code == "0") {
|
|
121876
|
-
this.$message.success("保存成功");
|
|
121877
|
-
this.closeDialog();
|
|
121878
|
-
} else {
|
|
121879
|
-
this.$message.error(res.message);
|
|
121880
|
-
}
|
|
121881
|
-
});
|
|
121882
|
-
} else {
|
|
121883
|
-
console.log("error submit!!");
|
|
121884
|
-
return false;
|
|
121885
|
-
}
|
|
121886
|
-
});
|
|
121887
|
-
},
|
|
121888
|
-
resetForm(formName) {
|
|
121889
|
-
this.$refs[formName].resetFields();
|
|
121890
|
-
this.closeDialog();
|
|
121891
|
-
},
|
|
121892
|
-
closeDialog() {
|
|
121893
|
-
this.$emit("update:visible", false);
|
|
121894
|
-
}
|
|
121895
|
-
}
|
|
121896
|
-
});
|
|
121897
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121898
|
-
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121899
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121900
|
-
// extracted by mini-css-extract-plugin
|
|
121901
|
-
|
|
121902
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121903
|
-
|
|
121904
|
-
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121905
|
-
|
|
121906
|
-
|
|
121907
|
-
|
|
121908
|
-
;
|
|
121909
|
-
|
|
121910
|
-
|
|
121911
|
-
/* normalize component */
|
|
121912
|
-
|
|
121913
|
-
var saveMailTempDialog_component = normalizeComponent(
|
|
121914
|
-
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121915
|
-
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render,
|
|
121916
|
-
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns,
|
|
121917
|
-
false,
|
|
121918
|
-
null,
|
|
121919
|
-
"62cde375",
|
|
121920
|
-
null
|
|
121921
|
-
|
|
121922
|
-
)
|
|
121923
|
-
|
|
121924
|
-
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121925
121726
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
121926
121727
|
|
|
121927
121728
|
|
|
@@ -121963,7 +121764,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
121963
121764
|
|
|
121964
121765
|
|
|
121965
121766
|
|
|
121966
|
-
|
|
121967
121767
|
|
|
121968
121768
|
|
|
121969
121769
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121986,8 +121786,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
121986
121786
|
SignTextDrawer: signText,
|
|
121987
121787
|
MailTemplateDrawer: mailTemplate,
|
|
121988
121788
|
AiMailDialog: aiMail,
|
|
121989
|
-
MailOptimizeDrawer: mailOptimize
|
|
121990
|
-
saveMailTempDialog: saveMailTempDialog
|
|
121789
|
+
MailOptimizeDrawer: mailOptimize
|
|
121991
121790
|
},
|
|
121992
121791
|
props: {
|
|
121993
121792
|
// pm 添加
|
|
@@ -122216,11 +122015,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122216
122015
|
nickName: "",
|
|
122217
122016
|
// 发件人昵称
|
|
122218
122017
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122219
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122220
|
-
// 当前使用的AI平台
|
|
122221
|
-
saveMailTempDialogVisible: false,
|
|
122222
|
-
// 保存模版弹窗
|
|
122223
|
-
tempProductCard: '' // 模版产品卡
|
|
122018
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '' // 当前使用的AI平台
|
|
122224
122019
|
};
|
|
122225
122020
|
},
|
|
122226
122021
|
created() {
|
|
@@ -122296,18 +122091,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122296
122091
|
window.onbeforeunload = null;
|
|
122297
122092
|
},
|
|
122298
122093
|
methods: {
|
|
122299
|
-
// 保存邮件模版
|
|
122300
|
-
saveMailTemplate() {
|
|
122301
|
-
const currentMail = this.mailList.find(item => item.active);
|
|
122302
|
-
if (currentMail.subject == '') {
|
|
122303
|
-
this.$message.error('请输入邮件主题');
|
|
122304
|
-
return;
|
|
122305
|
-
}
|
|
122306
|
-
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122307
|
-
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122308
|
-
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122309
|
-
this.saveMailTempDialogVisible = true;
|
|
122310
|
-
},
|
|
122311
122094
|
// 初始化邮件模版
|
|
122312
122095
|
payInitTemplate() {
|
|
122313
122096
|
// 初始化收件人
|
|
@@ -122714,7 +122497,6 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122714
122497
|
active: idx === 0,
|
|
122715
122498
|
// 是否当前选中
|
|
122716
122499
|
isAiContent: false,
|
|
122717
|
-
templateId: item.templateId,
|
|
122718
122500
|
getContent: () => {},
|
|
122719
122501
|
getTextContent: () => {},
|
|
122720
122502
|
setContent: () => {},
|
|
@@ -122939,8 +122721,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
122939
122721
|
id: item.id,
|
|
122940
122722
|
subject: item.subject,
|
|
122941
122723
|
content: content,
|
|
122942
|
-
attachments: item.fileList
|
|
122943
|
-
templateId: item.templateId
|
|
122724
|
+
attachments: item.fileList
|
|
122944
122725
|
};
|
|
122945
122726
|
});
|
|
122946
122727
|
|
|
@@ -123117,8 +122898,7 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123117
122898
|
id: item.id,
|
|
123118
122899
|
subject: item.subject,
|
|
123119
122900
|
content: item.getContent() + " " + item.getReplyHtml() + sendProductCard,
|
|
123120
|
-
attachments: item.fileList
|
|
123121
|
-
templateId: item.templateId
|
|
122901
|
+
attachments: item.fileList
|
|
123122
122902
|
};
|
|
123123
122903
|
});
|
|
123124
122904
|
// 处理红人
|
|
@@ -123271,38 +123051,15 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123271
123051
|
},
|
|
123272
123052
|
// 设置模板
|
|
123273
123053
|
setMailTemplate(data) {
|
|
123274
|
-
this.
|
|
123275
|
-
|
|
123276
|
-
|
|
123277
|
-
|
|
123278
|
-
|
|
123279
|
-
// 获取模版详情
|
|
123280
|
-
this.mailList.forEach(mail => {
|
|
123281
|
-
if (mail.active) {
|
|
123282
|
-
mail.subject = detailObj.mailSubject;
|
|
123283
|
-
mail.templateId = detailObj.id;
|
|
123284
|
-
mail.fileList = detailObj.attachmentRes;
|
|
123285
|
-
if (mail.setContent) {
|
|
123286
|
-
mail.setContent(detailObj.content);
|
|
123287
|
-
}
|
|
123288
|
-
}
|
|
123289
|
-
});
|
|
123290
|
-
// 商品卡相关逻辑
|
|
123291
|
-
if (detailObj.content) {
|
|
123292
|
-
let productCardStart = detailObj.content.indexOf('<product-card');
|
|
123293
|
-
let productCardEnd = detailObj.content.indexOf('</product-card>');
|
|
123294
|
-
let productCardHtml = detailObj.content.slice(productCardStart, productCardEnd + 15);
|
|
123295
|
-
const cardIdsMatch = productCardHtml.match(/cardids="([^"]+)"/);
|
|
123296
|
-
if (cardIdsMatch && cardIdsMatch[1]) {
|
|
123297
|
-
const cardIds = cardIdsMatch[1]; // 获取匹配到的cardids值
|
|
123298
|
-
this.addProductCard(cardIds.split(","));
|
|
123299
|
-
}
|
|
123300
|
-
}
|
|
123054
|
+
this.mailList.forEach(mail => {
|
|
123055
|
+
if (mail.active) {
|
|
123056
|
+
mail.subject = data.mailSubject;
|
|
123057
|
+
if (mail.setContent) {
|
|
123058
|
+
mail.setContent(data.content);
|
|
123301
123059
|
}
|
|
123302
|
-
} else {
|
|
123303
|
-
this.$message.error(res.message);
|
|
123304
123060
|
}
|
|
123305
|
-
})
|
|
123061
|
+
});
|
|
123062
|
+
this.mailTemplateDrawerVisible = false;
|
|
123306
123063
|
},
|
|
123307
123064
|
// 设置签名
|
|
123308
123065
|
setMailSign(data) {
|
|
@@ -123641,15 +123398,15 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123641
123398
|
});
|
|
123642
123399
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123643
123400
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
123644
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123401
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=6c2fdda1&prod&lang=scss&scoped=true
|
|
123645
123402
|
// extracted by mini-css-extract-plugin
|
|
123646
123403
|
|
|
123647
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123404
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=6c2fdda1&prod&lang=scss&scoped=true
|
|
123648
123405
|
|
|
123649
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123406
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=6c2fdda1&prod&lang=scss
|
|
123650
123407
|
// extracted by mini-css-extract-plugin
|
|
123651
123408
|
|
|
123652
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123409
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=6c2fdda1&prod&lang=scss
|
|
123653
123410
|
|
|
123654
123411
|
;// ./src/package/write-email/index.vue
|
|
123655
123412
|
|
|
@@ -123663,11 +123420,11 @@ var saveMailTempDialog_component = normalizeComponent(
|
|
|
123663
123420
|
|
|
123664
123421
|
var write_email_component = normalizeComponent(
|
|
123665
123422
|
package_write_emailvue_type_script_lang_js,
|
|
123666
|
-
|
|
123667
|
-
|
|
123423
|
+
write_emailvue_type_template_id_6c2fdda1_scoped_true_render,
|
|
123424
|
+
write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns,
|
|
123668
123425
|
false,
|
|
123669
123426
|
null,
|
|
123670
|
-
"
|
|
123427
|
+
"6c2fdda1",
|
|
123671
123428
|
null
|
|
123672
123429
|
|
|
123673
123430
|
)
|
|
@@ -123734,8 +123491,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123734
123491
|
};
|
|
123735
123492
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123736
123493
|
|
|
123737
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=
|
|
123738
|
-
var
|
|
123494
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=1f01a884&scoped=true
|
|
123495
|
+
var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function render() {
|
|
123739
123496
|
var _vm = this,
|
|
123740
123497
|
_c = _vm._self._c;
|
|
123741
123498
|
return _c('div', {
|
|
@@ -124056,25 +123813,6 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
|
|
|
124056
123813
|
}
|
|
124057
123814
|
})];
|
|
124058
123815
|
}
|
|
124059
|
-
}, {
|
|
124060
|
-
key: "operation",
|
|
124061
|
-
fn: function ({
|
|
124062
|
-
data
|
|
124063
|
-
}) {
|
|
124064
|
-
return [_c('el-link', {
|
|
124065
|
-
attrs: {
|
|
124066
|
-
"type": "primary",
|
|
124067
|
-
"size": "small",
|
|
124068
|
-
"underline": false
|
|
124069
|
-
},
|
|
124070
|
-
on: {
|
|
124071
|
-
"click": function ($event) {
|
|
124072
|
-
$event.stopPropagation();
|
|
124073
|
-
return _vm.recallMail(data.scope);
|
|
124074
|
-
}
|
|
124075
|
-
}
|
|
124076
|
-
}, [_vm._v("撤回")])];
|
|
124077
|
-
}
|
|
124078
123816
|
}])
|
|
124079
123817
|
}), _c('div', {
|
|
124080
123818
|
staticClass: "tool"
|
|
@@ -124116,7 +123854,7 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
|
|
|
124116
123854
|
staticClass: "dss-iconfont"
|
|
124117
123855
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
124118
123856
|
};
|
|
124119
|
-
var
|
|
123857
|
+
var singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns = [];
|
|
124120
123858
|
|
|
124121
123859
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
124122
123860
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -124204,10 +123942,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124204
123942
|
label: src_language.t("edm2.mailEn12"),
|
|
124205
123943
|
prop: "sendTime",
|
|
124206
123944
|
width: "200"
|
|
124207
|
-
}, {
|
|
124208
|
-
label: "操作",
|
|
124209
|
-
scope: "operation",
|
|
124210
|
-
width: "100"
|
|
124211
123945
|
}],
|
|
124212
123946
|
tableData: [],
|
|
124213
123947
|
loading: false,
|
|
@@ -124256,32 +123990,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124256
123990
|
localStorage.removeItem("searchFlag");
|
|
124257
123991
|
},
|
|
124258
123992
|
methods: {
|
|
124259
|
-
// 撤回邮件
|
|
124260
|
-
recallMail(row) {
|
|
124261
|
-
console.log(row, "row");
|
|
124262
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124263
|
-
confirmButtonText: "确定",
|
|
124264
|
-
cancelButtonText: "取消",
|
|
124265
|
-
type: "warning"
|
|
124266
|
-
}).then(() => {
|
|
124267
|
-
withdraw(row.id).then(res => {
|
|
124268
|
-
if (res.code == "0") {
|
|
124269
|
-
this.$message({
|
|
124270
|
-
type: "success",
|
|
124271
|
-
duration: 7000,
|
|
124272
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124273
|
-
});
|
|
124274
|
-
this.init();
|
|
124275
|
-
} else {
|
|
124276
|
-
this.$message({
|
|
124277
|
-
type: "error",
|
|
124278
|
-
duration: 7000,
|
|
124279
|
-
message: res.message
|
|
124280
|
-
});
|
|
124281
|
-
}
|
|
124282
|
-
});
|
|
124283
|
-
}).catch(() => {});
|
|
124284
|
-
},
|
|
124285
123993
|
// 主题-正文
|
|
124286
123994
|
changeContentMode(val) {
|
|
124287
123995
|
this.contentSelect = val;
|
|
@@ -124475,10 +124183,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124475
124183
|
});
|
|
124476
124184
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124477
124185
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
124478
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124186
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
|
|
124479
124187
|
// extracted by mini-css-extract-plugin
|
|
124480
124188
|
|
|
124481
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124189
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
|
|
124482
124190
|
|
|
124483
124191
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124484
124192
|
|
|
@@ -124491,18 +124199,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124491
124199
|
|
|
124492
124200
|
var singleSendMail_component = normalizeComponent(
|
|
124493
124201
|
components_singleSendMailvue_type_script_lang_js,
|
|
124494
|
-
|
|
124495
|
-
|
|
124202
|
+
singleSendMailvue_type_template_id_1f01a884_scoped_true_render,
|
|
124203
|
+
singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns,
|
|
124496
124204
|
false,
|
|
124497
124205
|
null,
|
|
124498
|
-
"
|
|
124206
|
+
"1f01a884",
|
|
124499
124207
|
null
|
|
124500
124208
|
|
|
124501
124209
|
)
|
|
124502
124210
|
|
|
124503
124211
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
124504
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=
|
|
124505
|
-
var
|
|
124212
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=9bfe54da&scoped=true
|
|
124213
|
+
var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function render() {
|
|
124506
124214
|
var _vm = this,
|
|
124507
124215
|
_c = _vm._self._c;
|
|
124508
124216
|
return _c('div', {
|
|
@@ -124792,25 +124500,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
|
|
|
124792
124500
|
}
|
|
124793
124501
|
})];
|
|
124794
124502
|
}
|
|
124795
|
-
}, {
|
|
124796
|
-
key: "operation",
|
|
124797
|
-
fn: function ({
|
|
124798
|
-
data
|
|
124799
|
-
}) {
|
|
124800
|
-
return [_c('el-link', {
|
|
124801
|
-
attrs: {
|
|
124802
|
-
"type": "primary",
|
|
124803
|
-
"size": "small",
|
|
124804
|
-
"underline": false
|
|
124805
|
-
},
|
|
124806
|
-
on: {
|
|
124807
|
-
"click": function ($event) {
|
|
124808
|
-
$event.stopPropagation();
|
|
124809
|
-
return _vm.recallMail(data.scope);
|
|
124810
|
-
}
|
|
124811
|
-
}
|
|
124812
|
-
}, [_vm._v("撤回")])];
|
|
124813
|
-
}
|
|
124814
124503
|
}])
|
|
124815
124504
|
}), _c('div', {
|
|
124816
124505
|
staticClass: "tool"
|
|
@@ -124837,7 +124526,7 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
|
|
|
124837
124526
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124838
124527
|
})])])])], 1)]);
|
|
124839
124528
|
};
|
|
124840
|
-
var
|
|
124529
|
+
var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
124841
124530
|
|
|
124842
124531
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124843
124532
|
|
|
@@ -124909,10 +124598,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
124909
124598
|
label: src_language.t("edm2.mailEn12"),
|
|
124910
124599
|
prop: "sendTime",
|
|
124911
124600
|
width: "200"
|
|
124912
|
-
}, {
|
|
124913
|
-
label: "操作",
|
|
124914
|
-
scope: "operation",
|
|
124915
|
-
width: "100"
|
|
124916
124601
|
}],
|
|
124917
124602
|
contentInput: "",
|
|
124918
124603
|
contentSelect: "1",
|
|
@@ -124964,32 +124649,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
124964
124649
|
localStorage.removeItem("searchFlag");
|
|
124965
124650
|
},
|
|
124966
124651
|
methods: {
|
|
124967
|
-
// 撤回邮件
|
|
124968
|
-
recallMail(row) {
|
|
124969
|
-
console.log(row, "row");
|
|
124970
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124971
|
-
confirmButtonText: "确定",
|
|
124972
|
-
cancelButtonText: "取消",
|
|
124973
|
-
type: "warning"
|
|
124974
|
-
}).then(() => {
|
|
124975
|
-
withdraw(row.id).then(res => {
|
|
124976
|
-
if (res.code == "0") {
|
|
124977
|
-
this.$message({
|
|
124978
|
-
type: "success",
|
|
124979
|
-
duration: 7000,
|
|
124980
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124981
|
-
});
|
|
124982
|
-
this.init();
|
|
124983
|
-
} else {
|
|
124984
|
-
this.$message({
|
|
124985
|
-
type: "error",
|
|
124986
|
-
duration: 7000,
|
|
124987
|
-
message: res.message
|
|
124988
|
-
});
|
|
124989
|
-
}
|
|
124990
|
-
});
|
|
124991
|
-
}).catch(() => {});
|
|
124992
|
-
},
|
|
124993
124652
|
// 去除html标签
|
|
124994
124653
|
filterHtmlTag(str) {
|
|
124995
124654
|
if (str) {
|
|
@@ -125201,10 +124860,10 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
125201
124860
|
});
|
|
125202
124861
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
125203
124862
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
125204
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
124863
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
|
|
125205
124864
|
// extracted by mini-css-extract-plugin
|
|
125206
124865
|
|
|
125207
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
124866
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
|
|
125208
124867
|
|
|
125209
124868
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
125210
124869
|
|
|
@@ -125217,11 +124876,11 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
|
125217
124876
|
|
|
125218
124877
|
var replySendMail_component = normalizeComponent(
|
|
125219
124878
|
components_replySendMailvue_type_script_lang_js,
|
|
125220
|
-
|
|
125221
|
-
|
|
124879
|
+
replySendMailvue_type_template_id_9bfe54da_scoped_true_render,
|
|
124880
|
+
replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns,
|
|
125222
124881
|
false,
|
|
125223
124882
|
null,
|
|
125224
|
-
"
|
|
124883
|
+
"9bfe54da",
|
|
125225
124884
|
null
|
|
125226
124885
|
|
|
125227
124886
|
)
|
|
@@ -126689,8 +126348,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126689
126348
|
)
|
|
126690
126349
|
|
|
126691
126350
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
126692
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=template&id=
|
|
126693
|
-
var
|
|
126351
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=template&id=cfc1a914&scoped=true
|
|
126352
|
+
var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
126694
126353
|
var _vm = this,
|
|
126695
126354
|
_c = _vm._self._c;
|
|
126696
126355
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126703,11 +126362,6 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
|
126703
126362
|
}, [_c('i', {
|
|
126704
126363
|
staticClass: "el-icon-arrow-left"
|
|
126705
126364
|
})]), _c('div', {
|
|
126706
|
-
staticClass: "back recall_btn",
|
|
126707
|
-
on: {
|
|
126708
|
-
"click": _vm.recallMail
|
|
126709
|
-
}
|
|
126710
|
-
}, [_vm._m(0)]), _c('div', {
|
|
126711
126365
|
staticClass: "mail-items-box"
|
|
126712
126366
|
}, [_c('div', {
|
|
126713
126367
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126934,19 +126588,7 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
|
126934
126588
|
}
|
|
126935
126589
|
}) : _vm._e()], 1) : _vm._e();
|
|
126936
126590
|
};
|
|
126937
|
-
var
|
|
126938
|
-
var _vm = this,
|
|
126939
|
-
_c = _vm._self._c;
|
|
126940
|
-
return _c('div', {
|
|
126941
|
-
staticClass: "re_box"
|
|
126942
|
-
}, [_c('i', {
|
|
126943
|
-
staticClass: "dss-iconfont btn_con"
|
|
126944
|
-
}, [_vm._v("")]), _c('span', {
|
|
126945
|
-
staticClass: "btn_con"
|
|
126946
|
-
}, [_vm._v("撤回")])]);
|
|
126947
|
-
}];
|
|
126948
|
-
|
|
126949
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=ad633b50&scoped=true
|
|
126591
|
+
var detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns = [];
|
|
126950
126592
|
|
|
126951
126593
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Table/components/bloggerColumn.vue?vue&type=template&id=2b58a2e1&scoped=true
|
|
126952
126594
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -127195,31 +126837,6 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127195
126837
|
localStorage.setItem("searchFlag", true);
|
|
127196
126838
|
},
|
|
127197
126839
|
methods: {
|
|
127198
|
-
// 撤回邮件
|
|
127199
|
-
recallMail() {
|
|
127200
|
-
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127201
|
-
confirmButtonText: "确定",
|
|
127202
|
-
cancelButtonText: "取消",
|
|
127203
|
-
type: "warning"
|
|
127204
|
-
}).then(() => {
|
|
127205
|
-
withdraw(this.$route.query.id).then(res => {
|
|
127206
|
-
if (res.code == "0") {
|
|
127207
|
-
this.$message({
|
|
127208
|
-
type: "success",
|
|
127209
|
-
duration: 7000,
|
|
127210
|
-
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127211
|
-
});
|
|
127212
|
-
this.backToOutbox();
|
|
127213
|
-
} else {
|
|
127214
|
-
this.$message({
|
|
127215
|
-
type: "error",
|
|
127216
|
-
duration: 7000,
|
|
127217
|
-
message: res.message
|
|
127218
|
-
});
|
|
127219
|
-
}
|
|
127220
|
-
});
|
|
127221
|
-
}).catch(() => {});
|
|
127222
|
-
},
|
|
127223
126840
|
// 红人档案侧抽
|
|
127224
126841
|
toBloggerDeatil(item) {
|
|
127225
126842
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -127351,10 +126968,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127351
126968
|
});
|
|
127352
126969
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
127353
126970
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
127354
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
126971
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=cfc1a914&prod&lang=scss&scoped=true
|
|
127355
126972
|
// extracted by mini-css-extract-plugin
|
|
127356
126973
|
|
|
127357
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
126974
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=cfc1a914&prod&lang=scss&scoped=true
|
|
127358
126975
|
|
|
127359
126976
|
;// ./src/package/outbox-email/detail.vue
|
|
127360
126977
|
|
|
@@ -127367,11 +126984,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
127367
126984
|
|
|
127368
126985
|
var outbox_email_detail_component = normalizeComponent(
|
|
127369
126986
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
127370
|
-
|
|
127371
|
-
|
|
126987
|
+
detailvue_type_template_id_cfc1a914_scoped_true_render,
|
|
126988
|
+
detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns,
|
|
127372
126989
|
false,
|
|
127373
126990
|
null,
|
|
127374
|
-
"
|
|
126991
|
+
"cfc1a914",
|
|
127375
126992
|
null
|
|
127376
126993
|
|
|
127377
126994
|
)
|
|
@@ -127677,7 +127294,7 @@ async function mailList2(data) {
|
|
|
127677
127294
|
}
|
|
127678
127295
|
|
|
127679
127296
|
// 查看邮件往来里的发件详情
|
|
127680
|
-
async function
|
|
127297
|
+
async function sendDetail(params) {
|
|
127681
127298
|
let res = await get(`/edm/mail/sendDetail/${params.id}`);
|
|
127682
127299
|
return res;
|
|
127683
127300
|
}
|
|
@@ -128922,6 +128539,130 @@ var Editorvue_type_template_id_16051201_scoped_true_render = function render() {
|
|
|
128922
128539
|
};
|
|
128923
128540
|
var Editorvue_type_template_id_16051201_scoped_true_staticRenderFns = [];
|
|
128924
128541
|
|
|
128542
|
+
;// ./src/api/mailData/index.js
|
|
128543
|
+
|
|
128544
|
+
|
|
128545
|
+
// 文件上传
|
|
128546
|
+
async function mailData_uploadFile(data) {
|
|
128547
|
+
let res = await post("/edm/mail/upload_file", data);
|
|
128548
|
+
return res;
|
|
128549
|
+
}
|
|
128550
|
+
// 邮件发送数据
|
|
128551
|
+
async function getSendList(data) {
|
|
128552
|
+
let res = await request_post("/edm/outbox/sendData", data);
|
|
128553
|
+
if (res.code === '0') {
|
|
128554
|
+
return res;
|
|
128555
|
+
}
|
|
128556
|
+
return null;
|
|
128557
|
+
}
|
|
128558
|
+
|
|
128559
|
+
// 邮件接收数据 inbox/receiveData
|
|
128560
|
+
async function getReceiveList(data) {
|
|
128561
|
+
let res = await request_post("/edm/inbox/receiveData", data);
|
|
128562
|
+
if (res) {
|
|
128563
|
+
return res;
|
|
128564
|
+
}
|
|
128565
|
+
return null;
|
|
128566
|
+
}
|
|
128567
|
+
|
|
128568
|
+
// 查看详情-收件数据
|
|
128569
|
+
async function mailData_getInboxDetail(id) {
|
|
128570
|
+
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
128571
|
+
if (res) {
|
|
128572
|
+
return res;
|
|
128573
|
+
}
|
|
128574
|
+
return null;
|
|
128575
|
+
}
|
|
128576
|
+
|
|
128577
|
+
// 查看会话-收件数据
|
|
128578
|
+
async function getInboxDialogue(chatId) {
|
|
128579
|
+
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
128580
|
+
if (res) {
|
|
128581
|
+
return res;
|
|
128582
|
+
}
|
|
128583
|
+
return null;
|
|
128584
|
+
}
|
|
128585
|
+
|
|
128586
|
+
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
128587
|
+
async function getInboxDialogue1(id) {
|
|
128588
|
+
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
128589
|
+
if (res) {
|
|
128590
|
+
return res;
|
|
128591
|
+
}
|
|
128592
|
+
return null;
|
|
128593
|
+
}
|
|
128594
|
+
|
|
128595
|
+
//发送详情
|
|
128596
|
+
async function getSendDetail(id) {
|
|
128597
|
+
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
128598
|
+
if (res.code === '0') {
|
|
128599
|
+
return res;
|
|
128600
|
+
}
|
|
128601
|
+
return null;
|
|
128602
|
+
}
|
|
128603
|
+
|
|
128604
|
+
// 发信详情 sendDetail/{id}
|
|
128605
|
+
async function getDetailReceive() {
|
|
128606
|
+
let res = await get(`/edm/inbox/receiveData`);
|
|
128607
|
+
if (res.code === '0') {
|
|
128608
|
+
return res;
|
|
128609
|
+
}
|
|
128610
|
+
return null;
|
|
128611
|
+
}
|
|
128612
|
+
|
|
128613
|
+
// 发件数据详情 --和邮件往来一样
|
|
128614
|
+
async function mailData_sendDetail(id) {
|
|
128615
|
+
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
128616
|
+
if (res.code === '0') {
|
|
128617
|
+
return res;
|
|
128618
|
+
}
|
|
128619
|
+
return null;
|
|
128620
|
+
}
|
|
128621
|
+
|
|
128622
|
+
// 收信详情
|
|
128623
|
+
async function getDetailSend(id) {
|
|
128624
|
+
let res = await get(`/edm/outbox/sendData`);
|
|
128625
|
+
if (res.code === '0') {
|
|
128626
|
+
return res;
|
|
128627
|
+
}
|
|
128628
|
+
return null;
|
|
128629
|
+
}
|
|
128630
|
+
|
|
128631
|
+
// 查看AI回复 - 发件
|
|
128632
|
+
async function AiReplyDetail(id) {
|
|
128633
|
+
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
128634
|
+
if (res) {
|
|
128635
|
+
return res;
|
|
128636
|
+
}
|
|
128637
|
+
return null;
|
|
128638
|
+
}
|
|
128639
|
+
|
|
128640
|
+
// 查看AI回复 收件
|
|
128641
|
+
async function aiReply(params) {
|
|
128642
|
+
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
128643
|
+
if (res) {
|
|
128644
|
+
return res;
|
|
128645
|
+
}
|
|
128646
|
+
return null;
|
|
128647
|
+
}
|
|
128648
|
+
|
|
128649
|
+
// 导出收信数据 /inbox/exportReceiveData
|
|
128650
|
+
async function exportReceiveData(params) {
|
|
128651
|
+
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
128652
|
+
if (res) {
|
|
128653
|
+
return res;
|
|
128654
|
+
}
|
|
128655
|
+
return null;
|
|
128656
|
+
}
|
|
128657
|
+
|
|
128658
|
+
// 导出发信数据 /outbox/exportSendData
|
|
128659
|
+
async function exportSendData(params) {
|
|
128660
|
+
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
128661
|
+
if (res) {
|
|
128662
|
+
return res;
|
|
128663
|
+
}
|
|
128664
|
+
return null;
|
|
128665
|
+
}
|
|
128925
128666
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/MailPage/Editor.vue?vue&type=script&lang=js
|
|
128926
128667
|
//import { uploadFile } from '@/api'
|
|
128927
128668
|
|
|
@@ -130062,7 +129803,7 @@ var AttachmentList_component = normalizeComponent(
|
|
|
130062
129803
|
methods: {
|
|
130063
129804
|
// 获取页面数据
|
|
130064
129805
|
initPageData() {
|
|
130065
|
-
|
|
129806
|
+
mailData_sendDetail(this.id).then(res => {
|
|
130066
129807
|
if (res) {
|
|
130067
129808
|
this.mailData = res.data;
|
|
130068
129809
|
}
|