wotokol-edm 1.1.14 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/wotokol-edm.common.js +1208 -1032
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css +1 -1
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +1064 -888
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +20 -20
- package/wotokol-edm.umd.min.js.gz +0 -0
package/wotokol-edm.umd.js
CHANGED
|
@@ -1513,7 +1513,7 @@ module.exports = function (IS_INCLUDES) {
|
|
|
1513
1513
|
|
|
1514
1514
|
/***/ }),
|
|
1515
1515
|
|
|
1516
|
-
/***/
|
|
1516
|
+
/***/ 4194:
|
|
1517
1517
|
/***/ (function(module) {
|
|
1518
1518
|
|
|
1519
1519
|
var toString = {}.toString;
|
|
@@ -1776,7 +1776,7 @@ module.exports = !__webpack_require__(5872) && !__webpack_require__(2451)(functi
|
|
|
1776
1776
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1777
1777
|
|
|
1778
1778
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1779
|
-
var cof = __webpack_require__(
|
|
1779
|
+
var cof = __webpack_require__(4194);
|
|
1780
1780
|
// eslint-disable-next-line no-prototype-builtins
|
|
1781
1781
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
1782
1782
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
@@ -1789,7 +1789,7 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
|
1789
1789
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1790
1790
|
|
|
1791
1791
|
// 7.2.2 IsArray(argument)
|
|
1792
|
-
var cof = __webpack_require__(
|
|
1792
|
+
var cof = __webpack_require__(4194);
|
|
1793
1793
|
module.exports = Array.isArray || function isArray(arg) {
|
|
1794
1794
|
return cof(arg) == 'Array';
|
|
1795
1795
|
};
|
|
@@ -98675,6 +98675,14 @@ function delTags(id) {
|
|
|
98675
98675
|
function addTags(data) {
|
|
98676
98676
|
return request_post(`/edm/tag/addSign`, data);
|
|
98677
98677
|
}
|
|
98678
|
+
// 获取账号
|
|
98679
|
+
function hubUserSonFather(params) {
|
|
98680
|
+
return request_get(`/user/hubUser/sonFather`, params);
|
|
98681
|
+
}
|
|
98682
|
+
// 分页查看模板列表
|
|
98683
|
+
function templatesList(params) {
|
|
98684
|
+
return request_get(`/edm/template/templates`, params);
|
|
98685
|
+
}
|
|
98678
98686
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-search/index.vue?vue&type=template&id=4d651f22&scoped=true
|
|
98679
98687
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98680
98688
|
var _vm = this,
|
|
@@ -106571,6 +106579,10 @@ function comeGoBloggerPage(data) {
|
|
|
106571
106579
|
function pagePlan(data) {
|
|
106572
106580
|
return post(`/user/popularize/pagePlan`, data);
|
|
106573
106581
|
}
|
|
106582
|
+
// 撤回邮件
|
|
106583
|
+
function withdraw(id) {
|
|
106584
|
+
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106585
|
+
}
|
|
106574
106586
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmailPlan/index.vue?vue&type=script&lang=js
|
|
106575
106587
|
|
|
106576
106588
|
|
|
@@ -109213,8 +109225,8 @@ var detail_component = normalizeComponent(
|
|
|
109213
109225
|
)
|
|
109214
109226
|
|
|
109215
109227
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
109216
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=
|
|
109217
|
-
var
|
|
109228
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=7011cdc3&scoped=true
|
|
109229
|
+
var write_emailvue_type_template_id_7011cdc3_scoped_true_render = function render() {
|
|
109218
109230
|
var _vm = this,
|
|
109219
109231
|
_c = _vm._self._c;
|
|
109220
109232
|
return _c('div', {
|
|
@@ -109579,7 +109591,17 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109579
109591
|
staticClass: "el-icon-loading"
|
|
109580
109592
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109581
109593
|
staticClass: "operate-right"
|
|
109582
|
-
}, [
|
|
109594
|
+
}, [_c('el-button', {
|
|
109595
|
+
staticClass: "operate-btn",
|
|
109596
|
+
attrs: {
|
|
109597
|
+
"disabled": _vm.loading
|
|
109598
|
+
},
|
|
109599
|
+
on: {
|
|
109600
|
+
"click": _vm.saveMailTemplate
|
|
109601
|
+
}
|
|
109602
|
+
}, [_vm.loading ? _c('i', {
|
|
109603
|
+
staticClass: "el-icon-loading"
|
|
109604
|
+
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109583
109605
|
staticClass: "operate-btn",
|
|
109584
109606
|
attrs: {
|
|
109585
109607
|
"disabled": _vm.loading
|
|
@@ -109944,9 +109966,20 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109944
109966
|
},
|
|
109945
109967
|
"updateNickName": val => _vm.nickName = val
|
|
109946
109968
|
}
|
|
109969
|
+
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109970
|
+
attrs: {
|
|
109971
|
+
"tempProductCard": _vm.tempProductCard,
|
|
109972
|
+
"mailTempList": _vm.mailList,
|
|
109973
|
+
"visible": _vm.saveMailTempDialogVisible
|
|
109974
|
+
},
|
|
109975
|
+
on: {
|
|
109976
|
+
"update:visible": function ($event) {
|
|
109977
|
+
_vm.saveMailTempDialogVisible = $event;
|
|
109978
|
+
}
|
|
109979
|
+
}
|
|
109947
109980
|
}) : _vm._e()], 1);
|
|
109948
109981
|
};
|
|
109949
|
-
var
|
|
109982
|
+
var write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns = [function () {
|
|
109950
109983
|
var _vm = this,
|
|
109951
109984
|
_c = _vm._self._c;
|
|
109952
109985
|
return _c('div', {
|
|
@@ -109967,7 +110000,7 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [func
|
|
|
109967
110000
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109968
110001
|
}];
|
|
109969
110002
|
|
|
109970
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
110003
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=7011cdc3&scoped=true
|
|
109971
110004
|
|
|
109972
110005
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109973
110006
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -114324,6 +114357,59 @@ const moneyTypeOpts = [{
|
|
|
114324
114357
|
code: "IDR",
|
|
114325
114358
|
symbol: "Rp"
|
|
114326
114359
|
}];
|
|
114360
|
+
const const_language = [{
|
|
114361
|
+
value: '7',
|
|
114362
|
+
label: '汉语',
|
|
114363
|
+
enLabel: 'Chinese'
|
|
114364
|
+
}, {
|
|
114365
|
+
value: '1',
|
|
114366
|
+
label: '英语',
|
|
114367
|
+
enLabel: 'English'
|
|
114368
|
+
}, {
|
|
114369
|
+
value: '3',
|
|
114370
|
+
label: '法语',
|
|
114371
|
+
enLabel: 'French'
|
|
114372
|
+
}, {
|
|
114373
|
+
value: '8',
|
|
114374
|
+
label: '德语',
|
|
114375
|
+
enLabel: 'German'
|
|
114376
|
+
}, {
|
|
114377
|
+
value: '6',
|
|
114378
|
+
label: '日语',
|
|
114379
|
+
enLabel: 'Japanese'
|
|
114380
|
+
}, {
|
|
114381
|
+
value: '9',
|
|
114382
|
+
label: '韩语',
|
|
114383
|
+
enLabel: 'Korean'
|
|
114384
|
+
}, {
|
|
114385
|
+
value: '10',
|
|
114386
|
+
label: '越南语',
|
|
114387
|
+
enLabel: 'Vietnamese'
|
|
114388
|
+
}, {
|
|
114389
|
+
value: '11',
|
|
114390
|
+
label: '泰国语',
|
|
114391
|
+
enLabel: 'Thai'
|
|
114392
|
+
}, {
|
|
114393
|
+
value: '12',
|
|
114394
|
+
label: '菲律宾语',
|
|
114395
|
+
enLabel: 'Filipino'
|
|
114396
|
+
}, {
|
|
114397
|
+
value: '13',
|
|
114398
|
+
label: '印度尼西亚语',
|
|
114399
|
+
enLabel: 'Indonesian'
|
|
114400
|
+
}, {
|
|
114401
|
+
value: '14',
|
|
114402
|
+
label: '俄罗斯语',
|
|
114403
|
+
enLabel: 'Russian'
|
|
114404
|
+
}, {
|
|
114405
|
+
value: '4',
|
|
114406
|
+
label: '西班牙语',
|
|
114407
|
+
enLabel: 'Spanish'
|
|
114408
|
+
}, {
|
|
114409
|
+
value: '15',
|
|
114410
|
+
label: '意大利语',
|
|
114411
|
+
enLabel: 'Italian'
|
|
114412
|
+
}];
|
|
114327
114413
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/productNewCom/detail.vue?vue&type=script&lang=js
|
|
114328
114414
|
|
|
114329
114415
|
|
|
@@ -118334,841 +118420,573 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118334
118420
|
};
|
|
118335
118421
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118336
118422
|
|
|
118337
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=
|
|
118338
|
-
|
|
118423
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=0aaac0a8&scoped=true
|
|
118424
|
+
|
|
118425
|
+
|
|
118426
|
+
var TemplateListvue_type_template_id_0aaac0a8_scoped_true_render = function render() {
|
|
118339
118427
|
var _vm = this,
|
|
118340
118428
|
_c = _vm._self._c;
|
|
118341
118429
|
return _c('div', {
|
|
118342
118430
|
staticClass: "wrap"
|
|
118343
118431
|
}, [_c('div', {
|
|
118344
|
-
staticClass: "
|
|
118432
|
+
staticClass: "inbox-search-wrap"
|
|
118433
|
+
}, [_c('el-row', {
|
|
118434
|
+
attrs: {
|
|
118435
|
+
"gutter": 12
|
|
118436
|
+
}
|
|
118437
|
+
}, [_c('el-col', {
|
|
118438
|
+
attrs: {
|
|
118439
|
+
"span": 8
|
|
118440
|
+
}
|
|
118345
118441
|
}, [_c('div', {
|
|
118346
|
-
staticClass: "
|
|
118442
|
+
staticClass: "col-item col-select-input-item"
|
|
118347
118443
|
}, [_c('el-select', {
|
|
118444
|
+
staticClass: "template_select",
|
|
118445
|
+
attrs: {
|
|
118446
|
+
"slot": "prepend",
|
|
118447
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118448
|
+
},
|
|
118348
118449
|
on: {
|
|
118349
118450
|
"change": function ($event) {
|
|
118350
|
-
_vm.searchForm.
|
|
118351
|
-
_vm.
|
|
118352
|
-
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118353
|
-
_vm.init();
|
|
118451
|
+
_vm.searchForm.scene = '';
|
|
118452
|
+
_vm.contentInput = '';
|
|
118354
118453
|
}
|
|
118355
118454
|
},
|
|
118455
|
+
slot: "prepend",
|
|
118356
118456
|
model: {
|
|
118357
|
-
value: _vm.
|
|
118457
|
+
value: _vm.contentSelect,
|
|
118358
118458
|
callback: function ($$v) {
|
|
118359
|
-
_vm
|
|
118459
|
+
_vm.contentSelect = $$v;
|
|
118360
118460
|
},
|
|
118361
|
-
expression: "
|
|
118461
|
+
expression: "contentSelect"
|
|
118362
118462
|
}
|
|
118363
118463
|
}, [_c('el-option', {
|
|
118364
118464
|
attrs: {
|
|
118365
|
-
"label":
|
|
118366
|
-
"value": 1
|
|
118465
|
+
"label": "模版名称",
|
|
118466
|
+
"value": "1"
|
|
118367
118467
|
}
|
|
118368
118468
|
}), _c('el-option', {
|
|
118369
118469
|
attrs: {
|
|
118370
|
-
"label":
|
|
118371
|
-
"value": 2
|
|
118470
|
+
"label": "应用场景",
|
|
118471
|
+
"value": "2"
|
|
118372
118472
|
}
|
|
118373
|
-
})], 1)
|
|
118374
|
-
staticClass: "
|
|
118473
|
+
})], 1), _vm.searchForm.modelType == 1 && _vm.contentSelect == 2 ? _c('div', {
|
|
118474
|
+
staticClass: "temp_right"
|
|
118375
118475
|
}, [_c('el-select', {
|
|
118376
118476
|
attrs: {
|
|
118377
|
-
"
|
|
118378
|
-
"
|
|
118379
|
-
},
|
|
118380
|
-
on: {
|
|
118381
|
-
"change": function ($event) {
|
|
118382
|
-
_vm.searchForm.currentPage = 1;
|
|
118383
|
-
_vm.init();
|
|
118384
|
-
}
|
|
118477
|
+
"slot": "prepend",
|
|
118478
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118385
118479
|
},
|
|
118480
|
+
slot: "prepend",
|
|
118386
118481
|
model: {
|
|
118387
|
-
value: _vm.searchForm.
|
|
118482
|
+
value: _vm.searchForm.scene,
|
|
118388
118483
|
callback: function ($$v) {
|
|
118389
|
-
_vm.$set(_vm.searchForm, "
|
|
118484
|
+
_vm.$set(_vm.searchForm, "scene", $$v);
|
|
118390
118485
|
},
|
|
118391
|
-
expression: "searchForm.
|
|
118486
|
+
expression: "searchForm.scene"
|
|
118392
118487
|
}
|
|
118393
|
-
}, _vm._l(_vm.
|
|
118488
|
+
}, _vm._l(_vm.templateSystemScene, function (scene) {
|
|
118394
118489
|
return _c('el-option', {
|
|
118395
|
-
key:
|
|
118490
|
+
key: scene.value,
|
|
118396
118491
|
attrs: {
|
|
118397
|
-
"
|
|
118398
|
-
"
|
|
118492
|
+
"label": scene.label,
|
|
118493
|
+
"value": scene.value
|
|
118399
118494
|
}
|
|
118400
118495
|
});
|
|
118401
|
-
}), 1)], 1)
|
|
118402
|
-
staticClass: "
|
|
118403
|
-
}, [_c('
|
|
118404
|
-
staticClass: "
|
|
118405
|
-
|
|
118406
|
-
"
|
|
118407
|
-
_vm.isShowSet = true;
|
|
118408
|
-
}
|
|
118409
|
-
}
|
|
118410
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.create_template")) + " ")])])]), _vm.searchForm.type === 1 ? _c('div', {
|
|
118411
|
-
staticClass: "tab px24 mb24"
|
|
118412
|
-
}, [_c('el-tabs', {
|
|
118413
|
-
on: {
|
|
118414
|
-
"tab-click": _vm.swicthTab
|
|
118496
|
+
}), 1)], 1) : _c('div', {
|
|
118497
|
+
staticClass: "temp_right"
|
|
118498
|
+
}, [_c('el-input', {
|
|
118499
|
+
staticClass: "col-input-select",
|
|
118500
|
+
attrs: {
|
|
118501
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118415
118502
|
},
|
|
118416
118503
|
model: {
|
|
118417
|
-
value: _vm.
|
|
118504
|
+
value: _vm.contentInput,
|
|
118418
118505
|
callback: function ($$v) {
|
|
118419
|
-
_vm
|
|
118506
|
+
_vm.contentInput = $$v;
|
|
118420
118507
|
},
|
|
118421
|
-
expression: "
|
|
118508
|
+
expression: "contentInput"
|
|
118422
118509
|
}
|
|
118423
|
-
},
|
|
118424
|
-
return _c('el-tab-pane', {
|
|
118425
|
-
key: item.name,
|
|
118426
|
-
attrs: {
|
|
118427
|
-
"name": item.name,
|
|
118428
|
-
"label": item.label
|
|
118429
|
-
}
|
|
118430
|
-
});
|
|
118431
|
-
}), 1)], 1) : _vm._e(), _c('div', {
|
|
118432
|
-
directives: [{
|
|
118433
|
-
name: "loading",
|
|
118434
|
-
rawName: "v-loading",
|
|
118435
|
-
value: _vm.loading,
|
|
118436
|
-
expression: "loading"
|
|
118437
|
-
}],
|
|
118438
|
-
staticClass: "list hidden-scrollbar"
|
|
118439
|
-
}, [_vm.tableTotal ? _vm._l(_vm.tableData, function (t, i) {
|
|
118440
|
-
return _c('div', {
|
|
118441
|
-
key: i,
|
|
118442
|
-
staticClass: "list-item grid grid-cols-2 mb16"
|
|
118443
|
-
}, [_c('div', {
|
|
118444
|
-
staticClass: "desc"
|
|
118445
|
-
}, [_c('h3', {
|
|
118446
|
-
staticClass: "beyond_eip mb16"
|
|
118447
|
-
}, [_vm._v(" " + _vm._s(t.templatesTitle) + " ")]), _c('p', {
|
|
118448
|
-
staticClass: "beyond_eip mb8"
|
|
118449
|
-
}, [_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', {
|
|
118450
|
-
staticClass: "operate"
|
|
118451
|
-
}, [_c('button', {
|
|
118452
|
-
staticClass: "operate-detail",
|
|
118453
|
-
on: {
|
|
118454
|
-
"click": function ($event) {
|
|
118455
|
-
return _vm.showSetTemplate(t);
|
|
118456
|
-
}
|
|
118457
|
-
}
|
|
118458
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.detail"))), _c('i', {
|
|
118459
|
-
staticClass: "dss-iconfont icon-arrow"
|
|
118460
|
-
})]), _c('div', {
|
|
118461
|
-
staticClass: "operate-btns"
|
|
118462
|
-
}, [_vm.searchForm.type == 2 || _vm.searchForm.type == 1 && _vm.userId == 1 ? _c('button', {
|
|
118463
|
-
staticClass: "operate-btn operate-btn-linear mr8",
|
|
118464
|
-
on: {
|
|
118465
|
-
"click": function ($event) {
|
|
118466
|
-
return _vm.del(t.id);
|
|
118467
|
-
}
|
|
118468
|
-
}
|
|
118469
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.delete")) + " ")]) : _vm._e(), _vm.searchForm.type === 2 && _vm.userId === 1 ? _c('el-button', {
|
|
118470
|
-
staticClass: "operate-btn-setsys mr8",
|
|
118471
|
-
attrs: {
|
|
118472
|
-
"type": "primary",
|
|
118473
|
-
"size": "small"
|
|
118474
|
-
},
|
|
118475
|
-
on: {
|
|
118476
|
-
"click": function ($event) {
|
|
118477
|
-
return _vm.showSetSystem(t);
|
|
118478
|
-
}
|
|
118479
|
-
}
|
|
118480
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.set_system_template")) + " ")]) : _vm._e(), t.isShowDownload === 1 ? _c('el-button', {
|
|
118481
|
-
staticClass: "mr8",
|
|
118482
|
-
attrs: {
|
|
118483
|
-
"type": "primary",
|
|
118484
|
-
"size": "small"
|
|
118485
|
-
},
|
|
118486
|
-
on: {
|
|
118487
|
-
"click": function ($event) {
|
|
118488
|
-
return _vm.downloadTem(t);
|
|
118489
|
-
}
|
|
118490
|
-
}
|
|
118491
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.download")) + " ")]) : _vm._e(), _c('el-button', {
|
|
118492
|
-
attrs: {
|
|
118493
|
-
"type": "primary",
|
|
118494
|
-
"size": "small"
|
|
118495
|
-
},
|
|
118496
|
-
on: {
|
|
118497
|
-
"click": function ($event) {
|
|
118498
|
-
return _vm.setMailTemplate(t);
|
|
118499
|
-
}
|
|
118500
|
-
}
|
|
118501
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.apply")) + " ")])], 1)])]);
|
|
118502
|
-
}) : _vm._e(), !_vm.tableTotal ? _c('div', {
|
|
118503
|
-
staticClass: "w-full h-full flex items-center justify-center"
|
|
118504
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.no_data")) + " ")]) : _vm._e()], 2), _c('div', {
|
|
118505
|
-
staticClass: "list-page"
|
|
118506
|
-
}, [_c('el-pagination', {
|
|
118510
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118507
118511
|
attrs: {
|
|
118508
|
-
"
|
|
118509
|
-
"total": _vm.tableTotal,
|
|
118510
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118511
|
-
"pager-count": 5,
|
|
118512
|
-
"small": "",
|
|
118513
|
-
"layout": "total, prev, pager, next, jumper"
|
|
118514
|
-
},
|
|
118515
|
-
on: {
|
|
118516
|
-
"current-change": _vm.changePage
|
|
118512
|
+
"span": 8
|
|
118517
118513
|
}
|
|
118518
|
-
}
|
|
118514
|
+
}, [_c('div', {
|
|
118515
|
+
staticClass: "col-item col-select-input-item"
|
|
118516
|
+
}, [_c('el-input', {
|
|
118517
|
+
staticClass: "col-input-select",
|
|
118519
118518
|
attrs: {
|
|
118520
|
-
"
|
|
118521
|
-
"with-header": false,
|
|
118522
|
-
"wrapper-closable": false,
|
|
118523
|
-
"append-to-body": "",
|
|
118524
|
-
"size": "800px"
|
|
118519
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118525
118520
|
},
|
|
118526
|
-
|
|
118527
|
-
|
|
118528
|
-
|
|
118529
|
-
|
|
118521
|
+
model: {
|
|
118522
|
+
value: _vm.mailTitleInput,
|
|
118523
|
+
callback: function ($$v) {
|
|
118524
|
+
_vm.mailTitleInput = $$v;
|
|
118525
|
+
},
|
|
118526
|
+
expression: "mailTitleInput"
|
|
118530
118527
|
}
|
|
118531
|
-
}, [
|
|
118528
|
+
}, [_c('el-select', {
|
|
118532
118529
|
attrs: {
|
|
118533
|
-
"
|
|
118534
|
-
"
|
|
118535
|
-
"selectType": _vm.searchForm.type
|
|
118530
|
+
"slot": "prepend",
|
|
118531
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118536
118532
|
},
|
|
118537
118533
|
on: {
|
|
118538
|
-
"
|
|
118539
|
-
_vm.
|
|
118540
|
-
_vm.init();
|
|
118541
|
-
},
|
|
118542
|
-
"close": function ($event) {
|
|
118543
|
-
_vm.setId = 0;
|
|
118544
|
-
_vm.isShowSet = false;
|
|
118534
|
+
"change": function ($event) {
|
|
118535
|
+
_vm.mailTitleInput = '';
|
|
118545
118536
|
}
|
|
118546
|
-
}
|
|
118547
|
-
}) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
|
|
118548
|
-
attrs: {
|
|
118549
|
-
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118550
|
-
"tabOpts": _vm.tabOpts,
|
|
118551
|
-
"mailId": _vm.mailId
|
|
118552
118537
|
},
|
|
118553
|
-
|
|
118554
|
-
|
|
118538
|
+
slot: "prepend",
|
|
118539
|
+
model: {
|
|
118540
|
+
value: _vm.mailTitleSelect,
|
|
118541
|
+
callback: function ($$v) {
|
|
118542
|
+
_vm.mailTitleSelect = $$v;
|
|
118543
|
+
},
|
|
118544
|
+
expression: "mailTitleSelect"
|
|
118555
118545
|
}
|
|
118556
|
-
}
|
|
118557
|
-
|
|
118558
|
-
|
|
118559
|
-
|
|
118560
|
-
;// ./src/api/send/template.js
|
|
118561
|
-
|
|
118562
|
-
// 分页查看模板列表
|
|
118563
|
-
async function getTemplateList(params) {
|
|
118564
|
-
let res = await request_get("/edm/template/templates", params);
|
|
118565
|
-
return res;
|
|
118566
|
-
}
|
|
118567
|
-
// 添加模板
|
|
118568
|
-
async function addTemplate(data) {
|
|
118569
|
-
let res = await request_post("/edm/template/addTemplate", data);
|
|
118570
|
-
return res;
|
|
118571
|
-
}
|
|
118572
|
-
// 编辑模板
|
|
118573
|
-
async function editTemplate(data) {
|
|
118574
|
-
let res = await request_post("/edm/template/editTemplate", data);
|
|
118575
|
-
return res;
|
|
118576
|
-
}
|
|
118577
|
-
// 删除模板
|
|
118578
|
-
async function delTemplate(data) {
|
|
118579
|
-
let res = await request_del(`/edm/template/delTemplate/${data.id}`);
|
|
118580
|
-
return res;
|
|
118581
|
-
}
|
|
118582
|
-
// 设为系统模版
|
|
118583
|
-
async function setSysTemplate(data) {
|
|
118584
|
-
let res = await request_put(`/edm/template/setSysTemplate`, data);
|
|
118585
|
-
return res;
|
|
118586
|
-
}
|
|
118587
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=template&id=87417d06&scoped=true
|
|
118588
|
-
var SetTemplatevue_type_template_id_87417d06_scoped_true_render = function render() {
|
|
118589
|
-
var _vm = this,
|
|
118590
|
-
_c = _vm._self._c;
|
|
118591
|
-
return _c('div', {
|
|
118592
|
-
staticClass: "drawer"
|
|
118593
|
-
}, [_c('div', {
|
|
118594
|
-
staticClass: "drawer-head"
|
|
118595
|
-
}, [_c('h3', [_vm._v(" " + _vm._s(_vm.id ? `${_vm.$i18n.t("template.edit_template")}` : `${_vm.$i18n.t("template.new_template")}`) + " ")]), _c('button', {
|
|
118596
|
-
staticClass: "close-btn",
|
|
118597
|
-
on: {
|
|
118598
|
-
"click": function ($event) {
|
|
118599
|
-
return _vm.close();
|
|
118600
|
-
}
|
|
118546
|
+
}, [_c('el-option', {
|
|
118547
|
+
attrs: {
|
|
118548
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118549
|
+
"value": "1"
|
|
118601
118550
|
}
|
|
118602
|
-
},
|
|
118603
|
-
staticClass: "dss-iconfont icon-close"
|
|
118604
|
-
})])]), _c('div', {
|
|
118605
|
-
staticClass: "drawer-body hidden-scrollbar"
|
|
118606
|
-
}, [_c('el-form', {
|
|
118607
|
-
ref: "form",
|
|
118551
|
+
}), _c('el-option', {
|
|
118608
118552
|
attrs: {
|
|
118609
|
-
"
|
|
118610
|
-
"
|
|
118553
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118554
|
+
"value": "2"
|
|
118611
118555
|
}
|
|
118612
|
-
},
|
|
118613
|
-
staticClass: "form-item"
|
|
118614
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118556
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118615
118557
|
attrs: {
|
|
118616
|
-
"
|
|
118558
|
+
"span": 8
|
|
118617
118559
|
}
|
|
118618
|
-
}, [_c('
|
|
118560
|
+
}, [_c('div', {
|
|
118561
|
+
staticClass: "col-item"
|
|
118562
|
+
}, [_c('span', {
|
|
118563
|
+
staticClass: "col-span"
|
|
118564
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118565
|
+
staticClass: "col-select",
|
|
118619
118566
|
attrs: {
|
|
118620
|
-
"
|
|
118621
|
-
"
|
|
118622
|
-
"
|
|
118567
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118568
|
+
"clearable": "",
|
|
118569
|
+
"filterable": ""
|
|
118623
118570
|
},
|
|
118624
118571
|
model: {
|
|
118625
|
-
value: _vm.
|
|
118572
|
+
value: _vm.searchForm.modelLanguage,
|
|
118626
118573
|
callback: function ($$v) {
|
|
118627
|
-
_vm.$set(_vm.
|
|
118574
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118628
118575
|
},
|
|
118629
|
-
expression: "
|
|
118630
|
-
}
|
|
118631
|
-
})], 1)], 1), _c('div', {
|
|
118632
|
-
staticClass: "form-item"
|
|
118633
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
|
|
118634
|
-
attrs: {
|
|
118635
|
-
"prop": "mailSubject"
|
|
118576
|
+
expression: "searchForm.modelLanguage"
|
|
118636
118577
|
}
|
|
118637
|
-
},
|
|
118638
|
-
|
|
118639
|
-
|
|
118640
|
-
|
|
118641
|
-
|
|
118642
|
-
|
|
118643
|
-
},
|
|
118644
|
-
on: {
|
|
118645
|
-
"focus": function ($event) {
|
|
118646
|
-
_vm.isFocusSubject = true;
|
|
118578
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118579
|
+
return _c('el-option', {
|
|
118580
|
+
key: item.value,
|
|
118581
|
+
attrs: {
|
|
118582
|
+
"value": item.value,
|
|
118583
|
+
"label": item.label
|
|
118647
118584
|
}
|
|
118585
|
+
});
|
|
118586
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118587
|
+
staticStyle: {
|
|
118588
|
+
"margin-top": "8px"
|
|
118648
118589
|
},
|
|
118649
|
-
|
|
118650
|
-
|
|
118651
|
-
callback: function ($$v) {
|
|
118652
|
-
_vm.$set(_vm.form, "mailSubject", $$v);
|
|
118653
|
-
},
|
|
118654
|
-
expression: "form.mailSubject"
|
|
118590
|
+
attrs: {
|
|
118591
|
+
"gutter": 12
|
|
118655
118592
|
}
|
|
118656
|
-
}
|
|
118657
|
-
staticClass: "form-editor mb24"
|
|
118658
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.content")))]), _c('div', {
|
|
118659
|
-
staticClass: "form-editor-wrap"
|
|
118660
|
-
}, [_c('editor', {
|
|
118661
|
-
ref: "templateContent",
|
|
118593
|
+
}, [_c('el-col', {
|
|
118662
118594
|
attrs: {
|
|
118663
|
-
"
|
|
118664
|
-
"theme": "light"
|
|
118665
|
-
},
|
|
118666
|
-
on: {
|
|
118667
|
-
"click": function ($event) {
|
|
118668
|
-
_vm.isFocusSubject = false;
|
|
118669
|
-
}
|
|
118595
|
+
"span": 8
|
|
118670
118596
|
}
|
|
118671
|
-
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118672
|
-
staticClass: "form-tool"
|
|
118673
118597
|
}, [_c('div', {
|
|
118674
|
-
staticClass: "
|
|
118675
|
-
}, [_c('
|
|
118676
|
-
staticClass: "
|
|
118677
|
-
}
|
|
118678
|
-
staticClass: "
|
|
118679
|
-
}, [_c('button', {
|
|
118680
|
-
staticClass: "mb8 mr16",
|
|
118598
|
+
staticClass: "col-item"
|
|
118599
|
+
}, [_c('span', {
|
|
118600
|
+
staticClass: "col-span"
|
|
118601
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118602
|
+
staticClass: "col-select",
|
|
118681
118603
|
attrs: {
|
|
118682
|
-
"
|
|
118604
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118605
|
+
"clearable": ""
|
|
118683
118606
|
},
|
|
118684
|
-
|
|
118685
|
-
|
|
118686
|
-
|
|
118687
|
-
|
|
118688
|
-
}
|
|
118689
|
-
|
|
118690
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_name")) + " ")]), _c('button', {
|
|
118691
|
-
staticClass: "mb8 mr16",
|
|
118692
|
-
on: {
|
|
118693
|
-
"click": function ($event) {
|
|
118694
|
-
$event.preventDefault();
|
|
118695
|
-
return _vm.setVariable(3);
|
|
118696
|
-
}
|
|
118607
|
+
model: {
|
|
118608
|
+
value: _vm.searchForm.modelType,
|
|
118609
|
+
callback: function ($$v) {
|
|
118610
|
+
_vm.$set(_vm.searchForm, "modelType", $$v);
|
|
118611
|
+
},
|
|
118612
|
+
expression: "searchForm.modelType"
|
|
118697
118613
|
}
|
|
118698
|
-
}, [
|
|
118699
|
-
|
|
118614
|
+
}, [_c('el-option', {
|
|
118615
|
+
key: 1,
|
|
118700
118616
|
attrs: {
|
|
118701
|
-
"
|
|
118702
|
-
|
|
118703
|
-
on: {
|
|
118704
|
-
"click": function ($event) {
|
|
118705
|
-
$event.preventDefault();
|
|
118706
|
-
return _vm.setVariable(1);
|
|
118707
|
-
}
|
|
118617
|
+
"value": 1,
|
|
118618
|
+
"label": "系统模版"
|
|
118708
118619
|
}
|
|
118709
|
-
}
|
|
118620
|
+
}), _c('el-option', {
|
|
118621
|
+
key: 2,
|
|
118710
118622
|
attrs: {
|
|
118711
|
-
"
|
|
118712
|
-
|
|
118713
|
-
on: {
|
|
118714
|
-
"click": function ($event) {
|
|
118715
|
-
$event.preventDefault();
|
|
118716
|
-
return _vm.setVariable(2);
|
|
118717
|
-
}
|
|
118623
|
+
"value": 2,
|
|
118624
|
+
"label": "自定义模版"
|
|
118718
118625
|
}
|
|
118719
|
-
}
|
|
118720
|
-
staticClass: "form-item"
|
|
118721
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118626
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118722
118627
|
attrs: {
|
|
118723
|
-
"
|
|
118628
|
+
"span": 8
|
|
118724
118629
|
}
|
|
118725
|
-
}, [_c('
|
|
118630
|
+
}, [_c('div', {
|
|
118631
|
+
staticClass: "col-item"
|
|
118632
|
+
}, [_c('span', {
|
|
118633
|
+
staticClass: "col-span"
|
|
118634
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118635
|
+
staticClass: "col-select",
|
|
118726
118636
|
attrs: {
|
|
118727
|
-
"placeholder": _vm.$i18n.t('common.
|
|
118728
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118637
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118729
118638
|
"clearable": ""
|
|
118730
118639
|
},
|
|
118731
118640
|
model: {
|
|
118732
|
-
value: _vm.
|
|
118641
|
+
value: _vm.searchForm.isShared,
|
|
118733
118642
|
callback: function ($$v) {
|
|
118734
|
-
_vm.$set(_vm.
|
|
118643
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118735
118644
|
},
|
|
118736
|
-
expression: "
|
|
118645
|
+
expression: "searchForm.isShared"
|
|
118737
118646
|
}
|
|
118738
|
-
}
|
|
118739
|
-
|
|
118740
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118647
|
+
}, [_c('el-option', {
|
|
118648
|
+
key: 1,
|
|
118741
118649
|
attrs: {
|
|
118742
|
-
"
|
|
118650
|
+
"value": true,
|
|
118651
|
+
"label": "公开"
|
|
118743
118652
|
}
|
|
118744
|
-
},
|
|
118653
|
+
}), _c('el-option', {
|
|
118654
|
+
key: 2,
|
|
118655
|
+
attrs: {
|
|
118656
|
+
"value": false,
|
|
118657
|
+
"label": "私有"
|
|
118658
|
+
}
|
|
118659
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118660
|
+
attrs: {
|
|
118661
|
+
"span": 8
|
|
118662
|
+
}
|
|
118663
|
+
}, [_c('div', {
|
|
118664
|
+
staticClass: "col-item"
|
|
118665
|
+
}, [_c('span', {
|
|
118666
|
+
staticClass: "col-span"
|
|
118667
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118668
|
+
staticClass: "col-select",
|
|
118745
118669
|
attrs: {
|
|
118746
118670
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118747
|
-
"
|
|
118748
|
-
"
|
|
118671
|
+
"clearable": "",
|
|
118672
|
+
"filterable": ""
|
|
118749
118673
|
},
|
|
118750
118674
|
model: {
|
|
118751
|
-
value: _vm.
|
|
118675
|
+
value: _vm.searchForm.createdUser,
|
|
118752
118676
|
callback: function ($$v) {
|
|
118753
|
-
_vm.$set(_vm.
|
|
118677
|
+
_vm.$set(_vm.searchForm, "createdUser", $$v);
|
|
118754
118678
|
},
|
|
118755
|
-
expression: "
|
|
118679
|
+
expression: "searchForm.createdUser"
|
|
118756
118680
|
}
|
|
118757
|
-
}, _vm._l(_vm.
|
|
118681
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118758
118682
|
return _c('el-option', {
|
|
118759
|
-
key:
|
|
118683
|
+
key: item.userId,
|
|
118760
118684
|
attrs: {
|
|
118761
|
-
"
|
|
118762
|
-
"
|
|
118685
|
+
"label": item.userName,
|
|
118686
|
+
"value": item.userId
|
|
118763
118687
|
}
|
|
118764
118688
|
});
|
|
118765
|
-
}), 1)], 1)]
|
|
118766
|
-
|
|
118767
|
-
|
|
118768
|
-
|
|
118769
|
-
|
|
118770
|
-
"
|
|
118771
|
-
return _vm.close();
|
|
118772
|
-
}
|
|
118689
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118690
|
+
staticStyle: {
|
|
118691
|
+
"margin-top": "8px"
|
|
118692
|
+
},
|
|
118693
|
+
attrs: {
|
|
118694
|
+
"gutter": 20
|
|
118773
118695
|
}
|
|
118774
|
-
}, [
|
|
118775
|
-
staticClass: "drawer-btn drawer-btn-face",
|
|
118696
|
+
}, [_c('el-col', {
|
|
118776
118697
|
attrs: {
|
|
118777
|
-
"
|
|
118778
|
-
},
|
|
118779
|
-
on: {
|
|
118780
|
-
"click": _vm.submit
|
|
118698
|
+
"span": 24
|
|
118781
118699
|
}
|
|
118782
|
-
}, [
|
|
118783
|
-
staticClass: "
|
|
118784
|
-
}
|
|
118785
|
-
|
|
118786
|
-
|
|
118787
|
-
|
|
118788
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118789
|
-
|
|
118790
|
-
|
|
118791
|
-
|
|
118792
|
-
/* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
|
|
118793
|
-
components: {
|
|
118794
|
-
Editor: Editor
|
|
118795
|
-
},
|
|
118796
|
-
props: {
|
|
118797
|
-
id: {
|
|
118798
|
-
default: 0,
|
|
118799
|
-
type: Number
|
|
118700
|
+
}, [_c('div', {
|
|
118701
|
+
staticClass: "btns_box"
|
|
118702
|
+
}, [_c('div', [_c('el-button', {
|
|
118703
|
+
attrs: {
|
|
118704
|
+
"type": "primary"
|
|
118800
118705
|
},
|
|
118801
|
-
|
|
118802
|
-
|
|
118803
|
-
|
|
118804
|
-
|
|
118706
|
+
on: {
|
|
118707
|
+
"click": function ($event) {
|
|
118708
|
+
_vm.searchForm.currentPage = 1;
|
|
118709
|
+
_vm.getCardList();
|
|
118805
118710
|
}
|
|
118806
|
-
},
|
|
118807
|
-
// 自定义模板/系统模板
|
|
118808
|
-
selectType: {
|
|
118809
|
-
type: [Number, String],
|
|
118810
|
-
default: ""
|
|
118811
118711
|
}
|
|
118812
|
-
},
|
|
118813
|
-
|
|
118814
|
-
|
|
118815
|
-
enumData: {
|
|
118816
|
-
language: language
|
|
118817
|
-
},
|
|
118818
|
-
// 枚举数据
|
|
118819
|
-
form: {
|
|
118820
|
-
// 表单
|
|
118821
|
-
templatesTitle: "",
|
|
118822
|
-
//模板标题
|
|
118823
|
-
mailSubject: "",
|
|
118824
|
-
//邮件标题
|
|
118825
|
-
scene: "",
|
|
118826
|
-
//应用场景
|
|
118827
|
-
modelLanguage: ""
|
|
118828
|
-
},
|
|
118829
|
-
verifyForm: {
|
|
118830
|
-
templatesTitle: [{
|
|
118831
|
-
required: true,
|
|
118832
|
-
message: `${this.$i18n.t("template.title_not_empty")}`,
|
|
118833
|
-
trigger: "blur"
|
|
118834
|
-
}, {
|
|
118835
|
-
max: 30,
|
|
118836
|
-
message: `${this.$i18n.t("template.title_word_limit")}`,
|
|
118837
|
-
trigger: "blur"
|
|
118838
|
-
}],
|
|
118839
|
-
mailSubject: [{
|
|
118840
|
-
required: true,
|
|
118841
|
-
message: `${this.$i18n.t("template.subject_not_empty")}`,
|
|
118842
|
-
trigger: "blur"
|
|
118843
|
-
}],
|
|
118844
|
-
scene: [{
|
|
118845
|
-
required: true,
|
|
118846
|
-
message: `${this.$i18n.t("template.scene_not_empty")}`,
|
|
118847
|
-
trigger: "blur"
|
|
118848
|
-
}, {
|
|
118849
|
-
max: 20,
|
|
118850
|
-
message: `${this.$i18n.t("template.scene_word_limit")}`,
|
|
118851
|
-
trigger: "blur"
|
|
118852
|
-
}],
|
|
118853
|
-
modelLanguage: [{
|
|
118854
|
-
required: true,
|
|
118855
|
-
message: `${this.$i18n.t("template.language_not_empty")}`,
|
|
118856
|
-
trigger: "change"
|
|
118857
|
-
}]
|
|
118858
|
-
},
|
|
118859
|
-
// 标签表单校验规则
|
|
118860
|
-
isFocusSubject: false,
|
|
118861
|
-
// 主题是否获取焦点
|
|
118862
|
-
isSubmit: false // 是否正在提交
|
|
118863
|
-
};
|
|
118864
|
-
},
|
|
118865
|
-
created() {
|
|
118866
|
-
if (this.id) {
|
|
118867
|
-
// 初始化
|
|
118868
|
-
this.init();
|
|
118712
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118713
|
+
on: {
|
|
118714
|
+
"click": _vm.resetEvt
|
|
118869
118715
|
}
|
|
118870
|
-
},
|
|
118871
|
-
|
|
118872
|
-
|
|
118873
|
-
|
|
118874
|
-
if (this.id) {
|
|
118875
|
-
setTimeout(() => {
|
|
118876
|
-
this.$refs.templateContent.setContent(this.rowData.content);
|
|
118877
|
-
if (this.selectType == 1) {
|
|
118878
|
-
this.$refs.templateContent.setDisable();
|
|
118879
|
-
}
|
|
118880
|
-
}, 200);
|
|
118881
|
-
this.form = {
|
|
118882
|
-
templatesTitle: this.rowData.templatesTitle,
|
|
118883
|
-
mailSubject: this.rowData.mailSubject,
|
|
118884
|
-
scene: this.rowData.scene,
|
|
118885
|
-
modelLanguage: this.rowData.modelLanguage
|
|
118886
|
-
};
|
|
118887
|
-
}
|
|
118888
|
-
},
|
|
118889
|
-
// 提交
|
|
118890
|
-
submit() {
|
|
118891
|
-
this.$refs.form.validate(valid => {
|
|
118892
|
-
if (valid) {
|
|
118893
|
-
if (this.$refs.templateContent.isEmpty()) {
|
|
118894
|
-
this.$message({
|
|
118895
|
-
type: "warning",
|
|
118896
|
-
message: `${this.$i18n.t("template.no_content")}`
|
|
118897
|
-
});
|
|
118898
|
-
return;
|
|
118899
|
-
}
|
|
118900
|
-
const data = this.form;
|
|
118901
|
-
data.content = this.$refs.templateContent.getContent();
|
|
118902
|
-
this.isSubmit = true;
|
|
118903
|
-
if (this.id) {
|
|
118904
|
-
data.id = this.id;
|
|
118905
|
-
// 编辑
|
|
118906
|
-
editTemplate(data).then(res => {
|
|
118907
|
-
if (res.code == 0) {
|
|
118908
|
-
this.isSubmit = false;
|
|
118909
|
-
this.$emit("init");
|
|
118910
|
-
this.close();
|
|
118911
|
-
this.$message({
|
|
118912
|
-
type: "success",
|
|
118913
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118914
|
-
});
|
|
118915
|
-
}
|
|
118916
|
-
});
|
|
118917
|
-
} else {
|
|
118918
|
-
// 新增
|
|
118919
|
-
addTemplate(data).then(res => {
|
|
118920
|
-
if (res.code == 0) {
|
|
118921
|
-
this.isSubmit = false;
|
|
118922
|
-
this.$emit("init");
|
|
118923
|
-
this.close();
|
|
118924
|
-
this.$message({
|
|
118925
|
-
type: "success",
|
|
118926
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118927
|
-
});
|
|
118928
|
-
}
|
|
118929
|
-
});
|
|
118930
|
-
}
|
|
118931
|
-
} else {
|
|
118932
|
-
return false;
|
|
118933
|
-
}
|
|
118934
|
-
});
|
|
118935
|
-
},
|
|
118936
|
-
// 使用变量
|
|
118937
|
-
setVariable(type) {
|
|
118938
|
-
let content = ``;
|
|
118939
|
-
if (this.isFocusSubject) {
|
|
118940
|
-
switch (type) {
|
|
118941
|
-
case 0:
|
|
118942
|
-
// 频道名
|
|
118943
|
-
content = `{$channelName}`;
|
|
118944
|
-
break;
|
|
118945
|
-
case 1:
|
|
118946
|
-
// 粉丝数
|
|
118947
|
-
content = `{$subscriber}`;
|
|
118948
|
-
break;
|
|
118949
|
-
case 2:
|
|
118950
|
-
// 频道链接
|
|
118951
|
-
content = `{$link}`;
|
|
118952
|
-
break;
|
|
118953
|
-
case 3:
|
|
118954
|
-
// 频道id
|
|
118955
|
-
content = `{$channelId}`;
|
|
118956
|
-
break;
|
|
118957
|
-
}
|
|
118958
|
-
const caretPosition = this.$refs.mailSubjectIpt.$el.firstElementChild.selectionStart;
|
|
118959
|
-
const newValue = this.form.mailSubject.slice(0, caretPosition) + content + this.form.mailSubject.slice(caretPosition);
|
|
118960
|
-
this.form.mailSubject = newValue;
|
|
118961
|
-
this.isFocusSubject = false;
|
|
118962
|
-
} else {
|
|
118963
|
-
switch (type) {
|
|
118964
|
-
case 0:
|
|
118965
|
-
// 频道名
|
|
118966
|
-
content = `{$channelName}`;
|
|
118967
|
-
break;
|
|
118968
|
-
case 1:
|
|
118969
|
-
// 粉丝数
|
|
118970
|
-
content = `{$subscriber}`;
|
|
118971
|
-
break;
|
|
118972
|
-
case 2:
|
|
118973
|
-
// 频道链接
|
|
118974
|
-
content = `{$link}`;
|
|
118975
|
-
break;
|
|
118976
|
-
case 3:
|
|
118977
|
-
// 频道id
|
|
118978
|
-
content = `{$channelId}`;
|
|
118979
|
-
break;
|
|
118980
|
-
}
|
|
118981
|
-
this.$refs.templateContent.insertEditContent(content);
|
|
118982
|
-
}
|
|
118983
|
-
},
|
|
118984
|
-
// 关闭弹窗
|
|
118985
|
-
close() {
|
|
118986
|
-
this.$emit("close");
|
|
118716
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118717
|
+
staticStyle: {
|
|
118718
|
+
"display": "flex",
|
|
118719
|
+
"align-items": "center"
|
|
118987
118720
|
}
|
|
118988
|
-
}
|
|
118989
|
-
|
|
118990
|
-
|
|
118991
|
-
/* harmony default export */ var TemplateCom_SetTemplatevue_type_script_lang_js = (SetTemplatevue_type_script_lang_js);
|
|
118992
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118993
|
-
// extracted by mini-css-extract-plugin
|
|
118994
|
-
|
|
118995
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
|
|
118996
|
-
|
|
118997
|
-
;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue
|
|
118998
|
-
|
|
118999
|
-
|
|
119000
|
-
|
|
119001
|
-
;
|
|
119002
|
-
|
|
119003
|
-
|
|
119004
|
-
/* normalize component */
|
|
119005
|
-
|
|
119006
|
-
var SetTemplate_component = normalizeComponent(
|
|
119007
|
-
TemplateCom_SetTemplatevue_type_script_lang_js,
|
|
119008
|
-
SetTemplatevue_type_template_id_87417d06_scoped_true_render,
|
|
119009
|
-
SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns,
|
|
119010
|
-
false,
|
|
119011
|
-
null,
|
|
119012
|
-
"87417d06",
|
|
119013
|
-
null
|
|
119014
|
-
|
|
119015
|
-
)
|
|
119016
|
-
|
|
119017
|
-
/* harmony default export */ var SetTemplate = (SetTemplate_component.exports);
|
|
119018
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=template&id=3c0d8a32&scoped=true
|
|
119019
|
-
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render = function render() {
|
|
119020
|
-
var _vm = this,
|
|
119021
|
-
_c = _vm._self._c;
|
|
119022
|
-
return _c('el-dialog', {
|
|
118721
|
+
}, [_c('div', {
|
|
118722
|
+
staticClass: "right_sort"
|
|
118723
|
+
}, [_c('el-dropdown', {
|
|
119023
118724
|
attrs: {
|
|
119024
|
-
"
|
|
119025
|
-
"close-on-click-modal": false,
|
|
119026
|
-
"title": _vm.$i18n.t('template.set_system_template'),
|
|
119027
|
-
"width": "300px",
|
|
119028
|
-
"append-to-body": ""
|
|
119029
|
-
},
|
|
119030
|
-
on: {
|
|
119031
|
-
"update:visible": function ($event) {
|
|
119032
|
-
_vm.isShowSetSystemDialog = $event;
|
|
119033
|
-
},
|
|
119034
|
-
"close": _vm.closeEvt
|
|
118725
|
+
"placement": "bottom"
|
|
119035
118726
|
}
|
|
119036
118727
|
}, [_c('div', {
|
|
119037
|
-
staticClass: "
|
|
119038
|
-
}, [_c('
|
|
118728
|
+
staticClass: "sort_btn"
|
|
118729
|
+
}, [_c('i', {
|
|
118730
|
+
staticClass: "dss-iconfont"
|
|
118731
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
119039
118732
|
attrs: {
|
|
119040
|
-
"
|
|
119041
|
-
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
119042
|
-
"clearable": ""
|
|
118733
|
+
"slot": "dropdown"
|
|
119043
118734
|
},
|
|
119044
|
-
|
|
119045
|
-
|
|
119046
|
-
|
|
119047
|
-
|
|
118735
|
+
slot: "dropdown"
|
|
118736
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118737
|
+
return _c('el-dropdown-item', {
|
|
118738
|
+
key: index,
|
|
118739
|
+
staticStyle: {
|
|
118740
|
+
"white-space": "nowrap"
|
|
119048
118741
|
},
|
|
119049
|
-
expression: "setSystemForm.modelType"
|
|
119050
|
-
}
|
|
119051
|
-
}, _vm._l(_vm.tabOpts, function (item) {
|
|
119052
|
-
return _c('el-option', {
|
|
119053
|
-
key: Number(item.name),
|
|
119054
118742
|
attrs: {
|
|
119055
|
-
"
|
|
119056
|
-
|
|
119057
|
-
|
|
119058
|
-
|
|
119059
|
-
|
|
119060
|
-
|
|
119061
|
-
}, [_c('button', {
|
|
119062
|
-
staticClass: "form-btn form-btn-disabled mr16",
|
|
119063
|
-
on: {
|
|
119064
|
-
"click": _vm.closeEvt
|
|
119065
|
-
}
|
|
119066
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('writeMail.cancle')) + " ")]), _c('button', {
|
|
119067
|
-
staticClass: "form-btn form-btn-face",
|
|
119068
|
-
on: {
|
|
119069
|
-
"click": _vm.customToSystem
|
|
119070
|
-
}
|
|
119071
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
|
|
119072
|
-
};
|
|
119073
|
-
var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns = [];
|
|
119074
|
-
|
|
119075
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119076
|
-
|
|
119077
|
-
/* harmony default export */ var SetSysTemplatevue_type_script_lang_js = ({
|
|
119078
|
-
props: {
|
|
119079
|
-
isShowSetSystem: {
|
|
119080
|
-
type: Boolean,
|
|
119081
|
-
default: false
|
|
119082
|
-
},
|
|
119083
|
-
mailId: {
|
|
119084
|
-
type: [String, Number],
|
|
119085
|
-
default: ""
|
|
119086
|
-
},
|
|
119087
|
-
tabOpts: {
|
|
119088
|
-
type: Array,
|
|
119089
|
-
default: () => {
|
|
119090
|
-
return [];
|
|
119091
|
-
}
|
|
119092
|
-
}
|
|
119093
|
-
},
|
|
119094
|
-
data() {
|
|
119095
|
-
return {
|
|
119096
|
-
isShowSetSystemDialog: this.isShowSetSystem,
|
|
119097
|
-
setSystemForm: {
|
|
119098
|
-
// 设置系统模板表单
|
|
119099
|
-
id: this.mailId,
|
|
119100
|
-
modelType: ""
|
|
118743
|
+
"command": item.value
|
|
118744
|
+
},
|
|
118745
|
+
nativeOn: {
|
|
118746
|
+
"click": function ($event) {
|
|
118747
|
+
return _vm.clickDropdownItem(item);
|
|
118748
|
+
}
|
|
119101
118749
|
}
|
|
119102
|
-
};
|
|
119103
|
-
},
|
|
119104
|
-
|
|
119105
|
-
|
|
119106
|
-
|
|
119107
|
-
|
|
119108
|
-
|
|
119109
|
-
|
|
119110
|
-
|
|
119111
|
-
|
|
118750
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118751
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118752
|
+
staticClass: "temp_box"
|
|
118753
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118754
|
+
staticClass: "temp_list"
|
|
118755
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118756
|
+
return _c('div', {
|
|
118757
|
+
key: item.id,
|
|
118758
|
+
staticClass: "temp_item"
|
|
118759
|
+
}, [_c('div', {
|
|
118760
|
+
staticClass: "temp_content"
|
|
118761
|
+
}, [_c('div', {
|
|
118762
|
+
staticClass: "temp_top"
|
|
118763
|
+
}, [_c('div', {
|
|
118764
|
+
staticClass: "temp_title"
|
|
118765
|
+
}, [_c('div', {
|
|
118766
|
+
staticClass: "title_text"
|
|
118767
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118768
|
+
staticClass: "more_icon",
|
|
118769
|
+
on: {
|
|
118770
|
+
"click": function ($event) {
|
|
118771
|
+
return _vm.toDetail(item);
|
|
118772
|
+
}
|
|
119112
118773
|
}
|
|
119113
|
-
|
|
119114
|
-
|
|
119115
|
-
|
|
119116
|
-
|
|
119117
|
-
|
|
119118
|
-
|
|
119119
|
-
|
|
119120
|
-
|
|
119121
|
-
|
|
119122
|
-
|
|
118774
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118775
|
+
staticClass: "el-icon-arrow-right"
|
|
118776
|
+
})])]), _c('div', {
|
|
118777
|
+
staticClass: "num_box"
|
|
118778
|
+
}, [_c('div', {
|
|
118779
|
+
staticClass: "lang_box"
|
|
118780
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), _c('div', {
|
|
118781
|
+
staticClass: "lang_box"
|
|
118782
|
+
}, [_vm._v("附件:??个")]), _c('div', {
|
|
118783
|
+
staticClass: "lang_box"
|
|
118784
|
+
}, [_vm._v("商品卡:??个")])])]), _c('div', {
|
|
118785
|
+
staticClass: "temp_middle"
|
|
118786
|
+
}, [_c('div', {
|
|
118787
|
+
staticClass: "nu_box"
|
|
118788
|
+
}, [_c('div', {
|
|
118789
|
+
staticClass: "nu_title"
|
|
118790
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118791
|
+
staticClass: "nu_number"
|
|
118792
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118793
|
+
staticClass: "nu_box"
|
|
118794
|
+
}, [_c('div', {
|
|
118795
|
+
staticClass: "nu_title"
|
|
118796
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118797
|
+
staticClass: "nu_number"
|
|
118798
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118799
|
+
staticClass: "nu_box"
|
|
118800
|
+
}, [_c('div', {
|
|
118801
|
+
staticClass: "nu_title"
|
|
118802
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118803
|
+
staticClass: "nu_number"
|
|
118804
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118805
|
+
staticClass: "nu_box"
|
|
118806
|
+
}, [_c('div', {
|
|
118807
|
+
staticClass: "nu_title"
|
|
118808
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118809
|
+
staticClass: "nu_number"
|
|
118810
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118811
|
+
staticClass: "tem_bottom"
|
|
118812
|
+
}, [_c('div', {
|
|
118813
|
+
staticClass: "tem_desc"
|
|
118814
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118815
|
+
staticClass: "tem_desc"
|
|
118816
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118817
|
+
staticClass: "desc_btns"
|
|
118818
|
+
}, [_c('div', {
|
|
118819
|
+
staticClass: "desc_text"
|
|
118820
|
+
}, [_c('div', {
|
|
118821
|
+
staticClass: "tem_desc"
|
|
118822
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118823
|
+
staticClass: "tem_desc"
|
|
118824
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118825
|
+
staticClass: "apply_btn"
|
|
118826
|
+
}, [_c('el-button', {
|
|
118827
|
+
attrs: {
|
|
118828
|
+
"type": "primary"
|
|
118829
|
+
},
|
|
118830
|
+
on: {
|
|
118831
|
+
"click": function ($event) {
|
|
118832
|
+
return _vm.setMailTemplate(item);
|
|
119123
118833
|
}
|
|
119124
|
-
}
|
|
118834
|
+
}
|
|
118835
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118836
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118837
|
+
staticClass: "page_box"
|
|
118838
|
+
}, [_c('el-pagination', {
|
|
118839
|
+
attrs: {
|
|
118840
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118841
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118842
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118843
|
+
"total": _vm.total
|
|
119125
118844
|
},
|
|
119126
|
-
|
|
119127
|
-
|
|
119128
|
-
|
|
119129
|
-
|
|
118845
|
+
on: {
|
|
118846
|
+
"size-change": _vm.handleSizeChange,
|
|
118847
|
+
"current-change": _vm.handleCurrentChange,
|
|
118848
|
+
"update:currentPage": function ($event) {
|
|
118849
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118850
|
+
},
|
|
118851
|
+
"update:current-page": function ($event) {
|
|
118852
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118853
|
+
}
|
|
119130
118854
|
}
|
|
119131
|
-
}
|
|
119132
|
-
}
|
|
119133
|
-
|
|
119134
|
-
/* harmony default export */ var TemplateCom_SetSysTemplatevue_type_script_lang_js = (SetSysTemplatevue_type_script_lang_js);
|
|
119135
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119136
|
-
// extracted by mini-css-extract-plugin
|
|
119137
|
-
|
|
119138
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119139
|
-
|
|
119140
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue
|
|
119141
|
-
|
|
119142
|
-
|
|
119143
|
-
|
|
119144
|
-
;
|
|
119145
|
-
|
|
118855
|
+
})], 1)]);
|
|
118856
|
+
};
|
|
118857
|
+
var TemplateListvue_type_template_id_0aaac0a8_scoped_true_staticRenderFns = [];
|
|
119146
118858
|
|
|
119147
|
-
|
|
118859
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=0aaac0a8&scoped=true
|
|
119148
118860
|
|
|
119149
|
-
|
|
119150
|
-
TemplateCom_SetSysTemplatevue_type_script_lang_js,
|
|
119151
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render,
|
|
119152
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns,
|
|
119153
|
-
false,
|
|
119154
|
-
null,
|
|
119155
|
-
"3c0d8a32",
|
|
119156
|
-
null
|
|
119157
|
-
|
|
119158
|
-
)
|
|
118861
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
119159
118862
|
|
|
119160
|
-
|
|
118863
|
+
const TemplateCom_const_language = [{
|
|
118864
|
+
value: '7',
|
|
118865
|
+
label: '汉语',
|
|
118866
|
+
enLabel: 'Chinese'
|
|
118867
|
+
}, {
|
|
118868
|
+
value: '1',
|
|
118869
|
+
label: '英语',
|
|
118870
|
+
enLabel: 'English'
|
|
118871
|
+
}, {
|
|
118872
|
+
value: '3',
|
|
118873
|
+
label: '法语',
|
|
118874
|
+
enLabel: 'French'
|
|
118875
|
+
}, {
|
|
118876
|
+
value: '8',
|
|
118877
|
+
label: '德语',
|
|
118878
|
+
enLabel: 'German'
|
|
118879
|
+
}, {
|
|
118880
|
+
value: '6',
|
|
118881
|
+
label: '日语',
|
|
118882
|
+
enLabel: 'Japanese'
|
|
118883
|
+
}, {
|
|
118884
|
+
value: '9',
|
|
118885
|
+
label: '韩语',
|
|
118886
|
+
enLabel: 'Korean'
|
|
118887
|
+
}, {
|
|
118888
|
+
value: '10',
|
|
118889
|
+
label: '越南语',
|
|
118890
|
+
enLabel: 'Vietnamese'
|
|
118891
|
+
}, {
|
|
118892
|
+
value: '11',
|
|
118893
|
+
label: '泰国语',
|
|
118894
|
+
enLabel: 'Thai'
|
|
118895
|
+
}, {
|
|
118896
|
+
value: '12',
|
|
118897
|
+
label: '菲律宾语',
|
|
118898
|
+
enLabel: 'Filipino'
|
|
118899
|
+
}, {
|
|
118900
|
+
value: '13',
|
|
118901
|
+
label: '印度尼西亚语',
|
|
118902
|
+
enLabel: 'Indonesian'
|
|
118903
|
+
}, {
|
|
118904
|
+
value: '14',
|
|
118905
|
+
label: '俄罗斯语',
|
|
118906
|
+
enLabel: 'Russian'
|
|
118907
|
+
}, {
|
|
118908
|
+
value: '4',
|
|
118909
|
+
label: '西班牙语',
|
|
118910
|
+
enLabel: 'Spanish'
|
|
118911
|
+
}, {
|
|
118912
|
+
value: '15',
|
|
118913
|
+
label: '意大利语',
|
|
118914
|
+
enLabel: 'Italian'
|
|
118915
|
+
}];
|
|
118916
|
+
const sortConfig = [{
|
|
118917
|
+
label: '按创建时间倒序',
|
|
118918
|
+
value: 0
|
|
118919
|
+
}, {
|
|
118920
|
+
label: '按更新时间倒序',
|
|
118921
|
+
value: 1
|
|
118922
|
+
}, {
|
|
118923
|
+
label: '按送达率倒序',
|
|
118924
|
+
value: 2
|
|
118925
|
+
}, {
|
|
118926
|
+
label: '按打开率倒序',
|
|
118927
|
+
value: 3
|
|
118928
|
+
}, {
|
|
118929
|
+
label: '按回复率倒序',
|
|
118930
|
+
value: 4
|
|
118931
|
+
}, {
|
|
118932
|
+
label: '按累计发送数倒序',
|
|
118933
|
+
value: 5
|
|
118934
|
+
}];
|
|
118935
|
+
// 系统模版场景
|
|
118936
|
+
const templateSystemScene = [{
|
|
118937
|
+
value: '1',
|
|
118938
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
118939
|
+
},
|
|
118940
|
+
//合作邀请
|
|
118941
|
+
{
|
|
118942
|
+
value: '2',
|
|
118943
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
118944
|
+
},
|
|
118945
|
+
//价格协商
|
|
118946
|
+
{
|
|
118947
|
+
value: '3',
|
|
118948
|
+
label: `${src_language.t('template.contract_template')}`
|
|
118949
|
+
},
|
|
118950
|
+
//合同模板
|
|
118951
|
+
{
|
|
118952
|
+
value: '4',
|
|
118953
|
+
label: `${src_language.t('template.video_production')}`
|
|
118954
|
+
},
|
|
118955
|
+
//视频制作
|
|
118956
|
+
{
|
|
118957
|
+
value: '5',
|
|
118958
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
118959
|
+
} //费用结算
|
|
118960
|
+
];
|
|
119161
118961
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119162
118962
|
|
|
119163
118963
|
|
|
119164
118964
|
|
|
119165
118965
|
|
|
119166
118966
|
|
|
118967
|
+
function createSearchForm(tar) {
|
|
118968
|
+
let raw = {
|
|
118969
|
+
// templatesTitle: '', //模板标题
|
|
118970
|
+
// scene: '', //应用场景
|
|
118971
|
+
// mailSubject: '', //邮件主题
|
|
118972
|
+
// content: '', //正文
|
|
118973
|
+
type: 2,
|
|
118974
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
118975
|
+
// modelLanguage: '', //语言
|
|
118976
|
+
// isShared: '', //是否共享
|
|
118977
|
+
// userId: '', //创建人
|
|
118978
|
+
searchSort: 1,
|
|
118979
|
+
//排序
|
|
118980
|
+
currentPage: 1,
|
|
118981
|
+
pageSize: 9
|
|
118982
|
+
};
|
|
118983
|
+
if (tar) {
|
|
118984
|
+
raw = Object.assign(raw, tar);
|
|
118985
|
+
}
|
|
118986
|
+
return raw;
|
|
118987
|
+
}
|
|
119167
118988
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119168
|
-
components: {
|
|
119169
|
-
SetTemplate: SetTemplate,
|
|
119170
|
-
SetSysTemplate: SetSysTemplate
|
|
119171
|
-
},
|
|
118989
|
+
components: {},
|
|
119172
118990
|
props: {
|
|
119173
118991
|
userId: {
|
|
119174
118992
|
type: [Number, String],
|
|
@@ -119177,161 +118995,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119177
118995
|
},
|
|
119178
118996
|
data() {
|
|
119179
118997
|
return {
|
|
119180
|
-
|
|
119181
|
-
|
|
119182
|
-
|
|
119183
|
-
|
|
119184
|
-
|
|
119185
|
-
|
|
119186
|
-
|
|
119187
|
-
|
|
119188
|
-
|
|
119189
|
-
|
|
119190
|
-
|
|
119191
|
-
|
|
119192
|
-
|
|
119193
|
-
|
|
119194
|
-
|
|
119195
|
-
pageSize: 10 //当前页条数
|
|
119196
|
-
},
|
|
119197
|
-
// 选项卡 1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119198
|
-
tabOpts: [{
|
|
119199
|
-
name: "1",
|
|
119200
|
-
label: `${this.$i18n.t("template.invite_cooperation")}`
|
|
119201
|
-
},
|
|
119202
|
-
//合作邀请
|
|
119203
|
-
{
|
|
119204
|
-
name: "2",
|
|
119205
|
-
label: `${this.$i18n.t("template.price_negotiation")}`
|
|
119206
|
-
},
|
|
119207
|
-
//价格协商
|
|
119208
|
-
{
|
|
119209
|
-
name: "3",
|
|
119210
|
-
label: `${this.$i18n.t("template.contract_template")}`
|
|
119211
|
-
},
|
|
119212
|
-
//合同模板
|
|
119213
|
-
{
|
|
119214
|
-
name: "4",
|
|
119215
|
-
label: `${this.$i18n.t("template.video_production")}`
|
|
119216
|
-
},
|
|
119217
|
-
//视频制作
|
|
119218
|
-
{
|
|
119219
|
-
name: "5",
|
|
119220
|
-
label: `${this.$i18n.t("template.expense_settlement")}`
|
|
119221
|
-
} //费用结算
|
|
119222
|
-
],
|
|
119223
|
-
loading: false,
|
|
119224
|
-
// 加载中
|
|
119225
|
-
tableData: [],
|
|
119226
|
-
// 表格数据
|
|
119227
|
-
tableTotal: 1,
|
|
119228
|
-
// 表格总数
|
|
119229
|
-
isShowSet: false,
|
|
119230
|
-
// 是否显示模板设置
|
|
119231
|
-
setId: 0,
|
|
119232
|
-
// 设置模板id
|
|
119233
|
-
rowData: null,
|
|
119234
|
-
//选择的模板数据
|
|
119235
|
-
|
|
119236
|
-
isShowSetSystem: false,
|
|
119237
|
-
// 是否显示设置系统模板
|
|
119238
|
-
mailId: ""
|
|
118998
|
+
// 模版名称 场景
|
|
118999
|
+
contentSelect: "1",
|
|
119000
|
+
contentInput: "",
|
|
119001
|
+
// 邮件主题正文
|
|
119002
|
+
mailTitleSelect: "1",
|
|
119003
|
+
mailTitleInput: "",
|
|
119004
|
+
searchForm: createSearchForm(),
|
|
119005
|
+
language: TemplateCom_const_language,
|
|
119006
|
+
sortConfig: sortConfig,
|
|
119007
|
+
accountList: [],
|
|
119008
|
+
currentPage: 5,
|
|
119009
|
+
templateList: [1],
|
|
119010
|
+
templateSystemScene: templateSystemScene,
|
|
119011
|
+
total: 0,
|
|
119012
|
+
loading: false
|
|
119239
119013
|
};
|
|
119240
119014
|
},
|
|
119241
|
-
|
|
119242
|
-
|
|
119243
|
-
this.
|
|
119015
|
+
mounted() {
|
|
119016
|
+
this.getAccountList();
|
|
119017
|
+
this.getCardList();
|
|
119244
119018
|
},
|
|
119245
119019
|
methods: {
|
|
119246
|
-
//
|
|
119247
|
-
|
|
119248
|
-
this.
|
|
119249
|
-
if (
|
|
119250
|
-
|
|
119020
|
+
// 语言枚举
|
|
119021
|
+
getLangLabel(val) {
|
|
119022
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119023
|
+
if (currLang) {
|
|
119024
|
+
return currLang.label;
|
|
119251
119025
|
}
|
|
119252
|
-
|
|
119253
|
-
|
|
119254
|
-
|
|
119255
|
-
|
|
119256
|
-
|
|
119026
|
+
},
|
|
119027
|
+
// 应用模版
|
|
119028
|
+
setMailTemplate(data) {
|
|
119029
|
+
this.$emit("setMailTemplate", data);
|
|
119030
|
+
},
|
|
119031
|
+
// 跳转详情
|
|
119032
|
+
toDetail(item) {
|
|
119033
|
+
const routeData = this.$router.resolve({
|
|
119034
|
+
path: "/emailTempDetail",
|
|
119035
|
+
query: {
|
|
119036
|
+
type: "edit",
|
|
119037
|
+
id: item.id
|
|
119038
|
+
}
|
|
119039
|
+
});
|
|
119040
|
+
window.open(routeData.href, "_blank");
|
|
119041
|
+
},
|
|
119042
|
+
// 获取列表
|
|
119043
|
+
getCardList() {
|
|
119044
|
+
// if (this.contentSelect == '1') {
|
|
119045
|
+
// this.searchForm.templatesTitle = this.contentInput
|
|
119046
|
+
// } else if (this.contentSelect == '2') {
|
|
119047
|
+
// //系统模版
|
|
119048
|
+
// if (this.searchForm.type == 2) {
|
|
119049
|
+
// this.searchForm.scene = this.contentInput
|
|
119050
|
+
// }
|
|
119051
|
+
// }
|
|
119052
|
+
// if (this.mailTitleSelect == '1') {
|
|
119053
|
+
// this.searchForm.mailSubject = this.mailTitleInput
|
|
119054
|
+
// } else if (this.mailTitleSelect == '2') {
|
|
119055
|
+
// this.searchForm.content = this.mailTitleInput
|
|
119056
|
+
// }
|
|
119057
|
+
console.log(this.searchForm, "searchForm");
|
|
119058
|
+
this.loading = true;
|
|
119059
|
+
templatesList(this.searchForm).then(res => {
|
|
119060
|
+
if (res.code == "0") {
|
|
119061
|
+
this.templateList = res.data.rows;
|
|
119062
|
+
this.total = res.data.total;
|
|
119063
|
+
this.loading = false;
|
|
119257
119064
|
} else {
|
|
119065
|
+
this.loading = false;
|
|
119258
119066
|
this.$message.error(res.message);
|
|
119259
119067
|
}
|
|
119260
119068
|
});
|
|
119261
119069
|
},
|
|
119262
|
-
//
|
|
119263
|
-
|
|
119264
|
-
this.searchForm.
|
|
119265
|
-
this.
|
|
119266
|
-
},
|
|
119267
|
-
// 删除模板
|
|
119268
|
-
del(id) {
|
|
119269
|
-
this.$confirm(this.$t("inboxTable.delMail"), this.$t("inboxTable.tip"), {
|
|
119270
|
-
confirmButtonText: this.$t("inboxTable.confirm"),
|
|
119271
|
-
cancelButtonText: this.$t("inboxTable.cancel"),
|
|
119272
|
-
type: "warning",
|
|
119273
|
-
confirmButtonClass: "confirm_del"
|
|
119274
|
-
}).then(() => {
|
|
119275
|
-
delTemplate({
|
|
119276
|
-
id
|
|
119277
|
-
}).then(res => {
|
|
119278
|
-
if (res.code == 0) {
|
|
119279
|
-
this.init();
|
|
119280
|
-
this.$message({
|
|
119281
|
-
type: "success",
|
|
119282
|
-
message: `${this.$i18n.t("outboxMail.success")}`,
|
|
119283
|
-
duration: 1500
|
|
119284
|
-
});
|
|
119285
|
-
}
|
|
119286
|
-
});
|
|
119287
|
-
}).catch(() => {});
|
|
119070
|
+
// 模板类型切换
|
|
119071
|
+
modelTypeChange(val) {
|
|
119072
|
+
this.searchForm.scene = "";
|
|
119073
|
+
this.contentInput = "";
|
|
119288
119074
|
},
|
|
119289
|
-
//
|
|
119290
|
-
|
|
119291
|
-
this
|
|
119075
|
+
// 重置
|
|
119076
|
+
resetEvt() {
|
|
119077
|
+
this.searchForm = createSearchForm();
|
|
119078
|
+
this.contentSelect = "1";
|
|
119079
|
+
this.contentInput = "";
|
|
119080
|
+
this.mailTitleSelect = "1";
|
|
119081
|
+
this.mailTitleInput = "";
|
|
119082
|
+
this.getCardList();
|
|
119292
119083
|
},
|
|
119293
|
-
//
|
|
119294
|
-
|
|
119295
|
-
|
|
119296
|
-
|
|
119297
|
-
|
|
119084
|
+
// 获取账号下的账户
|
|
119085
|
+
getAccountList() {
|
|
119086
|
+
hubUserSonFather().then(res => {
|
|
119087
|
+
if (res.code == "0") {
|
|
119088
|
+
this.accountList = res.data;
|
|
119089
|
+
}
|
|
119090
|
+
});
|
|
119298
119091
|
},
|
|
119299
|
-
//
|
|
119300
|
-
|
|
119301
|
-
this.searchForm.modelType = tab.name;
|
|
119092
|
+
// 排序按钮
|
|
119093
|
+
clickDropdownItem(item) {
|
|
119302
119094
|
this.searchForm.currentPage = 1;
|
|
119303
|
-
this.
|
|
119095
|
+
this.searchForm.searchSort = item.value;
|
|
119096
|
+
this.getCardList();
|
|
119304
119097
|
},
|
|
119305
|
-
|
|
119306
|
-
|
|
119307
|
-
|
|
119308
|
-
|
|
119309
|
-
// 下载模板
|
|
119310
|
-
downloadTem(obj) {
|
|
119311
|
-
window.location.href = obj.downloadUrl;
|
|
119312
|
-
},
|
|
119313
|
-
// 打开转为系统模版弹窗
|
|
119314
|
-
showSetSystem(row) {
|
|
119315
|
-
this.mailId = row.id;
|
|
119316
|
-
this.isShowSetSystem = true;
|
|
119098
|
+
handleSizeChange(val) {
|
|
119099
|
+
this.searchForm.currentPage = 1;
|
|
119100
|
+
this.searchForm.pageSize = val;
|
|
119101
|
+
this.getCardList();
|
|
119317
119102
|
},
|
|
119318
|
-
|
|
119319
|
-
|
|
119320
|
-
this.
|
|
119103
|
+
handleCurrentChange(val) {
|
|
119104
|
+
this.searchForm.currentPage = val;
|
|
119105
|
+
this.getCardList();
|
|
119321
119106
|
}
|
|
119322
119107
|
}
|
|
119323
119108
|
});
|
|
119324
119109
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119325
119110
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
119326
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=
|
|
119327
|
-
// extracted by mini-css-extract-plugin
|
|
119328
|
-
|
|
119329
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
|
|
119330
|
-
|
|
119331
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119111
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=0aaac0a8&prod&lang=scss&scoped=true
|
|
119332
119112
|
// extracted by mini-css-extract-plugin
|
|
119333
119113
|
|
|
119334
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=
|
|
119114
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=0aaac0a8&prod&lang=scss&scoped=true
|
|
119335
119115
|
|
|
119336
119116
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119337
119117
|
|
|
@@ -119340,16 +119120,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119340
119120
|
;
|
|
119341
119121
|
|
|
119342
119122
|
|
|
119343
|
-
|
|
119344
119123
|
/* normalize component */
|
|
119345
119124
|
|
|
119346
119125
|
var TemplateList_component = normalizeComponent(
|
|
119347
119126
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119348
|
-
|
|
119349
|
-
|
|
119127
|
+
TemplateListvue_type_template_id_0aaac0a8_scoped_true_render,
|
|
119128
|
+
TemplateListvue_type_template_id_0aaac0a8_scoped_true_staticRenderFns,
|
|
119350
119129
|
false,
|
|
119351
119130
|
null,
|
|
119352
|
-
"
|
|
119131
|
+
"0aaac0a8",
|
|
119353
119132
|
null
|
|
119354
119133
|
|
|
119355
119134
|
)
|
|
@@ -121725,6 +121504,261 @@ function inviteEmailSave(data) {
|
|
|
121725
121504
|
function inviteEmailGet(taskId) {
|
|
121726
121505
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121727
121506
|
}
|
|
121507
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=template&id=075aae44&scoped=true
|
|
121508
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render = function render() {
|
|
121509
|
+
var _vm = this,
|
|
121510
|
+
_c = _vm._self._c;
|
|
121511
|
+
return _c('el-dialog', {
|
|
121512
|
+
attrs: {
|
|
121513
|
+
"visible": _vm.visible,
|
|
121514
|
+
"title": "存为模版",
|
|
121515
|
+
"width": "480px",
|
|
121516
|
+
"before-close": _vm.closeDialog,
|
|
121517
|
+
"custom-class": "setting-nickname-dialog",
|
|
121518
|
+
"close-on-click-modal": false
|
|
121519
|
+
}
|
|
121520
|
+
}, [_c('div', {
|
|
121521
|
+
directives: [{
|
|
121522
|
+
name: "loading",
|
|
121523
|
+
rawName: "v-loading",
|
|
121524
|
+
value: _vm.loading,
|
|
121525
|
+
expression: "loading"
|
|
121526
|
+
}]
|
|
121527
|
+
}, [_c('el-form', {
|
|
121528
|
+
ref: "ruleForm",
|
|
121529
|
+
staticClass: "demo-ruleForm",
|
|
121530
|
+
attrs: {
|
|
121531
|
+
"label-position": "top",
|
|
121532
|
+
"model": _vm.ruleForm,
|
|
121533
|
+
"rules": _vm.rules,
|
|
121534
|
+
"label-width": "100px"
|
|
121535
|
+
}
|
|
121536
|
+
}, [_c('el-form-item', {
|
|
121537
|
+
attrs: {
|
|
121538
|
+
"label": "模版名称",
|
|
121539
|
+
"prop": "templatesTitle"
|
|
121540
|
+
}
|
|
121541
|
+
}, [_c('el-input', {
|
|
121542
|
+
attrs: {
|
|
121543
|
+
"clearable": ""
|
|
121544
|
+
},
|
|
121545
|
+
model: {
|
|
121546
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121547
|
+
callback: function ($$v) {
|
|
121548
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121549
|
+
},
|
|
121550
|
+
expression: "ruleForm.templatesTitle"
|
|
121551
|
+
}
|
|
121552
|
+
})], 1), _c('el-form-item', {
|
|
121553
|
+
attrs: {
|
|
121554
|
+
"label": "应用场景",
|
|
121555
|
+
"prop": "scene"
|
|
121556
|
+
}
|
|
121557
|
+
}, [_c('el-input', {
|
|
121558
|
+
attrs: {
|
|
121559
|
+
"clearable": ""
|
|
121560
|
+
},
|
|
121561
|
+
model: {
|
|
121562
|
+
value: _vm.ruleForm.scene,
|
|
121563
|
+
callback: function ($$v) {
|
|
121564
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121565
|
+
},
|
|
121566
|
+
expression: "ruleForm.scene"
|
|
121567
|
+
}
|
|
121568
|
+
})], 1), _c('el-form-item', {
|
|
121569
|
+
attrs: {
|
|
121570
|
+
"label": "语言",
|
|
121571
|
+
"prop": "modelLanguage"
|
|
121572
|
+
}
|
|
121573
|
+
}, [_c('el-select', {
|
|
121574
|
+
attrs: {
|
|
121575
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121576
|
+
"clearable": "",
|
|
121577
|
+
"filterable": ""
|
|
121578
|
+
},
|
|
121579
|
+
model: {
|
|
121580
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121581
|
+
callback: function ($$v) {
|
|
121582
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121583
|
+
},
|
|
121584
|
+
expression: "ruleForm.modelLanguage"
|
|
121585
|
+
}
|
|
121586
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121587
|
+
return _c('el-option', {
|
|
121588
|
+
key: item.value,
|
|
121589
|
+
attrs: {
|
|
121590
|
+
"value": item.value,
|
|
121591
|
+
"label": item.label
|
|
121592
|
+
}
|
|
121593
|
+
});
|
|
121594
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121595
|
+
attrs: {
|
|
121596
|
+
"label": "共享状态",
|
|
121597
|
+
"prop": "isShared"
|
|
121598
|
+
}
|
|
121599
|
+
}, [_c('el-select', {
|
|
121600
|
+
attrs: {
|
|
121601
|
+
"clearable": "",
|
|
121602
|
+
"placeholder": "请选择共享状态"
|
|
121603
|
+
},
|
|
121604
|
+
model: {
|
|
121605
|
+
value: _vm.ruleForm.isShared,
|
|
121606
|
+
callback: function ($$v) {
|
|
121607
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121608
|
+
},
|
|
121609
|
+
expression: "ruleForm.isShared"
|
|
121610
|
+
}
|
|
121611
|
+
}, [_c('el-option', {
|
|
121612
|
+
key: 1,
|
|
121613
|
+
attrs: {
|
|
121614
|
+
"value": "1",
|
|
121615
|
+
"label": "公开"
|
|
121616
|
+
}
|
|
121617
|
+
}), _c('el-option', {
|
|
121618
|
+
key: 2,
|
|
121619
|
+
attrs: {
|
|
121620
|
+
"value": "2",
|
|
121621
|
+
"label": "私有"
|
|
121622
|
+
}
|
|
121623
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121624
|
+
staticClass: "footer-btn"
|
|
121625
|
+
}, [_c('el-button', {
|
|
121626
|
+
on: {
|
|
121627
|
+
"click": function ($event) {
|
|
121628
|
+
return _vm.resetForm('ruleForm');
|
|
121629
|
+
}
|
|
121630
|
+
}
|
|
121631
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121632
|
+
attrs: {
|
|
121633
|
+
"type": "primary",
|
|
121634
|
+
"loading": _vm.confirmBtnLoading
|
|
121635
|
+
},
|
|
121636
|
+
on: {
|
|
121637
|
+
"click": function ($event) {
|
|
121638
|
+
return _vm.submitForm('ruleForm');
|
|
121639
|
+
}
|
|
121640
|
+
}
|
|
121641
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121642
|
+
};
|
|
121643
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns = [];
|
|
121644
|
+
|
|
121645
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121646
|
+
|
|
121647
|
+
|
|
121648
|
+
|
|
121649
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121650
|
+
props: {
|
|
121651
|
+
visible: {
|
|
121652
|
+
type: Boolean,
|
|
121653
|
+
default: false
|
|
121654
|
+
},
|
|
121655
|
+
mailTempList: {
|
|
121656
|
+
type: Array,
|
|
121657
|
+
default: () => []
|
|
121658
|
+
},
|
|
121659
|
+
tempProductCard: {
|
|
121660
|
+
type: String,
|
|
121661
|
+
default: ""
|
|
121662
|
+
}
|
|
121663
|
+
},
|
|
121664
|
+
data() {
|
|
121665
|
+
return {
|
|
121666
|
+
confirmBtnLoading: false,
|
|
121667
|
+
loading: false,
|
|
121668
|
+
ruleForm: {
|
|
121669
|
+
templatesTitle: "",
|
|
121670
|
+
scene: "",
|
|
121671
|
+
modelLanguage: "",
|
|
121672
|
+
isShared: "2"
|
|
121673
|
+
},
|
|
121674
|
+
rules: {
|
|
121675
|
+
templatesTitle: [{
|
|
121676
|
+
required: true,
|
|
121677
|
+
message: "请输入模版名称",
|
|
121678
|
+
trigger: "blur"
|
|
121679
|
+
}],
|
|
121680
|
+
modelLanguage: [{
|
|
121681
|
+
required: true,
|
|
121682
|
+
message: "请选择模版语言",
|
|
121683
|
+
trigger: "change"
|
|
121684
|
+
}],
|
|
121685
|
+
isShared: [{
|
|
121686
|
+
required: true,
|
|
121687
|
+
message: "请选择共享状态",
|
|
121688
|
+
trigger: "change"
|
|
121689
|
+
}]
|
|
121690
|
+
},
|
|
121691
|
+
language: const_language
|
|
121692
|
+
};
|
|
121693
|
+
},
|
|
121694
|
+
created() {},
|
|
121695
|
+
methods: {
|
|
121696
|
+
// 处理邮件参数
|
|
121697
|
+
getMailParams() {
|
|
121698
|
+
// 处理邮件
|
|
121699
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121700
|
+
let content = "";
|
|
121701
|
+
if (currentMail.getReplyHtml()) {
|
|
121702
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121703
|
+
} else {
|
|
121704
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121705
|
+
}
|
|
121706
|
+
return {
|
|
121707
|
+
subject: currentMail.subject,
|
|
121708
|
+
content,
|
|
121709
|
+
attachments: currentMail.fileList
|
|
121710
|
+
};
|
|
121711
|
+
},
|
|
121712
|
+
// 表单验证
|
|
121713
|
+
submitForm(formName) {
|
|
121714
|
+
const mailParams = this.getMailParams();
|
|
121715
|
+
console.log(mailParams, 'mailParams');
|
|
121716
|
+
this.$refs[formName].validate(valid => {
|
|
121717
|
+
if (valid) {
|
|
121718
|
+
alert("submit!");
|
|
121719
|
+
} else {
|
|
121720
|
+
console.log("error submit!!");
|
|
121721
|
+
return false;
|
|
121722
|
+
}
|
|
121723
|
+
});
|
|
121724
|
+
},
|
|
121725
|
+
resetForm(formName) {
|
|
121726
|
+
this.$refs[formName].resetFields();
|
|
121727
|
+
this.closeDialog();
|
|
121728
|
+
},
|
|
121729
|
+
closeDialog() {
|
|
121730
|
+
this.$emit("update:visible", false);
|
|
121731
|
+
}
|
|
121732
|
+
}
|
|
121733
|
+
});
|
|
121734
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121735
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121736
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=075aae44&prod&lang=scss&scoped=true
|
|
121737
|
+
// extracted by mini-css-extract-plugin
|
|
121738
|
+
|
|
121739
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=075aae44&prod&lang=scss&scoped=true
|
|
121740
|
+
|
|
121741
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121742
|
+
|
|
121743
|
+
|
|
121744
|
+
|
|
121745
|
+
;
|
|
121746
|
+
|
|
121747
|
+
|
|
121748
|
+
/* normalize component */
|
|
121749
|
+
|
|
121750
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121751
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121752
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render,
|
|
121753
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns,
|
|
121754
|
+
false,
|
|
121755
|
+
null,
|
|
121756
|
+
"075aae44",
|
|
121757
|
+
null
|
|
121758
|
+
|
|
121759
|
+
)
|
|
121760
|
+
|
|
121761
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121728
121762
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
121729
121763
|
|
|
121730
121764
|
|
|
@@ -121766,6 +121800,7 @@ function inviteEmailGet(taskId) {
|
|
|
121766
121800
|
|
|
121767
121801
|
|
|
121768
121802
|
|
|
121803
|
+
|
|
121769
121804
|
|
|
121770
121805
|
|
|
121771
121806
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121788,7 +121823,8 @@ function inviteEmailGet(taskId) {
|
|
|
121788
121823
|
SignTextDrawer: signText,
|
|
121789
121824
|
MailTemplateDrawer: mailTemplate,
|
|
121790
121825
|
AiMailDialog: aiMail,
|
|
121791
|
-
MailOptimizeDrawer: mailOptimize
|
|
121826
|
+
MailOptimizeDrawer: mailOptimize,
|
|
121827
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121792
121828
|
},
|
|
121793
121829
|
props: {
|
|
121794
121830
|
// pm 添加
|
|
@@ -122017,7 +122053,11 @@ function inviteEmailGet(taskId) {
|
|
|
122017
122053
|
nickName: "",
|
|
122018
122054
|
// 发件人昵称
|
|
122019
122055
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122020
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122056
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122057
|
+
// 当前使用的AI平台
|
|
122058
|
+
saveMailTempDialogVisible: false,
|
|
122059
|
+
// 保存模版弹窗
|
|
122060
|
+
tempProductCard: '' // 模版产品卡
|
|
122021
122061
|
};
|
|
122022
122062
|
},
|
|
122023
122063
|
created() {
|
|
@@ -122093,6 +122133,14 @@ function inviteEmailGet(taskId) {
|
|
|
122093
122133
|
window.onbeforeunload = null;
|
|
122094
122134
|
},
|
|
122095
122135
|
methods: {
|
|
122136
|
+
// 保存邮件模版
|
|
122137
|
+
saveMailTemplate() {
|
|
122138
|
+
// 处理商品卡
|
|
122139
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122140
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122141
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122142
|
+
this.saveMailTempDialogVisible = true;
|
|
122143
|
+
},
|
|
122096
122144
|
// 初始化邮件模版
|
|
122097
122145
|
payInitTemplate() {
|
|
122098
122146
|
// 初始化收件人
|
|
@@ -123400,15 +123448,15 @@ function inviteEmailGet(taskId) {
|
|
|
123400
123448
|
});
|
|
123401
123449
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123402
123450
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
123403
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123451
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=7011cdc3&prod&lang=scss&scoped=true
|
|
123404
123452
|
// extracted by mini-css-extract-plugin
|
|
123405
123453
|
|
|
123406
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123454
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=7011cdc3&prod&lang=scss&scoped=true
|
|
123407
123455
|
|
|
123408
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123456
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=7011cdc3&prod&lang=scss
|
|
123409
123457
|
// extracted by mini-css-extract-plugin
|
|
123410
123458
|
|
|
123411
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123459
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=7011cdc3&prod&lang=scss
|
|
123412
123460
|
|
|
123413
123461
|
;// ./src/package/write-email/index.vue
|
|
123414
123462
|
|
|
@@ -123422,11 +123470,11 @@ function inviteEmailGet(taskId) {
|
|
|
123422
123470
|
|
|
123423
123471
|
var write_email_component = normalizeComponent(
|
|
123424
123472
|
package_write_emailvue_type_script_lang_js,
|
|
123425
|
-
|
|
123426
|
-
|
|
123473
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_render,
|
|
123474
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns,
|
|
123427
123475
|
false,
|
|
123428
123476
|
null,
|
|
123429
|
-
"
|
|
123477
|
+
"7011cdc3",
|
|
123430
123478
|
null
|
|
123431
123479
|
|
|
123432
123480
|
)
|
|
@@ -123493,8 +123541,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123493
123541
|
};
|
|
123494
123542
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123495
123543
|
|
|
123496
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=
|
|
123497
|
-
var
|
|
123544
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=9dd5bd72&scoped=true
|
|
123545
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render = function render() {
|
|
123498
123546
|
var _vm = this,
|
|
123499
123547
|
_c = _vm._self._c;
|
|
123500
123548
|
return _c('div', {
|
|
@@ -123815,6 +123863,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123815
123863
|
}
|
|
123816
123864
|
})];
|
|
123817
123865
|
}
|
|
123866
|
+
}, {
|
|
123867
|
+
key: "operation",
|
|
123868
|
+
fn: function ({
|
|
123869
|
+
data
|
|
123870
|
+
}) {
|
|
123871
|
+
return [_c('el-link', {
|
|
123872
|
+
attrs: {
|
|
123873
|
+
"type": "primary",
|
|
123874
|
+
"size": "small",
|
|
123875
|
+
"underline": false
|
|
123876
|
+
},
|
|
123877
|
+
on: {
|
|
123878
|
+
"click": function ($event) {
|
|
123879
|
+
$event.stopPropagation();
|
|
123880
|
+
return _vm.recallMail(data.scope);
|
|
123881
|
+
}
|
|
123882
|
+
}
|
|
123883
|
+
}, [_vm._v("撤回")])];
|
|
123884
|
+
}
|
|
123818
123885
|
}])
|
|
123819
123886
|
}), _c('div', {
|
|
123820
123887
|
staticClass: "tool"
|
|
@@ -123856,7 +123923,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123856
123923
|
staticClass: "dss-iconfont"
|
|
123857
123924
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123858
123925
|
};
|
|
123859
|
-
var
|
|
123926
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns = [];
|
|
123860
123927
|
|
|
123861
123928
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123862
123929
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123944,6 +124011,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123944
124011
|
label: src_language.t("edm2.mailEn12"),
|
|
123945
124012
|
prop: "sendTime",
|
|
123946
124013
|
width: "200"
|
|
124014
|
+
}, {
|
|
124015
|
+
label: "操作",
|
|
124016
|
+
scope: "operation",
|
|
124017
|
+
width: "100"
|
|
123947
124018
|
}],
|
|
123948
124019
|
tableData: [],
|
|
123949
124020
|
loading: false,
|
|
@@ -123992,6 +124063,28 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123992
124063
|
localStorage.removeItem("searchFlag");
|
|
123993
124064
|
},
|
|
123994
124065
|
methods: {
|
|
124066
|
+
// 撤回邮件
|
|
124067
|
+
recallMail(row) {
|
|
124068
|
+
console.log(row, "row");
|
|
124069
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124070
|
+
confirmButtonText: "确定",
|
|
124071
|
+
cancelButtonText: "取消",
|
|
124072
|
+
type: "warning"
|
|
124073
|
+
}).then(() => {
|
|
124074
|
+
withdraw(row.id).then(res => {
|
|
124075
|
+
if (res.code == "0") {
|
|
124076
|
+
this.$message({
|
|
124077
|
+
type: "success",
|
|
124078
|
+
duration: 7000,
|
|
124079
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124080
|
+
});
|
|
124081
|
+
this.init();
|
|
124082
|
+
} else {
|
|
124083
|
+
this.$message.error(res.message);
|
|
124084
|
+
}
|
|
124085
|
+
});
|
|
124086
|
+
}).catch(() => {});
|
|
124087
|
+
},
|
|
123995
124088
|
// 主题-正文
|
|
123996
124089
|
changeContentMode(val) {
|
|
123997
124090
|
this.contentSelect = val;
|
|
@@ -124185,10 +124278,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124185
124278
|
});
|
|
124186
124279
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124187
124280
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
124188
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124281
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=9dd5bd72&prod&lang=scss&scoped=true
|
|
124189
124282
|
// extracted by mini-css-extract-plugin
|
|
124190
124283
|
|
|
124191
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124284
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=9dd5bd72&prod&lang=scss&scoped=true
|
|
124192
124285
|
|
|
124193
124286
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124194
124287
|
|
|
@@ -124201,18 +124294,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124201
124294
|
|
|
124202
124295
|
var singleSendMail_component = normalizeComponent(
|
|
124203
124296
|
components_singleSendMailvue_type_script_lang_js,
|
|
124204
|
-
|
|
124205
|
-
|
|
124297
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render,
|
|
124298
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns,
|
|
124206
124299
|
false,
|
|
124207
124300
|
null,
|
|
124208
|
-
"
|
|
124301
|
+
"9dd5bd72",
|
|
124209
124302
|
null
|
|
124210
124303
|
|
|
124211
124304
|
)
|
|
124212
124305
|
|
|
124213
124306
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
124214
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=
|
|
124215
|
-
var
|
|
124307
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=b7b4f6b0&scoped=true
|
|
124308
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render = function render() {
|
|
124216
124309
|
var _vm = this,
|
|
124217
124310
|
_c = _vm._self._c;
|
|
124218
124311
|
return _c('div', {
|
|
@@ -124502,6 +124595,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124502
124595
|
}
|
|
124503
124596
|
})];
|
|
124504
124597
|
}
|
|
124598
|
+
}, {
|
|
124599
|
+
key: "operation",
|
|
124600
|
+
fn: function ({
|
|
124601
|
+
data
|
|
124602
|
+
}) {
|
|
124603
|
+
return [_c('el-link', {
|
|
124604
|
+
attrs: {
|
|
124605
|
+
"type": "primary",
|
|
124606
|
+
"size": "small",
|
|
124607
|
+
"underline": false
|
|
124608
|
+
},
|
|
124609
|
+
on: {
|
|
124610
|
+
"click": function ($event) {
|
|
124611
|
+
$event.stopPropagation();
|
|
124612
|
+
return _vm.recallMail(data.scope);
|
|
124613
|
+
}
|
|
124614
|
+
}
|
|
124615
|
+
}, [_vm._v("撤回")])];
|
|
124616
|
+
}
|
|
124505
124617
|
}])
|
|
124506
124618
|
}), _c('div', {
|
|
124507
124619
|
staticClass: "tool"
|
|
@@ -124528,7 +124640,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124528
124640
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124529
124641
|
})])])])], 1)]);
|
|
124530
124642
|
};
|
|
124531
|
-
var
|
|
124643
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns = [];
|
|
124532
124644
|
|
|
124533
124645
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124534
124646
|
|
|
@@ -124600,6 +124712,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124600
124712
|
label: src_language.t("edm2.mailEn12"),
|
|
124601
124713
|
prop: "sendTime",
|
|
124602
124714
|
width: "200"
|
|
124715
|
+
}, {
|
|
124716
|
+
label: "操作",
|
|
124717
|
+
scope: "operation",
|
|
124718
|
+
width: "100"
|
|
124603
124719
|
}],
|
|
124604
124720
|
contentInput: "",
|
|
124605
124721
|
contentSelect: "1",
|
|
@@ -124651,6 +124767,28 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124651
124767
|
localStorage.removeItem("searchFlag");
|
|
124652
124768
|
},
|
|
124653
124769
|
methods: {
|
|
124770
|
+
// 撤回邮件
|
|
124771
|
+
recallMail(row) {
|
|
124772
|
+
console.log(row, "row");
|
|
124773
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124774
|
+
confirmButtonText: "确定",
|
|
124775
|
+
cancelButtonText: "取消",
|
|
124776
|
+
type: "warning"
|
|
124777
|
+
}).then(() => {
|
|
124778
|
+
withdraw(row.id).then(res => {
|
|
124779
|
+
if (res.code == "0") {
|
|
124780
|
+
this.$message({
|
|
124781
|
+
type: "success",
|
|
124782
|
+
duration: 7000,
|
|
124783
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124784
|
+
});
|
|
124785
|
+
this.init();
|
|
124786
|
+
} else {
|
|
124787
|
+
this.$message.error(res.message);
|
|
124788
|
+
}
|
|
124789
|
+
});
|
|
124790
|
+
}).catch(() => {});
|
|
124791
|
+
},
|
|
124654
124792
|
// 去除html标签
|
|
124655
124793
|
filterHtmlTag(str) {
|
|
124656
124794
|
if (str) {
|
|
@@ -124862,10 +125000,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124862
125000
|
});
|
|
124863
125001
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124864
125002
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
124865
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125003
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124866
125004
|
// extracted by mini-css-extract-plugin
|
|
124867
125005
|
|
|
124868
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125006
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124869
125007
|
|
|
124870
125008
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124871
125009
|
|
|
@@ -124878,11 +125016,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124878
125016
|
|
|
124879
125017
|
var replySendMail_component = normalizeComponent(
|
|
124880
125018
|
components_replySendMailvue_type_script_lang_js,
|
|
124881
|
-
|
|
124882
|
-
|
|
125019
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render,
|
|
125020
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns,
|
|
124883
125021
|
false,
|
|
124884
125022
|
null,
|
|
124885
|
-
"
|
|
125023
|
+
"b7b4f6b0",
|
|
124886
125024
|
null
|
|
124887
125025
|
|
|
124888
125026
|
)
|
|
@@ -126350,8 +126488,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126350
126488
|
)
|
|
126351
126489
|
|
|
126352
126490
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
126353
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=template&id=
|
|
126354
|
-
var
|
|
126491
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=template&id=6a248e40&scoped=true
|
|
126492
|
+
var detailvue_type_template_id_6a248e40_scoped_true_render = function render() {
|
|
126355
126493
|
var _vm = this,
|
|
126356
126494
|
_c = _vm._self._c;
|
|
126357
126495
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126364,6 +126502,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126364
126502
|
}, [_c('i', {
|
|
126365
126503
|
staticClass: "el-icon-arrow-left"
|
|
126366
126504
|
})]), _c('div', {
|
|
126505
|
+
staticClass: "back recall_btn",
|
|
126506
|
+
on: {
|
|
126507
|
+
"click": _vm.recallMail
|
|
126508
|
+
}
|
|
126509
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126367
126510
|
staticClass: "mail-items-box"
|
|
126368
126511
|
}, [_c('div', {
|
|
126369
126512
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126590,7 +126733,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126590
126733
|
}
|
|
126591
126734
|
}) : _vm._e()], 1) : _vm._e();
|
|
126592
126735
|
};
|
|
126593
|
-
var
|
|
126736
|
+
var detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns = [function () {
|
|
126737
|
+
var _vm = this,
|
|
126738
|
+
_c = _vm._self._c;
|
|
126739
|
+
return _c('div', {
|
|
126740
|
+
staticClass: "re_box"
|
|
126741
|
+
}, [_c('i', {
|
|
126742
|
+
staticClass: "dss-iconfont btn_con"
|
|
126743
|
+
}, [_vm._v("")]), _c('span', {
|
|
126744
|
+
staticClass: "btn_con"
|
|
126745
|
+
}, [_vm._v("撤回")])]);
|
|
126746
|
+
}];
|
|
126747
|
+
|
|
126748
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=6a248e40&scoped=true
|
|
126594
126749
|
|
|
126595
126750
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Table/components/bloggerColumn.vue?vue&type=template&id=2b58a2e1&scoped=true
|
|
126596
126751
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126839,6 +126994,27 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126839
126994
|
localStorage.setItem("searchFlag", true);
|
|
126840
126995
|
},
|
|
126841
126996
|
methods: {
|
|
126997
|
+
// 撤回邮件
|
|
126998
|
+
recallMail() {
|
|
126999
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127000
|
+
confirmButtonText: "确定",
|
|
127001
|
+
cancelButtonText: "取消",
|
|
127002
|
+
type: "warning"
|
|
127003
|
+
}).then(() => {
|
|
127004
|
+
withdraw(this.$route.query.id).then(res => {
|
|
127005
|
+
if (res.code == "0") {
|
|
127006
|
+
this.$message({
|
|
127007
|
+
type: "success",
|
|
127008
|
+
duration: 7000,
|
|
127009
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127010
|
+
});
|
|
127011
|
+
this.backToOutbox();
|
|
127012
|
+
} else {
|
|
127013
|
+
this.$message.error(res.message);
|
|
127014
|
+
}
|
|
127015
|
+
});
|
|
127016
|
+
}).catch(() => {});
|
|
127017
|
+
},
|
|
126842
127018
|
// 红人档案侧抽
|
|
126843
127019
|
toBloggerDeatil(item) {
|
|
126844
127020
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126970,10 +127146,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126970
127146
|
});
|
|
126971
127147
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126972
127148
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
126973
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127149
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=6a248e40&prod&lang=scss&scoped=true
|
|
126974
127150
|
// extracted by mini-css-extract-plugin
|
|
126975
127151
|
|
|
126976
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127152
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=6a248e40&prod&lang=scss&scoped=true
|
|
126977
127153
|
|
|
126978
127154
|
;// ./src/package/outbox-email/detail.vue
|
|
126979
127155
|
|
|
@@ -126986,11 +127162,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126986
127162
|
|
|
126987
127163
|
var outbox_email_detail_component = normalizeComponent(
|
|
126988
127164
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126989
|
-
|
|
126990
|
-
|
|
127165
|
+
detailvue_type_template_id_6a248e40_scoped_true_render,
|
|
127166
|
+
detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns,
|
|
126991
127167
|
false,
|
|
126992
127168
|
null,
|
|
126993
|
-
"
|
|
127169
|
+
"6a248e40",
|
|
126994
127170
|
null
|
|
126995
127171
|
|
|
126996
127172
|
)
|