wotokol-edm 1.1.14 → 1.1.16
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 +1207 -1013
- 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 +1080 -886
- 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,841 +118410,591 @@ 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=357bd4cd&scoped=true
|
|
118414
|
+
|
|
118415
|
+
|
|
118416
|
+
var TemplateListvue_type_template_id_357bd4cd_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.type == 1 && _vm.contentSelect == 2 ? _c('div', {
|
|
118464
|
+
staticClass: "temp_right"
|
|
118365
118465
|
}, [_c('el-select', {
|
|
118366
118466
|
attrs: {
|
|
118367
|
-
"
|
|
118368
|
-
"
|
|
118369
|
-
},
|
|
118370
|
-
on: {
|
|
118371
|
-
"change": function ($event) {
|
|
118372
|
-
_vm.searchForm.currentPage = 1;
|
|
118373
|
-
_vm.init();
|
|
118374
|
-
}
|
|
118467
|
+
"slot": "prepend",
|
|
118468
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118375
118469
|
},
|
|
118470
|
+
slot: "prepend",
|
|
118376
118471
|
model: {
|
|
118377
|
-
value: _vm.searchForm.
|
|
118472
|
+
value: _vm.searchForm.scene,
|
|
118378
118473
|
callback: function ($$v) {
|
|
118379
|
-
_vm.$set(_vm.searchForm, "
|
|
118474
|
+
_vm.$set(_vm.searchForm, "scene", $$v);
|
|
118380
118475
|
},
|
|
118381
|
-
expression: "searchForm.
|
|
118476
|
+
expression: "searchForm.scene"
|
|
118382
118477
|
}
|
|
118383
|
-
}, _vm._l(_vm.
|
|
118478
|
+
}, _vm._l(_vm.templateSystemScene, function (scene) {
|
|
118384
118479
|
return _c('el-option', {
|
|
118385
|
-
key:
|
|
118480
|
+
key: scene.value,
|
|
118386
118481
|
attrs: {
|
|
118387
|
-
"
|
|
118388
|
-
"
|
|
118482
|
+
"label": scene.label,
|
|
118483
|
+
"value": scene.value
|
|
118389
118484
|
}
|
|
118390
118485
|
});
|
|
118391
|
-
}), 1)], 1)
|
|
118392
|
-
staticClass: "
|
|
118393
|
-
}, [_c('
|
|
118394
|
-
staticClass: "
|
|
118395
|
-
|
|
118396
|
-
"
|
|
118397
|
-
_vm.isShowSet = true;
|
|
118398
|
-
}
|
|
118399
|
-
}
|
|
118400
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.create_template")) + " ")])])]), _vm.searchForm.type === 1 ? _c('div', {
|
|
118401
|
-
staticClass: "tab px24 mb24"
|
|
118402
|
-
}, [_c('el-tabs', {
|
|
118403
|
-
on: {
|
|
118404
|
-
"tab-click": _vm.swicthTab
|
|
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')
|
|
118405
118492
|
},
|
|
118406
118493
|
model: {
|
|
118407
|
-
value: _vm.
|
|
118494
|
+
value: _vm.contentInput,
|
|
118408
118495
|
callback: function ($$v) {
|
|
118409
|
-
_vm
|
|
118496
|
+
_vm.contentInput = $$v;
|
|
118410
118497
|
},
|
|
118411
|
-
expression: "
|
|
118498
|
+
expression: "contentInput"
|
|
118412
118499
|
}
|
|
118413
|
-
},
|
|
118414
|
-
return _c('el-tab-pane', {
|
|
118415
|
-
key: item.name,
|
|
118416
|
-
attrs: {
|
|
118417
|
-
"name": item.name,
|
|
118418
|
-
"label": item.label
|
|
118419
|
-
}
|
|
118420
|
-
});
|
|
118421
|
-
}), 1)], 1) : _vm._e(), _c('div', {
|
|
118422
|
-
directives: [{
|
|
118423
|
-
name: "loading",
|
|
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', {
|
|
118500
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118497
118501
|
attrs: {
|
|
118498
|
-
"
|
|
118499
|
-
"total": _vm.tableTotal,
|
|
118500
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118501
|
-
"pager-count": 5,
|
|
118502
|
-
"small": "",
|
|
118503
|
-
"layout": "total, prev, pager, next, jumper"
|
|
118504
|
-
},
|
|
118505
|
-
on: {
|
|
118506
|
-
"current-change": _vm.changePage
|
|
118502
|
+
"span": 8
|
|
118507
118503
|
}
|
|
118508
|
-
}
|
|
118504
|
+
}, [_c('div', {
|
|
118505
|
+
staticClass: "col-item col-select-input-item"
|
|
118506
|
+
}, [_c('el-input', {
|
|
118507
|
+
staticClass: "col-input-select",
|
|
118509
118508
|
attrs: {
|
|
118510
|
-
"
|
|
118511
|
-
"with-header": false,
|
|
118512
|
-
"wrapper-closable": false,
|
|
118513
|
-
"append-to-body": "",
|
|
118514
|
-
"size": "800px"
|
|
118509
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118515
118510
|
},
|
|
118516
|
-
|
|
118517
|
-
|
|
118518
|
-
|
|
118519
|
-
|
|
118511
|
+
model: {
|
|
118512
|
+
value: _vm.mailTitleInput,
|
|
118513
|
+
callback: function ($$v) {
|
|
118514
|
+
_vm.mailTitleInput = $$v;
|
|
118515
|
+
},
|
|
118516
|
+
expression: "mailTitleInput"
|
|
118520
118517
|
}
|
|
118521
|
-
}, [
|
|
118518
|
+
}, [_c('el-select', {
|
|
118522
118519
|
attrs: {
|
|
118523
|
-
"
|
|
118524
|
-
"
|
|
118525
|
-
"selectType": _vm.searchForm.type
|
|
118520
|
+
"slot": "prepend",
|
|
118521
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118526
118522
|
},
|
|
118527
118523
|
on: {
|
|
118528
|
-
"
|
|
118529
|
-
_vm.
|
|
118530
|
-
_vm.
|
|
118531
|
-
|
|
118532
|
-
"close": function ($event) {
|
|
118533
|
-
_vm.setId = 0;
|
|
118534
|
-
_vm.isShowSet = false;
|
|
118524
|
+
"change": function ($event) {
|
|
118525
|
+
_vm.mailTitleInput = '';
|
|
118526
|
+
_vm.searchForm.content = '';
|
|
118527
|
+
_vm.searchForm.mailSubject = '';
|
|
118535
118528
|
}
|
|
118529
|
+
},
|
|
118530
|
+
slot: "prepend",
|
|
118531
|
+
model: {
|
|
118532
|
+
value: _vm.mailTitleSelect,
|
|
118533
|
+
callback: function ($$v) {
|
|
118534
|
+
_vm.mailTitleSelect = $$v;
|
|
118535
|
+
},
|
|
118536
|
+
expression: "mailTitleSelect"
|
|
118537
|
+
}
|
|
118538
|
+
}, [_c('el-option', {
|
|
118539
|
+
attrs: {
|
|
118540
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118541
|
+
"value": "1"
|
|
118542
|
+
}
|
|
118543
|
+
}), _c('el-option', {
|
|
118544
|
+
attrs: {
|
|
118545
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118546
|
+
"value": "2"
|
|
118547
|
+
}
|
|
118548
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118549
|
+
attrs: {
|
|
118550
|
+
"span": 8
|
|
118536
118551
|
}
|
|
118537
|
-
}
|
|
118552
|
+
}, [_c('div', {
|
|
118553
|
+
staticClass: "col-item"
|
|
118554
|
+
}, [_c('span', {
|
|
118555
|
+
staticClass: "col-span"
|
|
118556
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118557
|
+
staticClass: "col-select",
|
|
118538
118558
|
attrs: {
|
|
118539
|
-
"
|
|
118540
|
-
"
|
|
118541
|
-
"
|
|
118559
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118560
|
+
"clearable": "",
|
|
118561
|
+
"filterable": ""
|
|
118542
118562
|
},
|
|
118543
|
-
|
|
118544
|
-
|
|
118563
|
+
model: {
|
|
118564
|
+
value: _vm.searchForm.modelLanguage,
|
|
118565
|
+
callback: function ($$v) {
|
|
118566
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118567
|
+
},
|
|
118568
|
+
expression: "searchForm.modelLanguage"
|
|
118545
118569
|
}
|
|
118546
|
-
}
|
|
118547
|
-
|
|
118548
|
-
|
|
118549
|
-
|
|
118550
|
-
|
|
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",
|
|
118587
|
-
on: {
|
|
118588
|
-
"click": function ($event) {
|
|
118589
|
-
return _vm.close();
|
|
118570
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118571
|
+
return _c('el-option', {
|
|
118572
|
+
key: item.value,
|
|
118573
|
+
attrs: {
|
|
118574
|
+
"value": item.value,
|
|
118575
|
+
"label": item.label
|
|
118590
118576
|
}
|
|
118591
|
-
}
|
|
118592
|
-
},
|
|
118593
|
-
|
|
118594
|
-
|
|
118595
|
-
|
|
118596
|
-
}, [_c('el-form', {
|
|
118597
|
-
ref: "form",
|
|
118577
|
+
});
|
|
118578
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118579
|
+
staticStyle: {
|
|
118580
|
+
"margin-top": "8px"
|
|
118581
|
+
},
|
|
118598
118582
|
attrs: {
|
|
118599
|
-
"
|
|
118600
|
-
"rules": _vm.verifyForm
|
|
118583
|
+
"gutter": 12
|
|
118601
118584
|
}
|
|
118602
|
-
}, [_c('
|
|
118603
|
-
staticClass: "form-item"
|
|
118604
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118585
|
+
}, [_c('el-col', {
|
|
118605
118586
|
attrs: {
|
|
118606
|
-
"
|
|
118587
|
+
"span": 8
|
|
118607
118588
|
}
|
|
118608
|
-
}, [_c('
|
|
118589
|
+
}, [_c('div', {
|
|
118590
|
+
staticClass: "col-item"
|
|
118591
|
+
}, [_c('span', {
|
|
118592
|
+
staticClass: "col-span"
|
|
118593
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118594
|
+
staticClass: "col-select",
|
|
118609
118595
|
attrs: {
|
|
118610
|
-
"
|
|
118611
|
-
"placeholder": _vm.$i18n.t('common.please_input') + `(30` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118596
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118612
118597
|
"clearable": ""
|
|
118613
118598
|
},
|
|
118599
|
+
on: {
|
|
118600
|
+
"change": _vm.modelTypeChange
|
|
118601
|
+
},
|
|
118614
118602
|
model: {
|
|
118615
|
-
value: _vm.
|
|
118603
|
+
value: _vm.searchForm.type,
|
|
118616
118604
|
callback: function ($$v) {
|
|
118617
|
-
_vm.$set(_vm.
|
|
118605
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118618
118606
|
},
|
|
118619
|
-
expression: "
|
|
118607
|
+
expression: "searchForm.type"
|
|
118620
118608
|
}
|
|
118621
|
-
}
|
|
118622
|
-
|
|
118623
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
|
|
118609
|
+
}, [_c('el-option', {
|
|
118610
|
+
key: 1,
|
|
118624
118611
|
attrs: {
|
|
118625
|
-
"
|
|
118612
|
+
"value": 1,
|
|
118613
|
+
"label": "系统模版"
|
|
118626
118614
|
}
|
|
118627
|
-
},
|
|
118628
|
-
|
|
118615
|
+
}), _c('el-option', {
|
|
118616
|
+
key: 2,
|
|
118629
118617
|
attrs: {
|
|
118630
|
-
"
|
|
118631
|
-
"
|
|
118618
|
+
"value": 2,
|
|
118619
|
+
"label": "自定义模版"
|
|
118620
|
+
}
|
|
118621
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118622
|
+
attrs: {
|
|
118623
|
+
"span": 8
|
|
118624
|
+
}
|
|
118625
|
+
}, [_c('div', {
|
|
118626
|
+
staticClass: "col-item"
|
|
118627
|
+
}, [_c('span', {
|
|
118628
|
+
staticClass: "col-span"
|
|
118629
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118630
|
+
staticClass: "col-select",
|
|
118631
|
+
attrs: {
|
|
118632
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118632
118633
|
"clearable": ""
|
|
118633
118634
|
},
|
|
118634
|
-
on: {
|
|
118635
|
-
"focus": function ($event) {
|
|
118636
|
-
_vm.isFocusSubject = true;
|
|
118637
|
-
}
|
|
118638
|
-
},
|
|
118639
118635
|
model: {
|
|
118640
|
-
value: _vm.
|
|
118636
|
+
value: _vm.searchForm.isShared,
|
|
118641
118637
|
callback: function ($$v) {
|
|
118642
|
-
_vm.$set(_vm.
|
|
118638
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118643
118639
|
},
|
|
118644
|
-
expression: "
|
|
118640
|
+
expression: "searchForm.isShared"
|
|
118645
118641
|
}
|
|
118646
|
-
}
|
|
118647
|
-
|
|
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",
|
|
118642
|
+
}, [_c('el-option', {
|
|
118643
|
+
key: 1,
|
|
118652
118644
|
attrs: {
|
|
118653
|
-
"
|
|
118654
|
-
"
|
|
118655
|
-
}
|
|
118656
|
-
|
|
118657
|
-
|
|
118658
|
-
|
|
118659
|
-
|
|
118645
|
+
"value": true,
|
|
118646
|
+
"label": "公开"
|
|
118647
|
+
}
|
|
118648
|
+
}), _c('el-option', {
|
|
118649
|
+
key: 2,
|
|
118650
|
+
attrs: {
|
|
118651
|
+
"value": false,
|
|
118652
|
+
"label": "私有"
|
|
118653
|
+
}
|
|
118654
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118655
|
+
attrs: {
|
|
118656
|
+
"span": 8
|
|
118660
118657
|
}
|
|
118661
|
-
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118662
|
-
staticClass: "form-tool"
|
|
118663
118658
|
}, [_c('div', {
|
|
118664
|
-
staticClass: "
|
|
118665
|
-
}, [_c('
|
|
118666
|
-
staticClass: "
|
|
118667
|
-
}
|
|
118668
|
-
staticClass: "
|
|
118669
|
-
}, [_c('button', {
|
|
118670
|
-
staticClass: "mb8 mr16",
|
|
118659
|
+
staticClass: "col-item"
|
|
118660
|
+
}, [_c('span', {
|
|
118661
|
+
staticClass: "col-span"
|
|
118662
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118663
|
+
staticClass: "col-select",
|
|
118671
118664
|
attrs: {
|
|
118672
|
-
"
|
|
118665
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118666
|
+
"clearable": "",
|
|
118667
|
+
"filterable": ""
|
|
118673
118668
|
},
|
|
118674
|
-
|
|
118675
|
-
|
|
118676
|
-
|
|
118677
|
-
|
|
118678
|
-
}
|
|
118669
|
+
model: {
|
|
118670
|
+
value: _vm.searchForm.userId,
|
|
118671
|
+
callback: function ($$v) {
|
|
118672
|
+
_vm.$set(_vm.searchForm, "userId", $$v);
|
|
118673
|
+
},
|
|
118674
|
+
expression: "searchForm.userId"
|
|
118679
118675
|
}
|
|
118680
|
-
},
|
|
118681
|
-
|
|
118682
|
-
|
|
118683
|
-
|
|
118684
|
-
|
|
118685
|
-
|
|
118676
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118677
|
+
return _c('el-option', {
|
|
118678
|
+
key: item.userId,
|
|
118679
|
+
attrs: {
|
|
118680
|
+
"label": item.userName,
|
|
118681
|
+
"value": item.userId
|
|
118686
118682
|
}
|
|
118683
|
+
});
|
|
118684
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118685
|
+
staticStyle: {
|
|
118686
|
+
"margin-top": "8px"
|
|
118687
|
+
},
|
|
118688
|
+
attrs: {
|
|
118689
|
+
"gutter": 20
|
|
118687
118690
|
}
|
|
118688
|
-
}, [
|
|
118689
|
-
staticClass: "mb8 mr16",
|
|
118691
|
+
}, [_c('el-col', {
|
|
118690
118692
|
attrs: {
|
|
118691
|
-
"
|
|
118692
|
-
},
|
|
118693
|
-
on: {
|
|
118694
|
-
"click": function ($event) {
|
|
118695
|
-
$event.preventDefault();
|
|
118696
|
-
return _vm.setVariable(1);
|
|
118697
|
-
}
|
|
118693
|
+
"span": 24
|
|
118698
118694
|
}
|
|
118699
|
-
}, [
|
|
118695
|
+
}, [_c('div', {
|
|
118696
|
+
staticClass: "btns_box"
|
|
118697
|
+
}, [_c('div', [_c('el-button', {
|
|
118700
118698
|
attrs: {
|
|
118701
|
-
"
|
|
118699
|
+
"type": "primary"
|
|
118702
118700
|
},
|
|
118703
118701
|
on: {
|
|
118704
118702
|
"click": function ($event) {
|
|
118705
|
-
|
|
118706
|
-
|
|
118703
|
+
_vm.searchForm.currentPage = 1;
|
|
118704
|
+
_vm.getCardList();
|
|
118707
118705
|
}
|
|
118708
118706
|
}
|
|
118709
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118710
|
-
|
|
118711
|
-
|
|
118712
|
-
attrs: {
|
|
118713
|
-
"prop": "scene"
|
|
118707
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118708
|
+
on: {
|
|
118709
|
+
"click": _vm.resetEvt
|
|
118714
118710
|
}
|
|
118715
|
-
}, [_c('
|
|
118716
|
-
|
|
118717
|
-
"
|
|
118718
|
-
"
|
|
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"
|
|
118711
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118712
|
+
staticStyle: {
|
|
118713
|
+
"display": "flex",
|
|
118714
|
+
"align-items": "center"
|
|
118727
118715
|
}
|
|
118728
|
-
}
|
|
118729
|
-
staticClass: "
|
|
118730
|
-
}, [_c('
|
|
118716
|
+
}, [_c('div', {
|
|
118717
|
+
staticClass: "right_sort"
|
|
118718
|
+
}, [_c('el-dropdown', {
|
|
118731
118719
|
attrs: {
|
|
118732
|
-
"
|
|
118720
|
+
"placement": "bottom"
|
|
118733
118721
|
}
|
|
118734
|
-
}, [_c('
|
|
118722
|
+
}, [_c('div', {
|
|
118723
|
+
staticClass: "sort_btn"
|
|
118724
|
+
}, [_c('i', {
|
|
118725
|
+
staticClass: "dss-iconfont"
|
|
118726
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118735
118727
|
attrs: {
|
|
118736
|
-
"
|
|
118737
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118738
|
-
"clearable": ""
|
|
118728
|
+
"slot": "dropdown"
|
|
118739
118729
|
},
|
|
118740
|
-
|
|
118741
|
-
|
|
118742
|
-
|
|
118743
|
-
|
|
118730
|
+
slot: "dropdown"
|
|
118731
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118732
|
+
return _c('el-dropdown-item', {
|
|
118733
|
+
key: index,
|
|
118734
|
+
staticStyle: {
|
|
118735
|
+
"white-space": "nowrap"
|
|
118744
118736
|
},
|
|
118745
|
-
expression: "form.modelLanguage"
|
|
118746
|
-
}
|
|
118747
|
-
}, _vm._l(_vm.enumData.language, function (t, i) {
|
|
118748
|
-
return _c('el-option', {
|
|
118749
|
-
key: i,
|
|
118750
118737
|
attrs: {
|
|
118751
|
-
"
|
|
118752
|
-
|
|
118738
|
+
"command": item.value
|
|
118739
|
+
},
|
|
118740
|
+
nativeOn: {
|
|
118741
|
+
"click": function ($event) {
|
|
118742
|
+
return _vm.clickDropdownItem(item);
|
|
118743
|
+
}
|
|
118753
118744
|
}
|
|
118754
|
-
});
|
|
118755
|
-
}), 1)], 1)], 1)])], 1),
|
|
118756
|
-
|
|
118757
|
-
|
|
118758
|
-
|
|
118759
|
-
|
|
118760
|
-
"
|
|
118761
|
-
|
|
118745
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118746
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118747
|
+
directives: [{
|
|
118748
|
+
name: "loading",
|
|
118749
|
+
rawName: "v-loading",
|
|
118750
|
+
value: _vm.loading,
|
|
118751
|
+
expression: "loading"
|
|
118752
|
+
}],
|
|
118753
|
+
staticClass: "temp_box"
|
|
118754
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118755
|
+
staticClass: "temp_list"
|
|
118756
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118757
|
+
return _c('div', {
|
|
118758
|
+
key: item.id,
|
|
118759
|
+
staticClass: "temp_item"
|
|
118760
|
+
}, [_c('div', {
|
|
118761
|
+
staticClass: "temp_content"
|
|
118762
|
+
}, [_c('div', {
|
|
118763
|
+
staticClass: "temp_top"
|
|
118764
|
+
}, [_c('div', {
|
|
118765
|
+
staticClass: "temp_title"
|
|
118766
|
+
}, [_c('div', {
|
|
118767
|
+
staticClass: "title_text"
|
|
118768
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118769
|
+
staticClass: "more_icon",
|
|
118770
|
+
on: {
|
|
118771
|
+
"click": function ($event) {
|
|
118772
|
+
return _vm.toDetail(item);
|
|
118773
|
+
}
|
|
118762
118774
|
}
|
|
118763
|
-
}
|
|
118764
|
-
|
|
118765
|
-
|
|
118775
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118776
|
+
staticClass: "el-icon-arrow-right"
|
|
118777
|
+
})])]), _c('div', {
|
|
118778
|
+
staticClass: "num_box"
|
|
118779
|
+
}, [_c('div', {
|
|
118780
|
+
staticClass: "lang_box"
|
|
118781
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), _c('div', {
|
|
118782
|
+
staticClass: "lang_box"
|
|
118783
|
+
}, [_vm._v("附件:??个")]), _c('div', {
|
|
118784
|
+
staticClass: "lang_box"
|
|
118785
|
+
}, [_vm._v("商品卡:??个")])])]), _c('div', {
|
|
118786
|
+
staticClass: "temp_middle"
|
|
118787
|
+
}, [_c('div', {
|
|
118788
|
+
staticClass: "nu_box"
|
|
118789
|
+
}, [_c('div', {
|
|
118790
|
+
staticClass: "nu_title"
|
|
118791
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118792
|
+
staticClass: "nu_number"
|
|
118793
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118794
|
+
staticClass: "nu_box"
|
|
118795
|
+
}, [_c('div', {
|
|
118796
|
+
staticClass: "nu_title"
|
|
118797
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118798
|
+
staticClass: "nu_number"
|
|
118799
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118800
|
+
staticClass: "nu_box"
|
|
118801
|
+
}, [_c('div', {
|
|
118802
|
+
staticClass: "nu_title"
|
|
118803
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118804
|
+
staticClass: "nu_number"
|
|
118805
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118806
|
+
staticClass: "nu_box"
|
|
118807
|
+
}, [_c('div', {
|
|
118808
|
+
staticClass: "nu_title"
|
|
118809
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118810
|
+
staticClass: "nu_number"
|
|
118811
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118812
|
+
staticClass: "tem_bottom"
|
|
118813
|
+
}, [_c('div', {
|
|
118814
|
+
staticClass: "tem_desc"
|
|
118815
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118816
|
+
staticClass: "tem_desc"
|
|
118817
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118818
|
+
staticClass: "desc_btns"
|
|
118819
|
+
}, [_c('div', {
|
|
118820
|
+
staticClass: "desc_text"
|
|
118821
|
+
}, [_c('div', {
|
|
118822
|
+
staticClass: "tem_desc"
|
|
118823
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118824
|
+
staticClass: "tem_desc"
|
|
118825
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118826
|
+
staticClass: "apply_btn"
|
|
118827
|
+
}, [_c('el-button', {
|
|
118828
|
+
attrs: {
|
|
118829
|
+
"type": "primary"
|
|
118830
|
+
},
|
|
118831
|
+
on: {
|
|
118832
|
+
"click": function ($event) {
|
|
118833
|
+
return _vm.setMailTemplate(item);
|
|
118834
|
+
}
|
|
118835
|
+
}
|
|
118836
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118837
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118838
|
+
staticClass: "page_box"
|
|
118839
|
+
}, [_c('el-pagination', {
|
|
118766
118840
|
attrs: {
|
|
118767
|
-
"
|
|
118841
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118842
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118843
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118844
|
+
"total": _vm.total
|
|
118768
118845
|
},
|
|
118769
118846
|
on: {
|
|
118770
|
-
"
|
|
118847
|
+
"size-change": _vm.handleSizeChange,
|
|
118848
|
+
"current-change": _vm.handleCurrentChange,
|
|
118849
|
+
"update:currentPage": function ($event) {
|
|
118850
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118851
|
+
},
|
|
118852
|
+
"update:current-page": function ($event) {
|
|
118853
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118854
|
+
}
|
|
118771
118855
|
}
|
|
118772
|
-
},
|
|
118773
|
-
staticClass: "el-icon-loading"
|
|
118774
|
-
}) : _vm._e()])]) : _vm._e()]);
|
|
118856
|
+
})], 1)]);
|
|
118775
118857
|
};
|
|
118776
|
-
var
|
|
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
|
|
118858
|
+
var TemplateListvue_type_template_id_357bd4cd_scoped_true_staticRenderFns = [];
|
|
118779
118859
|
|
|
118860
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=357bd4cd&scoped=true
|
|
118780
118861
|
|
|
118862
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
118781
118863
|
|
|
118782
|
-
|
|
118783
|
-
|
|
118784
|
-
|
|
118785
|
-
|
|
118786
|
-
|
|
118787
|
-
|
|
118788
|
-
|
|
118789
|
-
|
|
118790
|
-
|
|
118791
|
-
|
|
118792
|
-
|
|
118793
|
-
|
|
118794
|
-
|
|
118795
|
-
|
|
118796
|
-
|
|
118797
|
-
|
|
118798
|
-
|
|
118799
|
-
|
|
118800
|
-
|
|
118801
|
-
|
|
118802
|
-
|
|
118803
|
-
|
|
118804
|
-
|
|
118805
|
-
|
|
118806
|
-
|
|
118807
|
-
|
|
118808
|
-
|
|
118809
|
-
|
|
118810
|
-
|
|
118811
|
-
|
|
118812
|
-
|
|
118813
|
-
|
|
118814
|
-
|
|
118815
|
-
|
|
118816
|
-
|
|
118817
|
-
|
|
118818
|
-
|
|
118819
|
-
|
|
118820
|
-
|
|
118821
|
-
|
|
118822
|
-
|
|
118823
|
-
|
|
118824
|
-
|
|
118825
|
-
|
|
118826
|
-
|
|
118827
|
-
|
|
118828
|
-
|
|
118829
|
-
|
|
118830
|
-
|
|
118831
|
-
|
|
118832
|
-
|
|
118833
|
-
|
|
118834
|
-
|
|
118835
|
-
|
|
118836
|
-
|
|
118837
|
-
|
|
118838
|
-
|
|
118839
|
-
|
|
118840
|
-
|
|
118841
|
-
|
|
118842
|
-
|
|
118843
|
-
|
|
118844
|
-
|
|
118845
|
-
|
|
118846
|
-
|
|
118847
|
-
|
|
118848
|
-
|
|
118849
|
-
|
|
118850
|
-
|
|
118851
|
-
|
|
118852
|
-
|
|
118853
|
-
|
|
118854
|
-
|
|
118855
|
-
|
|
118856
|
-
|
|
118857
|
-
|
|
118858
|
-
|
|
118859
|
-
|
|
118860
|
-
|
|
118861
|
-
|
|
118862
|
-
|
|
118863
|
-
|
|
118864
|
-
|
|
118865
|
-
|
|
118866
|
-
|
|
118867
|
-
|
|
118868
|
-
|
|
118869
|
-
|
|
118870
|
-
|
|
118871
|
-
|
|
118872
|
-
|
|
118873
|
-
|
|
118874
|
-
|
|
118875
|
-
|
|
118876
|
-
|
|
118877
|
-
|
|
118878
|
-
|
|
118879
|
-
|
|
118880
|
-
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;
|
|
118947
|
-
}
|
|
118948
|
-
const caretPosition = this.$refs.mailSubjectIpt.$el.firstElementChild.selectionStart;
|
|
118949
|
-
const newValue = this.form.mailSubject.slice(0, caretPosition) + content + this.form.mailSubject.slice(caretPosition);
|
|
118950
|
-
this.form.mailSubject = newValue;
|
|
118951
|
-
this.isFocusSubject = false;
|
|
118952
|
-
} else {
|
|
118953
|
-
switch (type) {
|
|
118954
|
-
case 0:
|
|
118955
|
-
// 频道名
|
|
118956
|
-
content = `{$channelName}`;
|
|
118957
|
-
break;
|
|
118958
|
-
case 1:
|
|
118959
|
-
// 粉丝数
|
|
118960
|
-
content = `{$subscriber}`;
|
|
118961
|
-
break;
|
|
118962
|
-
case 2:
|
|
118963
|
-
// 频道链接
|
|
118964
|
-
content = `{$link}`;
|
|
118965
|
-
break;
|
|
118966
|
-
case 3:
|
|
118967
|
-
// 频道id
|
|
118968
|
-
content = `{$channelId}`;
|
|
118969
|
-
break;
|
|
118970
|
-
}
|
|
118971
|
-
this.$refs.templateContent.insertEditContent(content);
|
|
118972
|
-
}
|
|
118973
|
-
},
|
|
118974
|
-
// 关闭弹窗
|
|
118975
|
-
close() {
|
|
118976
|
-
this.$emit("close");
|
|
118977
|
-
}
|
|
118978
|
-
}
|
|
118979
|
-
});
|
|
118980
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118981
|
-
/* harmony default export */ var TemplateCom_SetTemplatevue_type_script_lang_js = (SetTemplatevue_type_script_lang_js);
|
|
118982
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118983
|
-
// extracted by mini-css-extract-plugin
|
|
118984
|
-
|
|
118985
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118986
|
-
|
|
118987
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue
|
|
118988
|
-
|
|
118989
|
-
|
|
118990
|
-
|
|
118991
|
-
;
|
|
118992
|
-
|
|
118993
|
-
|
|
118994
|
-
/* normalize component */
|
|
118995
|
-
|
|
118996
|
-
var SetTemplate_component = normalizeComponent(
|
|
118997
|
-
TemplateCom_SetTemplatevue_type_script_lang_js,
|
|
118998
|
-
SetTemplatevue_type_template_id_87417d06_scoped_true_render,
|
|
118999
|
-
SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns,
|
|
119000
|
-
false,
|
|
119001
|
-
null,
|
|
119002
|
-
"87417d06",
|
|
119003
|
-
null
|
|
119004
|
-
|
|
119005
|
-
)
|
|
119006
|
-
|
|
119007
|
-
/* harmony default export */ var SetTemplate = (SetTemplate_component.exports);
|
|
119008
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=template&id=3c0d8a32&scoped=true
|
|
119009
|
-
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render = function render() {
|
|
119010
|
-
var _vm = this,
|
|
119011
|
-
_c = _vm._self._c;
|
|
119012
|
-
return _c('el-dialog', {
|
|
119013
|
-
attrs: {
|
|
119014
|
-
"visible": _vm.isShowSetSystemDialog,
|
|
119015
|
-
"close-on-click-modal": false,
|
|
119016
|
-
"title": _vm.$i18n.t('template.set_system_template'),
|
|
119017
|
-
"width": "300px",
|
|
119018
|
-
"append-to-body": ""
|
|
119019
|
-
},
|
|
119020
|
-
on: {
|
|
119021
|
-
"update:visible": function ($event) {
|
|
119022
|
-
_vm.isShowSetSystemDialog = $event;
|
|
119023
|
-
},
|
|
119024
|
-
"close": _vm.closeEvt
|
|
119025
|
-
}
|
|
119026
|
-
}, [_c('div', {
|
|
119027
|
-
staticClass: "form-item flex-col mb24"
|
|
119028
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t('template.choose_type')))]), _c('el-select', {
|
|
119029
|
-
attrs: {
|
|
119030
|
-
"filterable": "",
|
|
119031
|
-
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
119032
|
-
"clearable": ""
|
|
119033
|
-
},
|
|
119034
|
-
model: {
|
|
119035
|
-
value: _vm.setSystemForm.modelType,
|
|
119036
|
-
callback: function ($$v) {
|
|
119037
|
-
_vm.$set(_vm.setSystemForm, "modelType", $$v);
|
|
119038
|
-
},
|
|
119039
|
-
expression: "setSystemForm.modelType"
|
|
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
|
|
119047
|
-
}
|
|
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
|
-
}
|
|
119061
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
|
|
119062
|
-
};
|
|
119063
|
-
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns = [];
|
|
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
|
|
119131
|
-
|
|
119132
|
-
|
|
119133
|
-
|
|
119134
|
-
;
|
|
119135
|
-
|
|
119136
|
-
|
|
119137
|
-
/* normalize component */
|
|
119138
|
-
|
|
119139
|
-
var SetSysTemplate_component = normalizeComponent(
|
|
119140
|
-
TemplateCom_SetSysTemplatevue_type_script_lang_js,
|
|
119141
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render,
|
|
119142
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns,
|
|
119143
|
-
false,
|
|
119144
|
-
null,
|
|
119145
|
-
"3c0d8a32",
|
|
119146
|
-
null
|
|
119147
|
-
|
|
119148
|
-
)
|
|
119149
|
-
|
|
119150
|
-
/* harmony default export */ var SetSysTemplate = (SetSysTemplate_component.exports);
|
|
118864
|
+
const TemplateCom_const_language = [{
|
|
118865
|
+
value: '7',
|
|
118866
|
+
label: '汉语',
|
|
118867
|
+
enLabel: 'Chinese'
|
|
118868
|
+
}, {
|
|
118869
|
+
value: '1',
|
|
118870
|
+
label: '英语',
|
|
118871
|
+
enLabel: 'English'
|
|
118872
|
+
}, {
|
|
118873
|
+
value: '3',
|
|
118874
|
+
label: '法语',
|
|
118875
|
+
enLabel: 'French'
|
|
118876
|
+
}, {
|
|
118877
|
+
value: '8',
|
|
118878
|
+
label: '德语',
|
|
118879
|
+
enLabel: 'German'
|
|
118880
|
+
}, {
|
|
118881
|
+
value: '6',
|
|
118882
|
+
label: '日语',
|
|
118883
|
+
enLabel: 'Japanese'
|
|
118884
|
+
}, {
|
|
118885
|
+
value: '9',
|
|
118886
|
+
label: '韩语',
|
|
118887
|
+
enLabel: 'Korean'
|
|
118888
|
+
}, {
|
|
118889
|
+
value: '10',
|
|
118890
|
+
label: '越南语',
|
|
118891
|
+
enLabel: 'Vietnamese'
|
|
118892
|
+
}, {
|
|
118893
|
+
value: '11',
|
|
118894
|
+
label: '泰国语',
|
|
118895
|
+
enLabel: 'Thai'
|
|
118896
|
+
}, {
|
|
118897
|
+
value: '12',
|
|
118898
|
+
label: '菲律宾语',
|
|
118899
|
+
enLabel: 'Filipino'
|
|
118900
|
+
}, {
|
|
118901
|
+
value: '13',
|
|
118902
|
+
label: '印度尼西亚语',
|
|
118903
|
+
enLabel: 'Indonesian'
|
|
118904
|
+
}, {
|
|
118905
|
+
value: '14',
|
|
118906
|
+
label: '俄罗斯语',
|
|
118907
|
+
enLabel: 'Russian'
|
|
118908
|
+
}, {
|
|
118909
|
+
value: '4',
|
|
118910
|
+
label: '西班牙语',
|
|
118911
|
+
enLabel: 'Spanish'
|
|
118912
|
+
}, {
|
|
118913
|
+
value: '15',
|
|
118914
|
+
label: '意大利语',
|
|
118915
|
+
enLabel: 'Italian'
|
|
118916
|
+
}];
|
|
118917
|
+
const sortConfig = [{
|
|
118918
|
+
label: '按创建时间倒序',
|
|
118919
|
+
value: 0
|
|
118920
|
+
}, {
|
|
118921
|
+
label: '按更新时间倒序',
|
|
118922
|
+
value: 1
|
|
118923
|
+
}, {
|
|
118924
|
+
label: '按送达率倒序',
|
|
118925
|
+
value: 2
|
|
118926
|
+
}, {
|
|
118927
|
+
label: '按打开率倒序',
|
|
118928
|
+
value: 3
|
|
118929
|
+
}, {
|
|
118930
|
+
label: '按回复率倒序',
|
|
118931
|
+
value: 4
|
|
118932
|
+
}, {
|
|
118933
|
+
label: '按累计发送数倒序',
|
|
118934
|
+
value: 5
|
|
118935
|
+
}];
|
|
118936
|
+
// 系统模版场景
|
|
118937
|
+
const templateSystemScene = [{
|
|
118938
|
+
value: '1',
|
|
118939
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
118940
|
+
},
|
|
118941
|
+
//合作邀请
|
|
118942
|
+
{
|
|
118943
|
+
value: '2',
|
|
118944
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
118945
|
+
},
|
|
118946
|
+
//价格协商
|
|
118947
|
+
{
|
|
118948
|
+
value: '3',
|
|
118949
|
+
label: `${src_language.t('template.contract_template')}`
|
|
118950
|
+
},
|
|
118951
|
+
//合同模板
|
|
118952
|
+
{
|
|
118953
|
+
value: '4',
|
|
118954
|
+
label: `${src_language.t('template.video_production')}`
|
|
118955
|
+
},
|
|
118956
|
+
//视频制作
|
|
118957
|
+
{
|
|
118958
|
+
value: '5',
|
|
118959
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
118960
|
+
} //费用结算
|
|
118961
|
+
];
|
|
119151
118962
|
;// ./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
118963
|
|
|
119153
118964
|
|
|
119154
118965
|
|
|
119155
118966
|
|
|
119156
118967
|
|
|
118968
|
+
function createSearchForm(tar) {
|
|
118969
|
+
let raw = {
|
|
118970
|
+
templatesTitle: "",
|
|
118971
|
+
//模板标题
|
|
118972
|
+
scene: "",
|
|
118973
|
+
//应用场景
|
|
118974
|
+
mailSubject: "",
|
|
118975
|
+
//邮件主题
|
|
118976
|
+
content: "",
|
|
118977
|
+
//正文
|
|
118978
|
+
type: null,
|
|
118979
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
118980
|
+
modelLanguage: "",
|
|
118981
|
+
//语言
|
|
118982
|
+
isShared: "",
|
|
118983
|
+
//是否共享
|
|
118984
|
+
userId: "",
|
|
118985
|
+
//创建人
|
|
118986
|
+
searchSort: 1,
|
|
118987
|
+
//排序
|
|
118988
|
+
currentPage: 1,
|
|
118989
|
+
pageSize: 9
|
|
118990
|
+
};
|
|
118991
|
+
if (tar) {
|
|
118992
|
+
raw = Object.assign(raw, tar);
|
|
118993
|
+
}
|
|
118994
|
+
return raw;
|
|
118995
|
+
}
|
|
119157
118996
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119158
|
-
components: {
|
|
119159
|
-
SetTemplate: SetTemplate,
|
|
119160
|
-
SetSysTemplate: SetSysTemplate
|
|
119161
|
-
},
|
|
118997
|
+
components: {},
|
|
119162
118998
|
props: {
|
|
119163
118999
|
userId: {
|
|
119164
119000
|
type: [Number, String],
|
|
@@ -119167,161 +119003,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119167
119003
|
},
|
|
119168
119004
|
data() {
|
|
119169
119005
|
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: ""
|
|
119006
|
+
// 模版名称 场景
|
|
119007
|
+
contentSelect: "1",
|
|
119008
|
+
contentInput: "",
|
|
119009
|
+
// 邮件主题正文
|
|
119010
|
+
mailTitleSelect: "1",
|
|
119011
|
+
mailTitleInput: "",
|
|
119012
|
+
searchForm: createSearchForm(),
|
|
119013
|
+
language: TemplateCom_const_language,
|
|
119014
|
+
sortConfig: sortConfig,
|
|
119015
|
+
accountList: [],
|
|
119016
|
+
templateList: [],
|
|
119017
|
+
templateSystemScene: templateSystemScene,
|
|
119018
|
+
total: 0,
|
|
119019
|
+
loading: false
|
|
119229
119020
|
};
|
|
119230
119021
|
},
|
|
119231
|
-
|
|
119232
|
-
|
|
119233
|
-
this.
|
|
119022
|
+
mounted() {
|
|
119023
|
+
this.getAccountList();
|
|
119024
|
+
this.getCardList();
|
|
119234
119025
|
},
|
|
119235
119026
|
methods: {
|
|
119236
|
-
//
|
|
119237
|
-
|
|
119238
|
-
this.
|
|
119239
|
-
if (
|
|
119240
|
-
|
|
119027
|
+
// 语言枚举
|
|
119028
|
+
getLangLabel(val) {
|
|
119029
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119030
|
+
if (currLang) {
|
|
119031
|
+
return currLang.label;
|
|
119241
119032
|
}
|
|
119242
|
-
|
|
119243
|
-
|
|
119244
|
-
|
|
119245
|
-
|
|
119246
|
-
|
|
119033
|
+
},
|
|
119034
|
+
// 应用模版
|
|
119035
|
+
setMailTemplate(data) {
|
|
119036
|
+
this.$emit("setMailTemplate", data);
|
|
119037
|
+
},
|
|
119038
|
+
// 跳转详情
|
|
119039
|
+
toDetail(item) {
|
|
119040
|
+
const routeData = this.$router.resolve({
|
|
119041
|
+
path: "/emailTempDetail",
|
|
119042
|
+
query: {
|
|
119043
|
+
type: "edit",
|
|
119044
|
+
id: item.id
|
|
119045
|
+
}
|
|
119046
|
+
});
|
|
119047
|
+
window.open(routeData.href, "_blank");
|
|
119048
|
+
},
|
|
119049
|
+
// 获取列表
|
|
119050
|
+
getCardList() {
|
|
119051
|
+
if (this.contentSelect == "1") {
|
|
119052
|
+
this.searchForm.templatesTitle = this.contentInput;
|
|
119053
|
+
} else if (this.contentSelect == "2") {
|
|
119054
|
+
//系统模版
|
|
119055
|
+
if (this.searchForm.type != 1) {
|
|
119056
|
+
this.searchForm.scene = this.contentInput;
|
|
119057
|
+
}
|
|
119058
|
+
}
|
|
119059
|
+
if (this.mailTitleSelect == "1") {
|
|
119060
|
+
this.searchForm.mailSubject = this.mailTitleInput;
|
|
119061
|
+
} else if (this.mailTitleSelect == "2") {
|
|
119062
|
+
this.searchForm.content = this.mailTitleInput;
|
|
119063
|
+
}
|
|
119064
|
+
this.loading = true;
|
|
119065
|
+
templatesList(this.searchForm).then(res => {
|
|
119066
|
+
if (res.code == "0") {
|
|
119067
|
+
this.templateList = res.data.rows;
|
|
119068
|
+
this.total = res.data.total;
|
|
119069
|
+
this.loading = false;
|
|
119247
119070
|
} else {
|
|
119071
|
+
this.loading = false;
|
|
119248
119072
|
this.$message.error(res.message);
|
|
119249
119073
|
}
|
|
119250
119074
|
});
|
|
119251
119075
|
},
|
|
119252
|
-
//
|
|
119253
|
-
|
|
119254
|
-
this.searchForm.
|
|
119255
|
-
this.
|
|
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
|
-
},
|
|
119279
|
-
// 设置邮件模板
|
|
119280
|
-
setMailTemplate(data) {
|
|
119281
|
-
this.$emit("setMailTemplate", data);
|
|
119282
|
-
},
|
|
119283
|
-
// 打开编辑模板
|
|
119284
|
-
showSetTemplate(row) {
|
|
119285
|
-
this.setId = row.id;
|
|
119286
|
-
this.rowData = row;
|
|
119287
|
-
this.isShowSet = true;
|
|
119076
|
+
// 模板类型切换
|
|
119077
|
+
modelTypeChange(val) {
|
|
119078
|
+
this.searchForm.scene = "";
|
|
119079
|
+
this.contentInput = "";
|
|
119288
119080
|
},
|
|
119289
|
-
//
|
|
119290
|
-
|
|
119291
|
-
this.searchForm
|
|
119292
|
-
this.
|
|
119293
|
-
this.
|
|
119081
|
+
// 重置
|
|
119082
|
+
resetEvt() {
|
|
119083
|
+
this.searchForm = createSearchForm();
|
|
119084
|
+
this.contentSelect = "1";
|
|
119085
|
+
this.contentInput = "";
|
|
119086
|
+
this.mailTitleSelect = "1";
|
|
119087
|
+
this.mailTitleInput = "";
|
|
119088
|
+
this.getCardList();
|
|
119294
119089
|
},
|
|
119295
|
-
//
|
|
119296
|
-
|
|
119297
|
-
|
|
119090
|
+
// 获取账号下的账户
|
|
119091
|
+
getAccountList() {
|
|
119092
|
+
hubUserSonFather().then(res => {
|
|
119093
|
+
if (res.code == "0") {
|
|
119094
|
+
this.accountList = res.data;
|
|
119095
|
+
} else {
|
|
119096
|
+
this.$message.error(res.message);
|
|
119097
|
+
}
|
|
119098
|
+
});
|
|
119298
119099
|
},
|
|
119299
|
-
//
|
|
119300
|
-
|
|
119301
|
-
|
|
119100
|
+
// 排序按钮
|
|
119101
|
+
clickDropdownItem(item) {
|
|
119102
|
+
this.searchForm.currentPage = 1;
|
|
119103
|
+
this.searchForm.searchSort = item.value;
|
|
119104
|
+
this.getCardList();
|
|
119302
119105
|
},
|
|
119303
|
-
|
|
119304
|
-
|
|
119305
|
-
this.
|
|
119306
|
-
this.
|
|
119106
|
+
handleSizeChange(val) {
|
|
119107
|
+
this.searchForm.currentPage = 1;
|
|
119108
|
+
this.searchForm.pageSize = val;
|
|
119109
|
+
this.getCardList();
|
|
119307
119110
|
},
|
|
119308
|
-
|
|
119309
|
-
|
|
119310
|
-
this.
|
|
119111
|
+
handleCurrentChange(val) {
|
|
119112
|
+
this.searchForm.currentPage = val;
|
|
119113
|
+
this.getCardList();
|
|
119311
119114
|
}
|
|
119312
119115
|
}
|
|
119313
119116
|
});
|
|
119314
119117
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119315
119118
|
/* 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=
|
|
119119
|
+
;// ./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=357bd4cd&prod&lang=scss&scoped=true
|
|
119317
119120
|
// extracted by mini-css-extract-plugin
|
|
119318
119121
|
|
|
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
|
|
119122
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=357bd4cd&prod&lang=scss&scoped=true
|
|
119325
119123
|
|
|
119326
119124
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119327
119125
|
|
|
@@ -119330,16 +119128,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119330
119128
|
;
|
|
119331
119129
|
|
|
119332
119130
|
|
|
119333
|
-
|
|
119334
119131
|
/* normalize component */
|
|
119335
119132
|
|
|
119336
119133
|
var TemplateList_component = normalizeComponent(
|
|
119337
119134
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119338
|
-
|
|
119339
|
-
|
|
119135
|
+
TemplateListvue_type_template_id_357bd4cd_scoped_true_render,
|
|
119136
|
+
TemplateListvue_type_template_id_357bd4cd_scoped_true_staticRenderFns,
|
|
119340
119137
|
false,
|
|
119341
119138
|
null,
|
|
119342
|
-
"
|
|
119139
|
+
"357bd4cd",
|
|
119343
119140
|
null
|
|
119344
119141
|
|
|
119345
119142
|
)
|
|
@@ -121538,41 +121335,306 @@ var settingNicknamevue_type_template_id_779abf97_render = function render() {
|
|
|
121538
121335
|
_c = _vm._self._c;
|
|
121539
121336
|
return _c('el-dialog', {
|
|
121540
121337
|
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
|
|
121338
|
+
"visible": _vm.visible,
|
|
121339
|
+
"title": _vm.$t('edm5.v61'),
|
|
121340
|
+
"width": "480px",
|
|
121341
|
+
"before-close": _vm.closeDialog,
|
|
121342
|
+
"custom-class": "setting-nickname-dialog",
|
|
121343
|
+
"close-on-click-modal": false
|
|
121344
|
+
}
|
|
121345
|
+
}, [_c('div', {
|
|
121346
|
+
directives: [{
|
|
121347
|
+
name: "loading",
|
|
121348
|
+
rawName: "v-loading",
|
|
121349
|
+
value: _vm.loading,
|
|
121350
|
+
expression: "loading"
|
|
121351
|
+
}]
|
|
121352
|
+
}, [_c('div', {
|
|
121353
|
+
staticClass: "setting-tip"
|
|
121354
|
+
}, [_vm._v(" " + _vm._s(_vm.$t("edm5.v253")) + " ")]), _c('div', {
|
|
121355
|
+
staticClass: "setting-input"
|
|
121356
|
+
}, [_c('el-input', {
|
|
121357
|
+
attrs: {
|
|
121358
|
+
"type": "input",
|
|
121359
|
+
"placeholder": _vm.$t('edm5.v95')
|
|
121360
|
+
},
|
|
121361
|
+
model: {
|
|
121362
|
+
value: _vm.nickName,
|
|
121363
|
+
callback: function ($$v) {
|
|
121364
|
+
_vm.nickName = $$v;
|
|
121365
|
+
},
|
|
121366
|
+
expression: "nickName"
|
|
121367
|
+
}
|
|
121368
|
+
})], 1), _c('div', {
|
|
121369
|
+
staticClass: "footer-btn"
|
|
121370
|
+
}, [_c('el-button', {
|
|
121371
|
+
on: {
|
|
121372
|
+
"click": _vm.closeDialog
|
|
121373
|
+
}
|
|
121374
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121375
|
+
attrs: {
|
|
121376
|
+
"type": "primary",
|
|
121377
|
+
"loading": _vm.confirmBtnLoading
|
|
121378
|
+
},
|
|
121379
|
+
on: {
|
|
121380
|
+
"click": _vm.confirmSetting
|
|
121381
|
+
}
|
|
121382
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)])]);
|
|
121383
|
+
};
|
|
121384
|
+
var settingNicknamevue_type_template_id_779abf97_staticRenderFns = [];
|
|
121385
|
+
|
|
121386
|
+
;// ./src/api/setting/index.js
|
|
121387
|
+
|
|
121388
|
+
|
|
121389
|
+
// 设置邀约规则
|
|
121390
|
+
function settingAiRules(data) {
|
|
121391
|
+
return post(`/edm/outbox/invitationRules/save`, data);
|
|
121392
|
+
}
|
|
121393
|
+
|
|
121394
|
+
// 根据写信id获取邀约规则
|
|
121395
|
+
function getAiRules(writeId) {
|
|
121396
|
+
return get(`/edm/outbox/invitationRules/${writeId}`);
|
|
121397
|
+
}
|
|
121398
|
+
|
|
121399
|
+
// 获取发件人昵称
|
|
121400
|
+
function getNickname() {
|
|
121401
|
+
return request_get(`/edm/mail/getSenderInfo`);
|
|
121402
|
+
}
|
|
121403
|
+
|
|
121404
|
+
// 设置发件人昵称
|
|
121405
|
+
function settingNickname(data) {
|
|
121406
|
+
return request_post(`/edm/mail/saveSenderInfo`, data);
|
|
121407
|
+
}
|
|
121408
|
+
;// ./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
|
|
121409
|
+
|
|
121410
|
+
/* harmony default export */ var settingNicknamevue_type_script_lang_js = ({
|
|
121411
|
+
props: {
|
|
121412
|
+
visible: {
|
|
121413
|
+
type: Boolean,
|
|
121414
|
+
default: false
|
|
121415
|
+
},
|
|
121416
|
+
nickNameDefault: {
|
|
121417
|
+
type: String,
|
|
121418
|
+
default: ""
|
|
121419
|
+
}
|
|
121420
|
+
},
|
|
121421
|
+
data() {
|
|
121422
|
+
return {
|
|
121423
|
+
nickName: "",
|
|
121424
|
+
confirmBtnLoading: false,
|
|
121425
|
+
loading: false
|
|
121426
|
+
};
|
|
121427
|
+
},
|
|
121428
|
+
created() {
|
|
121429
|
+
if (this.nickNameDefault) this.nickName = this.nickNameDefault;
|
|
121430
|
+
},
|
|
121431
|
+
methods: {
|
|
121432
|
+
closeDialog() {
|
|
121433
|
+
this.$emit("update:visible", false);
|
|
121434
|
+
},
|
|
121435
|
+
// 获取发件人昵称
|
|
121436
|
+
async getNickname() {
|
|
121437
|
+
try {
|
|
121438
|
+
this.loading = true;
|
|
121439
|
+
const res = await getNickname();
|
|
121440
|
+
if (res.code === "0") {
|
|
121441
|
+
this.nickName = res.data || "";
|
|
121442
|
+
} else {
|
|
121443
|
+
this.$message.error(res.message);
|
|
121444
|
+
}
|
|
121445
|
+
} catch (error) {
|
|
121446
|
+
console.log(error);
|
|
121447
|
+
this.loading = false;
|
|
121448
|
+
} finally {
|
|
121449
|
+
this.loading = false;
|
|
121450
|
+
}
|
|
121451
|
+
},
|
|
121452
|
+
// 确定设置昵称
|
|
121453
|
+
async confirmSetting() {
|
|
121454
|
+
try {
|
|
121455
|
+
if (!this.nickName) return this.$message.error(this.$t('edm5.v254'));
|
|
121456
|
+
this.confirmBtnLoading = true;
|
|
121457
|
+
const res = await settingNickname({
|
|
121458
|
+
nickName: this.nickName.trim()
|
|
121459
|
+
});
|
|
121460
|
+
if (res.code === "0") {
|
|
121461
|
+
this.$message.success("设置成功!");
|
|
121462
|
+
this.$emit("updateNickName", this.nickName);
|
|
121463
|
+
this.closeDialog();
|
|
121464
|
+
} else {
|
|
121465
|
+
this.$message.error(res.message);
|
|
121466
|
+
}
|
|
121467
|
+
} catch (error) {
|
|
121468
|
+
console.log(error);
|
|
121469
|
+
} finally {
|
|
121470
|
+
this.confirmBtnLoading = false;
|
|
121471
|
+
}
|
|
121472
|
+
}
|
|
121473
|
+
}
|
|
121474
|
+
});
|
|
121475
|
+
;// ./src/package/write-email/components/settingNickname.vue?vue&type=script&lang=js
|
|
121476
|
+
/* harmony default export */ var components_settingNicknamevue_type_script_lang_js = (settingNicknamevue_type_script_lang_js);
|
|
121477
|
+
;// ./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
|
|
121478
|
+
// extracted by mini-css-extract-plugin
|
|
121479
|
+
|
|
121480
|
+
;// ./src/package/write-email/components/settingNickname.vue?vue&type=style&index=0&id=779abf97&prod&lang=scss
|
|
121481
|
+
|
|
121482
|
+
;// ./src/package/write-email/components/settingNickname.vue
|
|
121483
|
+
|
|
121484
|
+
|
|
121485
|
+
|
|
121486
|
+
;
|
|
121487
|
+
|
|
121488
|
+
|
|
121489
|
+
/* normalize component */
|
|
121490
|
+
|
|
121491
|
+
var settingNickname_component = normalizeComponent(
|
|
121492
|
+
components_settingNicknamevue_type_script_lang_js,
|
|
121493
|
+
settingNicknamevue_type_template_id_779abf97_render,
|
|
121494
|
+
settingNicknamevue_type_template_id_779abf97_staticRenderFns,
|
|
121495
|
+
false,
|
|
121496
|
+
null,
|
|
121497
|
+
null,
|
|
121498
|
+
null
|
|
121499
|
+
|
|
121500
|
+
)
|
|
121501
|
+
|
|
121502
|
+
/* harmony default export */ var components_settingNickname = (settingNickname_component.exports);
|
|
121503
|
+
;// ./src/api/inviteTask/index.js
|
|
121504
|
+
|
|
121505
|
+
|
|
121506
|
+
// 保存AI自动邀约邮件
|
|
121507
|
+
function inviteEmailSave(data) {
|
|
121508
|
+
return request_post(`/edm/ai/inviteEmail/save`, data);
|
|
121509
|
+
}
|
|
121510
|
+
|
|
121511
|
+
// 获取邀请AI邮件
|
|
121512
|
+
function inviteEmailGet(taskId) {
|
|
121513
|
+
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121514
|
+
}
|
|
121515
|
+
;// ./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
|
|
121516
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render = function render() {
|
|
121517
|
+
var _vm = this,
|
|
121518
|
+
_c = _vm._self._c;
|
|
121519
|
+
return _c('el-dialog', {
|
|
121520
|
+
attrs: {
|
|
121521
|
+
"visible": _vm.visible,
|
|
121522
|
+
"title": "存为模版",
|
|
121523
|
+
"width": "480px",
|
|
121524
|
+
"before-close": _vm.closeDialog,
|
|
121525
|
+
"custom-class": "setting-nickname-dialog",
|
|
121526
|
+
"close-on-click-modal": false
|
|
121527
|
+
}
|
|
121528
|
+
}, [_c('div', {
|
|
121529
|
+
directives: [{
|
|
121530
|
+
name: "loading",
|
|
121531
|
+
rawName: "v-loading",
|
|
121532
|
+
value: _vm.loading,
|
|
121533
|
+
expression: "loading"
|
|
121534
|
+
}]
|
|
121535
|
+
}, [_c('el-form', {
|
|
121536
|
+
ref: "ruleForm",
|
|
121537
|
+
staticClass: "demo-ruleForm",
|
|
121538
|
+
attrs: {
|
|
121539
|
+
"label-position": "top",
|
|
121540
|
+
"model": _vm.ruleForm,
|
|
121541
|
+
"rules": _vm.rules,
|
|
121542
|
+
"label-width": "100px"
|
|
121543
|
+
}
|
|
121544
|
+
}, [_c('el-form-item', {
|
|
121545
|
+
attrs: {
|
|
121546
|
+
"label": "模版名称",
|
|
121547
|
+
"prop": "templatesTitle"
|
|
121548
|
+
}
|
|
121549
|
+
}, [_c('el-input', {
|
|
121550
|
+
attrs: {
|
|
121551
|
+
"clearable": ""
|
|
121552
|
+
},
|
|
121553
|
+
model: {
|
|
121554
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121555
|
+
callback: function ($$v) {
|
|
121556
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121557
|
+
},
|
|
121558
|
+
expression: "ruleForm.templatesTitle"
|
|
121559
|
+
}
|
|
121560
|
+
})], 1), _c('el-form-item', {
|
|
121561
|
+
attrs: {
|
|
121562
|
+
"label": "应用场景",
|
|
121563
|
+
"prop": "scene"
|
|
121564
|
+
}
|
|
121565
|
+
}, [_c('el-input', {
|
|
121566
|
+
attrs: {
|
|
121567
|
+
"clearable": ""
|
|
121568
|
+
},
|
|
121569
|
+
model: {
|
|
121570
|
+
value: _vm.ruleForm.scene,
|
|
121571
|
+
callback: function ($$v) {
|
|
121572
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121573
|
+
},
|
|
121574
|
+
expression: "ruleForm.scene"
|
|
121575
|
+
}
|
|
121576
|
+
})], 1), _c('el-form-item', {
|
|
121577
|
+
attrs: {
|
|
121578
|
+
"label": "语言",
|
|
121579
|
+
"prop": "modelLanguage"
|
|
121580
|
+
}
|
|
121581
|
+
}, [_c('el-select', {
|
|
121582
|
+
attrs: {
|
|
121583
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121584
|
+
"clearable": "",
|
|
121585
|
+
"filterable": ""
|
|
121586
|
+
},
|
|
121587
|
+
model: {
|
|
121588
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121589
|
+
callback: function ($$v) {
|
|
121590
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121591
|
+
},
|
|
121592
|
+
expression: "ruleForm.modelLanguage"
|
|
121593
|
+
}
|
|
121594
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121595
|
+
return _c('el-option', {
|
|
121596
|
+
key: item.value,
|
|
121597
|
+
attrs: {
|
|
121598
|
+
"value": item.value,
|
|
121599
|
+
"label": item.label
|
|
121600
|
+
}
|
|
121601
|
+
});
|
|
121602
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121603
|
+
attrs: {
|
|
121604
|
+
"label": "共享状态",
|
|
121605
|
+
"prop": "isShared"
|
|
121547
121606
|
}
|
|
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', {
|
|
121607
|
+
}, [_c('el-select', {
|
|
121560
121608
|
attrs: {
|
|
121561
|
-
"
|
|
121562
|
-
"placeholder":
|
|
121609
|
+
"clearable": "",
|
|
121610
|
+
"placeholder": "请选择共享状态"
|
|
121563
121611
|
},
|
|
121564
121612
|
model: {
|
|
121565
|
-
value: _vm.
|
|
121613
|
+
value: _vm.ruleForm.isShared,
|
|
121566
121614
|
callback: function ($$v) {
|
|
121567
|
-
_vm.
|
|
121615
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121568
121616
|
},
|
|
121569
|
-
expression: "
|
|
121617
|
+
expression: "ruleForm.isShared"
|
|
121570
121618
|
}
|
|
121571
|
-
}
|
|
121619
|
+
}, [_c('el-option', {
|
|
121620
|
+
key: 1,
|
|
121621
|
+
attrs: {
|
|
121622
|
+
"value": "1",
|
|
121623
|
+
"label": "公开"
|
|
121624
|
+
}
|
|
121625
|
+
}), _c('el-option', {
|
|
121626
|
+
key: 2,
|
|
121627
|
+
attrs: {
|
|
121628
|
+
"value": "2",
|
|
121629
|
+
"label": "私有"
|
|
121630
|
+
}
|
|
121631
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121572
121632
|
staticClass: "footer-btn"
|
|
121573
121633
|
}, [_c('el-button', {
|
|
121574
121634
|
on: {
|
|
121575
|
-
"click":
|
|
121635
|
+
"click": function ($event) {
|
|
121636
|
+
return _vm.resetForm('ruleForm');
|
|
121637
|
+
}
|
|
121576
121638
|
}
|
|
121577
121639
|
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121578
121640
|
attrs: {
|
|
@@ -121580,109 +121642,111 @@ var settingNicknamevue_type_template_id_779abf97_render = function render() {
|
|
|
121580
121642
|
"loading": _vm.confirmBtnLoading
|
|
121581
121643
|
},
|
|
121582
121644
|
on: {
|
|
121583
|
-
"click":
|
|
121645
|
+
"click": function ($event) {
|
|
121646
|
+
return _vm.submitForm('ruleForm');
|
|
121647
|
+
}
|
|
121584
121648
|
}
|
|
121585
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)])]);
|
|
121649
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121586
121650
|
};
|
|
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
|
-
}
|
|
121651
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns = [];
|
|
121596
121652
|
|
|
121597
|
-
|
|
121598
|
-
function getAiRules(writeId) {
|
|
121599
|
-
return get(`/edm/outbox/invitationRules/${writeId}`);
|
|
121600
|
-
}
|
|
121653
|
+
;// ./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
121654
|
|
|
121602
|
-
// 获取发件人昵称
|
|
121603
|
-
function getNickname() {
|
|
121604
|
-
return request_get(`/edm/mail/getSenderInfo`);
|
|
121605
|
-
}
|
|
121606
121655
|
|
|
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
121656
|
|
|
121613
|
-
/* harmony default export */ var
|
|
121657
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121614
121658
|
props: {
|
|
121615
121659
|
visible: {
|
|
121616
121660
|
type: Boolean,
|
|
121617
121661
|
default: false
|
|
121618
121662
|
},
|
|
121619
|
-
|
|
121663
|
+
mailTempList: {
|
|
121664
|
+
type: Array,
|
|
121665
|
+
default: () => []
|
|
121666
|
+
},
|
|
121667
|
+
tempProductCard: {
|
|
121620
121668
|
type: String,
|
|
121621
121669
|
default: ""
|
|
121622
121670
|
}
|
|
121623
121671
|
},
|
|
121624
121672
|
data() {
|
|
121625
121673
|
return {
|
|
121626
|
-
nickName: "",
|
|
121627
121674
|
confirmBtnLoading: false,
|
|
121628
|
-
loading: false
|
|
121675
|
+
loading: false,
|
|
121676
|
+
ruleForm: {
|
|
121677
|
+
templatesTitle: "",
|
|
121678
|
+
scene: "",
|
|
121679
|
+
modelLanguage: "",
|
|
121680
|
+
isShared: "2"
|
|
121681
|
+
},
|
|
121682
|
+
rules: {
|
|
121683
|
+
templatesTitle: [{
|
|
121684
|
+
required: true,
|
|
121685
|
+
message: "请输入模版名称",
|
|
121686
|
+
trigger: "blur"
|
|
121687
|
+
}],
|
|
121688
|
+
modelLanguage: [{
|
|
121689
|
+
required: true,
|
|
121690
|
+
message: "请选择模版语言",
|
|
121691
|
+
trigger: "change"
|
|
121692
|
+
}],
|
|
121693
|
+
isShared: [{
|
|
121694
|
+
required: true,
|
|
121695
|
+
message: "请选择共享状态",
|
|
121696
|
+
trigger: "change"
|
|
121697
|
+
}]
|
|
121698
|
+
},
|
|
121699
|
+
language: const_language
|
|
121629
121700
|
};
|
|
121630
121701
|
},
|
|
121631
|
-
created() {
|
|
121632
|
-
if (this.nickNameDefault) this.nickName = this.nickNameDefault;
|
|
121633
|
-
},
|
|
121702
|
+
created() {},
|
|
121634
121703
|
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;
|
|
121704
|
+
// 处理邮件参数
|
|
121705
|
+
getMailParams() {
|
|
121706
|
+
// 处理邮件
|
|
121707
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121708
|
+
let content = "";
|
|
121709
|
+
if (currentMail.getReplyHtml()) {
|
|
121710
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121711
|
+
} else {
|
|
121712
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121653
121713
|
}
|
|
121714
|
+
return {
|
|
121715
|
+
subject: currentMail.subject,
|
|
121716
|
+
content,
|
|
121717
|
+
attachments: currentMail.fileList
|
|
121718
|
+
};
|
|
121654
121719
|
},
|
|
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();
|
|
121720
|
+
// 表单验证
|
|
121721
|
+
submitForm(formName) {
|
|
121722
|
+
const mailParams = this.getMailParams();
|
|
121723
|
+
console.log(mailParams, 'mailParams');
|
|
121724
|
+
this.$refs[formName].validate(valid => {
|
|
121725
|
+
if (valid) {
|
|
121726
|
+
alert("submit!");
|
|
121667
121727
|
} else {
|
|
121668
|
-
|
|
121728
|
+
console.log("error submit!!");
|
|
121729
|
+
return false;
|
|
121669
121730
|
}
|
|
121670
|
-
}
|
|
121671
|
-
|
|
121672
|
-
|
|
121673
|
-
|
|
121674
|
-
|
|
121731
|
+
});
|
|
121732
|
+
},
|
|
121733
|
+
resetForm(formName) {
|
|
121734
|
+
this.$refs[formName].resetFields();
|
|
121735
|
+
this.closeDialog();
|
|
121736
|
+
},
|
|
121737
|
+
closeDialog() {
|
|
121738
|
+
this.$emit("update:visible", false);
|
|
121675
121739
|
}
|
|
121676
121740
|
}
|
|
121677
121741
|
});
|
|
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/
|
|
121742
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121743
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121744
|
+
;// ./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
121745
|
// extracted by mini-css-extract-plugin
|
|
121682
121746
|
|
|
121683
|
-
;// ./src/package/write-email/components/
|
|
121747
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=075aae44&prod&lang=scss&scoped=true
|
|
121684
121748
|
|
|
121685
|
-
;// ./src/package/write-email/components/
|
|
121749
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121686
121750
|
|
|
121687
121751
|
|
|
121688
121752
|
|
|
@@ -121691,30 +121755,18 @@ function settingNickname(data) {
|
|
|
121691
121755
|
|
|
121692
121756
|
/* normalize component */
|
|
121693
121757
|
|
|
121694
|
-
var
|
|
121695
|
-
|
|
121696
|
-
|
|
121697
|
-
|
|
121758
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121759
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121760
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render,
|
|
121761
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns,
|
|
121698
121762
|
false,
|
|
121699
121763
|
null,
|
|
121700
|
-
|
|
121764
|
+
"075aae44",
|
|
121701
121765
|
null
|
|
121702
121766
|
|
|
121703
121767
|
)
|
|
121704
121768
|
|
|
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
|
-
}
|
|
121769
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121718
121770
|
;// ./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
121771
|
|
|
121720
121772
|
|
|
@@ -121756,6 +121808,7 @@ function inviteEmailGet(taskId) {
|
|
|
121756
121808
|
|
|
121757
121809
|
|
|
121758
121810
|
|
|
121811
|
+
|
|
121759
121812
|
|
|
121760
121813
|
|
|
121761
121814
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121778,7 +121831,8 @@ function inviteEmailGet(taskId) {
|
|
|
121778
121831
|
SignTextDrawer: signText,
|
|
121779
121832
|
MailTemplateDrawer: mailTemplate,
|
|
121780
121833
|
AiMailDialog: aiMail,
|
|
121781
|
-
MailOptimizeDrawer: mailOptimize
|
|
121834
|
+
MailOptimizeDrawer: mailOptimize,
|
|
121835
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121782
121836
|
},
|
|
121783
121837
|
props: {
|
|
121784
121838
|
// pm 添加
|
|
@@ -122007,7 +122061,11 @@ function inviteEmailGet(taskId) {
|
|
|
122007
122061
|
nickName: "",
|
|
122008
122062
|
// 发件人昵称
|
|
122009
122063
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122010
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122064
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122065
|
+
// 当前使用的AI平台
|
|
122066
|
+
saveMailTempDialogVisible: false,
|
|
122067
|
+
// 保存模版弹窗
|
|
122068
|
+
tempProductCard: '' // 模版产品卡
|
|
122011
122069
|
};
|
|
122012
122070
|
},
|
|
122013
122071
|
created() {
|
|
@@ -122083,6 +122141,14 @@ function inviteEmailGet(taskId) {
|
|
|
122083
122141
|
window.onbeforeunload = null;
|
|
122084
122142
|
},
|
|
122085
122143
|
methods: {
|
|
122144
|
+
// 保存邮件模版
|
|
122145
|
+
saveMailTemplate() {
|
|
122146
|
+
// 处理商品卡
|
|
122147
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122148
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122149
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122150
|
+
this.saveMailTempDialogVisible = true;
|
|
122151
|
+
},
|
|
122086
122152
|
// 初始化邮件模版
|
|
122087
122153
|
payInitTemplate() {
|
|
122088
122154
|
// 初始化收件人
|
|
@@ -123390,15 +123456,15 @@ function inviteEmailGet(taskId) {
|
|
|
123390
123456
|
});
|
|
123391
123457
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123392
123458
|
/* 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=
|
|
123459
|
+
;// ./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
123460
|
// extracted by mini-css-extract-plugin
|
|
123395
123461
|
|
|
123396
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123462
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=7011cdc3&prod&lang=scss&scoped=true
|
|
123397
123463
|
|
|
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=
|
|
123464
|
+
;// ./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
123465
|
// extracted by mini-css-extract-plugin
|
|
123400
123466
|
|
|
123401
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123467
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=7011cdc3&prod&lang=scss
|
|
123402
123468
|
|
|
123403
123469
|
;// ./src/package/write-email/index.vue
|
|
123404
123470
|
|
|
@@ -123412,11 +123478,11 @@ function inviteEmailGet(taskId) {
|
|
|
123412
123478
|
|
|
123413
123479
|
var write_email_component = normalizeComponent(
|
|
123414
123480
|
package_write_emailvue_type_script_lang_js,
|
|
123415
|
-
|
|
123416
|
-
|
|
123481
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_render,
|
|
123482
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns,
|
|
123417
123483
|
false,
|
|
123418
123484
|
null,
|
|
123419
|
-
"
|
|
123485
|
+
"7011cdc3",
|
|
123420
123486
|
null
|
|
123421
123487
|
|
|
123422
123488
|
)
|
|
@@ -123483,8 +123549,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123483
123549
|
};
|
|
123484
123550
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123485
123551
|
|
|
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
|
|
123552
|
+
;// ./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
|
|
123553
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render = function render() {
|
|
123488
123554
|
var _vm = this,
|
|
123489
123555
|
_c = _vm._self._c;
|
|
123490
123556
|
return _c('div', {
|
|
@@ -123805,6 +123871,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123805
123871
|
}
|
|
123806
123872
|
})];
|
|
123807
123873
|
}
|
|
123874
|
+
}, {
|
|
123875
|
+
key: "operation",
|
|
123876
|
+
fn: function ({
|
|
123877
|
+
data
|
|
123878
|
+
}) {
|
|
123879
|
+
return [_c('el-link', {
|
|
123880
|
+
attrs: {
|
|
123881
|
+
"type": "primary",
|
|
123882
|
+
"size": "small",
|
|
123883
|
+
"underline": false
|
|
123884
|
+
},
|
|
123885
|
+
on: {
|
|
123886
|
+
"click": function ($event) {
|
|
123887
|
+
$event.stopPropagation();
|
|
123888
|
+
return _vm.recallMail(data.scope);
|
|
123889
|
+
}
|
|
123890
|
+
}
|
|
123891
|
+
}, [_vm._v("撤回")])];
|
|
123892
|
+
}
|
|
123808
123893
|
}])
|
|
123809
123894
|
}), _c('div', {
|
|
123810
123895
|
staticClass: "tool"
|
|
@@ -123846,7 +123931,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123846
123931
|
staticClass: "dss-iconfont"
|
|
123847
123932
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123848
123933
|
};
|
|
123849
|
-
var
|
|
123934
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns = [];
|
|
123850
123935
|
|
|
123851
123936
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123852
123937
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123934,6 +124019,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123934
124019
|
label: src_language.t("edm2.mailEn12"),
|
|
123935
124020
|
prop: "sendTime",
|
|
123936
124021
|
width: "200"
|
|
124022
|
+
}, {
|
|
124023
|
+
label: "操作",
|
|
124024
|
+
scope: "operation",
|
|
124025
|
+
width: "100"
|
|
123937
124026
|
}],
|
|
123938
124027
|
tableData: [],
|
|
123939
124028
|
loading: false,
|
|
@@ -123982,6 +124071,28 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123982
124071
|
localStorage.removeItem("searchFlag");
|
|
123983
124072
|
},
|
|
123984
124073
|
methods: {
|
|
124074
|
+
// 撤回邮件
|
|
124075
|
+
recallMail(row) {
|
|
124076
|
+
console.log(row, "row");
|
|
124077
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124078
|
+
confirmButtonText: "确定",
|
|
124079
|
+
cancelButtonText: "取消",
|
|
124080
|
+
type: "warning"
|
|
124081
|
+
}).then(() => {
|
|
124082
|
+
withdraw(row.id).then(res => {
|
|
124083
|
+
if (res.code == "0") {
|
|
124084
|
+
this.$message({
|
|
124085
|
+
type: "success",
|
|
124086
|
+
duration: 7000,
|
|
124087
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124088
|
+
});
|
|
124089
|
+
this.init();
|
|
124090
|
+
} else {
|
|
124091
|
+
this.$message.error(res.message);
|
|
124092
|
+
}
|
|
124093
|
+
});
|
|
124094
|
+
}).catch(() => {});
|
|
124095
|
+
},
|
|
123985
124096
|
// 主题-正文
|
|
123986
124097
|
changeContentMode(val) {
|
|
123987
124098
|
this.contentSelect = val;
|
|
@@ -124175,10 +124286,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124175
124286
|
});
|
|
124176
124287
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124177
124288
|
/* 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=
|
|
124289
|
+
;// ./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
124290
|
// extracted by mini-css-extract-plugin
|
|
124180
124291
|
|
|
124181
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124292
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=9dd5bd72&prod&lang=scss&scoped=true
|
|
124182
124293
|
|
|
124183
124294
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124184
124295
|
|
|
@@ -124191,18 +124302,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124191
124302
|
|
|
124192
124303
|
var singleSendMail_component = normalizeComponent(
|
|
124193
124304
|
components_singleSendMailvue_type_script_lang_js,
|
|
124194
|
-
|
|
124195
|
-
|
|
124305
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render,
|
|
124306
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns,
|
|
124196
124307
|
false,
|
|
124197
124308
|
null,
|
|
124198
|
-
"
|
|
124309
|
+
"9dd5bd72",
|
|
124199
124310
|
null
|
|
124200
124311
|
|
|
124201
124312
|
)
|
|
124202
124313
|
|
|
124203
124314
|
/* 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
|
|
124315
|
+
;// ./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
|
|
124316
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render = function render() {
|
|
124206
124317
|
var _vm = this,
|
|
124207
124318
|
_c = _vm._self._c;
|
|
124208
124319
|
return _c('div', {
|
|
@@ -124492,6 +124603,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124492
124603
|
}
|
|
124493
124604
|
})];
|
|
124494
124605
|
}
|
|
124606
|
+
}, {
|
|
124607
|
+
key: "operation",
|
|
124608
|
+
fn: function ({
|
|
124609
|
+
data
|
|
124610
|
+
}) {
|
|
124611
|
+
return [_c('el-link', {
|
|
124612
|
+
attrs: {
|
|
124613
|
+
"type": "primary",
|
|
124614
|
+
"size": "small",
|
|
124615
|
+
"underline": false
|
|
124616
|
+
},
|
|
124617
|
+
on: {
|
|
124618
|
+
"click": function ($event) {
|
|
124619
|
+
$event.stopPropagation();
|
|
124620
|
+
return _vm.recallMail(data.scope);
|
|
124621
|
+
}
|
|
124622
|
+
}
|
|
124623
|
+
}, [_vm._v("撤回")])];
|
|
124624
|
+
}
|
|
124495
124625
|
}])
|
|
124496
124626
|
}), _c('div', {
|
|
124497
124627
|
staticClass: "tool"
|
|
@@ -124518,7 +124648,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124518
124648
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124519
124649
|
})])])])], 1)]);
|
|
124520
124650
|
};
|
|
124521
|
-
var
|
|
124651
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns = [];
|
|
124522
124652
|
|
|
124523
124653
|
;// ./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
124654
|
|
|
@@ -124590,6 +124720,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124590
124720
|
label: src_language.t("edm2.mailEn12"),
|
|
124591
124721
|
prop: "sendTime",
|
|
124592
124722
|
width: "200"
|
|
124723
|
+
}, {
|
|
124724
|
+
label: "操作",
|
|
124725
|
+
scope: "operation",
|
|
124726
|
+
width: "100"
|
|
124593
124727
|
}],
|
|
124594
124728
|
contentInput: "",
|
|
124595
124729
|
contentSelect: "1",
|
|
@@ -124641,6 +124775,28 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124641
124775
|
localStorage.removeItem("searchFlag");
|
|
124642
124776
|
},
|
|
124643
124777
|
methods: {
|
|
124778
|
+
// 撤回邮件
|
|
124779
|
+
recallMail(row) {
|
|
124780
|
+
console.log(row, "row");
|
|
124781
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124782
|
+
confirmButtonText: "确定",
|
|
124783
|
+
cancelButtonText: "取消",
|
|
124784
|
+
type: "warning"
|
|
124785
|
+
}).then(() => {
|
|
124786
|
+
withdraw(row.id).then(res => {
|
|
124787
|
+
if (res.code == "0") {
|
|
124788
|
+
this.$message({
|
|
124789
|
+
type: "success",
|
|
124790
|
+
duration: 7000,
|
|
124791
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124792
|
+
});
|
|
124793
|
+
this.init();
|
|
124794
|
+
} else {
|
|
124795
|
+
this.$message.error(res.message);
|
|
124796
|
+
}
|
|
124797
|
+
});
|
|
124798
|
+
}).catch(() => {});
|
|
124799
|
+
},
|
|
124644
124800
|
// 去除html标签
|
|
124645
124801
|
filterHtmlTag(str) {
|
|
124646
124802
|
if (str) {
|
|
@@ -124852,10 +125008,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124852
125008
|
});
|
|
124853
125009
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124854
125010
|
/* 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=
|
|
125011
|
+
;// ./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
125012
|
// extracted by mini-css-extract-plugin
|
|
124857
125013
|
|
|
124858
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125014
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124859
125015
|
|
|
124860
125016
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124861
125017
|
|
|
@@ -124868,11 +125024,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124868
125024
|
|
|
124869
125025
|
var replySendMail_component = normalizeComponent(
|
|
124870
125026
|
components_replySendMailvue_type_script_lang_js,
|
|
124871
|
-
|
|
124872
|
-
|
|
125027
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render,
|
|
125028
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns,
|
|
124873
125029
|
false,
|
|
124874
125030
|
null,
|
|
124875
|
-
"
|
|
125031
|
+
"b7b4f6b0",
|
|
124876
125032
|
null
|
|
124877
125033
|
|
|
124878
125034
|
)
|
|
@@ -126340,8 +126496,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126340
126496
|
)
|
|
126341
126497
|
|
|
126342
126498
|
/* 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
|
|
126499
|
+
;// ./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
|
|
126500
|
+
var detailvue_type_template_id_6a248e40_scoped_true_render = function render() {
|
|
126345
126501
|
var _vm = this,
|
|
126346
126502
|
_c = _vm._self._c;
|
|
126347
126503
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126354,6 +126510,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126354
126510
|
}, [_c('i', {
|
|
126355
126511
|
staticClass: "el-icon-arrow-left"
|
|
126356
126512
|
})]), _c('div', {
|
|
126513
|
+
staticClass: "back recall_btn",
|
|
126514
|
+
on: {
|
|
126515
|
+
"click": _vm.recallMail
|
|
126516
|
+
}
|
|
126517
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126357
126518
|
staticClass: "mail-items-box"
|
|
126358
126519
|
}, [_c('div', {
|
|
126359
126520
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126580,7 +126741,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126580
126741
|
}
|
|
126581
126742
|
}) : _vm._e()], 1) : _vm._e();
|
|
126582
126743
|
};
|
|
126583
|
-
var
|
|
126744
|
+
var detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns = [function () {
|
|
126745
|
+
var _vm = this,
|
|
126746
|
+
_c = _vm._self._c;
|
|
126747
|
+
return _c('div', {
|
|
126748
|
+
staticClass: "re_box"
|
|
126749
|
+
}, [_c('i', {
|
|
126750
|
+
staticClass: "dss-iconfont btn_con"
|
|
126751
|
+
}, [_vm._v("")]), _c('span', {
|
|
126752
|
+
staticClass: "btn_con"
|
|
126753
|
+
}, [_vm._v("撤回")])]);
|
|
126754
|
+
}];
|
|
126755
|
+
|
|
126756
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=6a248e40&scoped=true
|
|
126584
126757
|
|
|
126585
126758
|
;// ./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
126759
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126829,6 +127002,27 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126829
127002
|
localStorage.setItem("searchFlag", true);
|
|
126830
127003
|
},
|
|
126831
127004
|
methods: {
|
|
127005
|
+
// 撤回邮件
|
|
127006
|
+
recallMail() {
|
|
127007
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127008
|
+
confirmButtonText: "确定",
|
|
127009
|
+
cancelButtonText: "取消",
|
|
127010
|
+
type: "warning"
|
|
127011
|
+
}).then(() => {
|
|
127012
|
+
withdraw(this.$route.query.id).then(res => {
|
|
127013
|
+
if (res.code == "0") {
|
|
127014
|
+
this.$message({
|
|
127015
|
+
type: "success",
|
|
127016
|
+
duration: 7000,
|
|
127017
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127018
|
+
});
|
|
127019
|
+
this.backToOutbox();
|
|
127020
|
+
} else {
|
|
127021
|
+
this.$message.error(res.message);
|
|
127022
|
+
}
|
|
127023
|
+
});
|
|
127024
|
+
}).catch(() => {});
|
|
127025
|
+
},
|
|
126832
127026
|
// 红人档案侧抽
|
|
126833
127027
|
toBloggerDeatil(item) {
|
|
126834
127028
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126960,10 +127154,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126960
127154
|
});
|
|
126961
127155
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126962
127156
|
/* 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=
|
|
127157
|
+
;// ./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
127158
|
// extracted by mini-css-extract-plugin
|
|
126965
127159
|
|
|
126966
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127160
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=6a248e40&prod&lang=scss&scoped=true
|
|
126967
127161
|
|
|
126968
127162
|
;// ./src/package/outbox-email/detail.vue
|
|
126969
127163
|
|
|
@@ -126976,11 +127170,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126976
127170
|
|
|
126977
127171
|
var outbox_email_detail_component = normalizeComponent(
|
|
126978
127172
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126979
|
-
|
|
126980
|
-
|
|
127173
|
+
detailvue_type_template_id_6a248e40_scoped_true_render,
|
|
127174
|
+
detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns,
|
|
126981
127175
|
false,
|
|
126982
127176
|
null,
|
|
126983
|
-
"
|
|
127177
|
+
"6a248e40",
|
|
126984
127178
|
null
|
|
126985
127179
|
|
|
126986
127180
|
)
|