wotokol-edm 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/wotokol-edm.common.js +1207 -1013
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css +1 -1
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +1080 -886
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +20 -20
- package/wotokol-edm.umd.min.js.gz +0 -0
package/wotokol-edm.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,591 @@ 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=357bd4cd&scoped=true
|
|
118424
|
+
|
|
118425
|
+
|
|
118426
|
+
var TemplateListvue_type_template_id_357bd4cd_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.type == 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.
|
|
118541
|
-
|
|
118542
|
-
"close": function ($event) {
|
|
118543
|
-
_vm.setId = 0;
|
|
118544
|
-
_vm.isShowSet = false;
|
|
118534
|
+
"change": function ($event) {
|
|
118535
|
+
_vm.mailTitleInput = '';
|
|
118536
|
+
_vm.searchForm.content = '';
|
|
118537
|
+
_vm.searchForm.mailSubject = '';
|
|
118545
118538
|
}
|
|
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
118539
|
},
|
|
118553
|
-
|
|
118554
|
-
|
|
118540
|
+
slot: "prepend",
|
|
118541
|
+
model: {
|
|
118542
|
+
value: _vm.mailTitleSelect,
|
|
118543
|
+
callback: function ($$v) {
|
|
118544
|
+
_vm.mailTitleSelect = $$v;
|
|
118545
|
+
},
|
|
118546
|
+
expression: "mailTitleSelect"
|
|
118555
118547
|
}
|
|
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
|
-
}
|
|
118548
|
+
}, [_c('el-option', {
|
|
118549
|
+
attrs: {
|
|
118550
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118551
|
+
"value": "1"
|
|
118601
118552
|
}
|
|
118602
|
-
},
|
|
118603
|
-
staticClass: "dss-iconfont icon-close"
|
|
118604
|
-
})])]), _c('div', {
|
|
118605
|
-
staticClass: "drawer-body hidden-scrollbar"
|
|
118606
|
-
}, [_c('el-form', {
|
|
118607
|
-
ref: "form",
|
|
118553
|
+
}), _c('el-option', {
|
|
118608
118554
|
attrs: {
|
|
118609
|
-
"
|
|
118610
|
-
"
|
|
118555
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118556
|
+
"value": "2"
|
|
118611
118557
|
}
|
|
118612
|
-
},
|
|
118613
|
-
staticClass: "form-item"
|
|
118614
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118558
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118615
118559
|
attrs: {
|
|
118616
|
-
"
|
|
118560
|
+
"span": 8
|
|
118617
118561
|
}
|
|
118618
|
-
}, [_c('
|
|
118562
|
+
}, [_c('div', {
|
|
118563
|
+
staticClass: "col-item"
|
|
118564
|
+
}, [_c('span', {
|
|
118565
|
+
staticClass: "col-span"
|
|
118566
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118567
|
+
staticClass: "col-select",
|
|
118619
118568
|
attrs: {
|
|
118620
|
-
"
|
|
118621
|
-
"
|
|
118622
|
-
"
|
|
118569
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118570
|
+
"clearable": "",
|
|
118571
|
+
"filterable": ""
|
|
118623
118572
|
},
|
|
118624
118573
|
model: {
|
|
118625
|
-
value: _vm.
|
|
118574
|
+
value: _vm.searchForm.modelLanguage,
|
|
118626
118575
|
callback: function ($$v) {
|
|
118627
|
-
_vm.$set(_vm.
|
|
118576
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118628
118577
|
},
|
|
118629
|
-
expression: "
|
|
118578
|
+
expression: "searchForm.modelLanguage"
|
|
118630
118579
|
}
|
|
118631
|
-
}
|
|
118632
|
-
|
|
118633
|
-
|
|
118580
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118581
|
+
return _c('el-option', {
|
|
118582
|
+
key: item.value,
|
|
118583
|
+
attrs: {
|
|
118584
|
+
"value": item.value,
|
|
118585
|
+
"label": item.label
|
|
118586
|
+
}
|
|
118587
|
+
});
|
|
118588
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118589
|
+
staticStyle: {
|
|
118590
|
+
"margin-top": "8px"
|
|
118591
|
+
},
|
|
118634
118592
|
attrs: {
|
|
118635
|
-
"
|
|
118593
|
+
"gutter": 12
|
|
118636
118594
|
}
|
|
118637
|
-
}, [_c('el-
|
|
118638
|
-
ref: "mailSubjectIpt",
|
|
118595
|
+
}, [_c('el-col', {
|
|
118639
118596
|
attrs: {
|
|
118640
|
-
"
|
|
118641
|
-
|
|
118597
|
+
"span": 8
|
|
118598
|
+
}
|
|
118599
|
+
}, [_c('div', {
|
|
118600
|
+
staticClass: "col-item"
|
|
118601
|
+
}, [_c('span', {
|
|
118602
|
+
staticClass: "col-span"
|
|
118603
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118604
|
+
staticClass: "col-select",
|
|
118605
|
+
attrs: {
|
|
118606
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118642
118607
|
"clearable": ""
|
|
118643
118608
|
},
|
|
118644
118609
|
on: {
|
|
118645
|
-
"
|
|
118646
|
-
_vm.isFocusSubject = true;
|
|
118647
|
-
}
|
|
118610
|
+
"change": _vm.modelTypeChange
|
|
118648
118611
|
},
|
|
118649
118612
|
model: {
|
|
118650
|
-
value: _vm.
|
|
118613
|
+
value: _vm.searchForm.type,
|
|
118651
118614
|
callback: function ($$v) {
|
|
118652
|
-
_vm.$set(_vm.
|
|
118615
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118653
118616
|
},
|
|
118654
|
-
expression: "
|
|
118655
|
-
}
|
|
118656
|
-
})], 1)], 1), _c('div', {
|
|
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",
|
|
118662
|
-
attrs: {
|
|
118663
|
-
"height": 400,
|
|
118664
|
-
"theme": "light"
|
|
118665
|
-
},
|
|
118666
|
-
on: {
|
|
118667
|
-
"click": function ($event) {
|
|
118668
|
-
_vm.isFocusSubject = false;
|
|
118669
|
-
}
|
|
118670
|
-
}
|
|
118671
|
-
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118672
|
-
staticClass: "form-tool"
|
|
118673
|
-
}, [_c('div', {
|
|
118674
|
-
staticClass: "form-tool-title"
|
|
118675
|
-
}, [_c('i', {
|
|
118676
|
-
staticClass: "dss-iconfont icon-info"
|
|
118677
|
-
}), _c('p', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.template_var")))])]), _c('div', {
|
|
118678
|
-
staticClass: "form-tool-main"
|
|
118679
|
-
}, [_c('button', {
|
|
118680
|
-
staticClass: "mb8 mr16",
|
|
118681
|
-
attrs: {
|
|
118682
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118683
|
-
},
|
|
118684
|
-
on: {
|
|
118685
|
-
"click": function ($event) {
|
|
118686
|
-
$event.preventDefault();
|
|
118687
|
-
return _vm.setVariable(0);
|
|
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
|
-
}
|
|
118617
|
+
expression: "searchForm.type"
|
|
118697
118618
|
}
|
|
118698
|
-
}, [
|
|
118699
|
-
|
|
118619
|
+
}, [_c('el-option', {
|
|
118620
|
+
key: 1,
|
|
118700
118621
|
attrs: {
|
|
118701
|
-
"
|
|
118702
|
-
|
|
118703
|
-
on: {
|
|
118704
|
-
"click": function ($event) {
|
|
118705
|
-
$event.preventDefault();
|
|
118706
|
-
return _vm.setVariable(1);
|
|
118707
|
-
}
|
|
118622
|
+
"value": 1,
|
|
118623
|
+
"label": "系统模版"
|
|
118708
118624
|
}
|
|
118709
|
-
}
|
|
118625
|
+
}), _c('el-option', {
|
|
118626
|
+
key: 2,
|
|
118710
118627
|
attrs: {
|
|
118711
|
-
"
|
|
118712
|
-
|
|
118713
|
-
on: {
|
|
118714
|
-
"click": function ($event) {
|
|
118715
|
-
$event.preventDefault();
|
|
118716
|
-
return _vm.setVariable(2);
|
|
118717
|
-
}
|
|
118628
|
+
"value": 2,
|
|
118629
|
+
"label": "自定义模版"
|
|
118718
118630
|
}
|
|
118719
|
-
}
|
|
118720
|
-
staticClass: "form-item"
|
|
118721
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118631
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118722
118632
|
attrs: {
|
|
118723
|
-
"
|
|
118633
|
+
"span": 8
|
|
118724
118634
|
}
|
|
118725
|
-
}, [_c('
|
|
118635
|
+
}, [_c('div', {
|
|
118636
|
+
staticClass: "col-item"
|
|
118637
|
+
}, [_c('span', {
|
|
118638
|
+
staticClass: "col-span"
|
|
118639
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118640
|
+
staticClass: "col-select",
|
|
118726
118641
|
attrs: {
|
|
118727
|
-
"placeholder": _vm.$i18n.t('common.
|
|
118728
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118642
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118729
118643
|
"clearable": ""
|
|
118730
118644
|
},
|
|
118731
118645
|
model: {
|
|
118732
|
-
value: _vm.
|
|
118646
|
+
value: _vm.searchForm.isShared,
|
|
118733
118647
|
callback: function ($$v) {
|
|
118734
|
-
_vm.$set(_vm.
|
|
118648
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118735
118649
|
},
|
|
118736
|
-
expression: "
|
|
118650
|
+
expression: "searchForm.isShared"
|
|
118737
118651
|
}
|
|
118738
|
-
}
|
|
118739
|
-
|
|
118740
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118652
|
+
}, [_c('el-option', {
|
|
118653
|
+
key: 1,
|
|
118741
118654
|
attrs: {
|
|
118742
|
-
"
|
|
118655
|
+
"value": true,
|
|
118656
|
+
"label": "公开"
|
|
118743
118657
|
}
|
|
118744
|
-
},
|
|
118658
|
+
}), _c('el-option', {
|
|
118659
|
+
key: 2,
|
|
118660
|
+
attrs: {
|
|
118661
|
+
"value": false,
|
|
118662
|
+
"label": "私有"
|
|
118663
|
+
}
|
|
118664
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118665
|
+
attrs: {
|
|
118666
|
+
"span": 8
|
|
118667
|
+
}
|
|
118668
|
+
}, [_c('div', {
|
|
118669
|
+
staticClass: "col-item"
|
|
118670
|
+
}, [_c('span', {
|
|
118671
|
+
staticClass: "col-span"
|
|
118672
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118673
|
+
staticClass: "col-select",
|
|
118745
118674
|
attrs: {
|
|
118746
118675
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118747
|
-
"
|
|
118748
|
-
"
|
|
118676
|
+
"clearable": "",
|
|
118677
|
+
"filterable": ""
|
|
118749
118678
|
},
|
|
118750
118679
|
model: {
|
|
118751
|
-
value: _vm.
|
|
118680
|
+
value: _vm.searchForm.userId,
|
|
118752
118681
|
callback: function ($$v) {
|
|
118753
|
-
_vm.$set(_vm.
|
|
118682
|
+
_vm.$set(_vm.searchForm, "userId", $$v);
|
|
118754
118683
|
},
|
|
118755
|
-
expression: "
|
|
118684
|
+
expression: "searchForm.userId"
|
|
118756
118685
|
}
|
|
118757
|
-
}, _vm._l(_vm.
|
|
118686
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118758
118687
|
return _c('el-option', {
|
|
118759
|
-
key:
|
|
118688
|
+
key: item.userId,
|
|
118760
118689
|
attrs: {
|
|
118761
|
-
"
|
|
118762
|
-
"
|
|
118690
|
+
"label": item.userName,
|
|
118691
|
+
"value": item.userId
|
|
118763
118692
|
}
|
|
118764
118693
|
});
|
|
118765
|
-
}), 1)], 1)]
|
|
118766
|
-
|
|
118767
|
-
|
|
118768
|
-
|
|
118769
|
-
|
|
118770
|
-
"
|
|
118771
|
-
return _vm.close();
|
|
118772
|
-
}
|
|
118694
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118695
|
+
staticStyle: {
|
|
118696
|
+
"margin-top": "8px"
|
|
118697
|
+
},
|
|
118698
|
+
attrs: {
|
|
118699
|
+
"gutter": 20
|
|
118773
118700
|
}
|
|
118774
|
-
}, [
|
|
118775
|
-
staticClass: "drawer-btn drawer-btn-face",
|
|
118701
|
+
}, [_c('el-col', {
|
|
118776
118702
|
attrs: {
|
|
118777
|
-
"
|
|
118778
|
-
},
|
|
118779
|
-
on: {
|
|
118780
|
-
"click": _vm.submit
|
|
118703
|
+
"span": 24
|
|
118781
118704
|
}
|
|
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
|
|
118705
|
+
}, [_c('div', {
|
|
118706
|
+
staticClass: "btns_box"
|
|
118707
|
+
}, [_c('div', [_c('el-button', {
|
|
118708
|
+
attrs: {
|
|
118709
|
+
"type": "primary"
|
|
118800
118710
|
},
|
|
118801
|
-
|
|
118802
|
-
|
|
118803
|
-
|
|
118804
|
-
|
|
118711
|
+
on: {
|
|
118712
|
+
"click": function ($event) {
|
|
118713
|
+
_vm.searchForm.currentPage = 1;
|
|
118714
|
+
_vm.getCardList();
|
|
118805
118715
|
}
|
|
118806
|
-
},
|
|
118807
|
-
// 自定义模板/系统模板
|
|
118808
|
-
selectType: {
|
|
118809
|
-
type: [Number, String],
|
|
118810
|
-
default: ""
|
|
118811
118716
|
}
|
|
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();
|
|
118717
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118718
|
+
on: {
|
|
118719
|
+
"click": _vm.resetEvt
|
|
118869
118720
|
}
|
|
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");
|
|
118721
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118722
|
+
staticStyle: {
|
|
118723
|
+
"display": "flex",
|
|
118724
|
+
"align-items": "center"
|
|
118987
118725
|
}
|
|
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', {
|
|
118726
|
+
}, [_c('div', {
|
|
118727
|
+
staticClass: "right_sort"
|
|
118728
|
+
}, [_c('el-dropdown', {
|
|
119023
118729
|
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
|
|
118730
|
+
"placement": "bottom"
|
|
119035
118731
|
}
|
|
119036
118732
|
}, [_c('div', {
|
|
119037
|
-
staticClass: "
|
|
119038
|
-
}, [_c('
|
|
118733
|
+
staticClass: "sort_btn"
|
|
118734
|
+
}, [_c('i', {
|
|
118735
|
+
staticClass: "dss-iconfont"
|
|
118736
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
119039
118737
|
attrs: {
|
|
119040
|
-
"
|
|
119041
|
-
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
119042
|
-
"clearable": ""
|
|
118738
|
+
"slot": "dropdown"
|
|
119043
118739
|
},
|
|
119044
|
-
|
|
119045
|
-
|
|
119046
|
-
|
|
119047
|
-
|
|
118740
|
+
slot: "dropdown"
|
|
118741
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118742
|
+
return _c('el-dropdown-item', {
|
|
118743
|
+
key: index,
|
|
118744
|
+
staticStyle: {
|
|
118745
|
+
"white-space": "nowrap"
|
|
119048
118746
|
},
|
|
119049
|
-
expression: "setSystemForm.modelType"
|
|
119050
|
-
}
|
|
119051
|
-
}, _vm._l(_vm.tabOpts, function (item) {
|
|
119052
|
-
return _c('el-option', {
|
|
119053
|
-
key: Number(item.name),
|
|
119054
118747
|
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: ""
|
|
118748
|
+
"command": item.value
|
|
118749
|
+
},
|
|
118750
|
+
nativeOn: {
|
|
118751
|
+
"click": function ($event) {
|
|
118752
|
+
return _vm.clickDropdownItem(item);
|
|
118753
|
+
}
|
|
119101
118754
|
}
|
|
119102
|
-
};
|
|
119103
|
-
},
|
|
119104
|
-
|
|
119105
|
-
|
|
119106
|
-
|
|
119107
|
-
|
|
119108
|
-
|
|
119109
|
-
|
|
119110
|
-
|
|
119111
|
-
|
|
118755
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118756
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118757
|
+
directives: [{
|
|
118758
|
+
name: "loading",
|
|
118759
|
+
rawName: "v-loading",
|
|
118760
|
+
value: _vm.loading,
|
|
118761
|
+
expression: "loading"
|
|
118762
|
+
}],
|
|
118763
|
+
staticClass: "temp_box"
|
|
118764
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118765
|
+
staticClass: "temp_list"
|
|
118766
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118767
|
+
return _c('div', {
|
|
118768
|
+
key: item.id,
|
|
118769
|
+
staticClass: "temp_item"
|
|
118770
|
+
}, [_c('div', {
|
|
118771
|
+
staticClass: "temp_content"
|
|
118772
|
+
}, [_c('div', {
|
|
118773
|
+
staticClass: "temp_top"
|
|
118774
|
+
}, [_c('div', {
|
|
118775
|
+
staticClass: "temp_title"
|
|
118776
|
+
}, [_c('div', {
|
|
118777
|
+
staticClass: "title_text"
|
|
118778
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118779
|
+
staticClass: "more_icon",
|
|
118780
|
+
on: {
|
|
118781
|
+
"click": function ($event) {
|
|
118782
|
+
return _vm.toDetail(item);
|
|
118783
|
+
}
|
|
119112
118784
|
}
|
|
119113
|
-
|
|
119114
|
-
|
|
119115
|
-
|
|
119116
|
-
|
|
119117
|
-
|
|
119118
|
-
|
|
119119
|
-
|
|
119120
|
-
|
|
119121
|
-
|
|
119122
|
-
|
|
118785
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118786
|
+
staticClass: "el-icon-arrow-right"
|
|
118787
|
+
})])]), _c('div', {
|
|
118788
|
+
staticClass: "num_box"
|
|
118789
|
+
}, [_c('div', {
|
|
118790
|
+
staticClass: "lang_box"
|
|
118791
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), _c('div', {
|
|
118792
|
+
staticClass: "lang_box"
|
|
118793
|
+
}, [_vm._v("附件:??个")]), _c('div', {
|
|
118794
|
+
staticClass: "lang_box"
|
|
118795
|
+
}, [_vm._v("商品卡:??个")])])]), _c('div', {
|
|
118796
|
+
staticClass: "temp_middle"
|
|
118797
|
+
}, [_c('div', {
|
|
118798
|
+
staticClass: "nu_box"
|
|
118799
|
+
}, [_c('div', {
|
|
118800
|
+
staticClass: "nu_title"
|
|
118801
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118802
|
+
staticClass: "nu_number"
|
|
118803
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118804
|
+
staticClass: "nu_box"
|
|
118805
|
+
}, [_c('div', {
|
|
118806
|
+
staticClass: "nu_title"
|
|
118807
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118808
|
+
staticClass: "nu_number"
|
|
118809
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118810
|
+
staticClass: "nu_box"
|
|
118811
|
+
}, [_c('div', {
|
|
118812
|
+
staticClass: "nu_title"
|
|
118813
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118814
|
+
staticClass: "nu_number"
|
|
118815
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118816
|
+
staticClass: "nu_box"
|
|
118817
|
+
}, [_c('div', {
|
|
118818
|
+
staticClass: "nu_title"
|
|
118819
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118820
|
+
staticClass: "nu_number"
|
|
118821
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118822
|
+
staticClass: "tem_bottom"
|
|
118823
|
+
}, [_c('div', {
|
|
118824
|
+
staticClass: "tem_desc"
|
|
118825
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118826
|
+
staticClass: "tem_desc"
|
|
118827
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118828
|
+
staticClass: "desc_btns"
|
|
118829
|
+
}, [_c('div', {
|
|
118830
|
+
staticClass: "desc_text"
|
|
118831
|
+
}, [_c('div', {
|
|
118832
|
+
staticClass: "tem_desc"
|
|
118833
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118834
|
+
staticClass: "tem_desc"
|
|
118835
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118836
|
+
staticClass: "apply_btn"
|
|
118837
|
+
}, [_c('el-button', {
|
|
118838
|
+
attrs: {
|
|
118839
|
+
"type": "primary"
|
|
118840
|
+
},
|
|
118841
|
+
on: {
|
|
118842
|
+
"click": function ($event) {
|
|
118843
|
+
return _vm.setMailTemplate(item);
|
|
119123
118844
|
}
|
|
119124
|
-
}
|
|
118845
|
+
}
|
|
118846
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118847
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118848
|
+
staticClass: "page_box"
|
|
118849
|
+
}, [_c('el-pagination', {
|
|
118850
|
+
attrs: {
|
|
118851
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118852
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118853
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118854
|
+
"total": _vm.total
|
|
119125
118855
|
},
|
|
119126
|
-
|
|
119127
|
-
|
|
119128
|
-
|
|
119129
|
-
|
|
118856
|
+
on: {
|
|
118857
|
+
"size-change": _vm.handleSizeChange,
|
|
118858
|
+
"current-change": _vm.handleCurrentChange,
|
|
118859
|
+
"update:currentPage": function ($event) {
|
|
118860
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118861
|
+
},
|
|
118862
|
+
"update:current-page": function ($event) {
|
|
118863
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
118864
|
+
}
|
|
119130
118865
|
}
|
|
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
|
-
|
|
118866
|
+
})], 1)]);
|
|
118867
|
+
};
|
|
118868
|
+
var TemplateListvue_type_template_id_357bd4cd_scoped_true_staticRenderFns = [];
|
|
119143
118869
|
|
|
119144
|
-
|
|
118870
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=357bd4cd&scoped=true
|
|
119145
118871
|
|
|
118872
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
119146
118873
|
|
|
119147
|
-
|
|
119148
|
-
|
|
119149
|
-
|
|
119150
|
-
|
|
119151
|
-
|
|
119152
|
-
|
|
119153
|
-
|
|
119154
|
-
|
|
119155
|
-
|
|
119156
|
-
|
|
119157
|
-
|
|
119158
|
-
|
|
119159
|
-
|
|
119160
|
-
|
|
118874
|
+
const TemplateCom_const_language = [{
|
|
118875
|
+
value: '7',
|
|
118876
|
+
label: '汉语',
|
|
118877
|
+
enLabel: 'Chinese'
|
|
118878
|
+
}, {
|
|
118879
|
+
value: '1',
|
|
118880
|
+
label: '英语',
|
|
118881
|
+
enLabel: 'English'
|
|
118882
|
+
}, {
|
|
118883
|
+
value: '3',
|
|
118884
|
+
label: '法语',
|
|
118885
|
+
enLabel: 'French'
|
|
118886
|
+
}, {
|
|
118887
|
+
value: '8',
|
|
118888
|
+
label: '德语',
|
|
118889
|
+
enLabel: 'German'
|
|
118890
|
+
}, {
|
|
118891
|
+
value: '6',
|
|
118892
|
+
label: '日语',
|
|
118893
|
+
enLabel: 'Japanese'
|
|
118894
|
+
}, {
|
|
118895
|
+
value: '9',
|
|
118896
|
+
label: '韩语',
|
|
118897
|
+
enLabel: 'Korean'
|
|
118898
|
+
}, {
|
|
118899
|
+
value: '10',
|
|
118900
|
+
label: '越南语',
|
|
118901
|
+
enLabel: 'Vietnamese'
|
|
118902
|
+
}, {
|
|
118903
|
+
value: '11',
|
|
118904
|
+
label: '泰国语',
|
|
118905
|
+
enLabel: 'Thai'
|
|
118906
|
+
}, {
|
|
118907
|
+
value: '12',
|
|
118908
|
+
label: '菲律宾语',
|
|
118909
|
+
enLabel: 'Filipino'
|
|
118910
|
+
}, {
|
|
118911
|
+
value: '13',
|
|
118912
|
+
label: '印度尼西亚语',
|
|
118913
|
+
enLabel: 'Indonesian'
|
|
118914
|
+
}, {
|
|
118915
|
+
value: '14',
|
|
118916
|
+
label: '俄罗斯语',
|
|
118917
|
+
enLabel: 'Russian'
|
|
118918
|
+
}, {
|
|
118919
|
+
value: '4',
|
|
118920
|
+
label: '西班牙语',
|
|
118921
|
+
enLabel: 'Spanish'
|
|
118922
|
+
}, {
|
|
118923
|
+
value: '15',
|
|
118924
|
+
label: '意大利语',
|
|
118925
|
+
enLabel: 'Italian'
|
|
118926
|
+
}];
|
|
118927
|
+
const sortConfig = [{
|
|
118928
|
+
label: '按创建时间倒序',
|
|
118929
|
+
value: 0
|
|
118930
|
+
}, {
|
|
118931
|
+
label: '按更新时间倒序',
|
|
118932
|
+
value: 1
|
|
118933
|
+
}, {
|
|
118934
|
+
label: '按送达率倒序',
|
|
118935
|
+
value: 2
|
|
118936
|
+
}, {
|
|
118937
|
+
label: '按打开率倒序',
|
|
118938
|
+
value: 3
|
|
118939
|
+
}, {
|
|
118940
|
+
label: '按回复率倒序',
|
|
118941
|
+
value: 4
|
|
118942
|
+
}, {
|
|
118943
|
+
label: '按累计发送数倒序',
|
|
118944
|
+
value: 5
|
|
118945
|
+
}];
|
|
118946
|
+
// 系统模版场景
|
|
118947
|
+
const templateSystemScene = [{
|
|
118948
|
+
value: '1',
|
|
118949
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
118950
|
+
},
|
|
118951
|
+
//合作邀请
|
|
118952
|
+
{
|
|
118953
|
+
value: '2',
|
|
118954
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
118955
|
+
},
|
|
118956
|
+
//价格协商
|
|
118957
|
+
{
|
|
118958
|
+
value: '3',
|
|
118959
|
+
label: `${src_language.t('template.contract_template')}`
|
|
118960
|
+
},
|
|
118961
|
+
//合同模板
|
|
118962
|
+
{
|
|
118963
|
+
value: '4',
|
|
118964
|
+
label: `${src_language.t('template.video_production')}`
|
|
118965
|
+
},
|
|
118966
|
+
//视频制作
|
|
118967
|
+
{
|
|
118968
|
+
value: '5',
|
|
118969
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
118970
|
+
} //费用结算
|
|
118971
|
+
];
|
|
119161
118972
|
;// ./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
118973
|
|
|
119163
118974
|
|
|
119164
118975
|
|
|
119165
118976
|
|
|
119166
118977
|
|
|
118978
|
+
function createSearchForm(tar) {
|
|
118979
|
+
let raw = {
|
|
118980
|
+
templatesTitle: "",
|
|
118981
|
+
//模板标题
|
|
118982
|
+
scene: "",
|
|
118983
|
+
//应用场景
|
|
118984
|
+
mailSubject: "",
|
|
118985
|
+
//邮件主题
|
|
118986
|
+
content: "",
|
|
118987
|
+
//正文
|
|
118988
|
+
type: null,
|
|
118989
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
118990
|
+
modelLanguage: "",
|
|
118991
|
+
//语言
|
|
118992
|
+
isShared: "",
|
|
118993
|
+
//是否共享
|
|
118994
|
+
userId: "",
|
|
118995
|
+
//创建人
|
|
118996
|
+
searchSort: 1,
|
|
118997
|
+
//排序
|
|
118998
|
+
currentPage: 1,
|
|
118999
|
+
pageSize: 9
|
|
119000
|
+
};
|
|
119001
|
+
if (tar) {
|
|
119002
|
+
raw = Object.assign(raw, tar);
|
|
119003
|
+
}
|
|
119004
|
+
return raw;
|
|
119005
|
+
}
|
|
119167
119006
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119168
|
-
components: {
|
|
119169
|
-
SetTemplate: SetTemplate,
|
|
119170
|
-
SetSysTemplate: SetSysTemplate
|
|
119171
|
-
},
|
|
119007
|
+
components: {},
|
|
119172
119008
|
props: {
|
|
119173
119009
|
userId: {
|
|
119174
119010
|
type: [Number, String],
|
|
@@ -119177,161 +119013,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119177
119013
|
},
|
|
119178
119014
|
data() {
|
|
119179
119015
|
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: ""
|
|
119016
|
+
// 模版名称 场景
|
|
119017
|
+
contentSelect: "1",
|
|
119018
|
+
contentInput: "",
|
|
119019
|
+
// 邮件主题正文
|
|
119020
|
+
mailTitleSelect: "1",
|
|
119021
|
+
mailTitleInput: "",
|
|
119022
|
+
searchForm: createSearchForm(),
|
|
119023
|
+
language: TemplateCom_const_language,
|
|
119024
|
+
sortConfig: sortConfig,
|
|
119025
|
+
accountList: [],
|
|
119026
|
+
templateList: [],
|
|
119027
|
+
templateSystemScene: templateSystemScene,
|
|
119028
|
+
total: 0,
|
|
119029
|
+
loading: false
|
|
119239
119030
|
};
|
|
119240
119031
|
},
|
|
119241
|
-
|
|
119242
|
-
|
|
119243
|
-
this.
|
|
119032
|
+
mounted() {
|
|
119033
|
+
this.getAccountList();
|
|
119034
|
+
this.getCardList();
|
|
119244
119035
|
},
|
|
119245
119036
|
methods: {
|
|
119246
|
-
//
|
|
119247
|
-
|
|
119248
|
-
this.
|
|
119249
|
-
if (
|
|
119250
|
-
|
|
119037
|
+
// 语言枚举
|
|
119038
|
+
getLangLabel(val) {
|
|
119039
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119040
|
+
if (currLang) {
|
|
119041
|
+
return currLang.label;
|
|
119251
119042
|
}
|
|
119252
|
-
|
|
119253
|
-
|
|
119254
|
-
|
|
119255
|
-
|
|
119256
|
-
|
|
119043
|
+
},
|
|
119044
|
+
// 应用模版
|
|
119045
|
+
setMailTemplate(data) {
|
|
119046
|
+
this.$emit("setMailTemplate", data);
|
|
119047
|
+
},
|
|
119048
|
+
// 跳转详情
|
|
119049
|
+
toDetail(item) {
|
|
119050
|
+
const routeData = this.$router.resolve({
|
|
119051
|
+
path: "/emailTempDetail",
|
|
119052
|
+
query: {
|
|
119053
|
+
type: "edit",
|
|
119054
|
+
id: item.id
|
|
119055
|
+
}
|
|
119056
|
+
});
|
|
119057
|
+
window.open(routeData.href, "_blank");
|
|
119058
|
+
},
|
|
119059
|
+
// 获取列表
|
|
119060
|
+
getCardList() {
|
|
119061
|
+
if (this.contentSelect == "1") {
|
|
119062
|
+
this.searchForm.templatesTitle = this.contentInput;
|
|
119063
|
+
} else if (this.contentSelect == "2") {
|
|
119064
|
+
//系统模版
|
|
119065
|
+
if (this.searchForm.type != 1) {
|
|
119066
|
+
this.searchForm.scene = this.contentInput;
|
|
119067
|
+
}
|
|
119068
|
+
}
|
|
119069
|
+
if (this.mailTitleSelect == "1") {
|
|
119070
|
+
this.searchForm.mailSubject = this.mailTitleInput;
|
|
119071
|
+
} else if (this.mailTitleSelect == "2") {
|
|
119072
|
+
this.searchForm.content = this.mailTitleInput;
|
|
119073
|
+
}
|
|
119074
|
+
this.loading = true;
|
|
119075
|
+
templatesList(this.searchForm).then(res => {
|
|
119076
|
+
if (res.code == "0") {
|
|
119077
|
+
this.templateList = res.data.rows;
|
|
119078
|
+
this.total = res.data.total;
|
|
119079
|
+
this.loading = false;
|
|
119257
119080
|
} else {
|
|
119081
|
+
this.loading = false;
|
|
119258
119082
|
this.$message.error(res.message);
|
|
119259
119083
|
}
|
|
119260
119084
|
});
|
|
119261
119085
|
},
|
|
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(() => {});
|
|
119086
|
+
// 模板类型切换
|
|
119087
|
+
modelTypeChange(val) {
|
|
119088
|
+
this.searchForm.scene = "";
|
|
119089
|
+
this.contentInput = "";
|
|
119288
119090
|
},
|
|
119289
|
-
//
|
|
119290
|
-
|
|
119291
|
-
this
|
|
119091
|
+
// 重置
|
|
119092
|
+
resetEvt() {
|
|
119093
|
+
this.searchForm = createSearchForm();
|
|
119094
|
+
this.contentSelect = "1";
|
|
119095
|
+
this.contentInput = "";
|
|
119096
|
+
this.mailTitleSelect = "1";
|
|
119097
|
+
this.mailTitleInput = "";
|
|
119098
|
+
this.getCardList();
|
|
119292
119099
|
},
|
|
119293
|
-
//
|
|
119294
|
-
|
|
119295
|
-
|
|
119296
|
-
|
|
119297
|
-
|
|
119100
|
+
// 获取账号下的账户
|
|
119101
|
+
getAccountList() {
|
|
119102
|
+
hubUserSonFather().then(res => {
|
|
119103
|
+
if (res.code == "0") {
|
|
119104
|
+
this.accountList = res.data;
|
|
119105
|
+
} else {
|
|
119106
|
+
this.$message.error(res.message);
|
|
119107
|
+
}
|
|
119108
|
+
});
|
|
119298
119109
|
},
|
|
119299
|
-
//
|
|
119300
|
-
|
|
119301
|
-
this.searchForm.modelType = tab.name;
|
|
119110
|
+
// 排序按钮
|
|
119111
|
+
clickDropdownItem(item) {
|
|
119302
119112
|
this.searchForm.currentPage = 1;
|
|
119303
|
-
this.
|
|
119113
|
+
this.searchForm.searchSort = item.value;
|
|
119114
|
+
this.getCardList();
|
|
119304
119115
|
},
|
|
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;
|
|
119116
|
+
handleSizeChange(val) {
|
|
119117
|
+
this.searchForm.currentPage = 1;
|
|
119118
|
+
this.searchForm.pageSize = val;
|
|
119119
|
+
this.getCardList();
|
|
119317
119120
|
},
|
|
119318
|
-
|
|
119319
|
-
|
|
119320
|
-
this.
|
|
119121
|
+
handleCurrentChange(val) {
|
|
119122
|
+
this.searchForm.currentPage = val;
|
|
119123
|
+
this.getCardList();
|
|
119321
119124
|
}
|
|
119322
119125
|
}
|
|
119323
119126
|
});
|
|
119324
119127
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119325
119128
|
/* 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=
|
|
119129
|
+
;// ./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=357bd4cd&prod&lang=scss&scoped=true
|
|
119327
119130
|
// extracted by mini-css-extract-plugin
|
|
119328
119131
|
|
|
119329
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=
|
|
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
|
|
119332
|
-
// extracted by mini-css-extract-plugin
|
|
119333
|
-
|
|
119334
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119132
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=357bd4cd&prod&lang=scss&scoped=true
|
|
119335
119133
|
|
|
119336
119134
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119337
119135
|
|
|
@@ -119340,16 +119138,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119340
119138
|
;
|
|
119341
119139
|
|
|
119342
119140
|
|
|
119343
|
-
|
|
119344
119141
|
/* normalize component */
|
|
119345
119142
|
|
|
119346
119143
|
var TemplateList_component = normalizeComponent(
|
|
119347
119144
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119348
|
-
|
|
119349
|
-
|
|
119145
|
+
TemplateListvue_type_template_id_357bd4cd_scoped_true_render,
|
|
119146
|
+
TemplateListvue_type_template_id_357bd4cd_scoped_true_staticRenderFns,
|
|
119350
119147
|
false,
|
|
119351
119148
|
null,
|
|
119352
|
-
"
|
|
119149
|
+
"357bd4cd",
|
|
119353
119150
|
null
|
|
119354
119151
|
|
|
119355
119152
|
)
|
|
@@ -121725,6 +121522,261 @@ function inviteEmailSave(data) {
|
|
|
121725
121522
|
function inviteEmailGet(taskId) {
|
|
121726
121523
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121727
121524
|
}
|
|
121525
|
+
;// ./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
|
|
121526
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render = function render() {
|
|
121527
|
+
var _vm = this,
|
|
121528
|
+
_c = _vm._self._c;
|
|
121529
|
+
return _c('el-dialog', {
|
|
121530
|
+
attrs: {
|
|
121531
|
+
"visible": _vm.visible,
|
|
121532
|
+
"title": "存为模版",
|
|
121533
|
+
"width": "480px",
|
|
121534
|
+
"before-close": _vm.closeDialog,
|
|
121535
|
+
"custom-class": "setting-nickname-dialog",
|
|
121536
|
+
"close-on-click-modal": false
|
|
121537
|
+
}
|
|
121538
|
+
}, [_c('div', {
|
|
121539
|
+
directives: [{
|
|
121540
|
+
name: "loading",
|
|
121541
|
+
rawName: "v-loading",
|
|
121542
|
+
value: _vm.loading,
|
|
121543
|
+
expression: "loading"
|
|
121544
|
+
}]
|
|
121545
|
+
}, [_c('el-form', {
|
|
121546
|
+
ref: "ruleForm",
|
|
121547
|
+
staticClass: "demo-ruleForm",
|
|
121548
|
+
attrs: {
|
|
121549
|
+
"label-position": "top",
|
|
121550
|
+
"model": _vm.ruleForm,
|
|
121551
|
+
"rules": _vm.rules,
|
|
121552
|
+
"label-width": "100px"
|
|
121553
|
+
}
|
|
121554
|
+
}, [_c('el-form-item', {
|
|
121555
|
+
attrs: {
|
|
121556
|
+
"label": "模版名称",
|
|
121557
|
+
"prop": "templatesTitle"
|
|
121558
|
+
}
|
|
121559
|
+
}, [_c('el-input', {
|
|
121560
|
+
attrs: {
|
|
121561
|
+
"clearable": ""
|
|
121562
|
+
},
|
|
121563
|
+
model: {
|
|
121564
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121565
|
+
callback: function ($$v) {
|
|
121566
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121567
|
+
},
|
|
121568
|
+
expression: "ruleForm.templatesTitle"
|
|
121569
|
+
}
|
|
121570
|
+
})], 1), _c('el-form-item', {
|
|
121571
|
+
attrs: {
|
|
121572
|
+
"label": "应用场景",
|
|
121573
|
+
"prop": "scene"
|
|
121574
|
+
}
|
|
121575
|
+
}, [_c('el-input', {
|
|
121576
|
+
attrs: {
|
|
121577
|
+
"clearable": ""
|
|
121578
|
+
},
|
|
121579
|
+
model: {
|
|
121580
|
+
value: _vm.ruleForm.scene,
|
|
121581
|
+
callback: function ($$v) {
|
|
121582
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121583
|
+
},
|
|
121584
|
+
expression: "ruleForm.scene"
|
|
121585
|
+
}
|
|
121586
|
+
})], 1), _c('el-form-item', {
|
|
121587
|
+
attrs: {
|
|
121588
|
+
"label": "语言",
|
|
121589
|
+
"prop": "modelLanguage"
|
|
121590
|
+
}
|
|
121591
|
+
}, [_c('el-select', {
|
|
121592
|
+
attrs: {
|
|
121593
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121594
|
+
"clearable": "",
|
|
121595
|
+
"filterable": ""
|
|
121596
|
+
},
|
|
121597
|
+
model: {
|
|
121598
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121599
|
+
callback: function ($$v) {
|
|
121600
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121601
|
+
},
|
|
121602
|
+
expression: "ruleForm.modelLanguage"
|
|
121603
|
+
}
|
|
121604
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121605
|
+
return _c('el-option', {
|
|
121606
|
+
key: item.value,
|
|
121607
|
+
attrs: {
|
|
121608
|
+
"value": item.value,
|
|
121609
|
+
"label": item.label
|
|
121610
|
+
}
|
|
121611
|
+
});
|
|
121612
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121613
|
+
attrs: {
|
|
121614
|
+
"label": "共享状态",
|
|
121615
|
+
"prop": "isShared"
|
|
121616
|
+
}
|
|
121617
|
+
}, [_c('el-select', {
|
|
121618
|
+
attrs: {
|
|
121619
|
+
"clearable": "",
|
|
121620
|
+
"placeholder": "请选择共享状态"
|
|
121621
|
+
},
|
|
121622
|
+
model: {
|
|
121623
|
+
value: _vm.ruleForm.isShared,
|
|
121624
|
+
callback: function ($$v) {
|
|
121625
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121626
|
+
},
|
|
121627
|
+
expression: "ruleForm.isShared"
|
|
121628
|
+
}
|
|
121629
|
+
}, [_c('el-option', {
|
|
121630
|
+
key: 1,
|
|
121631
|
+
attrs: {
|
|
121632
|
+
"value": "1",
|
|
121633
|
+
"label": "公开"
|
|
121634
|
+
}
|
|
121635
|
+
}), _c('el-option', {
|
|
121636
|
+
key: 2,
|
|
121637
|
+
attrs: {
|
|
121638
|
+
"value": "2",
|
|
121639
|
+
"label": "私有"
|
|
121640
|
+
}
|
|
121641
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121642
|
+
staticClass: "footer-btn"
|
|
121643
|
+
}, [_c('el-button', {
|
|
121644
|
+
on: {
|
|
121645
|
+
"click": function ($event) {
|
|
121646
|
+
return _vm.resetForm('ruleForm');
|
|
121647
|
+
}
|
|
121648
|
+
}
|
|
121649
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121650
|
+
attrs: {
|
|
121651
|
+
"type": "primary",
|
|
121652
|
+
"loading": _vm.confirmBtnLoading
|
|
121653
|
+
},
|
|
121654
|
+
on: {
|
|
121655
|
+
"click": function ($event) {
|
|
121656
|
+
return _vm.submitForm('ruleForm');
|
|
121657
|
+
}
|
|
121658
|
+
}
|
|
121659
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121660
|
+
};
|
|
121661
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns = [];
|
|
121662
|
+
|
|
121663
|
+
;// ./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
|
|
121664
|
+
|
|
121665
|
+
|
|
121666
|
+
|
|
121667
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121668
|
+
props: {
|
|
121669
|
+
visible: {
|
|
121670
|
+
type: Boolean,
|
|
121671
|
+
default: false
|
|
121672
|
+
},
|
|
121673
|
+
mailTempList: {
|
|
121674
|
+
type: Array,
|
|
121675
|
+
default: () => []
|
|
121676
|
+
},
|
|
121677
|
+
tempProductCard: {
|
|
121678
|
+
type: String,
|
|
121679
|
+
default: ""
|
|
121680
|
+
}
|
|
121681
|
+
},
|
|
121682
|
+
data() {
|
|
121683
|
+
return {
|
|
121684
|
+
confirmBtnLoading: false,
|
|
121685
|
+
loading: false,
|
|
121686
|
+
ruleForm: {
|
|
121687
|
+
templatesTitle: "",
|
|
121688
|
+
scene: "",
|
|
121689
|
+
modelLanguage: "",
|
|
121690
|
+
isShared: "2"
|
|
121691
|
+
},
|
|
121692
|
+
rules: {
|
|
121693
|
+
templatesTitle: [{
|
|
121694
|
+
required: true,
|
|
121695
|
+
message: "请输入模版名称",
|
|
121696
|
+
trigger: "blur"
|
|
121697
|
+
}],
|
|
121698
|
+
modelLanguage: [{
|
|
121699
|
+
required: true,
|
|
121700
|
+
message: "请选择模版语言",
|
|
121701
|
+
trigger: "change"
|
|
121702
|
+
}],
|
|
121703
|
+
isShared: [{
|
|
121704
|
+
required: true,
|
|
121705
|
+
message: "请选择共享状态",
|
|
121706
|
+
trigger: "change"
|
|
121707
|
+
}]
|
|
121708
|
+
},
|
|
121709
|
+
language: const_language
|
|
121710
|
+
};
|
|
121711
|
+
},
|
|
121712
|
+
created() {},
|
|
121713
|
+
methods: {
|
|
121714
|
+
// 处理邮件参数
|
|
121715
|
+
getMailParams() {
|
|
121716
|
+
// 处理邮件
|
|
121717
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121718
|
+
let content = "";
|
|
121719
|
+
if (currentMail.getReplyHtml()) {
|
|
121720
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121721
|
+
} else {
|
|
121722
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121723
|
+
}
|
|
121724
|
+
return {
|
|
121725
|
+
subject: currentMail.subject,
|
|
121726
|
+
content,
|
|
121727
|
+
attachments: currentMail.fileList
|
|
121728
|
+
};
|
|
121729
|
+
},
|
|
121730
|
+
// 表单验证
|
|
121731
|
+
submitForm(formName) {
|
|
121732
|
+
const mailParams = this.getMailParams();
|
|
121733
|
+
console.log(mailParams, 'mailParams');
|
|
121734
|
+
this.$refs[formName].validate(valid => {
|
|
121735
|
+
if (valid) {
|
|
121736
|
+
alert("submit!");
|
|
121737
|
+
} else {
|
|
121738
|
+
console.log("error submit!!");
|
|
121739
|
+
return false;
|
|
121740
|
+
}
|
|
121741
|
+
});
|
|
121742
|
+
},
|
|
121743
|
+
resetForm(formName) {
|
|
121744
|
+
this.$refs[formName].resetFields();
|
|
121745
|
+
this.closeDialog();
|
|
121746
|
+
},
|
|
121747
|
+
closeDialog() {
|
|
121748
|
+
this.$emit("update:visible", false);
|
|
121749
|
+
}
|
|
121750
|
+
}
|
|
121751
|
+
});
|
|
121752
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121753
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121754
|
+
;// ./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
|
|
121755
|
+
// extracted by mini-css-extract-plugin
|
|
121756
|
+
|
|
121757
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=075aae44&prod&lang=scss&scoped=true
|
|
121758
|
+
|
|
121759
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121760
|
+
|
|
121761
|
+
|
|
121762
|
+
|
|
121763
|
+
;
|
|
121764
|
+
|
|
121765
|
+
|
|
121766
|
+
/* normalize component */
|
|
121767
|
+
|
|
121768
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121769
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121770
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render,
|
|
121771
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns,
|
|
121772
|
+
false,
|
|
121773
|
+
null,
|
|
121774
|
+
"075aae44",
|
|
121775
|
+
null
|
|
121776
|
+
|
|
121777
|
+
)
|
|
121778
|
+
|
|
121779
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121728
121780
|
;// ./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
121781
|
|
|
121730
121782
|
|
|
@@ -121766,6 +121818,7 @@ function inviteEmailGet(taskId) {
|
|
|
121766
121818
|
|
|
121767
121819
|
|
|
121768
121820
|
|
|
121821
|
+
|
|
121769
121822
|
|
|
121770
121823
|
|
|
121771
121824
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121788,7 +121841,8 @@ function inviteEmailGet(taskId) {
|
|
|
121788
121841
|
SignTextDrawer: signText,
|
|
121789
121842
|
MailTemplateDrawer: mailTemplate,
|
|
121790
121843
|
AiMailDialog: aiMail,
|
|
121791
|
-
MailOptimizeDrawer: mailOptimize
|
|
121844
|
+
MailOptimizeDrawer: mailOptimize,
|
|
121845
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121792
121846
|
},
|
|
121793
121847
|
props: {
|
|
121794
121848
|
// pm 添加
|
|
@@ -122017,7 +122071,11 @@ function inviteEmailGet(taskId) {
|
|
|
122017
122071
|
nickName: "",
|
|
122018
122072
|
// 发件人昵称
|
|
122019
122073
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122020
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122074
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122075
|
+
// 当前使用的AI平台
|
|
122076
|
+
saveMailTempDialogVisible: false,
|
|
122077
|
+
// 保存模版弹窗
|
|
122078
|
+
tempProductCard: '' // 模版产品卡
|
|
122021
122079
|
};
|
|
122022
122080
|
},
|
|
122023
122081
|
created() {
|
|
@@ -122093,6 +122151,14 @@ function inviteEmailGet(taskId) {
|
|
|
122093
122151
|
window.onbeforeunload = null;
|
|
122094
122152
|
},
|
|
122095
122153
|
methods: {
|
|
122154
|
+
// 保存邮件模版
|
|
122155
|
+
saveMailTemplate() {
|
|
122156
|
+
// 处理商品卡
|
|
122157
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122158
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122159
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122160
|
+
this.saveMailTempDialogVisible = true;
|
|
122161
|
+
},
|
|
122096
122162
|
// 初始化邮件模版
|
|
122097
122163
|
payInitTemplate() {
|
|
122098
122164
|
// 初始化收件人
|
|
@@ -123400,15 +123466,15 @@ function inviteEmailGet(taskId) {
|
|
|
123400
123466
|
});
|
|
123401
123467
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123402
123468
|
/* 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=
|
|
123469
|
+
;// ./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
123470
|
// extracted by mini-css-extract-plugin
|
|
123405
123471
|
|
|
123406
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123472
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=7011cdc3&prod&lang=scss&scoped=true
|
|
123407
123473
|
|
|
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=
|
|
123474
|
+
;// ./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
123475
|
// extracted by mini-css-extract-plugin
|
|
123410
123476
|
|
|
123411
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123477
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=7011cdc3&prod&lang=scss
|
|
123412
123478
|
|
|
123413
123479
|
;// ./src/package/write-email/index.vue
|
|
123414
123480
|
|
|
@@ -123422,11 +123488,11 @@ function inviteEmailGet(taskId) {
|
|
|
123422
123488
|
|
|
123423
123489
|
var write_email_component = normalizeComponent(
|
|
123424
123490
|
package_write_emailvue_type_script_lang_js,
|
|
123425
|
-
|
|
123426
|
-
|
|
123491
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_render,
|
|
123492
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns,
|
|
123427
123493
|
false,
|
|
123428
123494
|
null,
|
|
123429
|
-
"
|
|
123495
|
+
"7011cdc3",
|
|
123430
123496
|
null
|
|
123431
123497
|
|
|
123432
123498
|
)
|
|
@@ -123493,8 +123559,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123493
123559
|
};
|
|
123494
123560
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123495
123561
|
|
|
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
|
|
123562
|
+
;// ./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
|
|
123563
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render = function render() {
|
|
123498
123564
|
var _vm = this,
|
|
123499
123565
|
_c = _vm._self._c;
|
|
123500
123566
|
return _c('div', {
|
|
@@ -123815,6 +123881,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123815
123881
|
}
|
|
123816
123882
|
})];
|
|
123817
123883
|
}
|
|
123884
|
+
}, {
|
|
123885
|
+
key: "operation",
|
|
123886
|
+
fn: function ({
|
|
123887
|
+
data
|
|
123888
|
+
}) {
|
|
123889
|
+
return [_c('el-link', {
|
|
123890
|
+
attrs: {
|
|
123891
|
+
"type": "primary",
|
|
123892
|
+
"size": "small",
|
|
123893
|
+
"underline": false
|
|
123894
|
+
},
|
|
123895
|
+
on: {
|
|
123896
|
+
"click": function ($event) {
|
|
123897
|
+
$event.stopPropagation();
|
|
123898
|
+
return _vm.recallMail(data.scope);
|
|
123899
|
+
}
|
|
123900
|
+
}
|
|
123901
|
+
}, [_vm._v("撤回")])];
|
|
123902
|
+
}
|
|
123818
123903
|
}])
|
|
123819
123904
|
}), _c('div', {
|
|
123820
123905
|
staticClass: "tool"
|
|
@@ -123856,7 +123941,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123856
123941
|
staticClass: "dss-iconfont"
|
|
123857
123942
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123858
123943
|
};
|
|
123859
|
-
var
|
|
123944
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns = [];
|
|
123860
123945
|
|
|
123861
123946
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123862
123947
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123944,6 +124029,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123944
124029
|
label: src_language.t("edm2.mailEn12"),
|
|
123945
124030
|
prop: "sendTime",
|
|
123946
124031
|
width: "200"
|
|
124032
|
+
}, {
|
|
124033
|
+
label: "操作",
|
|
124034
|
+
scope: "operation",
|
|
124035
|
+
width: "100"
|
|
123947
124036
|
}],
|
|
123948
124037
|
tableData: [],
|
|
123949
124038
|
loading: false,
|
|
@@ -123992,6 +124081,28 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123992
124081
|
localStorage.removeItem("searchFlag");
|
|
123993
124082
|
},
|
|
123994
124083
|
methods: {
|
|
124084
|
+
// 撤回邮件
|
|
124085
|
+
recallMail(row) {
|
|
124086
|
+
console.log(row, "row");
|
|
124087
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124088
|
+
confirmButtonText: "确定",
|
|
124089
|
+
cancelButtonText: "取消",
|
|
124090
|
+
type: "warning"
|
|
124091
|
+
}).then(() => {
|
|
124092
|
+
withdraw(row.id).then(res => {
|
|
124093
|
+
if (res.code == "0") {
|
|
124094
|
+
this.$message({
|
|
124095
|
+
type: "success",
|
|
124096
|
+
duration: 7000,
|
|
124097
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124098
|
+
});
|
|
124099
|
+
this.init();
|
|
124100
|
+
} else {
|
|
124101
|
+
this.$message.error(res.message);
|
|
124102
|
+
}
|
|
124103
|
+
});
|
|
124104
|
+
}).catch(() => {});
|
|
124105
|
+
},
|
|
123995
124106
|
// 主题-正文
|
|
123996
124107
|
changeContentMode(val) {
|
|
123997
124108
|
this.contentSelect = val;
|
|
@@ -124185,10 +124296,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124185
124296
|
});
|
|
124186
124297
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124187
124298
|
/* 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=
|
|
124299
|
+
;// ./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
124300
|
// extracted by mini-css-extract-plugin
|
|
124190
124301
|
|
|
124191
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124302
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=9dd5bd72&prod&lang=scss&scoped=true
|
|
124192
124303
|
|
|
124193
124304
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124194
124305
|
|
|
@@ -124201,18 +124312,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124201
124312
|
|
|
124202
124313
|
var singleSendMail_component = normalizeComponent(
|
|
124203
124314
|
components_singleSendMailvue_type_script_lang_js,
|
|
124204
|
-
|
|
124205
|
-
|
|
124315
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render,
|
|
124316
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns,
|
|
124206
124317
|
false,
|
|
124207
124318
|
null,
|
|
124208
|
-
"
|
|
124319
|
+
"9dd5bd72",
|
|
124209
124320
|
null
|
|
124210
124321
|
|
|
124211
124322
|
)
|
|
124212
124323
|
|
|
124213
124324
|
/* 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
|
|
124325
|
+
;// ./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
|
|
124326
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render = function render() {
|
|
124216
124327
|
var _vm = this,
|
|
124217
124328
|
_c = _vm._self._c;
|
|
124218
124329
|
return _c('div', {
|
|
@@ -124502,6 +124613,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124502
124613
|
}
|
|
124503
124614
|
})];
|
|
124504
124615
|
}
|
|
124616
|
+
}, {
|
|
124617
|
+
key: "operation",
|
|
124618
|
+
fn: function ({
|
|
124619
|
+
data
|
|
124620
|
+
}) {
|
|
124621
|
+
return [_c('el-link', {
|
|
124622
|
+
attrs: {
|
|
124623
|
+
"type": "primary",
|
|
124624
|
+
"size": "small",
|
|
124625
|
+
"underline": false
|
|
124626
|
+
},
|
|
124627
|
+
on: {
|
|
124628
|
+
"click": function ($event) {
|
|
124629
|
+
$event.stopPropagation();
|
|
124630
|
+
return _vm.recallMail(data.scope);
|
|
124631
|
+
}
|
|
124632
|
+
}
|
|
124633
|
+
}, [_vm._v("撤回")])];
|
|
124634
|
+
}
|
|
124505
124635
|
}])
|
|
124506
124636
|
}), _c('div', {
|
|
124507
124637
|
staticClass: "tool"
|
|
@@ -124528,7 +124658,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124528
124658
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124529
124659
|
})])])])], 1)]);
|
|
124530
124660
|
};
|
|
124531
|
-
var
|
|
124661
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns = [];
|
|
124532
124662
|
|
|
124533
124663
|
;// ./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
124664
|
|
|
@@ -124600,6 +124730,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124600
124730
|
label: src_language.t("edm2.mailEn12"),
|
|
124601
124731
|
prop: "sendTime",
|
|
124602
124732
|
width: "200"
|
|
124733
|
+
}, {
|
|
124734
|
+
label: "操作",
|
|
124735
|
+
scope: "operation",
|
|
124736
|
+
width: "100"
|
|
124603
124737
|
}],
|
|
124604
124738
|
contentInput: "",
|
|
124605
124739
|
contentSelect: "1",
|
|
@@ -124651,6 +124785,28 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124651
124785
|
localStorage.removeItem("searchFlag");
|
|
124652
124786
|
},
|
|
124653
124787
|
methods: {
|
|
124788
|
+
// 撤回邮件
|
|
124789
|
+
recallMail(row) {
|
|
124790
|
+
console.log(row, "row");
|
|
124791
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124792
|
+
confirmButtonText: "确定",
|
|
124793
|
+
cancelButtonText: "取消",
|
|
124794
|
+
type: "warning"
|
|
124795
|
+
}).then(() => {
|
|
124796
|
+
withdraw(row.id).then(res => {
|
|
124797
|
+
if (res.code == "0") {
|
|
124798
|
+
this.$message({
|
|
124799
|
+
type: "success",
|
|
124800
|
+
duration: 7000,
|
|
124801
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124802
|
+
});
|
|
124803
|
+
this.init();
|
|
124804
|
+
} else {
|
|
124805
|
+
this.$message.error(res.message);
|
|
124806
|
+
}
|
|
124807
|
+
});
|
|
124808
|
+
}).catch(() => {});
|
|
124809
|
+
},
|
|
124654
124810
|
// 去除html标签
|
|
124655
124811
|
filterHtmlTag(str) {
|
|
124656
124812
|
if (str) {
|
|
@@ -124862,10 +125018,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124862
125018
|
});
|
|
124863
125019
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124864
125020
|
/* 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=
|
|
125021
|
+
;// ./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
125022
|
// extracted by mini-css-extract-plugin
|
|
124867
125023
|
|
|
124868
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125024
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124869
125025
|
|
|
124870
125026
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124871
125027
|
|
|
@@ -124878,11 +125034,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124878
125034
|
|
|
124879
125035
|
var replySendMail_component = normalizeComponent(
|
|
124880
125036
|
components_replySendMailvue_type_script_lang_js,
|
|
124881
|
-
|
|
124882
|
-
|
|
125037
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render,
|
|
125038
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns,
|
|
124883
125039
|
false,
|
|
124884
125040
|
null,
|
|
124885
|
-
"
|
|
125041
|
+
"b7b4f6b0",
|
|
124886
125042
|
null
|
|
124887
125043
|
|
|
124888
125044
|
)
|
|
@@ -126350,8 +126506,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126350
126506
|
)
|
|
126351
126507
|
|
|
126352
126508
|
/* 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
|
|
126509
|
+
;// ./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
|
|
126510
|
+
var detailvue_type_template_id_6a248e40_scoped_true_render = function render() {
|
|
126355
126511
|
var _vm = this,
|
|
126356
126512
|
_c = _vm._self._c;
|
|
126357
126513
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126364,6 +126520,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126364
126520
|
}, [_c('i', {
|
|
126365
126521
|
staticClass: "el-icon-arrow-left"
|
|
126366
126522
|
})]), _c('div', {
|
|
126523
|
+
staticClass: "back recall_btn",
|
|
126524
|
+
on: {
|
|
126525
|
+
"click": _vm.recallMail
|
|
126526
|
+
}
|
|
126527
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126367
126528
|
staticClass: "mail-items-box"
|
|
126368
126529
|
}, [_c('div', {
|
|
126369
126530
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126590,7 +126751,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126590
126751
|
}
|
|
126591
126752
|
}) : _vm._e()], 1) : _vm._e();
|
|
126592
126753
|
};
|
|
126593
|
-
var
|
|
126754
|
+
var detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns = [function () {
|
|
126755
|
+
var _vm = this,
|
|
126756
|
+
_c = _vm._self._c;
|
|
126757
|
+
return _c('div', {
|
|
126758
|
+
staticClass: "re_box"
|
|
126759
|
+
}, [_c('i', {
|
|
126760
|
+
staticClass: "dss-iconfont btn_con"
|
|
126761
|
+
}, [_vm._v("")]), _c('span', {
|
|
126762
|
+
staticClass: "btn_con"
|
|
126763
|
+
}, [_vm._v("撤回")])]);
|
|
126764
|
+
}];
|
|
126765
|
+
|
|
126766
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=6a248e40&scoped=true
|
|
126594
126767
|
|
|
126595
126768
|
;// ./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
126769
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126839,6 +127012,27 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126839
127012
|
localStorage.setItem("searchFlag", true);
|
|
126840
127013
|
},
|
|
126841
127014
|
methods: {
|
|
127015
|
+
// 撤回邮件
|
|
127016
|
+
recallMail() {
|
|
127017
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127018
|
+
confirmButtonText: "确定",
|
|
127019
|
+
cancelButtonText: "取消",
|
|
127020
|
+
type: "warning"
|
|
127021
|
+
}).then(() => {
|
|
127022
|
+
withdraw(this.$route.query.id).then(res => {
|
|
127023
|
+
if (res.code == "0") {
|
|
127024
|
+
this.$message({
|
|
127025
|
+
type: "success",
|
|
127026
|
+
duration: 7000,
|
|
127027
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127028
|
+
});
|
|
127029
|
+
this.backToOutbox();
|
|
127030
|
+
} else {
|
|
127031
|
+
this.$message.error(res.message);
|
|
127032
|
+
}
|
|
127033
|
+
});
|
|
127034
|
+
}).catch(() => {});
|
|
127035
|
+
},
|
|
126842
127036
|
// 红人档案侧抽
|
|
126843
127037
|
toBloggerDeatil(item) {
|
|
126844
127038
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126970,10 +127164,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126970
127164
|
});
|
|
126971
127165
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126972
127166
|
/* 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=
|
|
127167
|
+
;// ./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
127168
|
// extracted by mini-css-extract-plugin
|
|
126975
127169
|
|
|
126976
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127170
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=6a248e40&prod&lang=scss&scoped=true
|
|
126977
127171
|
|
|
126978
127172
|
;// ./src/package/outbox-email/detail.vue
|
|
126979
127173
|
|
|
@@ -126986,11 +127180,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126986
127180
|
|
|
126987
127181
|
var outbox_email_detail_component = normalizeComponent(
|
|
126988
127182
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126989
|
-
|
|
126990
|
-
|
|
127183
|
+
detailvue_type_template_id_6a248e40_scoped_true_render,
|
|
127184
|
+
detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns,
|
|
126991
127185
|
false,
|
|
126992
127186
|
null,
|
|
126993
|
-
"
|
|
127187
|
+
"6a248e40",
|
|
126994
127188
|
null
|
|
126995
127189
|
|
|
126996
127190
|
)
|