wotokol-edm 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/wotokol-edm.common.js +1297 -1030
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css +1 -1
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +1300 -1033
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +20 -20
- package/wotokol-edm.umd.min.js.gz +0 -0
package/wotokol-edm.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=380dc28b&scoped=true
|
|
85278
85278
|
var render = function render() {
|
|
85279
85279
|
var _vm = this,
|
|
85280
85280
|
_c = _vm._self._c;
|
|
@@ -91213,8 +91213,10 @@ async function test_test(params) {
|
|
|
91213
91213
|
// 模拟 hub 登陆 测试账号
|
|
91214
91214
|
// mobileOrEmail: "13262005357",
|
|
91215
91215
|
// password: "123123123"
|
|
91216
|
-
mobileOrEmail: "18846078060",
|
|
91217
|
-
password: "asd123456"
|
|
91216
|
+
// mobileOrEmail: "18846078060",
|
|
91217
|
+
// password: "asd123456"
|
|
91218
|
+
mobileOrEmail: "18767117493",
|
|
91219
|
+
password: "tm123456789"
|
|
91218
91220
|
// mobileOrEmail: "15658187195",
|
|
91219
91221
|
// password: "wotu987412365"
|
|
91220
91222
|
}).then(res => {
|
|
@@ -91366,7 +91368,7 @@ var component = normalizeComponent(
|
|
|
91366
91368
|
staticRenderFns,
|
|
91367
91369
|
false,
|
|
91368
91370
|
null,
|
|
91369
|
-
"
|
|
91371
|
+
"380dc28b",
|
|
91370
91372
|
null
|
|
91371
91373
|
|
|
91372
91374
|
)
|
|
@@ -98665,6 +98667,14 @@ function delTags(id) {
|
|
|
98665
98667
|
function addTags(data) {
|
|
98666
98668
|
return request_post(`/edm/tag/addSign`, data);
|
|
98667
98669
|
}
|
|
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
|
+
}
|
|
98668
98678
|
;// ./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
|
|
98669
98679
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98670
98680
|
var _vm = this,
|
|
@@ -106569,6 +106579,10 @@ function comeGoBloggerPage(data) {
|
|
|
106569
106579
|
function pagePlan(data) {
|
|
106570
106580
|
return post(`/user/popularize/pagePlan`, data);
|
|
106571
106581
|
}
|
|
106582
|
+
// 撤回邮件
|
|
106583
|
+
function withdraw(id) {
|
|
106584
|
+
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106585
|
+
}
|
|
106572
106586
|
;// ./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
|
|
106573
106587
|
|
|
106574
106588
|
|
|
@@ -109211,8 +109225,8 @@ var detail_component = normalizeComponent(
|
|
|
109211
109225
|
)
|
|
109212
109226
|
|
|
109213
109227
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
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=
|
|
109215
|
-
var
|
|
109228
|
+
;// ./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=4a0856bf&scoped=true
|
|
109229
|
+
var write_emailvue_type_template_id_4a0856bf_scoped_true_render = function render() {
|
|
109216
109230
|
var _vm = this,
|
|
109217
109231
|
_c = _vm._self._c;
|
|
109218
109232
|
return _c('div', {
|
|
@@ -109577,7 +109591,17 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109577
109591
|
staticClass: "el-icon-loading"
|
|
109578
109592
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109579
109593
|
staticClass: "operate-right"
|
|
109580
|
-
}, [
|
|
109594
|
+
}, [_c('el-button', {
|
|
109595
|
+
staticClass: "operate-btn",
|
|
109596
|
+
attrs: {
|
|
109597
|
+
"disabled": _vm.loading
|
|
109598
|
+
},
|
|
109599
|
+
on: {
|
|
109600
|
+
"click": _vm.saveMailTemplate
|
|
109601
|
+
}
|
|
109602
|
+
}, [_vm.loading ? _c('i', {
|
|
109603
|
+
staticClass: "el-icon-loading"
|
|
109604
|
+
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109581
109605
|
staticClass: "operate-btn",
|
|
109582
109606
|
attrs: {
|
|
109583
109607
|
"disabled": _vm.loading
|
|
@@ -109942,9 +109966,20 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109942
109966
|
},
|
|
109943
109967
|
"updateNickName": val => _vm.nickName = val
|
|
109944
109968
|
}
|
|
109969
|
+
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109970
|
+
attrs: {
|
|
109971
|
+
"tempProductCard": _vm.tempProductCard,
|
|
109972
|
+
"mailTempList": _vm.mailList,
|
|
109973
|
+
"visible": _vm.saveMailTempDialogVisible
|
|
109974
|
+
},
|
|
109975
|
+
on: {
|
|
109976
|
+
"update:visible": function ($event) {
|
|
109977
|
+
_vm.saveMailTempDialogVisible = $event;
|
|
109978
|
+
}
|
|
109979
|
+
}
|
|
109945
109980
|
}) : _vm._e()], 1);
|
|
109946
109981
|
};
|
|
109947
|
-
var
|
|
109982
|
+
var write_emailvue_type_template_id_4a0856bf_scoped_true_staticRenderFns = [function () {
|
|
109948
109983
|
var _vm = this,
|
|
109949
109984
|
_c = _vm._self._c;
|
|
109950
109985
|
return _c('div', {
|
|
@@ -109965,7 +110000,7 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [func
|
|
|
109965
110000
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109966
110001
|
}];
|
|
109967
110002
|
|
|
109968
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
110003
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=4a0856bf&scoped=true
|
|
109969
110004
|
|
|
109970
110005
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109971
110006
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -110179,6 +110214,11 @@ function getOauthLink(params) {
|
|
|
110179
110214
|
function bindOutlookEmail(params) {
|
|
110180
110215
|
return request_get("/edm/qiye/saveToken", params);
|
|
110181
110216
|
}
|
|
110217
|
+
|
|
110218
|
+
// 获取模板详情
|
|
110219
|
+
function templatesDetail(id) {
|
|
110220
|
+
return request_get(`/edm/template/template/${id}`);
|
|
110221
|
+
}
|
|
110182
110222
|
;// ./src/api/send/outbox.js
|
|
110183
110223
|
|
|
110184
110224
|
// 分页查看发件箱列表
|
|
@@ -114322,6 +114362,59 @@ const moneyTypeOpts = [{
|
|
|
114322
114362
|
code: "IDR",
|
|
114323
114363
|
symbol: "Rp"
|
|
114324
114364
|
}];
|
|
114365
|
+
const const_language = [{
|
|
114366
|
+
value: 7,
|
|
114367
|
+
label: '汉语',
|
|
114368
|
+
enLabel: 'Chinese'
|
|
114369
|
+
}, {
|
|
114370
|
+
value: 1,
|
|
114371
|
+
label: '英语',
|
|
114372
|
+
enLabel: 'English'
|
|
114373
|
+
}, {
|
|
114374
|
+
value: 3,
|
|
114375
|
+
label: '法语',
|
|
114376
|
+
enLabel: 'French'
|
|
114377
|
+
}, {
|
|
114378
|
+
value: 8,
|
|
114379
|
+
label: '德语',
|
|
114380
|
+
enLabel: 'German'
|
|
114381
|
+
}, {
|
|
114382
|
+
value: 6,
|
|
114383
|
+
label: '日语',
|
|
114384
|
+
enLabel: 'Japanese'
|
|
114385
|
+
}, {
|
|
114386
|
+
value: 9,
|
|
114387
|
+
label: '韩语',
|
|
114388
|
+
enLabel: 'Korean'
|
|
114389
|
+
}, {
|
|
114390
|
+
value: 10,
|
|
114391
|
+
label: '越南语',
|
|
114392
|
+
enLabel: 'Vietnamese'
|
|
114393
|
+
}, {
|
|
114394
|
+
value: 11,
|
|
114395
|
+
label: '泰国语',
|
|
114396
|
+
enLabel: 'Thai'
|
|
114397
|
+
}, {
|
|
114398
|
+
value: 12,
|
|
114399
|
+
label: '菲律宾语',
|
|
114400
|
+
enLabel: 'Filipino'
|
|
114401
|
+
}, {
|
|
114402
|
+
value: 13,
|
|
114403
|
+
label: '印度尼西亚语',
|
|
114404
|
+
enLabel: 'Indonesian'
|
|
114405
|
+
}, {
|
|
114406
|
+
value: 14,
|
|
114407
|
+
label: '俄罗斯语',
|
|
114408
|
+
enLabel: 'Russian'
|
|
114409
|
+
}, {
|
|
114410
|
+
value: 4,
|
|
114411
|
+
label: '西班牙语',
|
|
114412
|
+
enLabel: 'Spanish'
|
|
114413
|
+
}, {
|
|
114414
|
+
value: 15,
|
|
114415
|
+
label: '意大利语',
|
|
114416
|
+
enLabel: 'Italian'
|
|
114417
|
+
}];
|
|
114325
114418
|
;// ./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
|
|
114326
114419
|
|
|
114327
114420
|
|
|
@@ -118332,840 +118425,593 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118332
118425
|
};
|
|
118333
118426
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118334
118427
|
|
|
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=
|
|
118336
|
-
|
|
118428
|
+
;// ./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=d1b92a60&scoped=true
|
|
118429
|
+
|
|
118430
|
+
|
|
118431
|
+
var TemplateListvue_type_template_id_d1b92a60_scoped_true_render = function render() {
|
|
118337
118432
|
var _vm = this,
|
|
118338
118433
|
_c = _vm._self._c;
|
|
118339
118434
|
return _c('div', {
|
|
118340
118435
|
staticClass: "wrap"
|
|
118341
118436
|
}, [_c('div', {
|
|
118342
|
-
staticClass: "
|
|
118437
|
+
staticClass: "inbox-search-wrap"
|
|
118438
|
+
}, [_c('el-row', {
|
|
118439
|
+
attrs: {
|
|
118440
|
+
"gutter": 12
|
|
118441
|
+
}
|
|
118442
|
+
}, [_c('el-col', {
|
|
118443
|
+
attrs: {
|
|
118444
|
+
"span": 8
|
|
118445
|
+
}
|
|
118343
118446
|
}, [_c('div', {
|
|
118344
|
-
staticClass: "
|
|
118447
|
+
staticClass: "col-item col-select-input-item"
|
|
118345
118448
|
}, [_c('el-select', {
|
|
118449
|
+
staticClass: "template_select",
|
|
118450
|
+
attrs: {
|
|
118451
|
+
"slot": "prepend",
|
|
118452
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118453
|
+
},
|
|
118346
118454
|
on: {
|
|
118347
118455
|
"change": function ($event) {
|
|
118348
|
-
_vm.searchForm.
|
|
118349
|
-
_vm.
|
|
118350
|
-
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118351
|
-
_vm.init();
|
|
118456
|
+
_vm.searchForm.scene = '';
|
|
118457
|
+
_vm.contentInput = '';
|
|
118352
118458
|
}
|
|
118353
118459
|
},
|
|
118460
|
+
slot: "prepend",
|
|
118354
118461
|
model: {
|
|
118355
|
-
value: _vm.
|
|
118462
|
+
value: _vm.contentSelect,
|
|
118356
118463
|
callback: function ($$v) {
|
|
118357
|
-
_vm
|
|
118464
|
+
_vm.contentSelect = $$v;
|
|
118358
118465
|
},
|
|
118359
|
-
expression: "
|
|
118466
|
+
expression: "contentSelect"
|
|
118360
118467
|
}
|
|
118361
118468
|
}, [_c('el-option', {
|
|
118362
118469
|
attrs: {
|
|
118363
|
-
"label":
|
|
118364
|
-
"value": 1
|
|
118470
|
+
"label": "模版名称",
|
|
118471
|
+
"value": "1"
|
|
118365
118472
|
}
|
|
118366
118473
|
}), _c('el-option', {
|
|
118367
118474
|
attrs: {
|
|
118368
|
-
"label":
|
|
118369
|
-
"value": 2
|
|
118475
|
+
"label": "应用场景",
|
|
118476
|
+
"value": "2"
|
|
118370
118477
|
}
|
|
118371
|
-
})], 1)
|
|
118372
|
-
staticClass: "
|
|
118478
|
+
})], 1), _vm.searchForm.type == 1 && _vm.contentSelect == 2 ? _c('div', {
|
|
118479
|
+
staticClass: "temp_right"
|
|
118373
118480
|
}, [_c('el-select', {
|
|
118374
118481
|
attrs: {
|
|
118375
|
-
"
|
|
118376
|
-
"
|
|
118377
|
-
},
|
|
118378
|
-
on: {
|
|
118379
|
-
"change": function ($event) {
|
|
118380
|
-
_vm.searchForm.currentPage = 1;
|
|
118381
|
-
_vm.init();
|
|
118382
|
-
}
|
|
118482
|
+
"slot": "prepend",
|
|
118483
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118383
118484
|
},
|
|
118485
|
+
slot: "prepend",
|
|
118384
118486
|
model: {
|
|
118385
|
-
value: _vm.searchForm.
|
|
118487
|
+
value: _vm.searchForm.scene,
|
|
118386
118488
|
callback: function ($$v) {
|
|
118387
|
-
_vm.$set(_vm.searchForm, "
|
|
118489
|
+
_vm.$set(_vm.searchForm, "scene", $$v);
|
|
118388
118490
|
},
|
|
118389
|
-
expression: "searchForm.
|
|
118491
|
+
expression: "searchForm.scene"
|
|
118390
118492
|
}
|
|
118391
|
-
}, _vm._l(_vm.
|
|
118493
|
+
}, _vm._l(_vm.templateSystemScene, function (scene) {
|
|
118392
118494
|
return _c('el-option', {
|
|
118393
|
-
key:
|
|
118495
|
+
key: scene.value,
|
|
118394
118496
|
attrs: {
|
|
118395
|
-
"
|
|
118396
|
-
"
|
|
118497
|
+
"label": scene.label,
|
|
118498
|
+
"value": scene.value
|
|
118397
118499
|
}
|
|
118398
118500
|
});
|
|
118399
|
-
}), 1)], 1)
|
|
118400
|
-
staticClass: "
|
|
118401
|
-
}, [_c('
|
|
118402
|
-
staticClass: "
|
|
118403
|
-
|
|
118404
|
-
"
|
|
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
|
|
118501
|
+
}), 1)], 1) : _c('div', {
|
|
118502
|
+
staticClass: "temp_right"
|
|
118503
|
+
}, [_c('el-input', {
|
|
118504
|
+
staticClass: "col-input-select",
|
|
118505
|
+
attrs: {
|
|
118506
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118413
118507
|
},
|
|
118414
118508
|
model: {
|
|
118415
|
-
value: _vm.
|
|
118509
|
+
value: _vm.contentInput,
|
|
118416
118510
|
callback: function ($$v) {
|
|
118417
|
-
_vm
|
|
118511
|
+
_vm.contentInput = $$v;
|
|
118418
118512
|
},
|
|
118419
|
-
expression: "
|
|
118513
|
+
expression: "contentInput"
|
|
118420
118514
|
}
|
|
118421
|
-
},
|
|
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
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118505
118516
|
attrs: {
|
|
118506
|
-
"
|
|
118507
|
-
"total": _vm.tableTotal,
|
|
118508
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118509
|
-
"pager-count": 5,
|
|
118510
|
-
"small": "",
|
|
118511
|
-
"layout": "total, prev, pager, next, jumper"
|
|
118512
|
-
},
|
|
118513
|
-
on: {
|
|
118514
|
-
"current-change": _vm.changePage
|
|
118517
|
+
"span": 8
|
|
118515
118518
|
}
|
|
118516
|
-
}
|
|
118519
|
+
}, [_c('div', {
|
|
118520
|
+
staticClass: "col-item col-select-input-item"
|
|
118521
|
+
}, [_c('el-input', {
|
|
118522
|
+
staticClass: "col-input-select",
|
|
118517
118523
|
attrs: {
|
|
118518
|
-
"
|
|
118519
|
-
"with-header": false,
|
|
118520
|
-
"wrapper-closable": false,
|
|
118521
|
-
"append-to-body": "",
|
|
118522
|
-
"size": "800px"
|
|
118524
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118523
118525
|
},
|
|
118524
|
-
|
|
118525
|
-
|
|
118526
|
-
|
|
118527
|
-
|
|
118526
|
+
model: {
|
|
118527
|
+
value: _vm.mailTitleInput,
|
|
118528
|
+
callback: function ($$v) {
|
|
118529
|
+
_vm.mailTitleInput = $$v;
|
|
118530
|
+
},
|
|
118531
|
+
expression: "mailTitleInput"
|
|
118528
118532
|
}
|
|
118529
|
-
}, [
|
|
118533
|
+
}, [_c('el-select', {
|
|
118530
118534
|
attrs: {
|
|
118531
|
-
"
|
|
118532
|
-
"
|
|
118533
|
-
"selectType": _vm.searchForm.type
|
|
118535
|
+
"slot": "prepend",
|
|
118536
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118534
118537
|
},
|
|
118535
118538
|
on: {
|
|
118536
|
-
"
|
|
118537
|
-
_vm.
|
|
118538
|
-
_vm.
|
|
118539
|
-
|
|
118540
|
-
"close": function ($event) {
|
|
118541
|
-
_vm.setId = 0;
|
|
118542
|
-
_vm.isShowSet = false;
|
|
118539
|
+
"change": function ($event) {
|
|
118540
|
+
_vm.mailTitleInput = '';
|
|
118541
|
+
_vm.searchForm.content = '';
|
|
118542
|
+
_vm.searchForm.mailSubject = '';
|
|
118543
118543
|
}
|
|
118544
|
-
}
|
|
118545
|
-
}) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
|
|
118546
|
-
attrs: {
|
|
118547
|
-
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118548
|
-
"tabOpts": _vm.tabOpts,
|
|
118549
|
-
"mailId": _vm.mailId
|
|
118550
118544
|
},
|
|
118551
|
-
|
|
118552
|
-
|
|
118545
|
+
slot: "prepend",
|
|
118546
|
+
model: {
|
|
118547
|
+
value: _vm.mailTitleSelect,
|
|
118548
|
+
callback: function ($$v) {
|
|
118549
|
+
_vm.mailTitleSelect = $$v;
|
|
118550
|
+
},
|
|
118551
|
+
expression: "mailTitleSelect"
|
|
118553
118552
|
}
|
|
118554
|
-
}
|
|
118555
|
-
|
|
118556
|
-
|
|
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
|
-
}
|
|
118553
|
+
}, [_c('el-option', {
|
|
118554
|
+
attrs: {
|
|
118555
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118556
|
+
"value": "1"
|
|
118599
118557
|
}
|
|
118600
|
-
},
|
|
118601
|
-
staticClass: "dss-iconfont icon-close"
|
|
118602
|
-
})])]), _c('div', {
|
|
118603
|
-
staticClass: "drawer-body hidden-scrollbar"
|
|
118604
|
-
}, [_c('el-form', {
|
|
118605
|
-
ref: "form",
|
|
118558
|
+
}), _c('el-option', {
|
|
118606
118559
|
attrs: {
|
|
118607
|
-
"
|
|
118608
|
-
"
|
|
118560
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118561
|
+
"value": "2"
|
|
118609
118562
|
}
|
|
118610
|
-
},
|
|
118611
|
-
staticClass: "form-item"
|
|
118612
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118563
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118613
118564
|
attrs: {
|
|
118614
|
-
"
|
|
118565
|
+
"span": 8
|
|
118615
118566
|
}
|
|
118616
|
-
}, [_c('
|
|
118567
|
+
}, [_c('div', {
|
|
118568
|
+
staticClass: "col-item"
|
|
118569
|
+
}, [_c('span', {
|
|
118570
|
+
staticClass: "col-span"
|
|
118571
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118572
|
+
staticClass: "col-select",
|
|
118617
118573
|
attrs: {
|
|
118618
|
-
"
|
|
118619
|
-
"
|
|
118620
|
-
"
|
|
118574
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118575
|
+
"clearable": "",
|
|
118576
|
+
"filterable": ""
|
|
118621
118577
|
},
|
|
118622
118578
|
model: {
|
|
118623
|
-
value: _vm.
|
|
118579
|
+
value: _vm.searchForm.modelLanguage,
|
|
118624
118580
|
callback: function ($$v) {
|
|
118625
|
-
_vm.$set(_vm.
|
|
118581
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118626
118582
|
},
|
|
118627
|
-
expression: "
|
|
118583
|
+
expression: "searchForm.modelLanguage"
|
|
118628
118584
|
}
|
|
118629
|
-
}
|
|
118630
|
-
|
|
118631
|
-
|
|
118585
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118586
|
+
return _c('el-option', {
|
|
118587
|
+
key: item.value,
|
|
118588
|
+
attrs: {
|
|
118589
|
+
"value": item.value,
|
|
118590
|
+
"label": item.label
|
|
118591
|
+
}
|
|
118592
|
+
});
|
|
118593
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118594
|
+
staticStyle: {
|
|
118595
|
+
"margin-top": "8px"
|
|
118596
|
+
},
|
|
118632
118597
|
attrs: {
|
|
118633
|
-
"
|
|
118598
|
+
"gutter": 12
|
|
118634
118599
|
}
|
|
118635
|
-
}, [_c('el-
|
|
118636
|
-
ref: "mailSubjectIpt",
|
|
118600
|
+
}, [_c('el-col', {
|
|
118637
118601
|
attrs: {
|
|
118638
|
-
"
|
|
118639
|
-
|
|
118602
|
+
"span": 8
|
|
118603
|
+
}
|
|
118604
|
+
}, [_c('div', {
|
|
118605
|
+
staticClass: "col-item"
|
|
118606
|
+
}, [_c('span', {
|
|
118607
|
+
staticClass: "col-span"
|
|
118608
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118609
|
+
staticClass: "col-select",
|
|
118610
|
+
attrs: {
|
|
118611
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118640
118612
|
"clearable": ""
|
|
118641
118613
|
},
|
|
118642
118614
|
on: {
|
|
118643
|
-
"
|
|
118644
|
-
_vm.isFocusSubject = true;
|
|
118645
|
-
}
|
|
118615
|
+
"change": _vm.modelTypeChange
|
|
118646
118616
|
},
|
|
118647
118617
|
model: {
|
|
118648
|
-
value: _vm.
|
|
118618
|
+
value: _vm.searchForm.type,
|
|
118649
118619
|
callback: function ($$v) {
|
|
118650
|
-
_vm.$set(_vm.
|
|
118620
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118651
118621
|
},
|
|
118652
|
-
expression: "
|
|
118653
|
-
}
|
|
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",
|
|
118660
|
-
attrs: {
|
|
118661
|
-
"height": 400,
|
|
118662
|
-
"theme": "light"
|
|
118663
|
-
},
|
|
118664
|
-
on: {
|
|
118665
|
-
"click": function ($event) {
|
|
118666
|
-
_vm.isFocusSubject = false;
|
|
118667
|
-
}
|
|
118668
|
-
}
|
|
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",
|
|
118679
|
-
attrs: {
|
|
118680
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118681
|
-
},
|
|
118682
|
-
on: {
|
|
118683
|
-
"click": function ($event) {
|
|
118684
|
-
$event.preventDefault();
|
|
118685
|
-
return _vm.setVariable(0);
|
|
118686
|
-
}
|
|
118687
|
-
}
|
|
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
|
-
}
|
|
118622
|
+
expression: "searchForm.type"
|
|
118695
118623
|
}
|
|
118696
|
-
}, [
|
|
118697
|
-
|
|
118624
|
+
}, [_c('el-option', {
|
|
118625
|
+
key: 1,
|
|
118698
118626
|
attrs: {
|
|
118699
|
-
"
|
|
118700
|
-
|
|
118701
|
-
on: {
|
|
118702
|
-
"click": function ($event) {
|
|
118703
|
-
$event.preventDefault();
|
|
118704
|
-
return _vm.setVariable(1);
|
|
118705
|
-
}
|
|
118627
|
+
"value": 1,
|
|
118628
|
+
"label": "系统模版"
|
|
118706
118629
|
}
|
|
118707
|
-
}
|
|
118630
|
+
}), _c('el-option', {
|
|
118631
|
+
key: 2,
|
|
118708
118632
|
attrs: {
|
|
118709
|
-
"
|
|
118710
|
-
|
|
118711
|
-
on: {
|
|
118712
|
-
"click": function ($event) {
|
|
118713
|
-
$event.preventDefault();
|
|
118714
|
-
return _vm.setVariable(2);
|
|
118715
|
-
}
|
|
118633
|
+
"value": 2,
|
|
118634
|
+
"label": "自定义模版"
|
|
118716
118635
|
}
|
|
118717
|
-
}
|
|
118718
|
-
staticClass: "form-item"
|
|
118719
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118636
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118720
118637
|
attrs: {
|
|
118721
|
-
"
|
|
118638
|
+
"span": 8
|
|
118722
118639
|
}
|
|
118723
|
-
}, [_c('
|
|
118640
|
+
}, [_c('div', {
|
|
118641
|
+
staticClass: "col-item"
|
|
118642
|
+
}, [_c('span', {
|
|
118643
|
+
staticClass: "col-span"
|
|
118644
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118645
|
+
staticClass: "col-select",
|
|
118724
118646
|
attrs: {
|
|
118725
|
-
"placeholder": _vm.$i18n.t('common.
|
|
118726
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118647
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118727
118648
|
"clearable": ""
|
|
118728
118649
|
},
|
|
118729
118650
|
model: {
|
|
118730
|
-
value: _vm.
|
|
118651
|
+
value: _vm.searchForm.isShared,
|
|
118731
118652
|
callback: function ($$v) {
|
|
118732
|
-
_vm.$set(_vm.
|
|
118653
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118733
118654
|
},
|
|
118734
|
-
expression: "
|
|
118655
|
+
expression: "searchForm.isShared"
|
|
118735
118656
|
}
|
|
118736
|
-
}
|
|
118737
|
-
|
|
118738
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118657
|
+
}, [_c('el-option', {
|
|
118658
|
+
key: 1,
|
|
118739
118659
|
attrs: {
|
|
118740
|
-
"
|
|
118660
|
+
"value": true,
|
|
118661
|
+
"label": "公开"
|
|
118741
118662
|
}
|
|
118742
|
-
},
|
|
118663
|
+
}), _c('el-option', {
|
|
118664
|
+
key: 2,
|
|
118665
|
+
attrs: {
|
|
118666
|
+
"value": false,
|
|
118667
|
+
"label": "私有"
|
|
118668
|
+
}
|
|
118669
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118670
|
+
attrs: {
|
|
118671
|
+
"span": 8
|
|
118672
|
+
}
|
|
118673
|
+
}, [_c('div', {
|
|
118674
|
+
staticClass: "col-item"
|
|
118675
|
+
}, [_c('span', {
|
|
118676
|
+
staticClass: "col-span"
|
|
118677
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118678
|
+
staticClass: "col-select",
|
|
118743
118679
|
attrs: {
|
|
118744
118680
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118745
|
-
"
|
|
118746
|
-
"
|
|
118681
|
+
"clearable": "",
|
|
118682
|
+
"filterable": ""
|
|
118747
118683
|
},
|
|
118748
118684
|
model: {
|
|
118749
|
-
value: _vm.
|
|
118685
|
+
value: _vm.searchForm.userId,
|
|
118750
118686
|
callback: function ($$v) {
|
|
118751
|
-
_vm.$set(_vm.
|
|
118687
|
+
_vm.$set(_vm.searchForm, "userId", $$v);
|
|
118752
118688
|
},
|
|
118753
|
-
expression: "
|
|
118689
|
+
expression: "searchForm.userId"
|
|
118754
118690
|
}
|
|
118755
|
-
}, _vm._l(_vm.
|
|
118691
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118756
118692
|
return _c('el-option', {
|
|
118757
|
-
key:
|
|
118693
|
+
key: item.userId,
|
|
118758
118694
|
attrs: {
|
|
118759
|
-
"
|
|
118760
|
-
"
|
|
118695
|
+
"label": item.userName,
|
|
118696
|
+
"value": item.userId
|
|
118761
118697
|
}
|
|
118762
118698
|
});
|
|
118763
|
-
}), 1)], 1)]
|
|
118764
|
-
|
|
118765
|
-
|
|
118766
|
-
|
|
118699
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118700
|
+
staticStyle: {
|
|
118701
|
+
"margin-top": "8px"
|
|
118702
|
+
},
|
|
118703
|
+
attrs: {
|
|
118704
|
+
"gutter": 20
|
|
118705
|
+
}
|
|
118706
|
+
}, [_c('el-col', {
|
|
118707
|
+
attrs: {
|
|
118708
|
+
"span": 24
|
|
118709
|
+
}
|
|
118710
|
+
}, [_c('div', {
|
|
118711
|
+
staticClass: "btns_box"
|
|
118712
|
+
}, [_c('div', [_c('el-button', {
|
|
118713
|
+
attrs: {
|
|
118714
|
+
"type": "primary"
|
|
118715
|
+
},
|
|
118767
118716
|
on: {
|
|
118768
118717
|
"click": function ($event) {
|
|
118769
|
-
|
|
118718
|
+
_vm.searchForm.currentPage = 1;
|
|
118719
|
+
_vm.getCardList();
|
|
118770
118720
|
}
|
|
118771
118721
|
}
|
|
118772
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118773
|
-
|
|
118722
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118723
|
+
on: {
|
|
118724
|
+
"click": _vm.resetEvt
|
|
118725
|
+
}
|
|
118726
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118727
|
+
staticStyle: {
|
|
118728
|
+
"display": "flex",
|
|
118729
|
+
"align-items": "center"
|
|
118730
|
+
}
|
|
118731
|
+
}, [_c('div', {
|
|
118732
|
+
staticClass: "right_sort"
|
|
118733
|
+
}, [_c('el-dropdown', {
|
|
118774
118734
|
attrs: {
|
|
118775
|
-
"
|
|
118735
|
+
"placement": "bottom"
|
|
118736
|
+
}
|
|
118737
|
+
}, [_c('div', {
|
|
118738
|
+
staticClass: "sort_btn"
|
|
118739
|
+
}, [_c('i', {
|
|
118740
|
+
staticClass: "dss-iconfont"
|
|
118741
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118742
|
+
attrs: {
|
|
118743
|
+
"slot": "dropdown"
|
|
118744
|
+
},
|
|
118745
|
+
slot: "dropdown"
|
|
118746
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118747
|
+
return _c('el-dropdown-item', {
|
|
118748
|
+
key: index,
|
|
118749
|
+
staticStyle: {
|
|
118750
|
+
"white-space": "nowrap"
|
|
118751
|
+
},
|
|
118752
|
+
attrs: {
|
|
118753
|
+
"command": item.value
|
|
118754
|
+
},
|
|
118755
|
+
nativeOn: {
|
|
118756
|
+
"click": function ($event) {
|
|
118757
|
+
return _vm.clickDropdownItem(item);
|
|
118758
|
+
}
|
|
118759
|
+
}
|
|
118760
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118761
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118762
|
+
directives: [{
|
|
118763
|
+
name: "loading",
|
|
118764
|
+
rawName: "v-loading",
|
|
118765
|
+
value: _vm.loading,
|
|
118766
|
+
expression: "loading"
|
|
118767
|
+
}],
|
|
118768
|
+
staticClass: "temp_box"
|
|
118769
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118770
|
+
staticClass: "temp_list"
|
|
118771
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118772
|
+
return _c('div', {
|
|
118773
|
+
key: item.id,
|
|
118774
|
+
staticClass: "temp_item"
|
|
118775
|
+
}, [_c('div', {
|
|
118776
|
+
staticClass: "temp_content"
|
|
118777
|
+
}, [_c('div', {
|
|
118778
|
+
staticClass: "temp_top"
|
|
118779
|
+
}, [_c('div', {
|
|
118780
|
+
staticClass: "temp_title"
|
|
118781
|
+
}, [_c('div', {
|
|
118782
|
+
staticClass: "title_text"
|
|
118783
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118784
|
+
staticClass: "more_icon",
|
|
118785
|
+
on: {
|
|
118786
|
+
"click": function ($event) {
|
|
118787
|
+
return _vm.toDetail(item);
|
|
118788
|
+
}
|
|
118789
|
+
}
|
|
118790
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118791
|
+
staticClass: "el-icon-arrow-right"
|
|
118792
|
+
})])]), _c('div', {
|
|
118793
|
+
staticClass: "num_box"
|
|
118794
|
+
}, [_c('div', {
|
|
118795
|
+
staticClass: "lang_box"
|
|
118796
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), item.attachmentNum ? _c('div', {
|
|
118797
|
+
staticClass: "lang_box"
|
|
118798
|
+
}, [_vm._v(" 附件:" + _vm._s(item.attachmentNum) + "个 ")]) : _vm._e(), item.productCardNum ? _c('div', {
|
|
118799
|
+
staticClass: "lang_box"
|
|
118800
|
+
}, [_vm._v(" 商品卡:" + _vm._s(item.productCardNum) + "个 ")]) : _vm._e()])]), _c('div', {
|
|
118801
|
+
staticClass: "temp_middle"
|
|
118802
|
+
}, [_c('div', {
|
|
118803
|
+
staticClass: "nu_box"
|
|
118804
|
+
}, [_c('div', {
|
|
118805
|
+
staticClass: "nu_title"
|
|
118806
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118807
|
+
staticClass: "nu_number"
|
|
118808
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118809
|
+
staticClass: "nu_box"
|
|
118810
|
+
}, [_c('div', {
|
|
118811
|
+
staticClass: "nu_title"
|
|
118812
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118813
|
+
staticClass: "nu_number"
|
|
118814
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118815
|
+
staticClass: "nu_box"
|
|
118816
|
+
}, [_c('div', {
|
|
118817
|
+
staticClass: "nu_title"
|
|
118818
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118819
|
+
staticClass: "nu_number"
|
|
118820
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118821
|
+
staticClass: "nu_box"
|
|
118822
|
+
}, [_c('div', {
|
|
118823
|
+
staticClass: "nu_title"
|
|
118824
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118825
|
+
staticClass: "nu_number"
|
|
118826
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118827
|
+
staticClass: "tem_bottom"
|
|
118828
|
+
}, [_c('div', {
|
|
118829
|
+
staticClass: "tem_desc"
|
|
118830
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118831
|
+
staticClass: "tem_desc"
|
|
118832
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118833
|
+
staticClass: "desc_btns"
|
|
118834
|
+
}, [_c('div', {
|
|
118835
|
+
staticClass: "desc_text"
|
|
118836
|
+
}, [_c('div', {
|
|
118837
|
+
staticClass: "tem_desc"
|
|
118838
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118839
|
+
staticClass: "tem_desc"
|
|
118840
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118841
|
+
staticClass: "apply_btn"
|
|
118842
|
+
}, [_c('el-button', {
|
|
118843
|
+
attrs: {
|
|
118844
|
+
"type": "primary"
|
|
118845
|
+
},
|
|
118846
|
+
on: {
|
|
118847
|
+
"click": function ($event) {
|
|
118848
|
+
return _vm.setMailTemplate(item);
|
|
118849
|
+
}
|
|
118850
|
+
}
|
|
118851
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118852
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118853
|
+
staticClass: "page_box"
|
|
118854
|
+
}, [_c('el-pagination', {
|
|
118855
|
+
attrs: {
|
|
118856
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118857
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118858
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118859
|
+
"total": _vm.total
|
|
118776
118860
|
},
|
|
118777
118861
|
on: {
|
|
118778
|
-
"
|
|
118862
|
+
"size-change": _vm.handleSizeChange,
|
|
118863
|
+
"current-change": _vm.handleCurrentChange,
|
|
118864
|
+
"update:currentPage": function ($event) {
|
|
118865
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118866
|
+
},
|
|
118867
|
+
"update:current-page": function ($event) {
|
|
118868
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118869
|
+
}
|
|
118779
118870
|
}
|
|
118780
|
-
},
|
|
118781
|
-
staticClass: "el-icon-loading"
|
|
118782
|
-
}) : _vm._e()])]) : _vm._e()]);
|
|
118871
|
+
})], 1)]);
|
|
118783
118872
|
};
|
|
118784
|
-
var
|
|
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
|
|
118873
|
+
var TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns = [];
|
|
118787
118874
|
|
|
118875
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=d1b92a60&scoped=true
|
|
118788
118876
|
|
|
118877
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
118789
118878
|
|
|
118790
|
-
|
|
118791
|
-
|
|
118792
|
-
|
|
118793
|
-
|
|
118794
|
-
|
|
118795
|
-
|
|
118796
|
-
|
|
118797
|
-
|
|
118798
|
-
|
|
118799
|
-
|
|
118800
|
-
|
|
118801
|
-
|
|
118802
|
-
|
|
118803
|
-
|
|
118804
|
-
|
|
118805
|
-
|
|
118806
|
-
|
|
118807
|
-
|
|
118808
|
-
|
|
118809
|
-
|
|
118810
|
-
|
|
118811
|
-
|
|
118812
|
-
|
|
118813
|
-
|
|
118814
|
-
|
|
118815
|
-
|
|
118816
|
-
|
|
118817
|
-
|
|
118818
|
-
|
|
118819
|
-
|
|
118820
|
-
|
|
118821
|
-
|
|
118822
|
-
|
|
118823
|
-
|
|
118824
|
-
|
|
118825
|
-
|
|
118826
|
-
|
|
118827
|
-
|
|
118828
|
-
|
|
118829
|
-
|
|
118830
|
-
|
|
118831
|
-
|
|
118832
|
-
|
|
118833
|
-
|
|
118834
|
-
|
|
118835
|
-
|
|
118836
|
-
|
|
118837
|
-
|
|
118838
|
-
|
|
118839
|
-
|
|
118840
|
-
|
|
118841
|
-
|
|
118842
|
-
|
|
118843
|
-
|
|
118844
|
-
|
|
118845
|
-
|
|
118846
|
-
|
|
118847
|
-
|
|
118848
|
-
|
|
118849
|
-
|
|
118850
|
-
|
|
118851
|
-
|
|
118852
|
-
|
|
118853
|
-
|
|
118854
|
-
|
|
118855
|
-
|
|
118856
|
-
|
|
118857
|
-
|
|
118858
|
-
|
|
118859
|
-
|
|
118860
|
-
|
|
118861
|
-
|
|
118862
|
-
|
|
118863
|
-
|
|
118864
|
-
|
|
118865
|
-
|
|
118866
|
-
|
|
118867
|
-
|
|
118868
|
-
|
|
118869
|
-
|
|
118870
|
-
|
|
118871
|
-
|
|
118872
|
-
|
|
118873
|
-
|
|
118874
|
-
|
|
118875
|
-
|
|
118876
|
-
|
|
118877
|
-
|
|
118878
|
-
|
|
118879
|
-
|
|
118880
|
-
|
|
118881
|
-
|
|
118882
|
-
|
|
118883
|
-
|
|
118884
|
-
|
|
118885
|
-
|
|
118886
|
-
|
|
118887
|
-
|
|
118888
|
-
|
|
118889
|
-
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;
|
|
118931
|
-
}
|
|
118932
|
-
});
|
|
118933
|
-
},
|
|
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;
|
|
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
|
-
;
|
|
118879
|
+
const TemplateCom_const_language = [{
|
|
118880
|
+
value: '7',
|
|
118881
|
+
label: '汉语',
|
|
118882
|
+
enLabel: 'Chinese'
|
|
118883
|
+
}, {
|
|
118884
|
+
value: '1',
|
|
118885
|
+
label: '英语',
|
|
118886
|
+
enLabel: 'English'
|
|
118887
|
+
}, {
|
|
118888
|
+
value: '3',
|
|
118889
|
+
label: '法语',
|
|
118890
|
+
enLabel: 'French'
|
|
118891
|
+
}, {
|
|
118892
|
+
value: '8',
|
|
118893
|
+
label: '德语',
|
|
118894
|
+
enLabel: 'German'
|
|
118895
|
+
}, {
|
|
118896
|
+
value: '6',
|
|
118897
|
+
label: '日语',
|
|
118898
|
+
enLabel: 'Japanese'
|
|
118899
|
+
}, {
|
|
118900
|
+
value: '9',
|
|
118901
|
+
label: '韩语',
|
|
118902
|
+
enLabel: 'Korean'
|
|
118903
|
+
}, {
|
|
118904
|
+
value: '10',
|
|
118905
|
+
label: '越南语',
|
|
118906
|
+
enLabel: 'Vietnamese'
|
|
118907
|
+
}, {
|
|
118908
|
+
value: '11',
|
|
118909
|
+
label: '泰国语',
|
|
118910
|
+
enLabel: 'Thai'
|
|
118911
|
+
}, {
|
|
118912
|
+
value: '12',
|
|
118913
|
+
label: '菲律宾语',
|
|
118914
|
+
enLabel: 'Filipino'
|
|
118915
|
+
}, {
|
|
118916
|
+
value: '13',
|
|
118917
|
+
label: '印度尼西亚语',
|
|
118918
|
+
enLabel: 'Indonesian'
|
|
118919
|
+
}, {
|
|
118920
|
+
value: '14',
|
|
118921
|
+
label: '俄罗斯语',
|
|
118922
|
+
enLabel: 'Russian'
|
|
118923
|
+
}, {
|
|
118924
|
+
value: '4',
|
|
118925
|
+
label: '西班牙语',
|
|
118926
|
+
enLabel: 'Spanish'
|
|
118927
|
+
}, {
|
|
118928
|
+
value: '15',
|
|
118929
|
+
label: '意大利语',
|
|
118930
|
+
enLabel: 'Italian'
|
|
118931
|
+
}];
|
|
118932
|
+
const sortConfig = [{
|
|
118933
|
+
label: '按创建时间倒序',
|
|
118934
|
+
value: 0
|
|
118935
|
+
}, {
|
|
118936
|
+
label: '按更新时间倒序',
|
|
118937
|
+
value: 1
|
|
118938
|
+
}, {
|
|
118939
|
+
label: '按送达率倒序',
|
|
118940
|
+
value: 2
|
|
118941
|
+
}, {
|
|
118942
|
+
label: '按打开率倒序',
|
|
118943
|
+
value: 3
|
|
118944
|
+
}, {
|
|
118945
|
+
label: '按回复率倒序',
|
|
118946
|
+
value: 4
|
|
118947
|
+
}, {
|
|
118948
|
+
label: '按累计发送数倒序',
|
|
118949
|
+
value: 5
|
|
118950
|
+
}];
|
|
118951
|
+
// 系统模版场景
|
|
118952
|
+
const templateSystemScene = [{
|
|
118953
|
+
value: '1',
|
|
118954
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
118955
|
+
},
|
|
118956
|
+
//合作邀请
|
|
118957
|
+
{
|
|
118958
|
+
value: '2',
|
|
118959
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
118960
|
+
},
|
|
118961
|
+
//价格协商
|
|
118962
|
+
{
|
|
118963
|
+
value: '3',
|
|
118964
|
+
label: `${src_language.t('template.contract_template')}`
|
|
118965
|
+
},
|
|
118966
|
+
//合同模板
|
|
118967
|
+
{
|
|
118968
|
+
value: '4',
|
|
118969
|
+
label: `${src_language.t('template.video_production')}`
|
|
118970
|
+
},
|
|
118971
|
+
//视频制作
|
|
118972
|
+
{
|
|
118973
|
+
value: '5',
|
|
118974
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
118975
|
+
} //费用结算
|
|
118976
|
+
];
|
|
118977
|
+
;// ./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
|
|
119000
118978
|
|
|
119001
118979
|
|
|
119002
|
-
/* normalize component */
|
|
119003
118980
|
|
|
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
118981
|
|
|
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
118982
|
|
|
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
118983
|
|
|
119075
|
-
|
|
119076
|
-
|
|
119077
|
-
|
|
119078
|
-
|
|
119079
|
-
|
|
119080
|
-
|
|
119081
|
-
|
|
119082
|
-
|
|
119083
|
-
|
|
119084
|
-
|
|
119085
|
-
|
|
119086
|
-
|
|
119087
|
-
|
|
119088
|
-
|
|
119089
|
-
|
|
119090
|
-
|
|
119091
|
-
|
|
119092
|
-
|
|
119093
|
-
|
|
119094
|
-
|
|
119095
|
-
|
|
119096
|
-
|
|
119097
|
-
|
|
119098
|
-
|
|
119099
|
-
|
|
119100
|
-
};
|
|
119101
|
-
},
|
|
119102
|
-
methods: {
|
|
119103
|
-
customToSystem() {
|
|
119104
|
-
if (!this.setSystemForm.modelType) {
|
|
119105
|
-
this.$message({
|
|
119106
|
-
type: "warning",
|
|
119107
|
-
message: `${this.$i18n.t('common.please_select')}${this.$i18n.t('template.template_type')}`
|
|
119108
|
-
});
|
|
119109
|
-
return;
|
|
119110
|
-
}
|
|
119111
|
-
setSysTemplate(this.setSystemForm).then(res => {
|
|
119112
|
-
if (res.code == 0) {
|
|
119113
|
-
this.closeEvt();
|
|
119114
|
-
this.$message({
|
|
119115
|
-
type: "success",
|
|
119116
|
-
message: `${this.$i18n.t('template.set_success')}`
|
|
119117
|
-
});
|
|
119118
|
-
} else {
|
|
119119
|
-
this.$message.error(res.message);
|
|
119120
|
-
this.closeEvt();
|
|
119121
|
-
}
|
|
119122
|
-
});
|
|
119123
|
-
},
|
|
119124
|
-
closeEvt() {
|
|
119125
|
-
this.setSystemForm.id = "";
|
|
119126
|
-
this.setSystemForm.modelType = "";
|
|
119127
|
-
this.$emit("closeDialog");
|
|
119128
|
-
}
|
|
118984
|
+
function createSearchForm(tar) {
|
|
118985
|
+
let raw = {
|
|
118986
|
+
templatesTitle: "",
|
|
118987
|
+
//模板标题
|
|
118988
|
+
scene: "",
|
|
118989
|
+
//应用场景
|
|
118990
|
+
mailSubject: "",
|
|
118991
|
+
//邮件主题
|
|
118992
|
+
content: "",
|
|
118993
|
+
//正文
|
|
118994
|
+
type: null,
|
|
118995
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
118996
|
+
modelLanguage: "",
|
|
118997
|
+
//语言
|
|
118998
|
+
isShared: "",
|
|
118999
|
+
//是否共享
|
|
119000
|
+
userId: "",
|
|
119001
|
+
//创建人
|
|
119002
|
+
searchSort: 1,
|
|
119003
|
+
//排序
|
|
119004
|
+
currentPage: 1,
|
|
119005
|
+
pageSize: 10
|
|
119006
|
+
};
|
|
119007
|
+
if (tar) {
|
|
119008
|
+
raw = Object.assign(raw, tar);
|
|
119129
119009
|
}
|
|
119130
|
-
|
|
119131
|
-
|
|
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
|
-
|
|
119010
|
+
return raw;
|
|
119011
|
+
}
|
|
119165
119012
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119166
119013
|
components: {
|
|
119167
|
-
|
|
119168
|
-
SetSysTemplate: SetSysTemplate
|
|
119014
|
+
Empty: Empty
|
|
119169
119015
|
},
|
|
119170
119016
|
props: {
|
|
119171
119017
|
userId: {
|
|
@@ -119175,161 +119021,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119175
119021
|
},
|
|
119176
119022
|
data() {
|
|
119177
119023
|
return {
|
|
119178
|
-
|
|
119179
|
-
|
|
119180
|
-
|
|
119181
|
-
|
|
119182
|
-
|
|
119183
|
-
|
|
119184
|
-
|
|
119185
|
-
|
|
119186
|
-
|
|
119187
|
-
|
|
119188
|
-
|
|
119189
|
-
|
|
119190
|
-
|
|
119191
|
-
|
|
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: ""
|
|
119024
|
+
// 模版名称 场景
|
|
119025
|
+
contentSelect: "1",
|
|
119026
|
+
contentInput: "",
|
|
119027
|
+
// 邮件主题正文
|
|
119028
|
+
mailTitleSelect: "1",
|
|
119029
|
+
mailTitleInput: "",
|
|
119030
|
+
searchForm: createSearchForm(),
|
|
119031
|
+
language: TemplateCom_const_language,
|
|
119032
|
+
sortConfig: sortConfig,
|
|
119033
|
+
accountList: [],
|
|
119034
|
+
templateList: [],
|
|
119035
|
+
templateSystemScene: templateSystemScene,
|
|
119036
|
+
total: 0,
|
|
119037
|
+
loading: false
|
|
119237
119038
|
};
|
|
119238
119039
|
},
|
|
119239
|
-
|
|
119240
|
-
|
|
119241
|
-
this.
|
|
119040
|
+
mounted() {
|
|
119041
|
+
this.getAccountList();
|
|
119042
|
+
this.getCardList();
|
|
119242
119043
|
},
|
|
119243
119044
|
methods: {
|
|
119244
|
-
//
|
|
119245
|
-
|
|
119246
|
-
this.
|
|
119247
|
-
if (
|
|
119248
|
-
|
|
119045
|
+
// 语言枚举
|
|
119046
|
+
getLangLabel(val) {
|
|
119047
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119048
|
+
if (currLang) {
|
|
119049
|
+
return currLang.label;
|
|
119249
119050
|
}
|
|
119250
|
-
|
|
119251
|
-
|
|
119252
|
-
|
|
119253
|
-
|
|
119254
|
-
|
|
119051
|
+
},
|
|
119052
|
+
// 应用模版
|
|
119053
|
+
setMailTemplate(data) {
|
|
119054
|
+
this.$emit("setMailTemplate", data);
|
|
119055
|
+
},
|
|
119056
|
+
// 跳转详情
|
|
119057
|
+
toDetail(item) {
|
|
119058
|
+
const routeData = this.$router.resolve({
|
|
119059
|
+
path: "/emailTempDetail",
|
|
119060
|
+
query: {
|
|
119061
|
+
type: "edit",
|
|
119062
|
+
id: item.id
|
|
119063
|
+
}
|
|
119064
|
+
});
|
|
119065
|
+
window.open(routeData.href, "_blank");
|
|
119066
|
+
},
|
|
119067
|
+
// 获取列表
|
|
119068
|
+
getCardList() {
|
|
119069
|
+
if (this.contentSelect == "1") {
|
|
119070
|
+
this.searchForm.templatesTitle = this.contentInput;
|
|
119071
|
+
} else if (this.contentSelect == "2") {
|
|
119072
|
+
//系统模版
|
|
119073
|
+
if (this.searchForm.type != 1) {
|
|
119074
|
+
this.searchForm.scene = this.contentInput;
|
|
119075
|
+
}
|
|
119076
|
+
}
|
|
119077
|
+
if (this.mailTitleSelect == "1") {
|
|
119078
|
+
this.searchForm.mailSubject = this.mailTitleInput;
|
|
119079
|
+
} else if (this.mailTitleSelect == "2") {
|
|
119080
|
+
this.searchForm.content = this.mailTitleInput;
|
|
119081
|
+
}
|
|
119082
|
+
this.loading = true;
|
|
119083
|
+
templatesList(this.searchForm).then(res => {
|
|
119084
|
+
if (res.code == "0") {
|
|
119085
|
+
this.templateList = res.data.rows;
|
|
119086
|
+
this.total = res.data.total;
|
|
119087
|
+
this.loading = false;
|
|
119255
119088
|
} else {
|
|
119089
|
+
this.loading = false;
|
|
119256
119090
|
this.$message.error(res.message);
|
|
119257
119091
|
}
|
|
119258
119092
|
});
|
|
119259
119093
|
},
|
|
119260
|
-
//
|
|
119261
|
-
|
|
119262
|
-
this.searchForm.
|
|
119263
|
-
this.
|
|
119264
|
-
},
|
|
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(() => {});
|
|
119094
|
+
// 模板类型切换
|
|
119095
|
+
modelTypeChange(val) {
|
|
119096
|
+
this.searchForm.scene = "";
|
|
119097
|
+
this.contentInput = "";
|
|
119286
119098
|
},
|
|
119287
|
-
//
|
|
119288
|
-
|
|
119289
|
-
this
|
|
119099
|
+
// 重置
|
|
119100
|
+
resetEvt() {
|
|
119101
|
+
this.searchForm = createSearchForm();
|
|
119102
|
+
this.contentSelect = "1";
|
|
119103
|
+
this.contentInput = "";
|
|
119104
|
+
this.mailTitleSelect = "1";
|
|
119105
|
+
this.mailTitleInput = "";
|
|
119106
|
+
this.getCardList();
|
|
119290
119107
|
},
|
|
119291
|
-
//
|
|
119292
|
-
|
|
119293
|
-
|
|
119294
|
-
|
|
119295
|
-
|
|
119108
|
+
// 获取账号下的账户
|
|
119109
|
+
getAccountList() {
|
|
119110
|
+
hubUserSonFather().then(res => {
|
|
119111
|
+
if (res.code == "0") {
|
|
119112
|
+
this.accountList = res.data;
|
|
119113
|
+
} else {
|
|
119114
|
+
this.$message.error(res.message);
|
|
119115
|
+
}
|
|
119116
|
+
});
|
|
119296
119117
|
},
|
|
119297
|
-
//
|
|
119298
|
-
|
|
119299
|
-
this.searchForm.modelType = tab.name;
|
|
119118
|
+
// 排序按钮
|
|
119119
|
+
clickDropdownItem(item) {
|
|
119300
119120
|
this.searchForm.currentPage = 1;
|
|
119301
|
-
this.
|
|
119121
|
+
this.searchForm.searchSort = item.value;
|
|
119122
|
+
this.getCardList();
|
|
119302
119123
|
},
|
|
119303
|
-
|
|
119304
|
-
|
|
119305
|
-
|
|
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;
|
|
119124
|
+
handleSizeChange(val) {
|
|
119125
|
+
this.searchForm.currentPage = 1;
|
|
119126
|
+
this.searchForm.pageSize = val;
|
|
119127
|
+
this.getCardList();
|
|
119315
119128
|
},
|
|
119316
|
-
|
|
119317
|
-
|
|
119318
|
-
this.
|
|
119129
|
+
handleCurrentChange(val) {
|
|
119130
|
+
this.searchForm.currentPage = val;
|
|
119131
|
+
this.getCardList();
|
|
119319
119132
|
}
|
|
119320
119133
|
}
|
|
119321
119134
|
});
|
|
119322
119135
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119323
119136
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
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=
|
|
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
|
|
119137
|
+
;// ./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=d1b92a60&prod&lang=scss&scoped=true
|
|
119330
119138
|
// extracted by mini-css-extract-plugin
|
|
119331
119139
|
|
|
119332
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=
|
|
119140
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=d1b92a60&prod&lang=scss&scoped=true
|
|
119333
119141
|
|
|
119334
119142
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119335
119143
|
|
|
@@ -119338,16 +119146,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119338
119146
|
;
|
|
119339
119147
|
|
|
119340
119148
|
|
|
119341
|
-
|
|
119342
119149
|
/* normalize component */
|
|
119343
119150
|
|
|
119344
119151
|
var TemplateList_component = normalizeComponent(
|
|
119345
119152
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119346
|
-
|
|
119347
|
-
|
|
119153
|
+
TemplateListvue_type_template_id_d1b92a60_scoped_true_render,
|
|
119154
|
+
TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns,
|
|
119348
119155
|
false,
|
|
119349
119156
|
null,
|
|
119350
|
-
"
|
|
119157
|
+
"d1b92a60",
|
|
119351
119158
|
null
|
|
119352
119159
|
|
|
119353
119160
|
)
|
|
@@ -121723,6 +121530,406 @@ function inviteEmailSave(data) {
|
|
|
121723
121530
|
function inviteEmailGet(taskId) {
|
|
121724
121531
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121725
121532
|
}
|
|
121533
|
+
;// ./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
|
|
121534
|
+
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render = function render() {
|
|
121535
|
+
var _vm = this,
|
|
121536
|
+
_c = _vm._self._c;
|
|
121537
|
+
return _c('el-dialog', {
|
|
121538
|
+
attrs: {
|
|
121539
|
+
"visible": _vm.visible,
|
|
121540
|
+
"title": "存为模版",
|
|
121541
|
+
"width": "480px",
|
|
121542
|
+
"before-close": _vm.closeDialog,
|
|
121543
|
+
"custom-class": "setting-nickname-dialog",
|
|
121544
|
+
"close-on-click-modal": false
|
|
121545
|
+
}
|
|
121546
|
+
}, [_c('div', {
|
|
121547
|
+
directives: [{
|
|
121548
|
+
name: "loading",
|
|
121549
|
+
rawName: "v-loading",
|
|
121550
|
+
value: _vm.loading,
|
|
121551
|
+
expression: "loading"
|
|
121552
|
+
}]
|
|
121553
|
+
}, [_c('el-form', {
|
|
121554
|
+
ref: "ruleForm",
|
|
121555
|
+
staticClass: "demo-ruleForm",
|
|
121556
|
+
attrs: {
|
|
121557
|
+
"label-position": "top",
|
|
121558
|
+
"model": _vm.ruleForm,
|
|
121559
|
+
"rules": _vm.rules,
|
|
121560
|
+
"label-width": "100px"
|
|
121561
|
+
}
|
|
121562
|
+
}, [_c('el-form-item', {
|
|
121563
|
+
attrs: {
|
|
121564
|
+
"label": "模版名称",
|
|
121565
|
+
"prop": "templatesTitle"
|
|
121566
|
+
}
|
|
121567
|
+
}, [_c('el-input', {
|
|
121568
|
+
attrs: {
|
|
121569
|
+
"clearable": ""
|
|
121570
|
+
},
|
|
121571
|
+
model: {
|
|
121572
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121573
|
+
callback: function ($$v) {
|
|
121574
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121575
|
+
},
|
|
121576
|
+
expression: "ruleForm.templatesTitle"
|
|
121577
|
+
}
|
|
121578
|
+
})], 1), _c('el-form-item', {
|
|
121579
|
+
attrs: {
|
|
121580
|
+
"label": "应用场景",
|
|
121581
|
+
"prop": "scene"
|
|
121582
|
+
}
|
|
121583
|
+
}, [_c('el-input', {
|
|
121584
|
+
attrs: {
|
|
121585
|
+
"clearable": ""
|
|
121586
|
+
},
|
|
121587
|
+
model: {
|
|
121588
|
+
value: _vm.ruleForm.scene,
|
|
121589
|
+
callback: function ($$v) {
|
|
121590
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121591
|
+
},
|
|
121592
|
+
expression: "ruleForm.scene"
|
|
121593
|
+
}
|
|
121594
|
+
})], 1), _c('el-form-item', {
|
|
121595
|
+
attrs: {
|
|
121596
|
+
"label": "语言",
|
|
121597
|
+
"prop": "modelLanguage"
|
|
121598
|
+
}
|
|
121599
|
+
}, [_c('el-select', {
|
|
121600
|
+
attrs: {
|
|
121601
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121602
|
+
"clearable": "",
|
|
121603
|
+
"filterable": ""
|
|
121604
|
+
},
|
|
121605
|
+
model: {
|
|
121606
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121607
|
+
callback: function ($$v) {
|
|
121608
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121609
|
+
},
|
|
121610
|
+
expression: "ruleForm.modelLanguage"
|
|
121611
|
+
}
|
|
121612
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121613
|
+
return _c('el-option', {
|
|
121614
|
+
key: item.value,
|
|
121615
|
+
attrs: {
|
|
121616
|
+
"value": item.value,
|
|
121617
|
+
"label": item.label
|
|
121618
|
+
}
|
|
121619
|
+
});
|
|
121620
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121621
|
+
attrs: {
|
|
121622
|
+
"label": "共享状态"
|
|
121623
|
+
}
|
|
121624
|
+
}, [_c('el-select', {
|
|
121625
|
+
attrs: {
|
|
121626
|
+
"clearable": "",
|
|
121627
|
+
"placeholder": "请选择共享状态"
|
|
121628
|
+
},
|
|
121629
|
+
model: {
|
|
121630
|
+
value: _vm.ruleForm.isShared,
|
|
121631
|
+
callback: function ($$v) {
|
|
121632
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121633
|
+
},
|
|
121634
|
+
expression: "ruleForm.isShared"
|
|
121635
|
+
}
|
|
121636
|
+
}, [_c('el-option', {
|
|
121637
|
+
key: 1,
|
|
121638
|
+
attrs: {
|
|
121639
|
+
"value": true,
|
|
121640
|
+
"label": "公开"
|
|
121641
|
+
}
|
|
121642
|
+
}), _c('el-option', {
|
|
121643
|
+
key: 2,
|
|
121644
|
+
attrs: {
|
|
121645
|
+
"value": false,
|
|
121646
|
+
"label": "私有"
|
|
121647
|
+
}
|
|
121648
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121649
|
+
staticClass: "footer-btn"
|
|
121650
|
+
}, [_c('el-button', {
|
|
121651
|
+
on: {
|
|
121652
|
+
"click": function ($event) {
|
|
121653
|
+
return _vm.resetForm('ruleForm');
|
|
121654
|
+
}
|
|
121655
|
+
}
|
|
121656
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121657
|
+
attrs: {
|
|
121658
|
+
"type": "primary",
|
|
121659
|
+
"loading": _vm.confirmBtnLoading
|
|
121660
|
+
},
|
|
121661
|
+
on: {
|
|
121662
|
+
"click": function ($event) {
|
|
121663
|
+
return _vm.submitForm('ruleForm');
|
|
121664
|
+
}
|
|
121665
|
+
}
|
|
121666
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121667
|
+
};
|
|
121668
|
+
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns = [];
|
|
121669
|
+
|
|
121670
|
+
;// ./src/api/mailData/index.js
|
|
121671
|
+
|
|
121672
|
+
|
|
121673
|
+
// 文件上传
|
|
121674
|
+
async function mailData_uploadFile(data) {
|
|
121675
|
+
let res = await post("/edm/mail/upload_file", data);
|
|
121676
|
+
return res;
|
|
121677
|
+
}
|
|
121678
|
+
// 邮件发送数据
|
|
121679
|
+
async function getSendList(data) {
|
|
121680
|
+
let res = await request_post("/edm/outbox/sendData", data);
|
|
121681
|
+
if (res.code === '0') {
|
|
121682
|
+
return res;
|
|
121683
|
+
}
|
|
121684
|
+
return null;
|
|
121685
|
+
}
|
|
121686
|
+
|
|
121687
|
+
// 邮件接收数据 inbox/receiveData
|
|
121688
|
+
async function getReceiveList(data) {
|
|
121689
|
+
let res = await request_post("/edm/inbox/receiveData", data);
|
|
121690
|
+
if (res) {
|
|
121691
|
+
return res;
|
|
121692
|
+
}
|
|
121693
|
+
return null;
|
|
121694
|
+
}
|
|
121695
|
+
|
|
121696
|
+
// 查看详情-收件数据
|
|
121697
|
+
async function mailData_getInboxDetail(id) {
|
|
121698
|
+
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
121699
|
+
if (res) {
|
|
121700
|
+
return res;
|
|
121701
|
+
}
|
|
121702
|
+
return null;
|
|
121703
|
+
}
|
|
121704
|
+
|
|
121705
|
+
// 查看会话-收件数据
|
|
121706
|
+
async function getInboxDialogue(chatId) {
|
|
121707
|
+
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
121708
|
+
if (res) {
|
|
121709
|
+
return res;
|
|
121710
|
+
}
|
|
121711
|
+
return null;
|
|
121712
|
+
}
|
|
121713
|
+
|
|
121714
|
+
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
121715
|
+
async function getInboxDialogue1(id) {
|
|
121716
|
+
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
121717
|
+
if (res) {
|
|
121718
|
+
return res;
|
|
121719
|
+
}
|
|
121720
|
+
return null;
|
|
121721
|
+
}
|
|
121722
|
+
|
|
121723
|
+
//发送详情
|
|
121724
|
+
async function getSendDetail(id) {
|
|
121725
|
+
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
121726
|
+
if (res.code === '0') {
|
|
121727
|
+
return res;
|
|
121728
|
+
}
|
|
121729
|
+
return null;
|
|
121730
|
+
}
|
|
121731
|
+
|
|
121732
|
+
// 发信详情 sendDetail/{id}
|
|
121733
|
+
async function getDetailReceive() {
|
|
121734
|
+
let res = await get(`/edm/inbox/receiveData`);
|
|
121735
|
+
if (res.code === '0') {
|
|
121736
|
+
return res;
|
|
121737
|
+
}
|
|
121738
|
+
return null;
|
|
121739
|
+
}
|
|
121740
|
+
|
|
121741
|
+
// 发件数据详情 --和邮件往来一样
|
|
121742
|
+
async function sendDetail(id) {
|
|
121743
|
+
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
121744
|
+
if (res.code === '0') {
|
|
121745
|
+
return res;
|
|
121746
|
+
}
|
|
121747
|
+
return null;
|
|
121748
|
+
}
|
|
121749
|
+
|
|
121750
|
+
// 收信详情
|
|
121751
|
+
async function getDetailSend(id) {
|
|
121752
|
+
let res = await get(`/edm/outbox/sendData`);
|
|
121753
|
+
if (res.code === '0') {
|
|
121754
|
+
return res;
|
|
121755
|
+
}
|
|
121756
|
+
return null;
|
|
121757
|
+
}
|
|
121758
|
+
|
|
121759
|
+
// 查看AI回复 - 发件
|
|
121760
|
+
async function AiReplyDetail(id) {
|
|
121761
|
+
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
121762
|
+
if (res) {
|
|
121763
|
+
return res;
|
|
121764
|
+
}
|
|
121765
|
+
return null;
|
|
121766
|
+
}
|
|
121767
|
+
|
|
121768
|
+
// 查看AI回复 收件
|
|
121769
|
+
async function aiReply(params) {
|
|
121770
|
+
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
121771
|
+
if (res) {
|
|
121772
|
+
return res;
|
|
121773
|
+
}
|
|
121774
|
+
return null;
|
|
121775
|
+
}
|
|
121776
|
+
|
|
121777
|
+
// 导出收信数据 /inbox/exportReceiveData
|
|
121778
|
+
async function exportReceiveData(params) {
|
|
121779
|
+
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
121780
|
+
if (res) {
|
|
121781
|
+
return res;
|
|
121782
|
+
}
|
|
121783
|
+
return null;
|
|
121784
|
+
}
|
|
121785
|
+
|
|
121786
|
+
// 导出发信数据 /outbox/exportSendData
|
|
121787
|
+
async function exportSendData(params) {
|
|
121788
|
+
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
121789
|
+
if (res) {
|
|
121790
|
+
return res;
|
|
121791
|
+
}
|
|
121792
|
+
return null;
|
|
121793
|
+
}
|
|
121794
|
+
// 保存模版
|
|
121795
|
+
|
|
121796
|
+
async function addTemplate(params) {
|
|
121797
|
+
let res = await request_post(`/edm/template/addTemplate`, params);
|
|
121798
|
+
if (res) {
|
|
121799
|
+
return res;
|
|
121800
|
+
}
|
|
121801
|
+
return null;
|
|
121802
|
+
}
|
|
121803
|
+
;// ./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
|
|
121804
|
+
|
|
121805
|
+
|
|
121806
|
+
|
|
121807
|
+
|
|
121808
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121809
|
+
props: {
|
|
121810
|
+
visible: {
|
|
121811
|
+
type: Boolean,
|
|
121812
|
+
default: false
|
|
121813
|
+
},
|
|
121814
|
+
mailTempList: {
|
|
121815
|
+
type: Array,
|
|
121816
|
+
default: () => []
|
|
121817
|
+
},
|
|
121818
|
+
tempProductCard: {
|
|
121819
|
+
type: String,
|
|
121820
|
+
default: ""
|
|
121821
|
+
}
|
|
121822
|
+
},
|
|
121823
|
+
data() {
|
|
121824
|
+
return {
|
|
121825
|
+
confirmBtnLoading: false,
|
|
121826
|
+
loading: false,
|
|
121827
|
+
ruleForm: {
|
|
121828
|
+
templatesTitle: "",
|
|
121829
|
+
scene: "",
|
|
121830
|
+
modelLanguage: "",
|
|
121831
|
+
isShared: false
|
|
121832
|
+
},
|
|
121833
|
+
rules: {
|
|
121834
|
+
templatesTitle: [{
|
|
121835
|
+
required: true,
|
|
121836
|
+
message: "请输入模版名称",
|
|
121837
|
+
trigger: "blur"
|
|
121838
|
+
}],
|
|
121839
|
+
modelLanguage: [{
|
|
121840
|
+
required: true,
|
|
121841
|
+
message: "请选择模版语言",
|
|
121842
|
+
trigger: "change"
|
|
121843
|
+
}],
|
|
121844
|
+
scene: [{
|
|
121845
|
+
required: true,
|
|
121846
|
+
message: "请输入应用场景",
|
|
121847
|
+
trigger: "change"
|
|
121848
|
+
}]
|
|
121849
|
+
},
|
|
121850
|
+
language: const_language
|
|
121851
|
+
};
|
|
121852
|
+
},
|
|
121853
|
+
created() {},
|
|
121854
|
+
methods: {
|
|
121855
|
+
// 处理邮件参数
|
|
121856
|
+
getMailParams() {
|
|
121857
|
+
// 处理邮件
|
|
121858
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121859
|
+
let content = "";
|
|
121860
|
+
if (currentMail.getReplyHtml()) {
|
|
121861
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121862
|
+
} else {
|
|
121863
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121864
|
+
}
|
|
121865
|
+
return {
|
|
121866
|
+
mailSubject: currentMail.subject,
|
|
121867
|
+
content,
|
|
121868
|
+
attachments: currentMail.fileList
|
|
121869
|
+
};
|
|
121870
|
+
},
|
|
121871
|
+
// 表单验证
|
|
121872
|
+
submitForm(formName) {
|
|
121873
|
+
const mailParams = this.getMailParams();
|
|
121874
|
+
this.$refs[formName].validate(valid => {
|
|
121875
|
+
if (valid) {
|
|
121876
|
+
const paramsObj = {
|
|
121877
|
+
...this.ruleForm,
|
|
121878
|
+
...mailParams
|
|
121879
|
+
};
|
|
121880
|
+
//新增
|
|
121881
|
+
addTemplate(paramsObj).then(res => {
|
|
121882
|
+
console.log(res, "resss");
|
|
121883
|
+
if (res.code == "0") {
|
|
121884
|
+
this.$message.success("保存成功");
|
|
121885
|
+
this.closeDialog();
|
|
121886
|
+
} else {
|
|
121887
|
+
this.$message.error(res.message);
|
|
121888
|
+
}
|
|
121889
|
+
});
|
|
121890
|
+
} else {
|
|
121891
|
+
console.log("error submit!!");
|
|
121892
|
+
return false;
|
|
121893
|
+
}
|
|
121894
|
+
});
|
|
121895
|
+
},
|
|
121896
|
+
resetForm(formName) {
|
|
121897
|
+
this.$refs[formName].resetFields();
|
|
121898
|
+
this.closeDialog();
|
|
121899
|
+
},
|
|
121900
|
+
closeDialog() {
|
|
121901
|
+
this.$emit("update:visible", false);
|
|
121902
|
+
}
|
|
121903
|
+
}
|
|
121904
|
+
});
|
|
121905
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121906
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121907
|
+
;// ./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
|
|
121908
|
+
// extracted by mini-css-extract-plugin
|
|
121909
|
+
|
|
121910
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121911
|
+
|
|
121912
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121913
|
+
|
|
121914
|
+
|
|
121915
|
+
|
|
121916
|
+
;
|
|
121917
|
+
|
|
121918
|
+
|
|
121919
|
+
/* normalize component */
|
|
121920
|
+
|
|
121921
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121922
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121923
|
+
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render,
|
|
121924
|
+
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns,
|
|
121925
|
+
false,
|
|
121926
|
+
null,
|
|
121927
|
+
"62cde375",
|
|
121928
|
+
null
|
|
121929
|
+
|
|
121930
|
+
)
|
|
121931
|
+
|
|
121932
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121726
121933
|
;// ./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
|
|
121727
121934
|
|
|
121728
121935
|
|
|
@@ -121764,6 +121971,7 @@ function inviteEmailGet(taskId) {
|
|
|
121764
121971
|
|
|
121765
121972
|
|
|
121766
121973
|
|
|
121974
|
+
|
|
121767
121975
|
|
|
121768
121976
|
|
|
121769
121977
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121786,7 +121994,8 @@ function inviteEmailGet(taskId) {
|
|
|
121786
121994
|
SignTextDrawer: signText,
|
|
121787
121995
|
MailTemplateDrawer: mailTemplate,
|
|
121788
121996
|
AiMailDialog: aiMail,
|
|
121789
|
-
MailOptimizeDrawer: mailOptimize
|
|
121997
|
+
MailOptimizeDrawer: mailOptimize,
|
|
121998
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121790
121999
|
},
|
|
121791
122000
|
props: {
|
|
121792
122001
|
// pm 添加
|
|
@@ -122015,7 +122224,11 @@ function inviteEmailGet(taskId) {
|
|
|
122015
122224
|
nickName: "",
|
|
122016
122225
|
// 发件人昵称
|
|
122017
122226
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122018
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122227
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122228
|
+
// 当前使用的AI平台
|
|
122229
|
+
saveMailTempDialogVisible: false,
|
|
122230
|
+
// 保存模版弹窗
|
|
122231
|
+
tempProductCard: '' // 模版产品卡
|
|
122019
122232
|
};
|
|
122020
122233
|
},
|
|
122021
122234
|
created() {
|
|
@@ -122091,6 +122304,18 @@ function inviteEmailGet(taskId) {
|
|
|
122091
122304
|
window.onbeforeunload = null;
|
|
122092
122305
|
},
|
|
122093
122306
|
methods: {
|
|
122307
|
+
// 保存邮件模版
|
|
122308
|
+
saveMailTemplate() {
|
|
122309
|
+
const currentMail = this.mailList.find(item => item.active);
|
|
122310
|
+
if (currentMail.subject == '') {
|
|
122311
|
+
this.$message.error('请输入邮件主题');
|
|
122312
|
+
return;
|
|
122313
|
+
}
|
|
122314
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122315
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122316
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122317
|
+
this.saveMailTempDialogVisible = true;
|
|
122318
|
+
},
|
|
122094
122319
|
// 初始化邮件模版
|
|
122095
122320
|
payInitTemplate() {
|
|
122096
122321
|
// 初始化收件人
|
|
@@ -122497,6 +122722,7 @@ function inviteEmailGet(taskId) {
|
|
|
122497
122722
|
active: idx === 0,
|
|
122498
122723
|
// 是否当前选中
|
|
122499
122724
|
isAiContent: false,
|
|
122725
|
+
templateId: item.templateId,
|
|
122500
122726
|
getContent: () => {},
|
|
122501
122727
|
getTextContent: () => {},
|
|
122502
122728
|
setContent: () => {},
|
|
@@ -122721,7 +122947,8 @@ function inviteEmailGet(taskId) {
|
|
|
122721
122947
|
id: item.id,
|
|
122722
122948
|
subject: item.subject,
|
|
122723
122949
|
content: content,
|
|
122724
|
-
attachments: item.fileList
|
|
122950
|
+
attachments: item.fileList,
|
|
122951
|
+
templateId: item.templateId
|
|
122725
122952
|
};
|
|
122726
122953
|
});
|
|
122727
122954
|
|
|
@@ -122898,7 +123125,8 @@ function inviteEmailGet(taskId) {
|
|
|
122898
123125
|
id: item.id,
|
|
122899
123126
|
subject: item.subject,
|
|
122900
123127
|
content: item.getContent() + " " + item.getReplyHtml() + sendProductCard,
|
|
122901
|
-
attachments: item.fileList
|
|
123128
|
+
attachments: item.fileList,
|
|
123129
|
+
templateId: item.templateId
|
|
122902
123130
|
};
|
|
122903
123131
|
});
|
|
122904
123132
|
// 处理红人
|
|
@@ -123051,15 +123279,38 @@ function inviteEmailGet(taskId) {
|
|
|
123051
123279
|
},
|
|
123052
123280
|
// 设置模板
|
|
123053
123281
|
setMailTemplate(data) {
|
|
123054
|
-
this.
|
|
123055
|
-
|
|
123056
|
-
|
|
123057
|
-
|
|
123058
|
-
|
|
123282
|
+
this.mailTemplateDrawerVisible = false;
|
|
123283
|
+
templatesDetail(data.id).then(res => {
|
|
123284
|
+
if (res.code == '0') {
|
|
123285
|
+
const detailObj = res.data;
|
|
123286
|
+
if (detailObj) {
|
|
123287
|
+
// 获取模版详情
|
|
123288
|
+
this.mailList.forEach(mail => {
|
|
123289
|
+
if (mail.active) {
|
|
123290
|
+
mail.subject = detailObj.mailSubject;
|
|
123291
|
+
mail.templateId = detailObj.id;
|
|
123292
|
+
mail.fileList = detailObj.attachmentRes;
|
|
123293
|
+
if (mail.setContent) {
|
|
123294
|
+
mail.setContent(detailObj.content);
|
|
123295
|
+
}
|
|
123296
|
+
}
|
|
123297
|
+
});
|
|
123298
|
+
// 商品卡相关逻辑
|
|
123299
|
+
if (detailObj.content) {
|
|
123300
|
+
let productCardStart = detailObj.content.indexOf('<product-card');
|
|
123301
|
+
let productCardEnd = detailObj.content.indexOf('</product-card>');
|
|
123302
|
+
let productCardHtml = detailObj.content.slice(productCardStart, productCardEnd + 15);
|
|
123303
|
+
const cardIdsMatch = productCardHtml.match(/cardids="([^"]+)"/);
|
|
123304
|
+
if (cardIdsMatch && cardIdsMatch[1]) {
|
|
123305
|
+
const cardIds = cardIdsMatch[1]; // 获取匹配到的cardids值
|
|
123306
|
+
this.addProductCard(cardIds.split(","));
|
|
123307
|
+
}
|
|
123308
|
+
}
|
|
123059
123309
|
}
|
|
123310
|
+
} else {
|
|
123311
|
+
this.$message.error(res.message);
|
|
123060
123312
|
}
|
|
123061
|
-
});
|
|
123062
|
-
this.mailTemplateDrawerVisible = false;
|
|
123313
|
+
}).catch(() => {});
|
|
123063
123314
|
},
|
|
123064
123315
|
// 设置签名
|
|
123065
123316
|
setMailSign(data) {
|
|
@@ -123398,15 +123649,15 @@ function inviteEmailGet(taskId) {
|
|
|
123398
123649
|
});
|
|
123399
123650
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123400
123651
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
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=
|
|
123652
|
+
;// ./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=4a0856bf&prod&lang=scss&scoped=true
|
|
123402
123653
|
// extracted by mini-css-extract-plugin
|
|
123403
123654
|
|
|
123404
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123655
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=4a0856bf&prod&lang=scss&scoped=true
|
|
123405
123656
|
|
|
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=
|
|
123657
|
+
;// ./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=4a0856bf&prod&lang=scss
|
|
123407
123658
|
// extracted by mini-css-extract-plugin
|
|
123408
123659
|
|
|
123409
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123660
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=4a0856bf&prod&lang=scss
|
|
123410
123661
|
|
|
123411
123662
|
;// ./src/package/write-email/index.vue
|
|
123412
123663
|
|
|
@@ -123420,11 +123671,11 @@ function inviteEmailGet(taskId) {
|
|
|
123420
123671
|
|
|
123421
123672
|
var write_email_component = normalizeComponent(
|
|
123422
123673
|
package_write_emailvue_type_script_lang_js,
|
|
123423
|
-
|
|
123424
|
-
|
|
123674
|
+
write_emailvue_type_template_id_4a0856bf_scoped_true_render,
|
|
123675
|
+
write_emailvue_type_template_id_4a0856bf_scoped_true_staticRenderFns,
|
|
123425
123676
|
false,
|
|
123426
123677
|
null,
|
|
123427
|
-
"
|
|
123678
|
+
"4a0856bf",
|
|
123428
123679
|
null
|
|
123429
123680
|
|
|
123430
123681
|
)
|
|
@@ -123491,8 +123742,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123491
123742
|
};
|
|
123492
123743
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123493
123744
|
|
|
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=
|
|
123495
|
-
var
|
|
123745
|
+
;// ./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=31e099df&scoped=true
|
|
123746
|
+
var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function render() {
|
|
123496
123747
|
var _vm = this,
|
|
123497
123748
|
_c = _vm._self._c;
|
|
123498
123749
|
return _c('div', {
|
|
@@ -123813,6 +124064,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123813
124064
|
}
|
|
123814
124065
|
})];
|
|
123815
124066
|
}
|
|
124067
|
+
}, {
|
|
124068
|
+
key: "operation",
|
|
124069
|
+
fn: function ({
|
|
124070
|
+
data
|
|
124071
|
+
}) {
|
|
124072
|
+
return [_c('el-link', {
|
|
124073
|
+
attrs: {
|
|
124074
|
+
"type": "primary",
|
|
124075
|
+
"size": "small",
|
|
124076
|
+
"underline": false
|
|
124077
|
+
},
|
|
124078
|
+
on: {
|
|
124079
|
+
"click": function ($event) {
|
|
124080
|
+
$event.stopPropagation();
|
|
124081
|
+
return _vm.recallMail(data.scope);
|
|
124082
|
+
}
|
|
124083
|
+
}
|
|
124084
|
+
}, [_vm._v("撤回")])];
|
|
124085
|
+
}
|
|
123816
124086
|
}])
|
|
123817
124087
|
}), _c('div', {
|
|
123818
124088
|
staticClass: "tool"
|
|
@@ -123854,7 +124124,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123854
124124
|
staticClass: "dss-iconfont"
|
|
123855
124125
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123856
124126
|
};
|
|
123857
|
-
var
|
|
124127
|
+
var singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns = [];
|
|
123858
124128
|
|
|
123859
124129
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123860
124130
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123942,6 +124212,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123942
124212
|
label: src_language.t("edm2.mailEn12"),
|
|
123943
124213
|
prop: "sendTime",
|
|
123944
124214
|
width: "200"
|
|
124215
|
+
}, {
|
|
124216
|
+
label: "操作",
|
|
124217
|
+
scope: "operation",
|
|
124218
|
+
width: "100"
|
|
123945
124219
|
}],
|
|
123946
124220
|
tableData: [],
|
|
123947
124221
|
loading: false,
|
|
@@ -123990,6 +124264,32 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123990
124264
|
localStorage.removeItem("searchFlag");
|
|
123991
124265
|
},
|
|
123992
124266
|
methods: {
|
|
124267
|
+
// 撤回邮件
|
|
124268
|
+
recallMail(row) {
|
|
124269
|
+
console.log(row, "row");
|
|
124270
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124271
|
+
confirmButtonText: "确定",
|
|
124272
|
+
cancelButtonText: "取消",
|
|
124273
|
+
type: "warning"
|
|
124274
|
+
}).then(() => {
|
|
124275
|
+
withdraw(row.id).then(res => {
|
|
124276
|
+
if (res.code == "0") {
|
|
124277
|
+
this.$message({
|
|
124278
|
+
type: "success",
|
|
124279
|
+
duration: 7000,
|
|
124280
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124281
|
+
});
|
|
124282
|
+
this.init();
|
|
124283
|
+
} else {
|
|
124284
|
+
this.$message({
|
|
124285
|
+
type: "error",
|
|
124286
|
+
duration: 7000,
|
|
124287
|
+
message: res.message
|
|
124288
|
+
});
|
|
124289
|
+
}
|
|
124290
|
+
});
|
|
124291
|
+
}).catch(() => {});
|
|
124292
|
+
},
|
|
123993
124293
|
// 主题-正文
|
|
123994
124294
|
changeContentMode(val) {
|
|
123995
124295
|
this.contentSelect = val;
|
|
@@ -124183,10 +124483,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124183
124483
|
});
|
|
124184
124484
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124185
124485
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
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=
|
|
124486
|
+
;// ./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=31e099df&prod&lang=scss&scoped=true
|
|
124187
124487
|
// extracted by mini-css-extract-plugin
|
|
124188
124488
|
|
|
124189
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124489
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=31e099df&prod&lang=scss&scoped=true
|
|
124190
124490
|
|
|
124191
124491
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124192
124492
|
|
|
@@ -124199,18 +124499,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124199
124499
|
|
|
124200
124500
|
var singleSendMail_component = normalizeComponent(
|
|
124201
124501
|
components_singleSendMailvue_type_script_lang_js,
|
|
124202
|
-
|
|
124203
|
-
|
|
124502
|
+
singleSendMailvue_type_template_id_31e099df_scoped_true_render,
|
|
124503
|
+
singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns,
|
|
124204
124504
|
false,
|
|
124205
124505
|
null,
|
|
124206
|
-
"
|
|
124506
|
+
"31e099df",
|
|
124207
124507
|
null
|
|
124208
124508
|
|
|
124209
124509
|
)
|
|
124210
124510
|
|
|
124211
124511
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
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=
|
|
124213
|
-
var
|
|
124512
|
+
;// ./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=561c9fe0&scoped=true
|
|
124513
|
+
var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function render() {
|
|
124214
124514
|
var _vm = this,
|
|
124215
124515
|
_c = _vm._self._c;
|
|
124216
124516
|
return _c('div', {
|
|
@@ -124500,6 +124800,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124500
124800
|
}
|
|
124501
124801
|
})];
|
|
124502
124802
|
}
|
|
124803
|
+
}, {
|
|
124804
|
+
key: "operation",
|
|
124805
|
+
fn: function ({
|
|
124806
|
+
data
|
|
124807
|
+
}) {
|
|
124808
|
+
return [_c('el-link', {
|
|
124809
|
+
attrs: {
|
|
124810
|
+
"type": "primary",
|
|
124811
|
+
"size": "small",
|
|
124812
|
+
"underline": false
|
|
124813
|
+
},
|
|
124814
|
+
on: {
|
|
124815
|
+
"click": function ($event) {
|
|
124816
|
+
$event.stopPropagation();
|
|
124817
|
+
return _vm.recallMail(data.scope);
|
|
124818
|
+
}
|
|
124819
|
+
}
|
|
124820
|
+
}, [_vm._v("撤回")])];
|
|
124821
|
+
}
|
|
124503
124822
|
}])
|
|
124504
124823
|
}), _c('div', {
|
|
124505
124824
|
staticClass: "tool"
|
|
@@ -124526,7 +124845,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124526
124845
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124527
124846
|
})])])])], 1)]);
|
|
124528
124847
|
};
|
|
124529
|
-
var
|
|
124848
|
+
var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
124530
124849
|
|
|
124531
124850
|
;// ./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
|
|
124532
124851
|
|
|
@@ -124598,6 +124917,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124598
124917
|
label: src_language.t("edm2.mailEn12"),
|
|
124599
124918
|
prop: "sendTime",
|
|
124600
124919
|
width: "200"
|
|
124920
|
+
}, {
|
|
124921
|
+
label: "操作",
|
|
124922
|
+
scope: "operation",
|
|
124923
|
+
width: "100"
|
|
124601
124924
|
}],
|
|
124602
124925
|
contentInput: "",
|
|
124603
124926
|
contentSelect: "1",
|
|
@@ -124649,6 +124972,32 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124649
124972
|
localStorage.removeItem("searchFlag");
|
|
124650
124973
|
},
|
|
124651
124974
|
methods: {
|
|
124975
|
+
// 撤回邮件
|
|
124976
|
+
recallMail(row) {
|
|
124977
|
+
console.log(row, "row");
|
|
124978
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124979
|
+
confirmButtonText: "确定",
|
|
124980
|
+
cancelButtonText: "取消",
|
|
124981
|
+
type: "warning"
|
|
124982
|
+
}).then(() => {
|
|
124983
|
+
withdraw(row.id).then(res => {
|
|
124984
|
+
if (res.code == "0") {
|
|
124985
|
+
this.$message({
|
|
124986
|
+
type: "success",
|
|
124987
|
+
duration: 7000,
|
|
124988
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124989
|
+
});
|
|
124990
|
+
this.init();
|
|
124991
|
+
} else {
|
|
124992
|
+
this.$message({
|
|
124993
|
+
type: "error",
|
|
124994
|
+
duration: 7000,
|
|
124995
|
+
message: res.message
|
|
124996
|
+
});
|
|
124997
|
+
}
|
|
124998
|
+
});
|
|
124999
|
+
}).catch(() => {});
|
|
125000
|
+
},
|
|
124652
125001
|
// 去除html标签
|
|
124653
125002
|
filterHtmlTag(str) {
|
|
124654
125003
|
if (str) {
|
|
@@ -124860,10 +125209,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124860
125209
|
});
|
|
124861
125210
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124862
125211
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
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=
|
|
125212
|
+
;// ./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=561c9fe0&prod&lang=scss&scoped=true
|
|
124864
125213
|
// extracted by mini-css-extract-plugin
|
|
124865
125214
|
|
|
124866
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125215
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=561c9fe0&prod&lang=scss&scoped=true
|
|
124867
125216
|
|
|
124868
125217
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124869
125218
|
|
|
@@ -124876,11 +125225,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124876
125225
|
|
|
124877
125226
|
var replySendMail_component = normalizeComponent(
|
|
124878
125227
|
components_replySendMailvue_type_script_lang_js,
|
|
124879
|
-
|
|
124880
|
-
|
|
125228
|
+
replySendMailvue_type_template_id_561c9fe0_scoped_true_render,
|
|
125229
|
+
replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns,
|
|
124881
125230
|
false,
|
|
124882
125231
|
null,
|
|
124883
|
-
"
|
|
125232
|
+
"561c9fe0",
|
|
124884
125233
|
null
|
|
124885
125234
|
|
|
124886
125235
|
)
|
|
@@ -126348,8 +126697,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126348
126697
|
)
|
|
126349
126698
|
|
|
126350
126699
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
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=
|
|
126352
|
-
var
|
|
126700
|
+
;// ./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=ad633b50&scoped=true
|
|
126701
|
+
var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
126353
126702
|
var _vm = this,
|
|
126354
126703
|
_c = _vm._self._c;
|
|
126355
126704
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126362,6 +126711,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126362
126711
|
}, [_c('i', {
|
|
126363
126712
|
staticClass: "el-icon-arrow-left"
|
|
126364
126713
|
})]), _c('div', {
|
|
126714
|
+
staticClass: "back recall_btn",
|
|
126715
|
+
on: {
|
|
126716
|
+
"click": _vm.recallMail
|
|
126717
|
+
}
|
|
126718
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126365
126719
|
staticClass: "mail-items-box"
|
|
126366
126720
|
}, [_c('div', {
|
|
126367
126721
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126588,7 +126942,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126588
126942
|
}
|
|
126589
126943
|
}) : _vm._e()], 1) : _vm._e();
|
|
126590
126944
|
};
|
|
126591
|
-
var
|
|
126945
|
+
var detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns = [function () {
|
|
126946
|
+
var _vm = this,
|
|
126947
|
+
_c = _vm._self._c;
|
|
126948
|
+
return _c('div', {
|
|
126949
|
+
staticClass: "re_box"
|
|
126950
|
+
}, [_c('i', {
|
|
126951
|
+
staticClass: "dss-iconfont btn_con"
|
|
126952
|
+
}, [_vm._v("")]), _c('span', {
|
|
126953
|
+
staticClass: "btn_con"
|
|
126954
|
+
}, [_vm._v("撤回")])]);
|
|
126955
|
+
}];
|
|
126956
|
+
|
|
126957
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=ad633b50&scoped=true
|
|
126592
126958
|
|
|
126593
126959
|
;// ./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
|
|
126594
126960
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126837,6 +127203,31 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126837
127203
|
localStorage.setItem("searchFlag", true);
|
|
126838
127204
|
},
|
|
126839
127205
|
methods: {
|
|
127206
|
+
// 撤回邮件
|
|
127207
|
+
recallMail() {
|
|
127208
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127209
|
+
confirmButtonText: "确定",
|
|
127210
|
+
cancelButtonText: "取消",
|
|
127211
|
+
type: "warning"
|
|
127212
|
+
}).then(() => {
|
|
127213
|
+
withdraw(this.$route.query.id).then(res => {
|
|
127214
|
+
if (res.code == "0") {
|
|
127215
|
+
this.$message({
|
|
127216
|
+
type: "success",
|
|
127217
|
+
duration: 7000,
|
|
127218
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127219
|
+
});
|
|
127220
|
+
this.backToOutbox();
|
|
127221
|
+
} else {
|
|
127222
|
+
this.$message({
|
|
127223
|
+
type: "error",
|
|
127224
|
+
duration: 7000,
|
|
127225
|
+
message: res.message
|
|
127226
|
+
});
|
|
127227
|
+
}
|
|
127228
|
+
});
|
|
127229
|
+
}).catch(() => {});
|
|
127230
|
+
},
|
|
126840
127231
|
// 红人档案侧抽
|
|
126841
127232
|
toBloggerDeatil(item) {
|
|
126842
127233
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126968,10 +127359,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126968
127359
|
});
|
|
126969
127360
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126970
127361
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
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=
|
|
127362
|
+
;// ./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=ad633b50&prod&lang=scss&scoped=true
|
|
126972
127363
|
// extracted by mini-css-extract-plugin
|
|
126973
127364
|
|
|
126974
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127365
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=ad633b50&prod&lang=scss&scoped=true
|
|
126975
127366
|
|
|
126976
127367
|
;// ./src/package/outbox-email/detail.vue
|
|
126977
127368
|
|
|
@@ -126984,11 +127375,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126984
127375
|
|
|
126985
127376
|
var outbox_email_detail_component = normalizeComponent(
|
|
126986
127377
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126987
|
-
|
|
126988
|
-
|
|
127378
|
+
detailvue_type_template_id_ad633b50_scoped_true_render,
|
|
127379
|
+
detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns,
|
|
126989
127380
|
false,
|
|
126990
127381
|
null,
|
|
126991
|
-
"
|
|
127382
|
+
"ad633b50",
|
|
126992
127383
|
null
|
|
126993
127384
|
|
|
126994
127385
|
)
|
|
@@ -127294,7 +127685,7 @@ async function mailList2(data) {
|
|
|
127294
127685
|
}
|
|
127295
127686
|
|
|
127296
127687
|
// 查看邮件往来里的发件详情
|
|
127297
|
-
async function
|
|
127688
|
+
async function blogmail_sendDetail(params) {
|
|
127298
127689
|
let res = await get(`/edm/mail/sendDetail/${params.id}`);
|
|
127299
127690
|
return res;
|
|
127300
127691
|
}
|
|
@@ -128539,130 +128930,6 @@ var Editorvue_type_template_id_16051201_scoped_true_render = function render() {
|
|
|
128539
128930
|
};
|
|
128540
128931
|
var Editorvue_type_template_id_16051201_scoped_true_staticRenderFns = [];
|
|
128541
128932
|
|
|
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
|
-
}
|
|
128666
128933
|
;// ./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
|
|
128667
128934
|
//import { uploadFile } from '@/api'
|
|
128668
128935
|
|
|
@@ -129803,7 +130070,7 @@ var AttachmentList_component = normalizeComponent(
|
|
|
129803
130070
|
methods: {
|
|
129804
130071
|
// 获取页面数据
|
|
129805
130072
|
initPageData() {
|
|
129806
|
-
|
|
130073
|
+
sendDetail(this.id).then(res => {
|
|
129807
130074
|
if (res) {
|
|
129808
130075
|
this.mailData = res.data;
|
|
129809
130076
|
}
|