wotokol-edm 1.1.14 → 1.1.15
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 +1208 -1032
- 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 +1064 -888
- 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
|
@@ -98665,6 +98665,14 @@ function delTags(id) {
|
|
|
98665
98665
|
function addTags(data) {
|
|
98666
98666
|
return request_post(`/edm/tag/addSign`, data);
|
|
98667
98667
|
}
|
|
98668
|
+
// 获取账号
|
|
98669
|
+
function hubUserSonFather(params) {
|
|
98670
|
+
return request_get(`/user/hubUser/sonFather`, params);
|
|
98671
|
+
}
|
|
98672
|
+
// 分页查看模板列表
|
|
98673
|
+
function templatesList(params) {
|
|
98674
|
+
return request_get(`/edm/template/templates`, params);
|
|
98675
|
+
}
|
|
98668
98676
|
;// ./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
98677
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98670
98678
|
var _vm = this,
|
|
@@ -106561,6 +106569,10 @@ function comeGoBloggerPage(data) {
|
|
|
106561
106569
|
function pagePlan(data) {
|
|
106562
106570
|
return post(`/user/popularize/pagePlan`, data);
|
|
106563
106571
|
}
|
|
106572
|
+
// 撤回邮件
|
|
106573
|
+
function withdraw(id) {
|
|
106574
|
+
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106575
|
+
}
|
|
106564
106576
|
;// ./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
|
|
106565
106577
|
|
|
106566
106578
|
|
|
@@ -109203,8 +109215,8 @@ var detail_component = normalizeComponent(
|
|
|
109203
109215
|
)
|
|
109204
109216
|
|
|
109205
109217
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
109206
|
-
;// ./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=
|
|
109207
|
-
var
|
|
109218
|
+
;// ./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=7011cdc3&scoped=true
|
|
109219
|
+
var write_emailvue_type_template_id_7011cdc3_scoped_true_render = function render() {
|
|
109208
109220
|
var _vm = this,
|
|
109209
109221
|
_c = _vm._self._c;
|
|
109210
109222
|
return _c('div', {
|
|
@@ -109569,7 +109581,17 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109569
109581
|
staticClass: "el-icon-loading"
|
|
109570
109582
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109571
109583
|
staticClass: "operate-right"
|
|
109572
|
-
}, [
|
|
109584
|
+
}, [_c('el-button', {
|
|
109585
|
+
staticClass: "operate-btn",
|
|
109586
|
+
attrs: {
|
|
109587
|
+
"disabled": _vm.loading
|
|
109588
|
+
},
|
|
109589
|
+
on: {
|
|
109590
|
+
"click": _vm.saveMailTemplate
|
|
109591
|
+
}
|
|
109592
|
+
}, [_vm.loading ? _c('i', {
|
|
109593
|
+
staticClass: "el-icon-loading"
|
|
109594
|
+
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109573
109595
|
staticClass: "operate-btn",
|
|
109574
109596
|
attrs: {
|
|
109575
109597
|
"disabled": _vm.loading
|
|
@@ -109934,9 +109956,20 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109934
109956
|
},
|
|
109935
109957
|
"updateNickName": val => _vm.nickName = val
|
|
109936
109958
|
}
|
|
109959
|
+
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109960
|
+
attrs: {
|
|
109961
|
+
"tempProductCard": _vm.tempProductCard,
|
|
109962
|
+
"mailTempList": _vm.mailList,
|
|
109963
|
+
"visible": _vm.saveMailTempDialogVisible
|
|
109964
|
+
},
|
|
109965
|
+
on: {
|
|
109966
|
+
"update:visible": function ($event) {
|
|
109967
|
+
_vm.saveMailTempDialogVisible = $event;
|
|
109968
|
+
}
|
|
109969
|
+
}
|
|
109937
109970
|
}) : _vm._e()], 1);
|
|
109938
109971
|
};
|
|
109939
|
-
var
|
|
109972
|
+
var write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns = [function () {
|
|
109940
109973
|
var _vm = this,
|
|
109941
109974
|
_c = _vm._self._c;
|
|
109942
109975
|
return _c('div', {
|
|
@@ -109957,7 +109990,7 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [func
|
|
|
109957
109990
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109958
109991
|
}];
|
|
109959
109992
|
|
|
109960
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
109993
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=7011cdc3&scoped=true
|
|
109961
109994
|
|
|
109962
109995
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109963
109996
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -114314,6 +114347,59 @@ const moneyTypeOpts = [{
|
|
|
114314
114347
|
code: "IDR",
|
|
114315
114348
|
symbol: "Rp"
|
|
114316
114349
|
}];
|
|
114350
|
+
const const_language = [{
|
|
114351
|
+
value: '7',
|
|
114352
|
+
label: '汉语',
|
|
114353
|
+
enLabel: 'Chinese'
|
|
114354
|
+
}, {
|
|
114355
|
+
value: '1',
|
|
114356
|
+
label: '英语',
|
|
114357
|
+
enLabel: 'English'
|
|
114358
|
+
}, {
|
|
114359
|
+
value: '3',
|
|
114360
|
+
label: '法语',
|
|
114361
|
+
enLabel: 'French'
|
|
114362
|
+
}, {
|
|
114363
|
+
value: '8',
|
|
114364
|
+
label: '德语',
|
|
114365
|
+
enLabel: 'German'
|
|
114366
|
+
}, {
|
|
114367
|
+
value: '6',
|
|
114368
|
+
label: '日语',
|
|
114369
|
+
enLabel: 'Japanese'
|
|
114370
|
+
}, {
|
|
114371
|
+
value: '9',
|
|
114372
|
+
label: '韩语',
|
|
114373
|
+
enLabel: 'Korean'
|
|
114374
|
+
}, {
|
|
114375
|
+
value: '10',
|
|
114376
|
+
label: '越南语',
|
|
114377
|
+
enLabel: 'Vietnamese'
|
|
114378
|
+
}, {
|
|
114379
|
+
value: '11',
|
|
114380
|
+
label: '泰国语',
|
|
114381
|
+
enLabel: 'Thai'
|
|
114382
|
+
}, {
|
|
114383
|
+
value: '12',
|
|
114384
|
+
label: '菲律宾语',
|
|
114385
|
+
enLabel: 'Filipino'
|
|
114386
|
+
}, {
|
|
114387
|
+
value: '13',
|
|
114388
|
+
label: '印度尼西亚语',
|
|
114389
|
+
enLabel: 'Indonesian'
|
|
114390
|
+
}, {
|
|
114391
|
+
value: '14',
|
|
114392
|
+
label: '俄罗斯语',
|
|
114393
|
+
enLabel: 'Russian'
|
|
114394
|
+
}, {
|
|
114395
|
+
value: '4',
|
|
114396
|
+
label: '西班牙语',
|
|
114397
|
+
enLabel: 'Spanish'
|
|
114398
|
+
}, {
|
|
114399
|
+
value: '15',
|
|
114400
|
+
label: '意大利语',
|
|
114401
|
+
enLabel: 'Italian'
|
|
114402
|
+
}];
|
|
114317
114403
|
;// ./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
|
|
114318
114404
|
|
|
114319
114405
|
|
|
@@ -118324,55 +118410,154 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118324
118410
|
};
|
|
118325
118411
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118326
118412
|
|
|
118327
|
-
;// ./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=
|
|
118328
|
-
|
|
118413
|
+
;// ./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=0aaac0a8&scoped=true
|
|
118414
|
+
|
|
118415
|
+
|
|
118416
|
+
var TemplateListvue_type_template_id_0aaac0a8_scoped_true_render = function render() {
|
|
118329
118417
|
var _vm = this,
|
|
118330
118418
|
_c = _vm._self._c;
|
|
118331
118419
|
return _c('div', {
|
|
118332
118420
|
staticClass: "wrap"
|
|
118333
118421
|
}, [_c('div', {
|
|
118334
|
-
staticClass: "
|
|
118422
|
+
staticClass: "inbox-search-wrap"
|
|
118423
|
+
}, [_c('el-row', {
|
|
118424
|
+
attrs: {
|
|
118425
|
+
"gutter": 12
|
|
118426
|
+
}
|
|
118427
|
+
}, [_c('el-col', {
|
|
118428
|
+
attrs: {
|
|
118429
|
+
"span": 8
|
|
118430
|
+
}
|
|
118335
118431
|
}, [_c('div', {
|
|
118336
|
-
staticClass: "
|
|
118432
|
+
staticClass: "col-item col-select-input-item"
|
|
118337
118433
|
}, [_c('el-select', {
|
|
118434
|
+
staticClass: "template_select",
|
|
118435
|
+
attrs: {
|
|
118436
|
+
"slot": "prepend",
|
|
118437
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118438
|
+
},
|
|
118338
118439
|
on: {
|
|
118339
118440
|
"change": function ($event) {
|
|
118340
|
-
_vm.searchForm.
|
|
118341
|
-
_vm.
|
|
118342
|
-
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118343
|
-
_vm.init();
|
|
118441
|
+
_vm.searchForm.scene = '';
|
|
118442
|
+
_vm.contentInput = '';
|
|
118344
118443
|
}
|
|
118345
118444
|
},
|
|
118445
|
+
slot: "prepend",
|
|
118346
118446
|
model: {
|
|
118347
|
-
value: _vm.
|
|
118447
|
+
value: _vm.contentSelect,
|
|
118348
118448
|
callback: function ($$v) {
|
|
118349
|
-
_vm
|
|
118449
|
+
_vm.contentSelect = $$v;
|
|
118350
118450
|
},
|
|
118351
|
-
expression: "
|
|
118451
|
+
expression: "contentSelect"
|
|
118352
118452
|
}
|
|
118353
118453
|
}, [_c('el-option', {
|
|
118354
118454
|
attrs: {
|
|
118355
|
-
"label":
|
|
118356
|
-
"value": 1
|
|
118455
|
+
"label": "模版名称",
|
|
118456
|
+
"value": "1"
|
|
118357
118457
|
}
|
|
118358
118458
|
}), _c('el-option', {
|
|
118359
118459
|
attrs: {
|
|
118360
|
-
"label":
|
|
118361
|
-
"value": 2
|
|
118460
|
+
"label": "应用场景",
|
|
118461
|
+
"value": "2"
|
|
118362
118462
|
}
|
|
118363
|
-
})], 1)
|
|
118364
|
-
staticClass: "
|
|
118463
|
+
})], 1), _vm.searchForm.modelType == 1 && _vm.contentSelect == 2 ? _c('div', {
|
|
118464
|
+
staticClass: "temp_right"
|
|
118365
118465
|
}, [_c('el-select', {
|
|
118366
118466
|
attrs: {
|
|
118367
|
-
"
|
|
118368
|
-
"
|
|
118467
|
+
"slot": "prepend",
|
|
118468
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118469
|
+
},
|
|
118470
|
+
slot: "prepend",
|
|
118471
|
+
model: {
|
|
118472
|
+
value: _vm.searchForm.scene,
|
|
118473
|
+
callback: function ($$v) {
|
|
118474
|
+
_vm.$set(_vm.searchForm, "scene", $$v);
|
|
118475
|
+
},
|
|
118476
|
+
expression: "searchForm.scene"
|
|
118477
|
+
}
|
|
118478
|
+
}, _vm._l(_vm.templateSystemScene, function (scene) {
|
|
118479
|
+
return _c('el-option', {
|
|
118480
|
+
key: scene.value,
|
|
118481
|
+
attrs: {
|
|
118482
|
+
"label": scene.label,
|
|
118483
|
+
"value": scene.value
|
|
118484
|
+
}
|
|
118485
|
+
});
|
|
118486
|
+
}), 1)], 1) : _c('div', {
|
|
118487
|
+
staticClass: "temp_right"
|
|
118488
|
+
}, [_c('el-input', {
|
|
118489
|
+
staticClass: "col-input-select",
|
|
118490
|
+
attrs: {
|
|
118491
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118492
|
+
},
|
|
118493
|
+
model: {
|
|
118494
|
+
value: _vm.contentInput,
|
|
118495
|
+
callback: function ($$v) {
|
|
118496
|
+
_vm.contentInput = $$v;
|
|
118497
|
+
},
|
|
118498
|
+
expression: "contentInput"
|
|
118499
|
+
}
|
|
118500
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118501
|
+
attrs: {
|
|
118502
|
+
"span": 8
|
|
118503
|
+
}
|
|
118504
|
+
}, [_c('div', {
|
|
118505
|
+
staticClass: "col-item col-select-input-item"
|
|
118506
|
+
}, [_c('el-input', {
|
|
118507
|
+
staticClass: "col-input-select",
|
|
118508
|
+
attrs: {
|
|
118509
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118510
|
+
},
|
|
118511
|
+
model: {
|
|
118512
|
+
value: _vm.mailTitleInput,
|
|
118513
|
+
callback: function ($$v) {
|
|
118514
|
+
_vm.mailTitleInput = $$v;
|
|
118515
|
+
},
|
|
118516
|
+
expression: "mailTitleInput"
|
|
118517
|
+
}
|
|
118518
|
+
}, [_c('el-select', {
|
|
118519
|
+
attrs: {
|
|
118520
|
+
"slot": "prepend",
|
|
118521
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118369
118522
|
},
|
|
118370
118523
|
on: {
|
|
118371
118524
|
"change": function ($event) {
|
|
118372
|
-
_vm.
|
|
118373
|
-
_vm.init();
|
|
118525
|
+
_vm.mailTitleInput = '';
|
|
118374
118526
|
}
|
|
118375
118527
|
},
|
|
118528
|
+
slot: "prepend",
|
|
118529
|
+
model: {
|
|
118530
|
+
value: _vm.mailTitleSelect,
|
|
118531
|
+
callback: function ($$v) {
|
|
118532
|
+
_vm.mailTitleSelect = $$v;
|
|
118533
|
+
},
|
|
118534
|
+
expression: "mailTitleSelect"
|
|
118535
|
+
}
|
|
118536
|
+
}, [_c('el-option', {
|
|
118537
|
+
attrs: {
|
|
118538
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118539
|
+
"value": "1"
|
|
118540
|
+
}
|
|
118541
|
+
}), _c('el-option', {
|
|
118542
|
+
attrs: {
|
|
118543
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118544
|
+
"value": "2"
|
|
118545
|
+
}
|
|
118546
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118547
|
+
attrs: {
|
|
118548
|
+
"span": 8
|
|
118549
|
+
}
|
|
118550
|
+
}, [_c('div', {
|
|
118551
|
+
staticClass: "col-item"
|
|
118552
|
+
}, [_c('span', {
|
|
118553
|
+
staticClass: "col-span"
|
|
118554
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118555
|
+
staticClass: "col-select",
|
|
118556
|
+
attrs: {
|
|
118557
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118558
|
+
"clearable": "",
|
|
118559
|
+
"filterable": ""
|
|
118560
|
+
},
|
|
118376
118561
|
model: {
|
|
118377
118562
|
value: _vm.searchForm.modelLanguage,
|
|
118378
118563
|
callback: function ($$v) {
|
|
@@ -118380,28 +118565,34 @@ var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function rend
|
|
|
118380
118565
|
},
|
|
118381
118566
|
expression: "searchForm.modelLanguage"
|
|
118382
118567
|
}
|
|
118383
|
-
}, _vm._l(_vm.
|
|
118568
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118384
118569
|
return _c('el-option', {
|
|
118385
|
-
key:
|
|
118570
|
+
key: item.value,
|
|
118386
118571
|
attrs: {
|
|
118387
|
-
"value":
|
|
118388
|
-
"label":
|
|
118572
|
+
"value": item.value,
|
|
118573
|
+
"label": item.label
|
|
118389
118574
|
}
|
|
118390
118575
|
});
|
|
118391
|
-
}), 1)], 1), _c('
|
|
118392
|
-
|
|
118393
|
-
|
|
118394
|
-
|
|
118395
|
-
|
|
118396
|
-
"
|
|
118397
|
-
_vm.isShowSet = true;
|
|
118398
|
-
}
|
|
118576
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118577
|
+
staticStyle: {
|
|
118578
|
+
"margin-top": "8px"
|
|
118579
|
+
},
|
|
118580
|
+
attrs: {
|
|
118581
|
+
"gutter": 12
|
|
118399
118582
|
}
|
|
118400
|
-
}, [
|
|
118401
|
-
|
|
118402
|
-
|
|
118403
|
-
|
|
118404
|
-
|
|
118583
|
+
}, [_c('el-col', {
|
|
118584
|
+
attrs: {
|
|
118585
|
+
"span": 8
|
|
118586
|
+
}
|
|
118587
|
+
}, [_c('div', {
|
|
118588
|
+
staticClass: "col-item"
|
|
118589
|
+
}, [_c('span', {
|
|
118590
|
+
staticClass: "col-span"
|
|
118591
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118592
|
+
staticClass: "col-select",
|
|
118593
|
+
attrs: {
|
|
118594
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118595
|
+
"clearable": ""
|
|
118405
118596
|
},
|
|
118406
118597
|
model: {
|
|
118407
118598
|
value: _vm.searchForm.modelType,
|
|
@@ -118410,755 +118601,382 @@ var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function rend
|
|
|
118410
118601
|
},
|
|
118411
118602
|
expression: "searchForm.modelType"
|
|
118412
118603
|
}
|
|
118413
|
-
},
|
|
118414
|
-
|
|
118415
|
-
|
|
118604
|
+
}, [_c('el-option', {
|
|
118605
|
+
key: 1,
|
|
118606
|
+
attrs: {
|
|
118607
|
+
"value": 1,
|
|
118608
|
+
"label": "系统模版"
|
|
118609
|
+
}
|
|
118610
|
+
}), _c('el-option', {
|
|
118611
|
+
key: 2,
|
|
118612
|
+
attrs: {
|
|
118613
|
+
"value": 2,
|
|
118614
|
+
"label": "自定义模版"
|
|
118615
|
+
}
|
|
118616
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118617
|
+
attrs: {
|
|
118618
|
+
"span": 8
|
|
118619
|
+
}
|
|
118620
|
+
}, [_c('div', {
|
|
118621
|
+
staticClass: "col-item"
|
|
118622
|
+
}, [_c('span', {
|
|
118623
|
+
staticClass: "col-span"
|
|
118624
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118625
|
+
staticClass: "col-select",
|
|
118626
|
+
attrs: {
|
|
118627
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118628
|
+
"clearable": ""
|
|
118629
|
+
},
|
|
118630
|
+
model: {
|
|
118631
|
+
value: _vm.searchForm.isShared,
|
|
118632
|
+
callback: function ($$v) {
|
|
118633
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118634
|
+
},
|
|
118635
|
+
expression: "searchForm.isShared"
|
|
118636
|
+
}
|
|
118637
|
+
}, [_c('el-option', {
|
|
118638
|
+
key: 1,
|
|
118639
|
+
attrs: {
|
|
118640
|
+
"value": true,
|
|
118641
|
+
"label": "公开"
|
|
118642
|
+
}
|
|
118643
|
+
}), _c('el-option', {
|
|
118644
|
+
key: 2,
|
|
118645
|
+
attrs: {
|
|
118646
|
+
"value": false,
|
|
118647
|
+
"label": "私有"
|
|
118648
|
+
}
|
|
118649
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118650
|
+
attrs: {
|
|
118651
|
+
"span": 8
|
|
118652
|
+
}
|
|
118653
|
+
}, [_c('div', {
|
|
118654
|
+
staticClass: "col-item"
|
|
118655
|
+
}, [_c('span', {
|
|
118656
|
+
staticClass: "col-span"
|
|
118657
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118658
|
+
staticClass: "col-select",
|
|
118659
|
+
attrs: {
|
|
118660
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118661
|
+
"clearable": "",
|
|
118662
|
+
"filterable": ""
|
|
118663
|
+
},
|
|
118664
|
+
model: {
|
|
118665
|
+
value: _vm.searchForm.createdUser,
|
|
118666
|
+
callback: function ($$v) {
|
|
118667
|
+
_vm.$set(_vm.searchForm, "createdUser", $$v);
|
|
118668
|
+
},
|
|
118669
|
+
expression: "searchForm.createdUser"
|
|
118670
|
+
}
|
|
118671
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118672
|
+
return _c('el-option', {
|
|
118673
|
+
key: item.userId,
|
|
118416
118674
|
attrs: {
|
|
118417
|
-
"
|
|
118418
|
-
"
|
|
118675
|
+
"label": item.userName,
|
|
118676
|
+
"value": item.userId
|
|
118419
118677
|
}
|
|
118420
118678
|
});
|
|
118421
|
-
}), 1)], 1)
|
|
118422
|
-
|
|
118423
|
-
|
|
118424
|
-
rawName: "v-loading",
|
|
118425
|
-
value: _vm.loading,
|
|
118426
|
-
expression: "loading"
|
|
118427
|
-
}],
|
|
118428
|
-
staticClass: "list hidden-scrollbar"
|
|
118429
|
-
}, [_vm.tableTotal ? _vm._l(_vm.tableData, function (t, i) {
|
|
118430
|
-
return _c('div', {
|
|
118431
|
-
key: i,
|
|
118432
|
-
staticClass: "list-item grid grid-cols-2 mb16"
|
|
118433
|
-
}, [_c('div', {
|
|
118434
|
-
staticClass: "desc"
|
|
118435
|
-
}, [_c('h3', {
|
|
118436
|
-
staticClass: "beyond_eip mb16"
|
|
118437
|
-
}, [_vm._v(" " + _vm._s(t.templatesTitle) + " ")]), _c('p', {
|
|
118438
|
-
staticClass: "beyond_eip mb8"
|
|
118439
|
-
}, [_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', {
|
|
118440
|
-
staticClass: "operate"
|
|
118441
|
-
}, [_c('button', {
|
|
118442
|
-
staticClass: "operate-detail",
|
|
118443
|
-
on: {
|
|
118444
|
-
"click": function ($event) {
|
|
118445
|
-
return _vm.showSetTemplate(t);
|
|
118446
|
-
}
|
|
118447
|
-
}
|
|
118448
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.detail"))), _c('i', {
|
|
118449
|
-
staticClass: "dss-iconfont icon-arrow"
|
|
118450
|
-
})]), _c('div', {
|
|
118451
|
-
staticClass: "operate-btns"
|
|
118452
|
-
}, [_vm.searchForm.type == 2 || _vm.searchForm.type == 1 && _vm.userId == 1 ? _c('button', {
|
|
118453
|
-
staticClass: "operate-btn operate-btn-linear mr8",
|
|
118454
|
-
on: {
|
|
118455
|
-
"click": function ($event) {
|
|
118456
|
-
return _vm.del(t.id);
|
|
118457
|
-
}
|
|
118458
|
-
}
|
|
118459
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.delete")) + " ")]) : _vm._e(), _vm.searchForm.type === 2 && _vm.userId === 1 ? _c('el-button', {
|
|
118460
|
-
staticClass: "operate-btn-setsys mr8",
|
|
118461
|
-
attrs: {
|
|
118462
|
-
"type": "primary",
|
|
118463
|
-
"size": "small"
|
|
118464
|
-
},
|
|
118465
|
-
on: {
|
|
118466
|
-
"click": function ($event) {
|
|
118467
|
-
return _vm.showSetSystem(t);
|
|
118468
|
-
}
|
|
118469
|
-
}
|
|
118470
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.set_system_template")) + " ")]) : _vm._e(), t.isShowDownload === 1 ? _c('el-button', {
|
|
118471
|
-
staticClass: "mr8",
|
|
118472
|
-
attrs: {
|
|
118473
|
-
"type": "primary",
|
|
118474
|
-
"size": "small"
|
|
118475
|
-
},
|
|
118476
|
-
on: {
|
|
118477
|
-
"click": function ($event) {
|
|
118478
|
-
return _vm.downloadTem(t);
|
|
118479
|
-
}
|
|
118480
|
-
}
|
|
118481
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.download")) + " ")]) : _vm._e(), _c('el-button', {
|
|
118482
|
-
attrs: {
|
|
118483
|
-
"type": "primary",
|
|
118484
|
-
"size": "small"
|
|
118485
|
-
},
|
|
118486
|
-
on: {
|
|
118487
|
-
"click": function ($event) {
|
|
118488
|
-
return _vm.setMailTemplate(t);
|
|
118489
|
-
}
|
|
118490
|
-
}
|
|
118491
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.apply")) + " ")])], 1)])]);
|
|
118492
|
-
}) : _vm._e(), !_vm.tableTotal ? _c('div', {
|
|
118493
|
-
staticClass: "w-full h-full flex items-center justify-center"
|
|
118494
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.no_data")) + " ")]) : _vm._e()], 2), _c('div', {
|
|
118495
|
-
staticClass: "list-page"
|
|
118496
|
-
}, [_c('el-pagination', {
|
|
118497
|
-
attrs: {
|
|
118498
|
-
"current-page": _vm.searchForm.currentPage,
|
|
118499
|
-
"total": _vm.tableTotal,
|
|
118500
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118501
|
-
"pager-count": 5,
|
|
118502
|
-
"small": "",
|
|
118503
|
-
"layout": "total, prev, pager, next, jumper"
|
|
118679
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118680
|
+
staticStyle: {
|
|
118681
|
+
"margin-top": "8px"
|
|
118504
118682
|
},
|
|
118505
|
-
|
|
118506
|
-
"
|
|
118683
|
+
attrs: {
|
|
118684
|
+
"gutter": 20
|
|
118507
118685
|
}
|
|
118508
|
-
}
|
|
118686
|
+
}, [_c('el-col', {
|
|
118509
118687
|
attrs: {
|
|
118510
|
-
"
|
|
118511
|
-
"with-header": false,
|
|
118512
|
-
"wrapper-closable": false,
|
|
118513
|
-
"append-to-body": "",
|
|
118514
|
-
"size": "800px"
|
|
118515
|
-
},
|
|
118516
|
-
on: {
|
|
118517
|
-
"update:visible": function ($event) {
|
|
118518
|
-
_vm.isShowSet = $event;
|
|
118519
|
-
}
|
|
118688
|
+
"span": 24
|
|
118520
118689
|
}
|
|
118521
|
-
}, [
|
|
118690
|
+
}, [_c('div', {
|
|
118691
|
+
staticClass: "btns_box"
|
|
118692
|
+
}, [_c('div', [_c('el-button', {
|
|
118522
118693
|
attrs: {
|
|
118523
|
-
"
|
|
118524
|
-
"rowData": _vm.rowData,
|
|
118525
|
-
"selectType": _vm.searchForm.type
|
|
118694
|
+
"type": "primary"
|
|
118526
118695
|
},
|
|
118527
118696
|
on: {
|
|
118528
|
-
"
|
|
118697
|
+
"click": function ($event) {
|
|
118529
118698
|
_vm.searchForm.currentPage = 1;
|
|
118530
|
-
_vm.
|
|
118531
|
-
},
|
|
118532
|
-
"close": function ($event) {
|
|
118533
|
-
_vm.setId = 0;
|
|
118534
|
-
_vm.isShowSet = false;
|
|
118699
|
+
_vm.getCardList();
|
|
118535
118700
|
}
|
|
118536
118701
|
}
|
|
118537
|
-
}
|
|
118538
|
-
attrs: {
|
|
118539
|
-
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118540
|
-
"tabOpts": _vm.tabOpts,
|
|
118541
|
-
"mailId": _vm.mailId
|
|
118542
|
-
},
|
|
118543
|
-
on: {
|
|
118544
|
-
"closeDialog": _vm.closeDialog
|
|
118545
|
-
}
|
|
118546
|
-
}) : _vm._e()], 1);
|
|
118547
|
-
};
|
|
118548
|
-
var TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns = [];
|
|
118549
|
-
|
|
118550
|
-
;// ./src/api/send/template.js
|
|
118551
|
-
|
|
118552
|
-
// 分页查看模板列表
|
|
118553
|
-
async function getTemplateList(params) {
|
|
118554
|
-
let res = await request_get("/edm/template/templates", params);
|
|
118555
|
-
return res;
|
|
118556
|
-
}
|
|
118557
|
-
// 添加模板
|
|
118558
|
-
async function addTemplate(data) {
|
|
118559
|
-
let res = await request_post("/edm/template/addTemplate", data);
|
|
118560
|
-
return res;
|
|
118561
|
-
}
|
|
118562
|
-
// 编辑模板
|
|
118563
|
-
async function editTemplate(data) {
|
|
118564
|
-
let res = await request_post("/edm/template/editTemplate", data);
|
|
118565
|
-
return res;
|
|
118566
|
-
}
|
|
118567
|
-
// 删除模板
|
|
118568
|
-
async function delTemplate(data) {
|
|
118569
|
-
let res = await request_del(`/edm/template/delTemplate/${data.id}`);
|
|
118570
|
-
return res;
|
|
118571
|
-
}
|
|
118572
|
-
// 设为系统模版
|
|
118573
|
-
async function setSysTemplate(data) {
|
|
118574
|
-
let res = await request_put(`/edm/template/setSysTemplate`, data);
|
|
118575
|
-
return res;
|
|
118576
|
-
}
|
|
118577
|
-
;// ./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
|
|
118578
|
-
var SetTemplatevue_type_template_id_87417d06_scoped_true_render = function render() {
|
|
118579
|
-
var _vm = this,
|
|
118580
|
-
_c = _vm._self._c;
|
|
118581
|
-
return _c('div', {
|
|
118582
|
-
staticClass: "drawer"
|
|
118583
|
-
}, [_c('div', {
|
|
118584
|
-
staticClass: "drawer-head"
|
|
118585
|
-
}, [_c('h3', [_vm._v(" " + _vm._s(_vm.id ? `${_vm.$i18n.t("template.edit_template")}` : `${_vm.$i18n.t("template.new_template")}`) + " ")]), _c('button', {
|
|
118586
|
-
staticClass: "close-btn",
|
|
118702
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118587
118703
|
on: {
|
|
118588
|
-
"click":
|
|
118589
|
-
return _vm.close();
|
|
118590
|
-
}
|
|
118704
|
+
"click": _vm.resetEvt
|
|
118591
118705
|
}
|
|
118592
|
-
}, [_c('
|
|
118593
|
-
|
|
118594
|
-
|
|
118595
|
-
|
|
118596
|
-
}, [_c('el-form', {
|
|
118597
|
-
ref: "form",
|
|
118598
|
-
attrs: {
|
|
118599
|
-
"model": _vm.form,
|
|
118600
|
-
"rules": _vm.verifyForm
|
|
118706
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118707
|
+
staticStyle: {
|
|
118708
|
+
"display": "flex",
|
|
118709
|
+
"align-items": "center"
|
|
118601
118710
|
}
|
|
118602
118711
|
}, [_c('div', {
|
|
118603
|
-
staticClass: "
|
|
118604
|
-
}, [_c('
|
|
118605
|
-
attrs: {
|
|
118606
|
-
"prop": "templatesTitle"
|
|
118607
|
-
}
|
|
118608
|
-
}, [_c('el-input', {
|
|
118712
|
+
staticClass: "right_sort"
|
|
118713
|
+
}, [_c('el-dropdown', {
|
|
118609
118714
|
attrs: {
|
|
118610
|
-
"
|
|
118611
|
-
"placeholder": _vm.$i18n.t('common.please_input') + `(30` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118612
|
-
"clearable": ""
|
|
118613
|
-
},
|
|
118614
|
-
model: {
|
|
118615
|
-
value: _vm.form.templatesTitle,
|
|
118616
|
-
callback: function ($$v) {
|
|
118617
|
-
_vm.$set(_vm.form, "templatesTitle", $$v);
|
|
118618
|
-
},
|
|
118619
|
-
expression: "form.templatesTitle"
|
|
118715
|
+
"placement": "bottom"
|
|
118620
118716
|
}
|
|
118621
|
-
})], 1)], 1), _c('div', {
|
|
118622
|
-
staticClass: "form-item"
|
|
118623
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
|
|
118624
|
-
attrs: {
|
|
118625
|
-
"prop": "mailSubject"
|
|
118626
|
-
}
|
|
118627
|
-
}, [_c('el-input', {
|
|
118628
|
-
ref: "mailSubjectIpt",
|
|
118629
|
-
attrs: {
|
|
118630
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118631
|
-
"placeholder": _vm.$i18n.t('common.please_input'),
|
|
118632
|
-
"clearable": ""
|
|
118633
|
-
},
|
|
118634
|
-
on: {
|
|
118635
|
-
"focus": function ($event) {
|
|
118636
|
-
_vm.isFocusSubject = true;
|
|
118637
|
-
}
|
|
118638
|
-
},
|
|
118639
|
-
model: {
|
|
118640
|
-
value: _vm.form.mailSubject,
|
|
118641
|
-
callback: function ($$v) {
|
|
118642
|
-
_vm.$set(_vm.form, "mailSubject", $$v);
|
|
118643
|
-
},
|
|
118644
|
-
expression: "form.mailSubject"
|
|
118645
|
-
}
|
|
118646
|
-
})], 1)], 1), _c('div', {
|
|
118647
|
-
staticClass: "form-editor mb24"
|
|
118648
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.content")))]), _c('div', {
|
|
118649
|
-
staticClass: "form-editor-wrap"
|
|
118650
|
-
}, [_c('editor', {
|
|
118651
|
-
ref: "templateContent",
|
|
118652
|
-
attrs: {
|
|
118653
|
-
"height": 400,
|
|
118654
|
-
"theme": "light"
|
|
118655
|
-
},
|
|
118656
|
-
on: {
|
|
118657
|
-
"click": function ($event) {
|
|
118658
|
-
_vm.isFocusSubject = false;
|
|
118659
|
-
}
|
|
118660
|
-
}
|
|
118661
|
-
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118662
|
-
staticClass: "form-tool"
|
|
118663
118717
|
}, [_c('div', {
|
|
118664
|
-
staticClass: "
|
|
118718
|
+
staticClass: "sort_btn"
|
|
118665
118719
|
}, [_c('i', {
|
|
118666
|
-
staticClass: "dss-iconfont
|
|
118667
|
-
}
|
|
118668
|
-
staticClass: "form-tool-main"
|
|
118669
|
-
}, [_c('button', {
|
|
118670
|
-
staticClass: "mb8 mr16",
|
|
118671
|
-
attrs: {
|
|
118672
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118673
|
-
},
|
|
118674
|
-
on: {
|
|
118675
|
-
"click": function ($event) {
|
|
118676
|
-
$event.preventDefault();
|
|
118677
|
-
return _vm.setVariable(0);
|
|
118678
|
-
}
|
|
118679
|
-
}
|
|
118680
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_name")) + " ")]), _c('button', {
|
|
118681
|
-
staticClass: "mb8 mr16",
|
|
118682
|
-
on: {
|
|
118683
|
-
"click": function ($event) {
|
|
118684
|
-
$event.preventDefault();
|
|
118685
|
-
return _vm.setVariable(3);
|
|
118686
|
-
}
|
|
118687
|
-
}
|
|
118688
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_Id")) + " ")]), _c('button', {
|
|
118689
|
-
staticClass: "mb8 mr16",
|
|
118690
|
-
attrs: {
|
|
118691
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118692
|
-
},
|
|
118693
|
-
on: {
|
|
118694
|
-
"click": function ($event) {
|
|
118695
|
-
$event.preventDefault();
|
|
118696
|
-
return _vm.setVariable(1);
|
|
118697
|
-
}
|
|
118698
|
-
}
|
|
118699
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.fans_num")) + " ")]), _c('button', {
|
|
118700
|
-
attrs: {
|
|
118701
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118702
|
-
},
|
|
118703
|
-
on: {
|
|
118704
|
-
"click": function ($event) {
|
|
118705
|
-
$event.preventDefault();
|
|
118706
|
-
return _vm.setVariable(2);
|
|
118707
|
-
}
|
|
118708
|
-
}
|
|
118709
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_link")) + " ")])])]) : _vm._e()], 1)]), _c('div', {
|
|
118710
|
-
staticClass: "form-item"
|
|
118711
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118712
|
-
attrs: {
|
|
118713
|
-
"prop": "scene"
|
|
118714
|
-
}
|
|
118715
|
-
}, [_c('el-input', {
|
|
118716
|
-
attrs: {
|
|
118717
|
-
"placeholder": _vm.$i18n.t('common.please_input') + `(20` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118718
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118719
|
-
"clearable": ""
|
|
118720
|
-
},
|
|
118721
|
-
model: {
|
|
118722
|
-
value: _vm.form.scene,
|
|
118723
|
-
callback: function ($$v) {
|
|
118724
|
-
_vm.$set(_vm.form, "scene", $$v);
|
|
118725
|
-
},
|
|
118726
|
-
expression: "form.scene"
|
|
118727
|
-
}
|
|
118728
|
-
})], 1)], 1), _c('div', {
|
|
118729
|
-
staticClass: "form-item mb24"
|
|
118730
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118731
|
-
attrs: {
|
|
118732
|
-
"prop": "modelLanguage"
|
|
118733
|
-
}
|
|
118734
|
-
}, [_c('el-select', {
|
|
118720
|
+
staticClass: "dss-iconfont"
|
|
118721
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118735
118722
|
attrs: {
|
|
118736
|
-
"
|
|
118737
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118738
|
-
"clearable": ""
|
|
118723
|
+
"slot": "dropdown"
|
|
118739
118724
|
},
|
|
118740
|
-
|
|
118741
|
-
|
|
118742
|
-
|
|
118743
|
-
|
|
118725
|
+
slot: "dropdown"
|
|
118726
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118727
|
+
return _c('el-dropdown-item', {
|
|
118728
|
+
key: index,
|
|
118729
|
+
staticStyle: {
|
|
118730
|
+
"white-space": "nowrap"
|
|
118744
118731
|
},
|
|
118745
|
-
expression: "form.modelLanguage"
|
|
118746
|
-
}
|
|
118747
|
-
}, _vm._l(_vm.enumData.language, function (t, i) {
|
|
118748
|
-
return _c('el-option', {
|
|
118749
|
-
key: i,
|
|
118750
118732
|
attrs: {
|
|
118751
|
-
"
|
|
118752
|
-
"label": t.label
|
|
118753
|
-
}
|
|
118754
|
-
});
|
|
118755
|
-
}), 1)], 1)], 1)])], 1), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118756
|
-
staticClass: "drawer-foot"
|
|
118757
|
-
}, [_c('button', {
|
|
118758
|
-
staticClass: "drawer-btn drawer-btn-linear mr24",
|
|
118759
|
-
on: {
|
|
118760
|
-
"click": function ($event) {
|
|
118761
|
-
return _vm.close();
|
|
118762
|
-
}
|
|
118763
|
-
}
|
|
118764
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.cancle")) + " ")]), _c('button', {
|
|
118765
|
-
staticClass: "drawer-btn drawer-btn-face",
|
|
118766
|
-
attrs: {
|
|
118767
|
-
"disabled": _vm.isSubmit
|
|
118768
|
-
},
|
|
118769
|
-
on: {
|
|
118770
|
-
"click": _vm.submit
|
|
118771
|
-
}
|
|
118772
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.confirm")) + " "), _vm.isSubmit ? _c('i', {
|
|
118773
|
-
staticClass: "el-icon-loading"
|
|
118774
|
-
}) : _vm._e()])]) : _vm._e()]);
|
|
118775
|
-
};
|
|
118776
|
-
var SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns = [];
|
|
118777
|
-
|
|
118778
|
-
;// ./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
|
|
118779
|
-
|
|
118780
|
-
|
|
118781
|
-
|
|
118782
|
-
/* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
|
|
118783
|
-
components: {
|
|
118784
|
-
Editor: Editor
|
|
118785
|
-
},
|
|
118786
|
-
props: {
|
|
118787
|
-
id: {
|
|
118788
|
-
default: 0,
|
|
118789
|
-
type: Number
|
|
118790
|
-
},
|
|
118791
|
-
rowData: {
|
|
118792
|
-
type: Object,
|
|
118793
|
-
default: () => {
|
|
118794
|
-
return {};
|
|
118795
|
-
}
|
|
118796
|
-
},
|
|
118797
|
-
// 自定义模板/系统模板
|
|
118798
|
-
selectType: {
|
|
118799
|
-
type: [Number, String],
|
|
118800
|
-
default: ""
|
|
118801
|
-
}
|
|
118802
|
-
},
|
|
118803
|
-
data() {
|
|
118804
|
-
return {
|
|
118805
|
-
enumData: {
|
|
118806
|
-
language: language
|
|
118807
|
-
},
|
|
118808
|
-
// 枚举数据
|
|
118809
|
-
form: {
|
|
118810
|
-
// 表单
|
|
118811
|
-
templatesTitle: "",
|
|
118812
|
-
//模板标题
|
|
118813
|
-
mailSubject: "",
|
|
118814
|
-
//邮件标题
|
|
118815
|
-
scene: "",
|
|
118816
|
-
//应用场景
|
|
118817
|
-
modelLanguage: ""
|
|
118818
|
-
},
|
|
118819
|
-
verifyForm: {
|
|
118820
|
-
templatesTitle: [{
|
|
118821
|
-
required: true,
|
|
118822
|
-
message: `${this.$i18n.t("template.title_not_empty")}`,
|
|
118823
|
-
trigger: "blur"
|
|
118824
|
-
}, {
|
|
118825
|
-
max: 30,
|
|
118826
|
-
message: `${this.$i18n.t("template.title_word_limit")}`,
|
|
118827
|
-
trigger: "blur"
|
|
118828
|
-
}],
|
|
118829
|
-
mailSubject: [{
|
|
118830
|
-
required: true,
|
|
118831
|
-
message: `${this.$i18n.t("template.subject_not_empty")}`,
|
|
118832
|
-
trigger: "blur"
|
|
118833
|
-
}],
|
|
118834
|
-
scene: [{
|
|
118835
|
-
required: true,
|
|
118836
|
-
message: `${this.$i18n.t("template.scene_not_empty")}`,
|
|
118837
|
-
trigger: "blur"
|
|
118838
|
-
}, {
|
|
118839
|
-
max: 20,
|
|
118840
|
-
message: `${this.$i18n.t("template.scene_word_limit")}`,
|
|
118841
|
-
trigger: "blur"
|
|
118842
|
-
}],
|
|
118843
|
-
modelLanguage: [{
|
|
118844
|
-
required: true,
|
|
118845
|
-
message: `${this.$i18n.t("template.language_not_empty")}`,
|
|
118846
|
-
trigger: "change"
|
|
118847
|
-
}]
|
|
118733
|
+
"command": item.value
|
|
118848
118734
|
},
|
|
118849
|
-
|
|
118850
|
-
|
|
118851
|
-
|
|
118852
|
-
isSubmit: false // 是否正在提交
|
|
118853
|
-
};
|
|
118854
|
-
},
|
|
118855
|
-
created() {
|
|
118856
|
-
if (this.id) {
|
|
118857
|
-
// 初始化
|
|
118858
|
-
this.init();
|
|
118859
|
-
}
|
|
118860
|
-
},
|
|
118861
|
-
methods: {
|
|
118862
|
-
// 初始化
|
|
118863
|
-
init() {
|
|
118864
|
-
if (this.id) {
|
|
118865
|
-
setTimeout(() => {
|
|
118866
|
-
this.$refs.templateContent.setContent(this.rowData.content);
|
|
118867
|
-
if (this.selectType == 1) {
|
|
118868
|
-
this.$refs.templateContent.setDisable();
|
|
118869
|
-
}
|
|
118870
|
-
}, 200);
|
|
118871
|
-
this.form = {
|
|
118872
|
-
templatesTitle: this.rowData.templatesTitle,
|
|
118873
|
-
mailSubject: this.rowData.mailSubject,
|
|
118874
|
-
scene: this.rowData.scene,
|
|
118875
|
-
modelLanguage: this.rowData.modelLanguage
|
|
118876
|
-
};
|
|
118877
|
-
}
|
|
118878
|
-
},
|
|
118879
|
-
// 提交
|
|
118880
|
-
submit() {
|
|
118881
|
-
this.$refs.form.validate(valid => {
|
|
118882
|
-
if (valid) {
|
|
118883
|
-
if (this.$refs.templateContent.isEmpty()) {
|
|
118884
|
-
this.$message({
|
|
118885
|
-
type: "warning",
|
|
118886
|
-
message: `${this.$i18n.t("template.no_content")}`
|
|
118887
|
-
});
|
|
118888
|
-
return;
|
|
118889
|
-
}
|
|
118890
|
-
const data = this.form;
|
|
118891
|
-
data.content = this.$refs.templateContent.getContent();
|
|
118892
|
-
this.isSubmit = true;
|
|
118893
|
-
if (this.id) {
|
|
118894
|
-
data.id = this.id;
|
|
118895
|
-
// 编辑
|
|
118896
|
-
editTemplate(data).then(res => {
|
|
118897
|
-
if (res.code == 0) {
|
|
118898
|
-
this.isSubmit = false;
|
|
118899
|
-
this.$emit("init");
|
|
118900
|
-
this.close();
|
|
118901
|
-
this.$message({
|
|
118902
|
-
type: "success",
|
|
118903
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118904
|
-
});
|
|
118905
|
-
}
|
|
118906
|
-
});
|
|
118907
|
-
} else {
|
|
118908
|
-
// 新增
|
|
118909
|
-
addTemplate(data).then(res => {
|
|
118910
|
-
if (res.code == 0) {
|
|
118911
|
-
this.isSubmit = false;
|
|
118912
|
-
this.$emit("init");
|
|
118913
|
-
this.close();
|
|
118914
|
-
this.$message({
|
|
118915
|
-
type: "success",
|
|
118916
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118917
|
-
});
|
|
118918
|
-
}
|
|
118919
|
-
});
|
|
118920
|
-
}
|
|
118921
|
-
} else {
|
|
118922
|
-
return false;
|
|
118923
|
-
}
|
|
118924
|
-
});
|
|
118925
|
-
},
|
|
118926
|
-
// 使用变量
|
|
118927
|
-
setVariable(type) {
|
|
118928
|
-
let content = ``;
|
|
118929
|
-
if (this.isFocusSubject) {
|
|
118930
|
-
switch (type) {
|
|
118931
|
-
case 0:
|
|
118932
|
-
// 频道名
|
|
118933
|
-
content = `{$channelName}`;
|
|
118934
|
-
break;
|
|
118935
|
-
case 1:
|
|
118936
|
-
// 粉丝数
|
|
118937
|
-
content = `{$subscriber}`;
|
|
118938
|
-
break;
|
|
118939
|
-
case 2:
|
|
118940
|
-
// 频道链接
|
|
118941
|
-
content = `{$link}`;
|
|
118942
|
-
break;
|
|
118943
|
-
case 3:
|
|
118944
|
-
// 频道id
|
|
118945
|
-
content = `{$channelId}`;
|
|
118946
|
-
break;
|
|
118735
|
+
nativeOn: {
|
|
118736
|
+
"click": function ($event) {
|
|
118737
|
+
return _vm.clickDropdownItem(item);
|
|
118947
118738
|
}
|
|
118948
|
-
|
|
118949
|
-
|
|
118950
|
-
|
|
118951
|
-
|
|
118952
|
-
|
|
118953
|
-
|
|
118954
|
-
|
|
118955
|
-
|
|
118956
|
-
|
|
118957
|
-
|
|
118958
|
-
|
|
118959
|
-
|
|
118960
|
-
|
|
118961
|
-
|
|
118962
|
-
|
|
118963
|
-
|
|
118964
|
-
|
|
118965
|
-
|
|
118966
|
-
|
|
118967
|
-
|
|
118968
|
-
|
|
118969
|
-
|
|
118739
|
+
}
|
|
118740
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118741
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118742
|
+
staticClass: "temp_box"
|
|
118743
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118744
|
+
staticClass: "temp_list"
|
|
118745
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118746
|
+
return _c('div', {
|
|
118747
|
+
key: item.id,
|
|
118748
|
+
staticClass: "temp_item"
|
|
118749
|
+
}, [_c('div', {
|
|
118750
|
+
staticClass: "temp_content"
|
|
118751
|
+
}, [_c('div', {
|
|
118752
|
+
staticClass: "temp_top"
|
|
118753
|
+
}, [_c('div', {
|
|
118754
|
+
staticClass: "temp_title"
|
|
118755
|
+
}, [_c('div', {
|
|
118756
|
+
staticClass: "title_text"
|
|
118757
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118758
|
+
staticClass: "more_icon",
|
|
118759
|
+
on: {
|
|
118760
|
+
"click": function ($event) {
|
|
118761
|
+
return _vm.toDetail(item);
|
|
118970
118762
|
}
|
|
118971
|
-
this.$refs.templateContent.insertEditContent(content);
|
|
118972
118763
|
}
|
|
118973
|
-
},
|
|
118974
|
-
|
|
118975
|
-
|
|
118976
|
-
|
|
118977
|
-
}
|
|
118978
|
-
|
|
118979
|
-
})
|
|
118980
|
-
|
|
118981
|
-
|
|
118982
|
-
|
|
118983
|
-
|
|
118984
|
-
|
|
118985
|
-
|
|
118986
|
-
|
|
118987
|
-
|
|
118988
|
-
|
|
118989
|
-
|
|
118990
|
-
|
|
118991
|
-
|
|
118992
|
-
|
|
118993
|
-
|
|
118994
|
-
|
|
118995
|
-
|
|
118996
|
-
|
|
118997
|
-
|
|
118998
|
-
|
|
118999
|
-
|
|
119000
|
-
|
|
119001
|
-
|
|
119002
|
-
|
|
119003
|
-
|
|
119004
|
-
|
|
119005
|
-
|
|
119006
|
-
|
|
119007
|
-
|
|
119008
|
-
|
|
119009
|
-
|
|
119010
|
-
|
|
119011
|
-
_c
|
|
119012
|
-
|
|
119013
|
-
|
|
119014
|
-
"
|
|
119015
|
-
|
|
119016
|
-
"
|
|
119017
|
-
|
|
119018
|
-
|
|
119019
|
-
},
|
|
119020
|
-
|
|
119021
|
-
|
|
119022
|
-
|
|
118764
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118765
|
+
staticClass: "el-icon-arrow-right"
|
|
118766
|
+
})])]), _c('div', {
|
|
118767
|
+
staticClass: "num_box"
|
|
118768
|
+
}, [_c('div', {
|
|
118769
|
+
staticClass: "lang_box"
|
|
118770
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), _c('div', {
|
|
118771
|
+
staticClass: "lang_box"
|
|
118772
|
+
}, [_vm._v("附件:??个")]), _c('div', {
|
|
118773
|
+
staticClass: "lang_box"
|
|
118774
|
+
}, [_vm._v("商品卡:??个")])])]), _c('div', {
|
|
118775
|
+
staticClass: "temp_middle"
|
|
118776
|
+
}, [_c('div', {
|
|
118777
|
+
staticClass: "nu_box"
|
|
118778
|
+
}, [_c('div', {
|
|
118779
|
+
staticClass: "nu_title"
|
|
118780
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118781
|
+
staticClass: "nu_number"
|
|
118782
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118783
|
+
staticClass: "nu_box"
|
|
118784
|
+
}, [_c('div', {
|
|
118785
|
+
staticClass: "nu_title"
|
|
118786
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118787
|
+
staticClass: "nu_number"
|
|
118788
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118789
|
+
staticClass: "nu_box"
|
|
118790
|
+
}, [_c('div', {
|
|
118791
|
+
staticClass: "nu_title"
|
|
118792
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118793
|
+
staticClass: "nu_number"
|
|
118794
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118795
|
+
staticClass: "nu_box"
|
|
118796
|
+
}, [_c('div', {
|
|
118797
|
+
staticClass: "nu_title"
|
|
118798
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118799
|
+
staticClass: "nu_number"
|
|
118800
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118801
|
+
staticClass: "tem_bottom"
|
|
118802
|
+
}, [_c('div', {
|
|
118803
|
+
staticClass: "tem_desc"
|
|
118804
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118805
|
+
staticClass: "tem_desc"
|
|
118806
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118807
|
+
staticClass: "desc_btns"
|
|
118808
|
+
}, [_c('div', {
|
|
118809
|
+
staticClass: "desc_text"
|
|
118810
|
+
}, [_c('div', {
|
|
118811
|
+
staticClass: "tem_desc"
|
|
118812
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118813
|
+
staticClass: "tem_desc"
|
|
118814
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118815
|
+
staticClass: "apply_btn"
|
|
118816
|
+
}, [_c('el-button', {
|
|
118817
|
+
attrs: {
|
|
118818
|
+
"type": "primary"
|
|
119023
118819
|
},
|
|
119024
|
-
|
|
119025
|
-
|
|
119026
|
-
|
|
119027
|
-
|
|
119028
|
-
|
|
118820
|
+
on: {
|
|
118821
|
+
"click": function ($event) {
|
|
118822
|
+
return _vm.setMailTemplate(item);
|
|
118823
|
+
}
|
|
118824
|
+
}
|
|
118825
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118826
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118827
|
+
staticClass: "page_box"
|
|
118828
|
+
}, [_c('el-pagination', {
|
|
119029
118829
|
attrs: {
|
|
119030
|
-
"
|
|
119031
|
-
"
|
|
119032
|
-
"
|
|
118830
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118831
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118832
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118833
|
+
"total": _vm.total
|
|
119033
118834
|
},
|
|
119034
|
-
|
|
119035
|
-
|
|
119036
|
-
|
|
119037
|
-
|
|
118835
|
+
on: {
|
|
118836
|
+
"size-change": _vm.handleSizeChange,
|
|
118837
|
+
"current-change": _vm.handleCurrentChange,
|
|
118838
|
+
"update:currentPage": function ($event) {
|
|
118839
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
119038
118840
|
},
|
|
119039
|
-
|
|
119040
|
-
|
|
119041
|
-
}, _vm._l(_vm.tabOpts, function (item) {
|
|
119042
|
-
return _c('el-option', {
|
|
119043
|
-
key: Number(item.name),
|
|
119044
|
-
attrs: {
|
|
119045
|
-
"value": Number(item.name),
|
|
119046
|
-
"label": item.label
|
|
118841
|
+
"update:current-page": function ($event) {
|
|
118842
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
119047
118843
|
}
|
|
119048
|
-
});
|
|
119049
|
-
}), 1)], 1), _c('div', {
|
|
119050
|
-
staticClass: "flex justify-end"
|
|
119051
|
-
}, [_c('button', {
|
|
119052
|
-
staticClass: "form-btn form-btn-disabled mr16",
|
|
119053
|
-
on: {
|
|
119054
|
-
"click": _vm.closeEvt
|
|
119055
|
-
}
|
|
119056
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('writeMail.cancle')) + " ")]), _c('button', {
|
|
119057
|
-
staticClass: "form-btn form-btn-face",
|
|
119058
|
-
on: {
|
|
119059
|
-
"click": _vm.customToSystem
|
|
119060
118844
|
}
|
|
119061
|
-
},
|
|
118845
|
+
})], 1)]);
|
|
119062
118846
|
};
|
|
119063
|
-
var
|
|
119064
|
-
|
|
119065
|
-
;// ./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
|
|
119066
|
-
|
|
119067
|
-
/* harmony default export */ var SetSysTemplatevue_type_script_lang_js = ({
|
|
119068
|
-
props: {
|
|
119069
|
-
isShowSetSystem: {
|
|
119070
|
-
type: Boolean,
|
|
119071
|
-
default: false
|
|
119072
|
-
},
|
|
119073
|
-
mailId: {
|
|
119074
|
-
type: [String, Number],
|
|
119075
|
-
default: ""
|
|
119076
|
-
},
|
|
119077
|
-
tabOpts: {
|
|
119078
|
-
type: Array,
|
|
119079
|
-
default: () => {
|
|
119080
|
-
return [];
|
|
119081
|
-
}
|
|
119082
|
-
}
|
|
119083
|
-
},
|
|
119084
|
-
data() {
|
|
119085
|
-
return {
|
|
119086
|
-
isShowSetSystemDialog: this.isShowSetSystem,
|
|
119087
|
-
setSystemForm: {
|
|
119088
|
-
// 设置系统模板表单
|
|
119089
|
-
id: this.mailId,
|
|
119090
|
-
modelType: ""
|
|
119091
|
-
}
|
|
119092
|
-
};
|
|
119093
|
-
},
|
|
119094
|
-
methods: {
|
|
119095
|
-
customToSystem() {
|
|
119096
|
-
if (!this.setSystemForm.modelType) {
|
|
119097
|
-
this.$message({
|
|
119098
|
-
type: "warning",
|
|
119099
|
-
message: `${this.$i18n.t('common.please_select')}${this.$i18n.t('template.template_type')}`
|
|
119100
|
-
});
|
|
119101
|
-
return;
|
|
119102
|
-
}
|
|
119103
|
-
setSysTemplate(this.setSystemForm).then(res => {
|
|
119104
|
-
if (res.code == 0) {
|
|
119105
|
-
this.closeEvt();
|
|
119106
|
-
this.$message({
|
|
119107
|
-
type: "success",
|
|
119108
|
-
message: `${this.$i18n.t('template.set_success')}`
|
|
119109
|
-
});
|
|
119110
|
-
} else {
|
|
119111
|
-
this.$message.error(res.message);
|
|
119112
|
-
this.closeEvt();
|
|
119113
|
-
}
|
|
119114
|
-
});
|
|
119115
|
-
},
|
|
119116
|
-
closeEvt() {
|
|
119117
|
-
this.setSystemForm.id = "";
|
|
119118
|
-
this.setSystemForm.modelType = "";
|
|
119119
|
-
this.$emit("closeDialog");
|
|
119120
|
-
}
|
|
119121
|
-
}
|
|
119122
|
-
});
|
|
119123
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119124
|
-
/* harmony default export */ var TemplateCom_SetSysTemplatevue_type_script_lang_js = (SetSysTemplatevue_type_script_lang_js);
|
|
119125
|
-
;// ./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
|
|
119126
|
-
// extracted by mini-css-extract-plugin
|
|
119127
|
-
|
|
119128
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119129
|
-
|
|
119130
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue
|
|
118847
|
+
var TemplateListvue_type_template_id_0aaac0a8_scoped_true_staticRenderFns = [];
|
|
119131
118848
|
|
|
118849
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=0aaac0a8&scoped=true
|
|
119132
118850
|
|
|
118851
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
119133
118852
|
|
|
119134
|
-
|
|
119135
|
-
|
|
119136
|
-
|
|
119137
|
-
|
|
119138
|
-
|
|
119139
|
-
|
|
119140
|
-
|
|
119141
|
-
|
|
119142
|
-
|
|
119143
|
-
|
|
119144
|
-
|
|
119145
|
-
|
|
119146
|
-
|
|
119147
|
-
|
|
119148
|
-
|
|
119149
|
-
|
|
119150
|
-
|
|
118853
|
+
const TemplateCom_const_language = [{
|
|
118854
|
+
value: '7',
|
|
118855
|
+
label: '汉语',
|
|
118856
|
+
enLabel: 'Chinese'
|
|
118857
|
+
}, {
|
|
118858
|
+
value: '1',
|
|
118859
|
+
label: '英语',
|
|
118860
|
+
enLabel: 'English'
|
|
118861
|
+
}, {
|
|
118862
|
+
value: '3',
|
|
118863
|
+
label: '法语',
|
|
118864
|
+
enLabel: 'French'
|
|
118865
|
+
}, {
|
|
118866
|
+
value: '8',
|
|
118867
|
+
label: '德语',
|
|
118868
|
+
enLabel: 'German'
|
|
118869
|
+
}, {
|
|
118870
|
+
value: '6',
|
|
118871
|
+
label: '日语',
|
|
118872
|
+
enLabel: 'Japanese'
|
|
118873
|
+
}, {
|
|
118874
|
+
value: '9',
|
|
118875
|
+
label: '韩语',
|
|
118876
|
+
enLabel: 'Korean'
|
|
118877
|
+
}, {
|
|
118878
|
+
value: '10',
|
|
118879
|
+
label: '越南语',
|
|
118880
|
+
enLabel: 'Vietnamese'
|
|
118881
|
+
}, {
|
|
118882
|
+
value: '11',
|
|
118883
|
+
label: '泰国语',
|
|
118884
|
+
enLabel: 'Thai'
|
|
118885
|
+
}, {
|
|
118886
|
+
value: '12',
|
|
118887
|
+
label: '菲律宾语',
|
|
118888
|
+
enLabel: 'Filipino'
|
|
118889
|
+
}, {
|
|
118890
|
+
value: '13',
|
|
118891
|
+
label: '印度尼西亚语',
|
|
118892
|
+
enLabel: 'Indonesian'
|
|
118893
|
+
}, {
|
|
118894
|
+
value: '14',
|
|
118895
|
+
label: '俄罗斯语',
|
|
118896
|
+
enLabel: 'Russian'
|
|
118897
|
+
}, {
|
|
118898
|
+
value: '4',
|
|
118899
|
+
label: '西班牙语',
|
|
118900
|
+
enLabel: 'Spanish'
|
|
118901
|
+
}, {
|
|
118902
|
+
value: '15',
|
|
118903
|
+
label: '意大利语',
|
|
118904
|
+
enLabel: 'Italian'
|
|
118905
|
+
}];
|
|
118906
|
+
const sortConfig = [{
|
|
118907
|
+
label: '按创建时间倒序',
|
|
118908
|
+
value: 0
|
|
118909
|
+
}, {
|
|
118910
|
+
label: '按更新时间倒序',
|
|
118911
|
+
value: 1
|
|
118912
|
+
}, {
|
|
118913
|
+
label: '按送达率倒序',
|
|
118914
|
+
value: 2
|
|
118915
|
+
}, {
|
|
118916
|
+
label: '按打开率倒序',
|
|
118917
|
+
value: 3
|
|
118918
|
+
}, {
|
|
118919
|
+
label: '按回复率倒序',
|
|
118920
|
+
value: 4
|
|
118921
|
+
}, {
|
|
118922
|
+
label: '按累计发送数倒序',
|
|
118923
|
+
value: 5
|
|
118924
|
+
}];
|
|
118925
|
+
// 系统模版场景
|
|
118926
|
+
const templateSystemScene = [{
|
|
118927
|
+
value: '1',
|
|
118928
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
118929
|
+
},
|
|
118930
|
+
//合作邀请
|
|
118931
|
+
{
|
|
118932
|
+
value: '2',
|
|
118933
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
118934
|
+
},
|
|
118935
|
+
//价格协商
|
|
118936
|
+
{
|
|
118937
|
+
value: '3',
|
|
118938
|
+
label: `${src_language.t('template.contract_template')}`
|
|
118939
|
+
},
|
|
118940
|
+
//合同模板
|
|
118941
|
+
{
|
|
118942
|
+
value: '4',
|
|
118943
|
+
label: `${src_language.t('template.video_production')}`
|
|
118944
|
+
},
|
|
118945
|
+
//视频制作
|
|
118946
|
+
{
|
|
118947
|
+
value: '5',
|
|
118948
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
118949
|
+
} //费用结算
|
|
118950
|
+
];
|
|
119151
118951
|
;// ./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
|
|
119152
118952
|
|
|
119153
118953
|
|
|
119154
118954
|
|
|
119155
118955
|
|
|
119156
118956
|
|
|
118957
|
+
function createSearchForm(tar) {
|
|
118958
|
+
let raw = {
|
|
118959
|
+
// templatesTitle: '', //模板标题
|
|
118960
|
+
// scene: '', //应用场景
|
|
118961
|
+
// mailSubject: '', //邮件主题
|
|
118962
|
+
// content: '', //正文
|
|
118963
|
+
type: 2,
|
|
118964
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
118965
|
+
// modelLanguage: '', //语言
|
|
118966
|
+
// isShared: '', //是否共享
|
|
118967
|
+
// userId: '', //创建人
|
|
118968
|
+
searchSort: 1,
|
|
118969
|
+
//排序
|
|
118970
|
+
currentPage: 1,
|
|
118971
|
+
pageSize: 9
|
|
118972
|
+
};
|
|
118973
|
+
if (tar) {
|
|
118974
|
+
raw = Object.assign(raw, tar);
|
|
118975
|
+
}
|
|
118976
|
+
return raw;
|
|
118977
|
+
}
|
|
119157
118978
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119158
|
-
components: {
|
|
119159
|
-
SetTemplate: SetTemplate,
|
|
119160
|
-
SetSysTemplate: SetSysTemplate
|
|
119161
|
-
},
|
|
118979
|
+
components: {},
|
|
119162
118980
|
props: {
|
|
119163
118981
|
userId: {
|
|
119164
118982
|
type: [Number, String],
|
|
@@ -119167,161 +118985,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119167
118985
|
},
|
|
119168
118986
|
data() {
|
|
119169
118987
|
return {
|
|
119170
|
-
|
|
119171
|
-
|
|
119172
|
-
|
|
119173
|
-
|
|
119174
|
-
|
|
119175
|
-
|
|
119176
|
-
|
|
119177
|
-
|
|
119178
|
-
|
|
119179
|
-
|
|
119180
|
-
|
|
119181
|
-
|
|
119182
|
-
|
|
119183
|
-
|
|
119184
|
-
|
|
119185
|
-
pageSize: 10 //当前页条数
|
|
119186
|
-
},
|
|
119187
|
-
// 选项卡 1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119188
|
-
tabOpts: [{
|
|
119189
|
-
name: "1",
|
|
119190
|
-
label: `${this.$i18n.t("template.invite_cooperation")}`
|
|
119191
|
-
},
|
|
119192
|
-
//合作邀请
|
|
119193
|
-
{
|
|
119194
|
-
name: "2",
|
|
119195
|
-
label: `${this.$i18n.t("template.price_negotiation")}`
|
|
119196
|
-
},
|
|
119197
|
-
//价格协商
|
|
119198
|
-
{
|
|
119199
|
-
name: "3",
|
|
119200
|
-
label: `${this.$i18n.t("template.contract_template")}`
|
|
119201
|
-
},
|
|
119202
|
-
//合同模板
|
|
119203
|
-
{
|
|
119204
|
-
name: "4",
|
|
119205
|
-
label: `${this.$i18n.t("template.video_production")}`
|
|
119206
|
-
},
|
|
119207
|
-
//视频制作
|
|
119208
|
-
{
|
|
119209
|
-
name: "5",
|
|
119210
|
-
label: `${this.$i18n.t("template.expense_settlement")}`
|
|
119211
|
-
} //费用结算
|
|
119212
|
-
],
|
|
119213
|
-
loading: false,
|
|
119214
|
-
// 加载中
|
|
119215
|
-
tableData: [],
|
|
119216
|
-
// 表格数据
|
|
119217
|
-
tableTotal: 1,
|
|
119218
|
-
// 表格总数
|
|
119219
|
-
isShowSet: false,
|
|
119220
|
-
// 是否显示模板设置
|
|
119221
|
-
setId: 0,
|
|
119222
|
-
// 设置模板id
|
|
119223
|
-
rowData: null,
|
|
119224
|
-
//选择的模板数据
|
|
119225
|
-
|
|
119226
|
-
isShowSetSystem: false,
|
|
119227
|
-
// 是否显示设置系统模板
|
|
119228
|
-
mailId: ""
|
|
118988
|
+
// 模版名称 场景
|
|
118989
|
+
contentSelect: "1",
|
|
118990
|
+
contentInput: "",
|
|
118991
|
+
// 邮件主题正文
|
|
118992
|
+
mailTitleSelect: "1",
|
|
118993
|
+
mailTitleInput: "",
|
|
118994
|
+
searchForm: createSearchForm(),
|
|
118995
|
+
language: TemplateCom_const_language,
|
|
118996
|
+
sortConfig: sortConfig,
|
|
118997
|
+
accountList: [],
|
|
118998
|
+
currentPage: 5,
|
|
118999
|
+
templateList: [1],
|
|
119000
|
+
templateSystemScene: templateSystemScene,
|
|
119001
|
+
total: 0,
|
|
119002
|
+
loading: false
|
|
119229
119003
|
};
|
|
119230
119004
|
},
|
|
119231
|
-
|
|
119232
|
-
|
|
119233
|
-
this.
|
|
119005
|
+
mounted() {
|
|
119006
|
+
this.getAccountList();
|
|
119007
|
+
this.getCardList();
|
|
119234
119008
|
},
|
|
119235
119009
|
methods: {
|
|
119236
|
-
//
|
|
119237
|
-
|
|
119238
|
-
this.
|
|
119239
|
-
if (
|
|
119240
|
-
|
|
119010
|
+
// 语言枚举
|
|
119011
|
+
getLangLabel(val) {
|
|
119012
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119013
|
+
if (currLang) {
|
|
119014
|
+
return currLang.label;
|
|
119241
119015
|
}
|
|
119242
|
-
getTemplateList(this.searchForm).then(res => {
|
|
119243
|
-
this.loading = false;
|
|
119244
|
-
if (res.code == 0) {
|
|
119245
|
-
this.tableData = res.data.rows;
|
|
119246
|
-
this.tableTotal = res.data.total;
|
|
119247
|
-
} else {
|
|
119248
|
-
this.$message.error(res.message);
|
|
119249
|
-
}
|
|
119250
|
-
});
|
|
119251
|
-
},
|
|
119252
|
-
// 翻页
|
|
119253
|
-
changePage(curr) {
|
|
119254
|
-
this.searchForm.currentPage = curr;
|
|
119255
|
-
this.init();
|
|
119256
|
-
},
|
|
119257
|
-
// 删除模板
|
|
119258
|
-
del(id) {
|
|
119259
|
-
this.$confirm(this.$t("inboxTable.delMail"), this.$t("inboxTable.tip"), {
|
|
119260
|
-
confirmButtonText: this.$t("inboxTable.confirm"),
|
|
119261
|
-
cancelButtonText: this.$t("inboxTable.cancel"),
|
|
119262
|
-
type: "warning",
|
|
119263
|
-
confirmButtonClass: "confirm_del"
|
|
119264
|
-
}).then(() => {
|
|
119265
|
-
delTemplate({
|
|
119266
|
-
id
|
|
119267
|
-
}).then(res => {
|
|
119268
|
-
if (res.code == 0) {
|
|
119269
|
-
this.init();
|
|
119270
|
-
this.$message({
|
|
119271
|
-
type: "success",
|
|
119272
|
-
message: `${this.$i18n.t("outboxMail.success")}`,
|
|
119273
|
-
duration: 1500
|
|
119274
|
-
});
|
|
119275
|
-
}
|
|
119276
|
-
});
|
|
119277
|
-
}).catch(() => {});
|
|
119278
119016
|
},
|
|
119279
|
-
//
|
|
119017
|
+
// 应用模版
|
|
119280
119018
|
setMailTemplate(data) {
|
|
119281
119019
|
this.$emit("setMailTemplate", data);
|
|
119282
119020
|
},
|
|
119283
|
-
//
|
|
119284
|
-
|
|
119285
|
-
|
|
119286
|
-
|
|
119287
|
-
|
|
119021
|
+
// 跳转详情
|
|
119022
|
+
toDetail(item) {
|
|
119023
|
+
const routeData = this.$router.resolve({
|
|
119024
|
+
path: "/emailTempDetail",
|
|
119025
|
+
query: {
|
|
119026
|
+
type: "edit",
|
|
119027
|
+
id: item.id
|
|
119028
|
+
}
|
|
119029
|
+
});
|
|
119030
|
+
window.open(routeData.href, "_blank");
|
|
119288
119031
|
},
|
|
119289
|
-
//
|
|
119290
|
-
|
|
119291
|
-
this.
|
|
119292
|
-
this.searchForm.
|
|
119293
|
-
this.
|
|
119032
|
+
// 获取列表
|
|
119033
|
+
getCardList() {
|
|
119034
|
+
// if (this.contentSelect == '1') {
|
|
119035
|
+
// this.searchForm.templatesTitle = this.contentInput
|
|
119036
|
+
// } else if (this.contentSelect == '2') {
|
|
119037
|
+
// //系统模版
|
|
119038
|
+
// if (this.searchForm.type == 2) {
|
|
119039
|
+
// this.searchForm.scene = this.contentInput
|
|
119040
|
+
// }
|
|
119041
|
+
// }
|
|
119042
|
+
// if (this.mailTitleSelect == '1') {
|
|
119043
|
+
// this.searchForm.mailSubject = this.mailTitleInput
|
|
119044
|
+
// } else if (this.mailTitleSelect == '2') {
|
|
119045
|
+
// this.searchForm.content = this.mailTitleInput
|
|
119046
|
+
// }
|
|
119047
|
+
console.log(this.searchForm, "searchForm");
|
|
119048
|
+
this.loading = true;
|
|
119049
|
+
templatesList(this.searchForm).then(res => {
|
|
119050
|
+
if (res.code == "0") {
|
|
119051
|
+
this.templateList = res.data.rows;
|
|
119052
|
+
this.total = res.data.total;
|
|
119053
|
+
this.loading = false;
|
|
119054
|
+
} else {
|
|
119055
|
+
this.loading = false;
|
|
119056
|
+
this.$message.error(res.message);
|
|
119057
|
+
}
|
|
119058
|
+
});
|
|
119059
|
+
},
|
|
119060
|
+
// 模板类型切换
|
|
119061
|
+
modelTypeChange(val) {
|
|
119062
|
+
this.searchForm.scene = "";
|
|
119063
|
+
this.contentInput = "";
|
|
119294
119064
|
},
|
|
119295
|
-
//
|
|
119296
|
-
|
|
119297
|
-
|
|
119065
|
+
// 重置
|
|
119066
|
+
resetEvt() {
|
|
119067
|
+
this.searchForm = createSearchForm();
|
|
119068
|
+
this.contentSelect = "1";
|
|
119069
|
+
this.contentInput = "";
|
|
119070
|
+
this.mailTitleSelect = "1";
|
|
119071
|
+
this.mailTitleInput = "";
|
|
119072
|
+
this.getCardList();
|
|
119073
|
+
},
|
|
119074
|
+
// 获取账号下的账户
|
|
119075
|
+
getAccountList() {
|
|
119076
|
+
hubUserSonFather().then(res => {
|
|
119077
|
+
if (res.code == "0") {
|
|
119078
|
+
this.accountList = res.data;
|
|
119079
|
+
}
|
|
119080
|
+
});
|
|
119298
119081
|
},
|
|
119299
|
-
//
|
|
119300
|
-
|
|
119301
|
-
|
|
119082
|
+
// 排序按钮
|
|
119083
|
+
clickDropdownItem(item) {
|
|
119084
|
+
this.searchForm.currentPage = 1;
|
|
119085
|
+
this.searchForm.searchSort = item.value;
|
|
119086
|
+
this.getCardList();
|
|
119302
119087
|
},
|
|
119303
|
-
|
|
119304
|
-
|
|
119305
|
-
this.
|
|
119306
|
-
this.
|
|
119088
|
+
handleSizeChange(val) {
|
|
119089
|
+
this.searchForm.currentPage = 1;
|
|
119090
|
+
this.searchForm.pageSize = val;
|
|
119091
|
+
this.getCardList();
|
|
119307
119092
|
},
|
|
119308
|
-
|
|
119309
|
-
|
|
119310
|
-
this.
|
|
119093
|
+
handleCurrentChange(val) {
|
|
119094
|
+
this.searchForm.currentPage = val;
|
|
119095
|
+
this.getCardList();
|
|
119311
119096
|
}
|
|
119312
119097
|
}
|
|
119313
119098
|
});
|
|
119314
119099
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119315
119100
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
119316
|
-
;// ./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=
|
|
119101
|
+
;// ./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=0aaac0a8&prod&lang=scss&scoped=true
|
|
119317
119102
|
// extracted by mini-css-extract-plugin
|
|
119318
119103
|
|
|
119319
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=
|
|
119320
|
-
|
|
119321
|
-
;// ./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
|
|
119322
|
-
// extracted by mini-css-extract-plugin
|
|
119323
|
-
|
|
119324
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119104
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=0aaac0a8&prod&lang=scss&scoped=true
|
|
119325
119105
|
|
|
119326
119106
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119327
119107
|
|
|
@@ -119330,16 +119110,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119330
119110
|
;
|
|
119331
119111
|
|
|
119332
119112
|
|
|
119333
|
-
|
|
119334
119113
|
/* normalize component */
|
|
119335
119114
|
|
|
119336
119115
|
var TemplateList_component = normalizeComponent(
|
|
119337
119116
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119338
|
-
|
|
119339
|
-
|
|
119117
|
+
TemplateListvue_type_template_id_0aaac0a8_scoped_true_render,
|
|
119118
|
+
TemplateListvue_type_template_id_0aaac0a8_scoped_true_staticRenderFns,
|
|
119340
119119
|
false,
|
|
119341
119120
|
null,
|
|
119342
|
-
"
|
|
119121
|
+
"0aaac0a8",
|
|
119343
119122
|
null
|
|
119344
119123
|
|
|
119345
119124
|
)
|
|
@@ -121538,41 +121317,306 @@ var settingNicknamevue_type_template_id_779abf97_render = function render() {
|
|
|
121538
121317
|
_c = _vm._self._c;
|
|
121539
121318
|
return _c('el-dialog', {
|
|
121540
121319
|
attrs: {
|
|
121541
|
-
"visible": _vm.visible,
|
|
121542
|
-
"title": _vm.$t('edm5.v61'),
|
|
121543
|
-
"width": "480px",
|
|
121544
|
-
"before-close": _vm.closeDialog,
|
|
121545
|
-
"custom-class": "setting-nickname-dialog",
|
|
121546
|
-
"close-on-click-modal": false
|
|
121320
|
+
"visible": _vm.visible,
|
|
121321
|
+
"title": _vm.$t('edm5.v61'),
|
|
121322
|
+
"width": "480px",
|
|
121323
|
+
"before-close": _vm.closeDialog,
|
|
121324
|
+
"custom-class": "setting-nickname-dialog",
|
|
121325
|
+
"close-on-click-modal": false
|
|
121326
|
+
}
|
|
121327
|
+
}, [_c('div', {
|
|
121328
|
+
directives: [{
|
|
121329
|
+
name: "loading",
|
|
121330
|
+
rawName: "v-loading",
|
|
121331
|
+
value: _vm.loading,
|
|
121332
|
+
expression: "loading"
|
|
121333
|
+
}]
|
|
121334
|
+
}, [_c('div', {
|
|
121335
|
+
staticClass: "setting-tip"
|
|
121336
|
+
}, [_vm._v(" " + _vm._s(_vm.$t("edm5.v253")) + " ")]), _c('div', {
|
|
121337
|
+
staticClass: "setting-input"
|
|
121338
|
+
}, [_c('el-input', {
|
|
121339
|
+
attrs: {
|
|
121340
|
+
"type": "input",
|
|
121341
|
+
"placeholder": _vm.$t('edm5.v95')
|
|
121342
|
+
},
|
|
121343
|
+
model: {
|
|
121344
|
+
value: _vm.nickName,
|
|
121345
|
+
callback: function ($$v) {
|
|
121346
|
+
_vm.nickName = $$v;
|
|
121347
|
+
},
|
|
121348
|
+
expression: "nickName"
|
|
121349
|
+
}
|
|
121350
|
+
})], 1), _c('div', {
|
|
121351
|
+
staticClass: "footer-btn"
|
|
121352
|
+
}, [_c('el-button', {
|
|
121353
|
+
on: {
|
|
121354
|
+
"click": _vm.closeDialog
|
|
121355
|
+
}
|
|
121356
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121357
|
+
attrs: {
|
|
121358
|
+
"type": "primary",
|
|
121359
|
+
"loading": _vm.confirmBtnLoading
|
|
121360
|
+
},
|
|
121361
|
+
on: {
|
|
121362
|
+
"click": _vm.confirmSetting
|
|
121363
|
+
}
|
|
121364
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)])]);
|
|
121365
|
+
};
|
|
121366
|
+
var settingNicknamevue_type_template_id_779abf97_staticRenderFns = [];
|
|
121367
|
+
|
|
121368
|
+
;// ./src/api/setting/index.js
|
|
121369
|
+
|
|
121370
|
+
|
|
121371
|
+
// 设置邀约规则
|
|
121372
|
+
function settingAiRules(data) {
|
|
121373
|
+
return post(`/edm/outbox/invitationRules/save`, data);
|
|
121374
|
+
}
|
|
121375
|
+
|
|
121376
|
+
// 根据写信id获取邀约规则
|
|
121377
|
+
function getAiRules(writeId) {
|
|
121378
|
+
return get(`/edm/outbox/invitationRules/${writeId}`);
|
|
121379
|
+
}
|
|
121380
|
+
|
|
121381
|
+
// 获取发件人昵称
|
|
121382
|
+
function getNickname() {
|
|
121383
|
+
return request_get(`/edm/mail/getSenderInfo`);
|
|
121384
|
+
}
|
|
121385
|
+
|
|
121386
|
+
// 设置发件人昵称
|
|
121387
|
+
function settingNickname(data) {
|
|
121388
|
+
return request_post(`/edm/mail/saveSenderInfo`, data);
|
|
121389
|
+
}
|
|
121390
|
+
;// ./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/settingNickname.vue?vue&type=script&lang=js
|
|
121391
|
+
|
|
121392
|
+
/* harmony default export */ var settingNicknamevue_type_script_lang_js = ({
|
|
121393
|
+
props: {
|
|
121394
|
+
visible: {
|
|
121395
|
+
type: Boolean,
|
|
121396
|
+
default: false
|
|
121397
|
+
},
|
|
121398
|
+
nickNameDefault: {
|
|
121399
|
+
type: String,
|
|
121400
|
+
default: ""
|
|
121401
|
+
}
|
|
121402
|
+
},
|
|
121403
|
+
data() {
|
|
121404
|
+
return {
|
|
121405
|
+
nickName: "",
|
|
121406
|
+
confirmBtnLoading: false,
|
|
121407
|
+
loading: false
|
|
121408
|
+
};
|
|
121409
|
+
},
|
|
121410
|
+
created() {
|
|
121411
|
+
if (this.nickNameDefault) this.nickName = this.nickNameDefault;
|
|
121412
|
+
},
|
|
121413
|
+
methods: {
|
|
121414
|
+
closeDialog() {
|
|
121415
|
+
this.$emit("update:visible", false);
|
|
121416
|
+
},
|
|
121417
|
+
// 获取发件人昵称
|
|
121418
|
+
async getNickname() {
|
|
121419
|
+
try {
|
|
121420
|
+
this.loading = true;
|
|
121421
|
+
const res = await getNickname();
|
|
121422
|
+
if (res.code === "0") {
|
|
121423
|
+
this.nickName = res.data || "";
|
|
121424
|
+
} else {
|
|
121425
|
+
this.$message.error(res.message);
|
|
121426
|
+
}
|
|
121427
|
+
} catch (error) {
|
|
121428
|
+
console.log(error);
|
|
121429
|
+
this.loading = false;
|
|
121430
|
+
} finally {
|
|
121431
|
+
this.loading = false;
|
|
121432
|
+
}
|
|
121433
|
+
},
|
|
121434
|
+
// 确定设置昵称
|
|
121435
|
+
async confirmSetting() {
|
|
121436
|
+
try {
|
|
121437
|
+
if (!this.nickName) return this.$message.error(this.$t('edm5.v254'));
|
|
121438
|
+
this.confirmBtnLoading = true;
|
|
121439
|
+
const res = await settingNickname({
|
|
121440
|
+
nickName: this.nickName.trim()
|
|
121441
|
+
});
|
|
121442
|
+
if (res.code === "0") {
|
|
121443
|
+
this.$message.success("设置成功!");
|
|
121444
|
+
this.$emit("updateNickName", this.nickName);
|
|
121445
|
+
this.closeDialog();
|
|
121446
|
+
} else {
|
|
121447
|
+
this.$message.error(res.message);
|
|
121448
|
+
}
|
|
121449
|
+
} catch (error) {
|
|
121450
|
+
console.log(error);
|
|
121451
|
+
} finally {
|
|
121452
|
+
this.confirmBtnLoading = false;
|
|
121453
|
+
}
|
|
121454
|
+
}
|
|
121455
|
+
}
|
|
121456
|
+
});
|
|
121457
|
+
;// ./src/package/write-email/components/settingNickname.vue?vue&type=script&lang=js
|
|
121458
|
+
/* harmony default export */ var components_settingNicknamevue_type_script_lang_js = (settingNicknamevue_type_script_lang_js);
|
|
121459
|
+
;// ./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/settingNickname.vue?vue&type=style&index=0&id=779abf97&prod&lang=scss
|
|
121460
|
+
// extracted by mini-css-extract-plugin
|
|
121461
|
+
|
|
121462
|
+
;// ./src/package/write-email/components/settingNickname.vue?vue&type=style&index=0&id=779abf97&prod&lang=scss
|
|
121463
|
+
|
|
121464
|
+
;// ./src/package/write-email/components/settingNickname.vue
|
|
121465
|
+
|
|
121466
|
+
|
|
121467
|
+
|
|
121468
|
+
;
|
|
121469
|
+
|
|
121470
|
+
|
|
121471
|
+
/* normalize component */
|
|
121472
|
+
|
|
121473
|
+
var settingNickname_component = normalizeComponent(
|
|
121474
|
+
components_settingNicknamevue_type_script_lang_js,
|
|
121475
|
+
settingNicknamevue_type_template_id_779abf97_render,
|
|
121476
|
+
settingNicknamevue_type_template_id_779abf97_staticRenderFns,
|
|
121477
|
+
false,
|
|
121478
|
+
null,
|
|
121479
|
+
null,
|
|
121480
|
+
null
|
|
121481
|
+
|
|
121482
|
+
)
|
|
121483
|
+
|
|
121484
|
+
/* harmony default export */ var components_settingNickname = (settingNickname_component.exports);
|
|
121485
|
+
;// ./src/api/inviteTask/index.js
|
|
121486
|
+
|
|
121487
|
+
|
|
121488
|
+
// 保存AI自动邀约邮件
|
|
121489
|
+
function inviteEmailSave(data) {
|
|
121490
|
+
return request_post(`/edm/ai/inviteEmail/save`, data);
|
|
121491
|
+
}
|
|
121492
|
+
|
|
121493
|
+
// 获取邀请AI邮件
|
|
121494
|
+
function inviteEmailGet(taskId) {
|
|
121495
|
+
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121496
|
+
}
|
|
121497
|
+
;// ./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=075aae44&scoped=true
|
|
121498
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render = function render() {
|
|
121499
|
+
var _vm = this,
|
|
121500
|
+
_c = _vm._self._c;
|
|
121501
|
+
return _c('el-dialog', {
|
|
121502
|
+
attrs: {
|
|
121503
|
+
"visible": _vm.visible,
|
|
121504
|
+
"title": "存为模版",
|
|
121505
|
+
"width": "480px",
|
|
121506
|
+
"before-close": _vm.closeDialog,
|
|
121507
|
+
"custom-class": "setting-nickname-dialog",
|
|
121508
|
+
"close-on-click-modal": false
|
|
121509
|
+
}
|
|
121510
|
+
}, [_c('div', {
|
|
121511
|
+
directives: [{
|
|
121512
|
+
name: "loading",
|
|
121513
|
+
rawName: "v-loading",
|
|
121514
|
+
value: _vm.loading,
|
|
121515
|
+
expression: "loading"
|
|
121516
|
+
}]
|
|
121517
|
+
}, [_c('el-form', {
|
|
121518
|
+
ref: "ruleForm",
|
|
121519
|
+
staticClass: "demo-ruleForm",
|
|
121520
|
+
attrs: {
|
|
121521
|
+
"label-position": "top",
|
|
121522
|
+
"model": _vm.ruleForm,
|
|
121523
|
+
"rules": _vm.rules,
|
|
121524
|
+
"label-width": "100px"
|
|
121525
|
+
}
|
|
121526
|
+
}, [_c('el-form-item', {
|
|
121527
|
+
attrs: {
|
|
121528
|
+
"label": "模版名称",
|
|
121529
|
+
"prop": "templatesTitle"
|
|
121530
|
+
}
|
|
121531
|
+
}, [_c('el-input', {
|
|
121532
|
+
attrs: {
|
|
121533
|
+
"clearable": ""
|
|
121534
|
+
},
|
|
121535
|
+
model: {
|
|
121536
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121537
|
+
callback: function ($$v) {
|
|
121538
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121539
|
+
},
|
|
121540
|
+
expression: "ruleForm.templatesTitle"
|
|
121541
|
+
}
|
|
121542
|
+
})], 1), _c('el-form-item', {
|
|
121543
|
+
attrs: {
|
|
121544
|
+
"label": "应用场景",
|
|
121545
|
+
"prop": "scene"
|
|
121546
|
+
}
|
|
121547
|
+
}, [_c('el-input', {
|
|
121548
|
+
attrs: {
|
|
121549
|
+
"clearable": ""
|
|
121550
|
+
},
|
|
121551
|
+
model: {
|
|
121552
|
+
value: _vm.ruleForm.scene,
|
|
121553
|
+
callback: function ($$v) {
|
|
121554
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121555
|
+
},
|
|
121556
|
+
expression: "ruleForm.scene"
|
|
121557
|
+
}
|
|
121558
|
+
})], 1), _c('el-form-item', {
|
|
121559
|
+
attrs: {
|
|
121560
|
+
"label": "语言",
|
|
121561
|
+
"prop": "modelLanguage"
|
|
121562
|
+
}
|
|
121563
|
+
}, [_c('el-select', {
|
|
121564
|
+
attrs: {
|
|
121565
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121566
|
+
"clearable": "",
|
|
121567
|
+
"filterable": ""
|
|
121568
|
+
},
|
|
121569
|
+
model: {
|
|
121570
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121571
|
+
callback: function ($$v) {
|
|
121572
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121573
|
+
},
|
|
121574
|
+
expression: "ruleForm.modelLanguage"
|
|
121575
|
+
}
|
|
121576
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121577
|
+
return _c('el-option', {
|
|
121578
|
+
key: item.value,
|
|
121579
|
+
attrs: {
|
|
121580
|
+
"value": item.value,
|
|
121581
|
+
"label": item.label
|
|
121582
|
+
}
|
|
121583
|
+
});
|
|
121584
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121585
|
+
attrs: {
|
|
121586
|
+
"label": "共享状态",
|
|
121587
|
+
"prop": "isShared"
|
|
121547
121588
|
}
|
|
121548
|
-
}, [_c('
|
|
121549
|
-
directives: [{
|
|
121550
|
-
name: "loading",
|
|
121551
|
-
rawName: "v-loading",
|
|
121552
|
-
value: _vm.loading,
|
|
121553
|
-
expression: "loading"
|
|
121554
|
-
}]
|
|
121555
|
-
}, [_c('div', {
|
|
121556
|
-
staticClass: "setting-tip"
|
|
121557
|
-
}, [_vm._v(" " + _vm._s(_vm.$t("edm5.v253")) + " ")]), _c('div', {
|
|
121558
|
-
staticClass: "setting-input"
|
|
121559
|
-
}, [_c('el-input', {
|
|
121589
|
+
}, [_c('el-select', {
|
|
121560
121590
|
attrs: {
|
|
121561
|
-
"
|
|
121562
|
-
"placeholder":
|
|
121591
|
+
"clearable": "",
|
|
121592
|
+
"placeholder": "请选择共享状态"
|
|
121563
121593
|
},
|
|
121564
121594
|
model: {
|
|
121565
|
-
value: _vm.
|
|
121595
|
+
value: _vm.ruleForm.isShared,
|
|
121566
121596
|
callback: function ($$v) {
|
|
121567
|
-
_vm.
|
|
121597
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121568
121598
|
},
|
|
121569
|
-
expression: "
|
|
121599
|
+
expression: "ruleForm.isShared"
|
|
121570
121600
|
}
|
|
121571
|
-
}
|
|
121601
|
+
}, [_c('el-option', {
|
|
121602
|
+
key: 1,
|
|
121603
|
+
attrs: {
|
|
121604
|
+
"value": "1",
|
|
121605
|
+
"label": "公开"
|
|
121606
|
+
}
|
|
121607
|
+
}), _c('el-option', {
|
|
121608
|
+
key: 2,
|
|
121609
|
+
attrs: {
|
|
121610
|
+
"value": "2",
|
|
121611
|
+
"label": "私有"
|
|
121612
|
+
}
|
|
121613
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121572
121614
|
staticClass: "footer-btn"
|
|
121573
121615
|
}, [_c('el-button', {
|
|
121574
121616
|
on: {
|
|
121575
|
-
"click":
|
|
121617
|
+
"click": function ($event) {
|
|
121618
|
+
return _vm.resetForm('ruleForm');
|
|
121619
|
+
}
|
|
121576
121620
|
}
|
|
121577
121621
|
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121578
121622
|
attrs: {
|
|
@@ -121580,109 +121624,111 @@ var settingNicknamevue_type_template_id_779abf97_render = function render() {
|
|
|
121580
121624
|
"loading": _vm.confirmBtnLoading
|
|
121581
121625
|
},
|
|
121582
121626
|
on: {
|
|
121583
|
-
"click":
|
|
121627
|
+
"click": function ($event) {
|
|
121628
|
+
return _vm.submitForm('ruleForm');
|
|
121629
|
+
}
|
|
121584
121630
|
}
|
|
121585
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)])]);
|
|
121631
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121586
121632
|
};
|
|
121587
|
-
var
|
|
121588
|
-
|
|
121589
|
-
;// ./src/api/setting/index.js
|
|
121590
|
-
|
|
121591
|
-
|
|
121592
|
-
// 设置邀约规则
|
|
121593
|
-
function settingAiRules(data) {
|
|
121594
|
-
return post(`/edm/outbox/invitationRules/save`, data);
|
|
121595
|
-
}
|
|
121633
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns = [];
|
|
121596
121634
|
|
|
121597
|
-
|
|
121598
|
-
function getAiRules(writeId) {
|
|
121599
|
-
return get(`/edm/outbox/invitationRules/${writeId}`);
|
|
121600
|
-
}
|
|
121635
|
+
;// ./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
|
|
121601
121636
|
|
|
121602
|
-
// 获取发件人昵称
|
|
121603
|
-
function getNickname() {
|
|
121604
|
-
return request_get(`/edm/mail/getSenderInfo`);
|
|
121605
|
-
}
|
|
121606
121637
|
|
|
121607
|
-
// 设置发件人昵称
|
|
121608
|
-
function settingNickname(data) {
|
|
121609
|
-
return request_post(`/edm/mail/saveSenderInfo`, data);
|
|
121610
|
-
}
|
|
121611
|
-
;// ./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/settingNickname.vue?vue&type=script&lang=js
|
|
121612
121638
|
|
|
121613
|
-
/* harmony default export */ var
|
|
121639
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121614
121640
|
props: {
|
|
121615
121641
|
visible: {
|
|
121616
121642
|
type: Boolean,
|
|
121617
121643
|
default: false
|
|
121618
121644
|
},
|
|
121619
|
-
|
|
121645
|
+
mailTempList: {
|
|
121646
|
+
type: Array,
|
|
121647
|
+
default: () => []
|
|
121648
|
+
},
|
|
121649
|
+
tempProductCard: {
|
|
121620
121650
|
type: String,
|
|
121621
121651
|
default: ""
|
|
121622
121652
|
}
|
|
121623
121653
|
},
|
|
121624
121654
|
data() {
|
|
121625
121655
|
return {
|
|
121626
|
-
nickName: "",
|
|
121627
121656
|
confirmBtnLoading: false,
|
|
121628
|
-
loading: false
|
|
121657
|
+
loading: false,
|
|
121658
|
+
ruleForm: {
|
|
121659
|
+
templatesTitle: "",
|
|
121660
|
+
scene: "",
|
|
121661
|
+
modelLanguage: "",
|
|
121662
|
+
isShared: "2"
|
|
121663
|
+
},
|
|
121664
|
+
rules: {
|
|
121665
|
+
templatesTitle: [{
|
|
121666
|
+
required: true,
|
|
121667
|
+
message: "请输入模版名称",
|
|
121668
|
+
trigger: "blur"
|
|
121669
|
+
}],
|
|
121670
|
+
modelLanguage: [{
|
|
121671
|
+
required: true,
|
|
121672
|
+
message: "请选择模版语言",
|
|
121673
|
+
trigger: "change"
|
|
121674
|
+
}],
|
|
121675
|
+
isShared: [{
|
|
121676
|
+
required: true,
|
|
121677
|
+
message: "请选择共享状态",
|
|
121678
|
+
trigger: "change"
|
|
121679
|
+
}]
|
|
121680
|
+
},
|
|
121681
|
+
language: const_language
|
|
121629
121682
|
};
|
|
121630
121683
|
},
|
|
121631
|
-
created() {
|
|
121632
|
-
if (this.nickNameDefault) this.nickName = this.nickNameDefault;
|
|
121633
|
-
},
|
|
121684
|
+
created() {},
|
|
121634
121685
|
methods: {
|
|
121635
|
-
|
|
121636
|
-
|
|
121637
|
-
|
|
121638
|
-
|
|
121639
|
-
|
|
121640
|
-
|
|
121641
|
-
|
|
121642
|
-
|
|
121643
|
-
|
|
121644
|
-
this.nickName = res.data || "";
|
|
121645
|
-
} else {
|
|
121646
|
-
this.$message.error(res.message);
|
|
121647
|
-
}
|
|
121648
|
-
} catch (error) {
|
|
121649
|
-
console.log(error);
|
|
121650
|
-
this.loading = false;
|
|
121651
|
-
} finally {
|
|
121652
|
-
this.loading = false;
|
|
121686
|
+
// 处理邮件参数
|
|
121687
|
+
getMailParams() {
|
|
121688
|
+
// 处理邮件
|
|
121689
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121690
|
+
let content = "";
|
|
121691
|
+
if (currentMail.getReplyHtml()) {
|
|
121692
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121693
|
+
} else {
|
|
121694
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121653
121695
|
}
|
|
121696
|
+
return {
|
|
121697
|
+
subject: currentMail.subject,
|
|
121698
|
+
content,
|
|
121699
|
+
attachments: currentMail.fileList
|
|
121700
|
+
};
|
|
121654
121701
|
},
|
|
121655
|
-
//
|
|
121656
|
-
|
|
121657
|
-
|
|
121658
|
-
|
|
121659
|
-
|
|
121660
|
-
|
|
121661
|
-
|
|
121662
|
-
});
|
|
121663
|
-
if (res.code === "0") {
|
|
121664
|
-
this.$message.success("设置成功!");
|
|
121665
|
-
this.$emit("updateNickName", this.nickName);
|
|
121666
|
-
this.closeDialog();
|
|
121702
|
+
// 表单验证
|
|
121703
|
+
submitForm(formName) {
|
|
121704
|
+
const mailParams = this.getMailParams();
|
|
121705
|
+
console.log(mailParams, 'mailParams');
|
|
121706
|
+
this.$refs[formName].validate(valid => {
|
|
121707
|
+
if (valid) {
|
|
121708
|
+
alert("submit!");
|
|
121667
121709
|
} else {
|
|
121668
|
-
|
|
121710
|
+
console.log("error submit!!");
|
|
121711
|
+
return false;
|
|
121669
121712
|
}
|
|
121670
|
-
}
|
|
121671
|
-
|
|
121672
|
-
|
|
121673
|
-
|
|
121674
|
-
|
|
121713
|
+
});
|
|
121714
|
+
},
|
|
121715
|
+
resetForm(formName) {
|
|
121716
|
+
this.$refs[formName].resetFields();
|
|
121717
|
+
this.closeDialog();
|
|
121718
|
+
},
|
|
121719
|
+
closeDialog() {
|
|
121720
|
+
this.$emit("update:visible", false);
|
|
121675
121721
|
}
|
|
121676
121722
|
}
|
|
121677
121723
|
});
|
|
121678
|
-
;// ./src/package/write-email/components/
|
|
121679
|
-
/* harmony default export */ var
|
|
121680
|
-
;// ./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/
|
|
121724
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121725
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121726
|
+
;// ./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=075aae44&prod&lang=scss&scoped=true
|
|
121681
121727
|
// extracted by mini-css-extract-plugin
|
|
121682
121728
|
|
|
121683
|
-
;// ./src/package/write-email/components/
|
|
121729
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=075aae44&prod&lang=scss&scoped=true
|
|
121684
121730
|
|
|
121685
|
-
;// ./src/package/write-email/components/
|
|
121731
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121686
121732
|
|
|
121687
121733
|
|
|
121688
121734
|
|
|
@@ -121691,30 +121737,18 @@ function settingNickname(data) {
|
|
|
121691
121737
|
|
|
121692
121738
|
/* normalize component */
|
|
121693
121739
|
|
|
121694
|
-
var
|
|
121695
|
-
|
|
121696
|
-
|
|
121697
|
-
|
|
121740
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121741
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121742
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render,
|
|
121743
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns,
|
|
121698
121744
|
false,
|
|
121699
121745
|
null,
|
|
121700
|
-
|
|
121746
|
+
"075aae44",
|
|
121701
121747
|
null
|
|
121702
121748
|
|
|
121703
121749
|
)
|
|
121704
121750
|
|
|
121705
|
-
/* harmony default export */ var
|
|
121706
|
-
;// ./src/api/inviteTask/index.js
|
|
121707
|
-
|
|
121708
|
-
|
|
121709
|
-
// 保存AI自动邀约邮件
|
|
121710
|
-
function inviteEmailSave(data) {
|
|
121711
|
-
return request_post(`/edm/ai/inviteEmail/save`, data);
|
|
121712
|
-
}
|
|
121713
|
-
|
|
121714
|
-
// 获取邀请AI邮件
|
|
121715
|
-
function inviteEmailGet(taskId) {
|
|
121716
|
-
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121717
|
-
}
|
|
121751
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121718
121752
|
;// ./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
|
|
121719
121753
|
|
|
121720
121754
|
|
|
@@ -121756,6 +121790,7 @@ function inviteEmailGet(taskId) {
|
|
|
121756
121790
|
|
|
121757
121791
|
|
|
121758
121792
|
|
|
121793
|
+
|
|
121759
121794
|
|
|
121760
121795
|
|
|
121761
121796
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121778,7 +121813,8 @@ function inviteEmailGet(taskId) {
|
|
|
121778
121813
|
SignTextDrawer: signText,
|
|
121779
121814
|
MailTemplateDrawer: mailTemplate,
|
|
121780
121815
|
AiMailDialog: aiMail,
|
|
121781
|
-
MailOptimizeDrawer: mailOptimize
|
|
121816
|
+
MailOptimizeDrawer: mailOptimize,
|
|
121817
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121782
121818
|
},
|
|
121783
121819
|
props: {
|
|
121784
121820
|
// pm 添加
|
|
@@ -122007,7 +122043,11 @@ function inviteEmailGet(taskId) {
|
|
|
122007
122043
|
nickName: "",
|
|
122008
122044
|
// 发件人昵称
|
|
122009
122045
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122010
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122046
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122047
|
+
// 当前使用的AI平台
|
|
122048
|
+
saveMailTempDialogVisible: false,
|
|
122049
|
+
// 保存模版弹窗
|
|
122050
|
+
tempProductCard: '' // 模版产品卡
|
|
122011
122051
|
};
|
|
122012
122052
|
},
|
|
122013
122053
|
created() {
|
|
@@ -122083,6 +122123,14 @@ function inviteEmailGet(taskId) {
|
|
|
122083
122123
|
window.onbeforeunload = null;
|
|
122084
122124
|
},
|
|
122085
122125
|
methods: {
|
|
122126
|
+
// 保存邮件模版
|
|
122127
|
+
saveMailTemplate() {
|
|
122128
|
+
// 处理商品卡
|
|
122129
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122130
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122131
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122132
|
+
this.saveMailTempDialogVisible = true;
|
|
122133
|
+
},
|
|
122086
122134
|
// 初始化邮件模版
|
|
122087
122135
|
payInitTemplate() {
|
|
122088
122136
|
// 初始化收件人
|
|
@@ -123390,15 +123438,15 @@ function inviteEmailGet(taskId) {
|
|
|
123390
123438
|
});
|
|
123391
123439
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123392
123440
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
123393
|
-
;// ./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=
|
|
123441
|
+
;// ./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=7011cdc3&prod&lang=scss&scoped=true
|
|
123394
123442
|
// extracted by mini-css-extract-plugin
|
|
123395
123443
|
|
|
123396
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123444
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=7011cdc3&prod&lang=scss&scoped=true
|
|
123397
123445
|
|
|
123398
|
-
;// ./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=
|
|
123446
|
+
;// ./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=7011cdc3&prod&lang=scss
|
|
123399
123447
|
// extracted by mini-css-extract-plugin
|
|
123400
123448
|
|
|
123401
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123449
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=7011cdc3&prod&lang=scss
|
|
123402
123450
|
|
|
123403
123451
|
;// ./src/package/write-email/index.vue
|
|
123404
123452
|
|
|
@@ -123412,11 +123460,11 @@ function inviteEmailGet(taskId) {
|
|
|
123412
123460
|
|
|
123413
123461
|
var write_email_component = normalizeComponent(
|
|
123414
123462
|
package_write_emailvue_type_script_lang_js,
|
|
123415
|
-
|
|
123416
|
-
|
|
123463
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_render,
|
|
123464
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns,
|
|
123417
123465
|
false,
|
|
123418
123466
|
null,
|
|
123419
|
-
"
|
|
123467
|
+
"7011cdc3",
|
|
123420
123468
|
null
|
|
123421
123469
|
|
|
123422
123470
|
)
|
|
@@ -123483,8 +123531,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123483
123531
|
};
|
|
123484
123532
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123485
123533
|
|
|
123486
|
-
;// ./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=
|
|
123487
|
-
var
|
|
123534
|
+
;// ./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=9dd5bd72&scoped=true
|
|
123535
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render = function render() {
|
|
123488
123536
|
var _vm = this,
|
|
123489
123537
|
_c = _vm._self._c;
|
|
123490
123538
|
return _c('div', {
|
|
@@ -123805,6 +123853,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123805
123853
|
}
|
|
123806
123854
|
})];
|
|
123807
123855
|
}
|
|
123856
|
+
}, {
|
|
123857
|
+
key: "operation",
|
|
123858
|
+
fn: function ({
|
|
123859
|
+
data
|
|
123860
|
+
}) {
|
|
123861
|
+
return [_c('el-link', {
|
|
123862
|
+
attrs: {
|
|
123863
|
+
"type": "primary",
|
|
123864
|
+
"size": "small",
|
|
123865
|
+
"underline": false
|
|
123866
|
+
},
|
|
123867
|
+
on: {
|
|
123868
|
+
"click": function ($event) {
|
|
123869
|
+
$event.stopPropagation();
|
|
123870
|
+
return _vm.recallMail(data.scope);
|
|
123871
|
+
}
|
|
123872
|
+
}
|
|
123873
|
+
}, [_vm._v("撤回")])];
|
|
123874
|
+
}
|
|
123808
123875
|
}])
|
|
123809
123876
|
}), _c('div', {
|
|
123810
123877
|
staticClass: "tool"
|
|
@@ -123846,7 +123913,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123846
123913
|
staticClass: "dss-iconfont"
|
|
123847
123914
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123848
123915
|
};
|
|
123849
|
-
var
|
|
123916
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns = [];
|
|
123850
123917
|
|
|
123851
123918
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123852
123919
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123934,6 +124001,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123934
124001
|
label: src_language.t("edm2.mailEn12"),
|
|
123935
124002
|
prop: "sendTime",
|
|
123936
124003
|
width: "200"
|
|
124004
|
+
}, {
|
|
124005
|
+
label: "操作",
|
|
124006
|
+
scope: "operation",
|
|
124007
|
+
width: "100"
|
|
123937
124008
|
}],
|
|
123938
124009
|
tableData: [],
|
|
123939
124010
|
loading: false,
|
|
@@ -123982,6 +124053,28 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123982
124053
|
localStorage.removeItem("searchFlag");
|
|
123983
124054
|
},
|
|
123984
124055
|
methods: {
|
|
124056
|
+
// 撤回邮件
|
|
124057
|
+
recallMail(row) {
|
|
124058
|
+
console.log(row, "row");
|
|
124059
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124060
|
+
confirmButtonText: "确定",
|
|
124061
|
+
cancelButtonText: "取消",
|
|
124062
|
+
type: "warning"
|
|
124063
|
+
}).then(() => {
|
|
124064
|
+
withdraw(row.id).then(res => {
|
|
124065
|
+
if (res.code == "0") {
|
|
124066
|
+
this.$message({
|
|
124067
|
+
type: "success",
|
|
124068
|
+
duration: 7000,
|
|
124069
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124070
|
+
});
|
|
124071
|
+
this.init();
|
|
124072
|
+
} else {
|
|
124073
|
+
this.$message.error(res.message);
|
|
124074
|
+
}
|
|
124075
|
+
});
|
|
124076
|
+
}).catch(() => {});
|
|
124077
|
+
},
|
|
123985
124078
|
// 主题-正文
|
|
123986
124079
|
changeContentMode(val) {
|
|
123987
124080
|
this.contentSelect = val;
|
|
@@ -124175,10 +124268,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124175
124268
|
});
|
|
124176
124269
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124177
124270
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
124178
|
-
;// ./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=
|
|
124271
|
+
;// ./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=9dd5bd72&prod&lang=scss&scoped=true
|
|
124179
124272
|
// extracted by mini-css-extract-plugin
|
|
124180
124273
|
|
|
124181
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124274
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=9dd5bd72&prod&lang=scss&scoped=true
|
|
124182
124275
|
|
|
124183
124276
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124184
124277
|
|
|
@@ -124191,18 +124284,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124191
124284
|
|
|
124192
124285
|
var singleSendMail_component = normalizeComponent(
|
|
124193
124286
|
components_singleSendMailvue_type_script_lang_js,
|
|
124194
|
-
|
|
124195
|
-
|
|
124287
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render,
|
|
124288
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns,
|
|
124196
124289
|
false,
|
|
124197
124290
|
null,
|
|
124198
|
-
"
|
|
124291
|
+
"9dd5bd72",
|
|
124199
124292
|
null
|
|
124200
124293
|
|
|
124201
124294
|
)
|
|
124202
124295
|
|
|
124203
124296
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
124204
|
-
;// ./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=
|
|
124205
|
-
var
|
|
124297
|
+
;// ./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=b7b4f6b0&scoped=true
|
|
124298
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render = function render() {
|
|
124206
124299
|
var _vm = this,
|
|
124207
124300
|
_c = _vm._self._c;
|
|
124208
124301
|
return _c('div', {
|
|
@@ -124492,6 +124585,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124492
124585
|
}
|
|
124493
124586
|
})];
|
|
124494
124587
|
}
|
|
124588
|
+
}, {
|
|
124589
|
+
key: "operation",
|
|
124590
|
+
fn: function ({
|
|
124591
|
+
data
|
|
124592
|
+
}) {
|
|
124593
|
+
return [_c('el-link', {
|
|
124594
|
+
attrs: {
|
|
124595
|
+
"type": "primary",
|
|
124596
|
+
"size": "small",
|
|
124597
|
+
"underline": false
|
|
124598
|
+
},
|
|
124599
|
+
on: {
|
|
124600
|
+
"click": function ($event) {
|
|
124601
|
+
$event.stopPropagation();
|
|
124602
|
+
return _vm.recallMail(data.scope);
|
|
124603
|
+
}
|
|
124604
|
+
}
|
|
124605
|
+
}, [_vm._v("撤回")])];
|
|
124606
|
+
}
|
|
124495
124607
|
}])
|
|
124496
124608
|
}), _c('div', {
|
|
124497
124609
|
staticClass: "tool"
|
|
@@ -124518,7 +124630,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124518
124630
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124519
124631
|
})])])])], 1)]);
|
|
124520
124632
|
};
|
|
124521
|
-
var
|
|
124633
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns = [];
|
|
124522
124634
|
|
|
124523
124635
|
;// ./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
|
|
124524
124636
|
|
|
@@ -124590,6 +124702,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124590
124702
|
label: src_language.t("edm2.mailEn12"),
|
|
124591
124703
|
prop: "sendTime",
|
|
124592
124704
|
width: "200"
|
|
124705
|
+
}, {
|
|
124706
|
+
label: "操作",
|
|
124707
|
+
scope: "operation",
|
|
124708
|
+
width: "100"
|
|
124593
124709
|
}],
|
|
124594
124710
|
contentInput: "",
|
|
124595
124711
|
contentSelect: "1",
|
|
@@ -124641,6 +124757,28 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124641
124757
|
localStorage.removeItem("searchFlag");
|
|
124642
124758
|
},
|
|
124643
124759
|
methods: {
|
|
124760
|
+
// 撤回邮件
|
|
124761
|
+
recallMail(row) {
|
|
124762
|
+
console.log(row, "row");
|
|
124763
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124764
|
+
confirmButtonText: "确定",
|
|
124765
|
+
cancelButtonText: "取消",
|
|
124766
|
+
type: "warning"
|
|
124767
|
+
}).then(() => {
|
|
124768
|
+
withdraw(row.id).then(res => {
|
|
124769
|
+
if (res.code == "0") {
|
|
124770
|
+
this.$message({
|
|
124771
|
+
type: "success",
|
|
124772
|
+
duration: 7000,
|
|
124773
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124774
|
+
});
|
|
124775
|
+
this.init();
|
|
124776
|
+
} else {
|
|
124777
|
+
this.$message.error(res.message);
|
|
124778
|
+
}
|
|
124779
|
+
});
|
|
124780
|
+
}).catch(() => {});
|
|
124781
|
+
},
|
|
124644
124782
|
// 去除html标签
|
|
124645
124783
|
filterHtmlTag(str) {
|
|
124646
124784
|
if (str) {
|
|
@@ -124852,10 +124990,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124852
124990
|
});
|
|
124853
124991
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124854
124992
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
124855
|
-
;// ./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=
|
|
124993
|
+
;// ./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=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124856
124994
|
// extracted by mini-css-extract-plugin
|
|
124857
124995
|
|
|
124858
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
124996
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124859
124997
|
|
|
124860
124998
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124861
124999
|
|
|
@@ -124868,11 +125006,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124868
125006
|
|
|
124869
125007
|
var replySendMail_component = normalizeComponent(
|
|
124870
125008
|
components_replySendMailvue_type_script_lang_js,
|
|
124871
|
-
|
|
124872
|
-
|
|
125009
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render,
|
|
125010
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns,
|
|
124873
125011
|
false,
|
|
124874
125012
|
null,
|
|
124875
|
-
"
|
|
125013
|
+
"b7b4f6b0",
|
|
124876
125014
|
null
|
|
124877
125015
|
|
|
124878
125016
|
)
|
|
@@ -126340,8 +126478,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126340
126478
|
)
|
|
126341
126479
|
|
|
126342
126480
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
126343
|
-
;// ./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=
|
|
126344
|
-
var
|
|
126481
|
+
;// ./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=6a248e40&scoped=true
|
|
126482
|
+
var detailvue_type_template_id_6a248e40_scoped_true_render = function render() {
|
|
126345
126483
|
var _vm = this,
|
|
126346
126484
|
_c = _vm._self._c;
|
|
126347
126485
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126354,6 +126492,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126354
126492
|
}, [_c('i', {
|
|
126355
126493
|
staticClass: "el-icon-arrow-left"
|
|
126356
126494
|
})]), _c('div', {
|
|
126495
|
+
staticClass: "back recall_btn",
|
|
126496
|
+
on: {
|
|
126497
|
+
"click": _vm.recallMail
|
|
126498
|
+
}
|
|
126499
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126357
126500
|
staticClass: "mail-items-box"
|
|
126358
126501
|
}, [_c('div', {
|
|
126359
126502
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126580,7 +126723,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126580
126723
|
}
|
|
126581
126724
|
}) : _vm._e()], 1) : _vm._e();
|
|
126582
126725
|
};
|
|
126583
|
-
var
|
|
126726
|
+
var detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns = [function () {
|
|
126727
|
+
var _vm = this,
|
|
126728
|
+
_c = _vm._self._c;
|
|
126729
|
+
return _c('div', {
|
|
126730
|
+
staticClass: "re_box"
|
|
126731
|
+
}, [_c('i', {
|
|
126732
|
+
staticClass: "dss-iconfont btn_con"
|
|
126733
|
+
}, [_vm._v("")]), _c('span', {
|
|
126734
|
+
staticClass: "btn_con"
|
|
126735
|
+
}, [_vm._v("撤回")])]);
|
|
126736
|
+
}];
|
|
126737
|
+
|
|
126738
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=6a248e40&scoped=true
|
|
126584
126739
|
|
|
126585
126740
|
;// ./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
|
|
126586
126741
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126829,6 +126984,27 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126829
126984
|
localStorage.setItem("searchFlag", true);
|
|
126830
126985
|
},
|
|
126831
126986
|
methods: {
|
|
126987
|
+
// 撤回邮件
|
|
126988
|
+
recallMail() {
|
|
126989
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
126990
|
+
confirmButtonText: "确定",
|
|
126991
|
+
cancelButtonText: "取消",
|
|
126992
|
+
type: "warning"
|
|
126993
|
+
}).then(() => {
|
|
126994
|
+
withdraw(this.$route.query.id).then(res => {
|
|
126995
|
+
if (res.code == "0") {
|
|
126996
|
+
this.$message({
|
|
126997
|
+
type: "success",
|
|
126998
|
+
duration: 7000,
|
|
126999
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127000
|
+
});
|
|
127001
|
+
this.backToOutbox();
|
|
127002
|
+
} else {
|
|
127003
|
+
this.$message.error(res.message);
|
|
127004
|
+
}
|
|
127005
|
+
});
|
|
127006
|
+
}).catch(() => {});
|
|
127007
|
+
},
|
|
126832
127008
|
// 红人档案侧抽
|
|
126833
127009
|
toBloggerDeatil(item) {
|
|
126834
127010
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126960,10 +127136,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126960
127136
|
});
|
|
126961
127137
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126962
127138
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
126963
|
-
;// ./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=
|
|
127139
|
+
;// ./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=6a248e40&prod&lang=scss&scoped=true
|
|
126964
127140
|
// extracted by mini-css-extract-plugin
|
|
126965
127141
|
|
|
126966
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127142
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=6a248e40&prod&lang=scss&scoped=true
|
|
126967
127143
|
|
|
126968
127144
|
;// ./src/package/outbox-email/detail.vue
|
|
126969
127145
|
|
|
@@ -126976,11 +127152,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126976
127152
|
|
|
126977
127153
|
var outbox_email_detail_component = normalizeComponent(
|
|
126978
127154
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126979
|
-
|
|
126980
|
-
|
|
127155
|
+
detailvue_type_template_id_6a248e40_scoped_true_render,
|
|
127156
|
+
detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns,
|
|
126981
127157
|
false,
|
|
126982
127158
|
null,
|
|
126983
|
-
"
|
|
127159
|
+
"6a248e40",
|
|
126984
127160
|
null
|
|
126985
127161
|
|
|
126986
127162
|
)
|