wotokol-edm 1.1.19 → 1.1.21

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.
@@ -1513,7 +1513,7 @@ module.exports = function (IS_INCLUDES) {
1513
1513
 
1514
1514
  /***/ }),
1515
1515
 
1516
- /***/ 4194:
1516
+ /***/ 1813:
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__(4194);
1779
+ var cof = __webpack_require__(1813);
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__(4194);
1792
+ var cof = __webpack_require__(1813);
1793
1793
  module.exports = Array.isArray || function isArray(arg) {
1794
1794
  return cof(arg) == 'Array';
1795
1795
  };
@@ -85284,7 +85284,7 @@ if (typeof window !== 'undefined') {
85284
85284
  var esnext_iterator_constructor = __webpack_require__(8992);
85285
85285
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
85286
85286
  var esnext_iterator_for_each = __webpack_require__(3949);
85287
- ;// ./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-button/index.vue?vue&type=template&id=380dc28b&scoped=true
85287
+ ;// ./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-button/index.vue?vue&type=template&id=30d1fc8e&scoped=true
85288
85288
  var render = function render() {
85289
85289
  var _vm = this,
85290
85290
  _c = _vm._self._c;
@@ -91223,10 +91223,8 @@ async function test_test(params) {
91223
91223
  // 模拟 hub 登陆 测试账号
91224
91224
  // mobileOrEmail: "13262005357",
91225
91225
  // password: "123123123"
91226
- // mobileOrEmail: "18846078060",
91227
- // password: "asd123456"
91228
- mobileOrEmail: "18767117493",
91229
- password: "tm123456789"
91226
+ mobileOrEmail: "18846078060",
91227
+ password: "asd123456"
91230
91228
  // mobileOrEmail: "15658187195",
91231
91229
  // password: "wotu987412365"
91232
91230
  }).then(res => {
@@ -91378,7 +91376,7 @@ var component = normalizeComponent(
91378
91376
  staticRenderFns,
91379
91377
  false,
91380
91378
  null,
91381
- "380dc28b",
91379
+ "30d1fc8e",
91382
91380
  null
91383
91381
 
91384
91382
  )
@@ -98677,14 +98675,6 @@ function delTags(id) {
98677
98675
  function addTags(data) {
98678
98676
  return request_post(`/edm/tag/addSign`, data);
98679
98677
  }
98680
- // 获取账号
98681
- function hubUserSonFather(params) {
98682
- return request_get(`/user/hubUser/sonFather`, params);
98683
- }
98684
- // 分页查看模板列表
98685
- function templatesList(params) {
98686
- return request_get(`/edm/template/templates`, params);
98687
- }
98688
98678
  ;// ./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
98689
98679
  var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
98690
98680
  var _vm = this,
@@ -99427,8 +99417,16 @@ function getBlob(url, cb) {
99427
99417
  xhr.onload = function () {
99428
99418
  if (xhr.status === 200) {
99429
99419
  cb(xhr.response);
99420
+ } else {
99421
+ window.open(url, "_blank");
99422
+ return false;
99430
99423
  }
99431
99424
  };
99425
+ // 处理网络错误
99426
+ xhr.onerror = function () {
99427
+ window.open(url, "_blank");
99428
+ return false;
99429
+ };
99432
99430
  xhr.send();
99433
99431
  }
99434
99432
  // 保存
@@ -106581,10 +106579,6 @@ function comeGoBloggerPage(data) {
106581
106579
  function pagePlan(data) {
106582
106580
  return post(`/user/popularize/pagePlan`, data);
106583
106581
  }
106584
- // 撤回邮件
106585
- function withdraw(id) {
106586
- return request_get(`/edm/outbox/withdraw/groupId/${id}`);
106587
- }
106588
106582
  ;// ./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
106589
106583
 
106590
106584
 
@@ -109227,8 +109221,8 @@ var detail_component = normalizeComponent(
109227
109221
  )
109228
109222
 
109229
109223
  /* harmony default export */ var detail = (detail_component.exports);
109230
- ;// ./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=3564e8e7&scoped=true
109231
- var write_emailvue_type_template_id_3564e8e7_scoped_true_render = function render() {
109224
+ ;// ./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=6c2fdda1&scoped=true
109225
+ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function render() {
109232
109226
  var _vm = this,
109233
109227
  _c = _vm._self._c;
109234
109228
  return _c('div', {
@@ -109593,17 +109587,7 @@ var write_emailvue_type_template_id_3564e8e7_scoped_true_render = function rende
109593
109587
  staticClass: "el-icon-loading"
109594
109588
  }) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
109595
109589
  staticClass: "operate-right"
109596
- }, [_c('el-button', {
109597
- staticClass: "operate-btn",
109598
- attrs: {
109599
- "disabled": _vm.loading
109600
- },
109601
- on: {
109602
- "click": _vm.saveMailTemplate
109603
- }
109604
- }, [_vm.loading ? _c('i', {
109605
- staticClass: "el-icon-loading"
109606
- }) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
109590
+ }, [_vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
109607
109591
  staticClass: "operate-btn",
109608
109592
  attrs: {
109609
109593
  "disabled": _vm.loading
@@ -109968,20 +109952,9 @@ var write_emailvue_type_template_id_3564e8e7_scoped_true_render = function rende
109968
109952
  },
109969
109953
  "updateNickName": val => _vm.nickName = val
109970
109954
  }
109971
- }) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
109972
- attrs: {
109973
- "tempProductCard": _vm.tempProductCard,
109974
- "mailTempList": _vm.mailList,
109975
- "visible": _vm.saveMailTempDialogVisible
109976
- },
109977
- on: {
109978
- "update:visible": function ($event) {
109979
- _vm.saveMailTempDialogVisible = $event;
109980
- }
109981
- }
109982
109955
  }) : _vm._e()], 1);
109983
109956
  };
109984
- var write_emailvue_type_template_id_3564e8e7_scoped_true_staticRenderFns = [function () {
109957
+ var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [function () {
109985
109958
  var _vm = this,
109986
109959
  _c = _vm._self._c;
109987
109960
  return _c('div', {
@@ -110002,7 +109975,7 @@ var write_emailvue_type_template_id_3564e8e7_scoped_true_staticRenderFns = [func
110002
109975
  }, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
110003
109976
  }];
110004
109977
 
110005
- ;// ./src/package/write-email/index.vue?vue&type=template&id=3564e8e7&scoped=true
109978
+ ;// ./src/package/write-email/index.vue?vue&type=template&id=6c2fdda1&scoped=true
110006
109979
 
110007
109980
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
110008
109981
  var es_set_difference_v2 = __webpack_require__(7642);
@@ -114359,59 +114332,6 @@ const moneyTypeOpts = [{
114359
114332
  code: "IDR",
114360
114333
  symbol: "Rp"
114361
114334
  }];
114362
- const const_language = [{
114363
- value: 7,
114364
- label: '汉语',
114365
- enLabel: 'Chinese'
114366
- }, {
114367
- value: 1,
114368
- label: '英语',
114369
- enLabel: 'English'
114370
- }, {
114371
- value: 3,
114372
- label: '法语',
114373
- enLabel: 'French'
114374
- }, {
114375
- value: 8,
114376
- label: '德语',
114377
- enLabel: 'German'
114378
- }, {
114379
- value: 6,
114380
- label: '日语',
114381
- enLabel: 'Japanese'
114382
- }, {
114383
- value: 9,
114384
- label: '韩语',
114385
- enLabel: 'Korean'
114386
- }, {
114387
- value: 10,
114388
- label: '越南语',
114389
- enLabel: 'Vietnamese'
114390
- }, {
114391
- value: 11,
114392
- label: '泰国语',
114393
- enLabel: 'Thai'
114394
- }, {
114395
- value: 12,
114396
- label: '菲律宾语',
114397
- enLabel: 'Filipino'
114398
- }, {
114399
- value: 13,
114400
- label: '印度尼西亚语',
114401
- enLabel: 'Indonesian'
114402
- }, {
114403
- value: 14,
114404
- label: '俄罗斯语',
114405
- enLabel: 'Russian'
114406
- }, {
114407
- value: 4,
114408
- label: '西班牙语',
114409
- enLabel: 'Spanish'
114410
- }, {
114411
- value: 15,
114412
- label: '意大利语',
114413
- enLabel: 'Italian'
114414
- }];
114415
114335
  ;// ./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
114416
114336
 
114417
114337
 
@@ -118422,719 +118342,1004 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
118422
118342
  };
118423
118343
  var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
118424
118344
 
118425
- ;// ./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=d1b92a60&scoped=true
118426
-
118427
-
118428
- var TemplateListvue_type_template_id_d1b92a60_scoped_true_render = function render() {
118345
+ ;// ./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=13a1b12d&scoped=true
118346
+ var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function render() {
118429
118347
  var _vm = this,
118430
118348
  _c = _vm._self._c;
118431
118349
  return _c('div', {
118432
118350
  staticClass: "wrap"
118433
118351
  }, [_c('div', {
118434
- staticClass: "inbox-search-wrap"
118435
- }, [_c('el-row', {
118436
- attrs: {
118437
- "gutter": 12
118438
- }
118439
- }, [_c('el-col', {
118440
- attrs: {
118441
- "span": 8
118442
- }
118352
+ staticClass: "grid grid-cols-3 px24 mb24"
118443
118353
  }, [_c('div', {
118444
- staticClass: "col-item col-select-input-item"
118354
+ staticClass: "form-item mr16"
118445
118355
  }, [_c('el-select', {
118446
- staticClass: "template_select",
118447
- attrs: {
118448
- "slot": "prepend",
118449
- "placeholder": _vm.$i18n.t('common.please_select')
118450
- },
118451
118356
  on: {
118452
118357
  "change": function ($event) {
118453
- _vm.searchForm.scene = '';
118454
- _vm.contentInput = '';
118358
+ _vm.searchForm.currentPage = 1;
118359
+ _vm.searchForm.modelLanguage = _vm.searchForm.type === 1 ? 1 : '';
118360
+ _vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
118361
+ _vm.init();
118455
118362
  }
118456
118363
  },
118457
- slot: "prepend",
118458
118364
  model: {
118459
- value: _vm.contentSelect,
118365
+ value: _vm.searchForm.type,
118460
118366
  callback: function ($$v) {
118461
- _vm.contentSelect = $$v;
118367
+ _vm.$set(_vm.searchForm, "type", $$v);
118462
118368
  },
118463
- expression: "contentSelect"
118369
+ expression: "searchForm.type"
118464
118370
  }
118465
118371
  }, [_c('el-option', {
118466
118372
  attrs: {
118467
- "label": "模版名称",
118468
- "value": "1"
118373
+ "label": _vm.$i18n.t('template.system_template'),
118374
+ "value": 1
118469
118375
  }
118470
118376
  }), _c('el-option', {
118471
118377
  attrs: {
118472
- "label": "应用场景",
118473
- "value": "2"
118378
+ "label": _vm.$i18n.t('template.custom_template'),
118379
+ "value": 2
118474
118380
  }
118475
- })], 1), _vm.searchForm.type == 1 && _vm.contentSelect == 2 ? _c('div', {
118476
- staticClass: "temp_right"
118381
+ })], 1)], 1), _c('div', {
118382
+ staticClass: "form-item mr24"
118477
118383
  }, [_c('el-select', {
118478
118384
  attrs: {
118479
- "slot": "prepend",
118480
- "placeholder": _vm.$i18n.t('common.please_select')
118385
+ "placeholder": _vm.$i18n.t('template.template_language'),
118386
+ "clearable": ""
118387
+ },
118388
+ on: {
118389
+ "change": function ($event) {
118390
+ _vm.searchForm.currentPage = 1;
118391
+ _vm.init();
118392
+ }
118481
118393
  },
118482
- slot: "prepend",
118483
118394
  model: {
118484
- value: _vm.searchForm.scene,
118395
+ value: _vm.searchForm.modelLanguage,
118485
118396
  callback: function ($$v) {
118486
- _vm.$set(_vm.searchForm, "scene", $$v);
118397
+ _vm.$set(_vm.searchForm, "modelLanguage", $$v);
118487
118398
  },
118488
- expression: "searchForm.scene"
118399
+ expression: "searchForm.modelLanguage"
118489
118400
  }
118490
- }, _vm._l(_vm.templateSystemScene, function (scene) {
118401
+ }, _vm._l(_vm.searchForm.type === 1 ? _vm.enumData.sysLanguage : _vm.enumData.modelLanguage, function (t, i) {
118491
118402
  return _c('el-option', {
118492
- key: scene.value,
118403
+ key: i,
118493
118404
  attrs: {
118494
- "label": scene.label,
118495
- "value": scene.value
118405
+ "value": Number(t.value),
118406
+ "label": _vm.$i18n.locale === 'zh' || _vm.$i18n.locale === 'zh-CN' ? t.label : t.enLabel
118496
118407
  }
118497
118408
  });
118498
- }), 1)], 1) : _c('div', {
118499
- staticClass: "temp_right"
118500
- }, [_c('el-input', {
118501
- staticClass: "col-input-select",
118502
- attrs: {
118503
- "placeholder": _vm.$i18n.t('common.please_input')
118409
+ }), 1)], 1), _c('div', {
118410
+ staticClass: "form-item"
118411
+ }, [_c('button', {
118412
+ staticClass: "search-btn search-btn-face",
118413
+ on: {
118414
+ "click": function ($event) {
118415
+ _vm.isShowSet = true;
118416
+ }
118417
+ }
118418
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.create_template")) + " ")])])]), _vm.searchForm.type === 1 ? _c('div', {
118419
+ staticClass: "tab px24 mb24"
118420
+ }, [_c('el-tabs', {
118421
+ on: {
118422
+ "tab-click": _vm.swicthTab
118504
118423
  },
118505
118424
  model: {
118506
- value: _vm.contentInput,
118425
+ value: _vm.searchForm.modelType,
118507
118426
  callback: function ($$v) {
118508
- _vm.contentInput = $$v;
118427
+ _vm.$set(_vm.searchForm, "modelType", $$v);
118509
118428
  },
118510
- expression: "contentInput"
118429
+ expression: "searchForm.modelType"
118511
118430
  }
118512
- })], 1)], 1)]), _c('el-col', {
118513
- attrs: {
118514
- "span": 8
118515
- }
118516
- }, [_c('div', {
118517
- staticClass: "col-item col-select-input-item"
118518
- }, [_c('el-input', {
118519
- staticClass: "col-input-select",
118431
+ }, _vm._l(_vm.tabOpts, function (item) {
118432
+ return _c('el-tab-pane', {
118433
+ key: item.name,
118434
+ attrs: {
118435
+ "name": item.name,
118436
+ "label": item.label
118437
+ }
118438
+ });
118439
+ }), 1)], 1) : _vm._e(), _c('div', {
118440
+ directives: [{
118441
+ name: "loading",
118442
+ rawName: "v-loading",
118443
+ value: _vm.loading,
118444
+ expression: "loading"
118445
+ }],
118446
+ staticClass: "list hidden-scrollbar"
118447
+ }, [_vm.tableTotal ? _vm._l(_vm.tableData, function (t, i) {
118448
+ return _c('div', {
118449
+ key: i,
118450
+ staticClass: "list-item grid grid-cols-2 mb16"
118451
+ }, [_c('div', {
118452
+ staticClass: "desc"
118453
+ }, [_c('h3', {
118454
+ staticClass: "beyond_eip mb16"
118455
+ }, [_vm._v(" " + _vm._s(t.templatesTitle) + " ")]), _c('p', {
118456
+ staticClass: "beyond_eip mb8"
118457
+ }, [_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', {
118458
+ staticClass: "operate"
118459
+ }, [_c('button', {
118460
+ staticClass: "operate-detail",
118461
+ on: {
118462
+ "click": function ($event) {
118463
+ return _vm.showSetTemplate(t);
118464
+ }
118465
+ }
118466
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.detail"))), _c('i', {
118467
+ staticClass: "dss-iconfont icon-arrow"
118468
+ })]), _c('div', {
118469
+ staticClass: "operate-btns"
118470
+ }, [_vm.searchForm.type == 2 || _vm.searchForm.type == 1 && _vm.userId == 1 ? _c('button', {
118471
+ staticClass: "operate-btn operate-btn-linear mr8",
118472
+ on: {
118473
+ "click": function ($event) {
118474
+ return _vm.del(t.id);
118475
+ }
118476
+ }
118477
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.delete")) + " ")]) : _vm._e(), _vm.searchForm.type === 2 && _vm.userId === 1 ? _c('el-button', {
118478
+ staticClass: "operate-btn-setsys mr8",
118479
+ attrs: {
118480
+ "type": "primary",
118481
+ "size": "small"
118482
+ },
118483
+ on: {
118484
+ "click": function ($event) {
118485
+ return _vm.showSetSystem(t);
118486
+ }
118487
+ }
118488
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.set_system_template")) + " ")]) : _vm._e(), t.isShowDownload === 1 ? _c('el-button', {
118489
+ staticClass: "mr8",
118490
+ attrs: {
118491
+ "type": "primary",
118492
+ "size": "small"
118493
+ },
118494
+ on: {
118495
+ "click": function ($event) {
118496
+ return _vm.downloadTem(t);
118497
+ }
118498
+ }
118499
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.download")) + " ")]) : _vm._e(), _c('el-button', {
118500
+ attrs: {
118501
+ "type": "primary",
118502
+ "size": "small"
118503
+ },
118504
+ on: {
118505
+ "click": function ($event) {
118506
+ return _vm.setMailTemplate(t);
118507
+ }
118508
+ }
118509
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.apply")) + " ")])], 1)])]);
118510
+ }) : _vm._e(), !_vm.tableTotal ? _c('div', {
118511
+ staticClass: "w-full h-full flex items-center justify-center"
118512
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.no_data")) + " ")]) : _vm._e()], 2), _c('div', {
118513
+ staticClass: "list-page"
118514
+ }, [_c('el-pagination', {
118520
118515
  attrs: {
118521
- "placeholder": _vm.$i18n.t('common.please_input')
118516
+ "current-page": _vm.searchForm.currentPage,
118517
+ "total": _vm.tableTotal,
118518
+ "page-size": _vm.searchForm.pageSize,
118519
+ "pager-count": 5,
118520
+ "small": "",
118521
+ "layout": "total, prev, pager, next, jumper"
118522
118522
  },
118523
- model: {
118524
- value: _vm.mailTitleInput,
118525
- callback: function ($$v) {
118526
- _vm.mailTitleInput = $$v;
118527
- },
118528
- expression: "mailTitleInput"
118523
+ on: {
118524
+ "current-change": _vm.changePage
118529
118525
  }
118530
- }, [_c('el-select', {
118526
+ })], 1), _c('el-drawer', {
118531
118527
  attrs: {
118532
- "slot": "prepend",
118533
- "placeholder": _vm.$i18n.t('common.please_select')
118528
+ "visible": _vm.isShowSet,
118529
+ "with-header": false,
118530
+ "wrapper-closable": false,
118531
+ "append-to-body": "",
118532
+ "size": "800px"
118534
118533
  },
118535
118534
  on: {
118536
- "change": function ($event) {
118537
- _vm.mailTitleInput = '';
118538
- _vm.searchForm.content = '';
118539
- _vm.searchForm.mailSubject = '';
118535
+ "update:visible": function ($event) {
118536
+ _vm.isShowSet = $event;
118540
118537
  }
118538
+ }
118539
+ }, [_vm.isShowSet ? _c('set-template', {
118540
+ attrs: {
118541
+ "id": _vm.setId,
118542
+ "rowData": _vm.rowData,
118543
+ "selectType": _vm.searchForm.type
118541
118544
  },
118542
- slot: "prepend",
118543
- model: {
118544
- value: _vm.mailTitleSelect,
118545
- callback: function ($$v) {
118546
- _vm.mailTitleSelect = $$v;
118545
+ on: {
118546
+ "init": function ($event) {
118547
+ _vm.searchForm.currentPage = 1;
118548
+ _vm.init();
118547
118549
  },
118548
- expression: "mailTitleSelect"
118550
+ "close": function ($event) {
118551
+ _vm.setId = 0;
118552
+ _vm.isShowSet = false;
118553
+ }
118549
118554
  }
118550
- }, [_c('el-option', {
118555
+ }) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
118551
118556
  attrs: {
118552
- "label": _vm.$t('edm2.mailEn6'),
118553
- "value": "1"
118557
+ "isShowSetSystem": _vm.isShowSetSystem,
118558
+ "tabOpts": _vm.tabOpts,
118559
+ "mailId": _vm.mailId
118560
+ },
118561
+ on: {
118562
+ "closeDialog": _vm.closeDialog
118554
118563
  }
118555
- }), _c('el-option', {
118556
- attrs: {
118557
- "label": _vm.$t('edm2.mailEn7'),
118558
- "value": "2"
118564
+ }) : _vm._e()], 1);
118565
+ };
118566
+ var TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns = [];
118567
+
118568
+ ;// ./src/api/send/template.js
118569
+
118570
+ // 分页查看模板列表
118571
+ async function getTemplateList(params) {
118572
+ let res = await request_get("/edm/template/templates", params);
118573
+ return res;
118574
+ }
118575
+ // 添加模板
118576
+ async function addTemplate(data) {
118577
+ let res = await request_post("/edm/template/addTemplate", data);
118578
+ return res;
118579
+ }
118580
+ // 编辑模板
118581
+ async function editTemplate(data) {
118582
+ let res = await request_post("/edm/template/editTemplate", data);
118583
+ return res;
118584
+ }
118585
+ // 删除模板
118586
+ async function delTemplate(data) {
118587
+ let res = await request_del(`/edm/template/delTemplate/${data.id}`);
118588
+ return res;
118589
+ }
118590
+ // 设为系统模版
118591
+ async function setSysTemplate(data) {
118592
+ let res = await request_put(`/edm/template/setSysTemplate`, data);
118593
+ return res;
118594
+ }
118595
+ ;// ./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
118596
+ var SetTemplatevue_type_template_id_87417d06_scoped_true_render = function render() {
118597
+ var _vm = this,
118598
+ _c = _vm._self._c;
118599
+ return _c('div', {
118600
+ staticClass: "drawer"
118601
+ }, [_c('div', {
118602
+ staticClass: "drawer-head"
118603
+ }, [_c('h3', [_vm._v(" " + _vm._s(_vm.id ? `${_vm.$i18n.t("template.edit_template")}` : `${_vm.$i18n.t("template.new_template")}`) + " ")]), _c('button', {
118604
+ staticClass: "close-btn",
118605
+ on: {
118606
+ "click": function ($event) {
118607
+ return _vm.close();
118608
+ }
118559
118609
  }
118560
- })], 1)], 1)], 1)]), _c('el-col', {
118610
+ }, [_c('i', {
118611
+ staticClass: "dss-iconfont icon-close"
118612
+ })])]), _c('div', {
118613
+ staticClass: "drawer-body hidden-scrollbar"
118614
+ }, [_c('el-form', {
118615
+ ref: "form",
118561
118616
  attrs: {
118562
- "span": 8
118617
+ "model": _vm.form,
118618
+ "rules": _vm.verifyForm
118563
118619
  }
118564
118620
  }, [_c('div', {
118565
- staticClass: "col-item"
118566
- }, [_c('span', {
118567
- staticClass: "col-span"
118568
- }, [_vm._v("模版语言")]), _c('el-select', {
118569
- staticClass: "col-select",
118621
+ staticClass: "form-item"
118622
+ }, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
118570
118623
  attrs: {
118571
- "placeholder": _vm.$i18n.t('common.please_select'),
118572
- "clearable": "",
118573
- "filterable": ""
118624
+ "prop": "templatesTitle"
118625
+ }
118626
+ }, [_c('el-input', {
118627
+ attrs: {
118628
+ "disabled": _vm.selectType == 1 && !!_vm.id,
118629
+ "placeholder": _vm.$i18n.t('common.please_input') + `(30` + _vm.$i18n.t('template.word_limit') + `)`,
118630
+ "clearable": ""
118574
118631
  },
118575
118632
  model: {
118576
- value: _vm.searchForm.modelLanguage,
118633
+ value: _vm.form.templatesTitle,
118577
118634
  callback: function ($$v) {
118578
- _vm.$set(_vm.searchForm, "modelLanguage", $$v);
118635
+ _vm.$set(_vm.form, "templatesTitle", $$v);
118579
118636
  },
118580
- expression: "searchForm.modelLanguage"
118581
- }
118582
- }, _vm._l(_vm.language, function (item) {
118583
- return _c('el-option', {
118584
- key: item.value,
118585
- attrs: {
118586
- "value": item.value,
118587
- "label": item.label
118588
- }
118589
- });
118590
- }), 1)], 1)])], 1), _c('el-row', {
118591
- staticStyle: {
118592
- "margin-top": "8px"
118593
- },
118594
- attrs: {
118595
- "gutter": 12
118637
+ expression: "form.templatesTitle"
118596
118638
  }
118597
- }, [_c('el-col', {
118639
+ })], 1)], 1), _c('div', {
118640
+ staticClass: "form-item"
118641
+ }, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
118598
118642
  attrs: {
118599
- "span": 8
118643
+ "prop": "mailSubject"
118600
118644
  }
118601
- }, [_c('div', {
118602
- staticClass: "col-item"
118603
- }, [_c('span', {
118604
- staticClass: "col-span"
118605
- }, [_vm._v("模板类型")]), _c('el-select', {
118606
- staticClass: "col-select",
118645
+ }, [_c('el-input', {
118646
+ ref: "mailSubjectIpt",
118607
118647
  attrs: {
118608
- "placeholder": _vm.$i18n.t('common.please_select'),
118648
+ "disabled": _vm.selectType == 1 && !!_vm.id,
118649
+ "placeholder": _vm.$i18n.t('common.please_input'),
118609
118650
  "clearable": ""
118610
118651
  },
118611
118652
  on: {
118612
- "change": _vm.modelTypeChange
118653
+ "focus": function ($event) {
118654
+ _vm.isFocusSubject = true;
118655
+ }
118613
118656
  },
118614
118657
  model: {
118615
- value: _vm.searchForm.type,
118658
+ value: _vm.form.mailSubject,
118616
118659
  callback: function ($$v) {
118617
- _vm.$set(_vm.searchForm, "type", $$v);
118660
+ _vm.$set(_vm.form, "mailSubject", $$v);
118618
118661
  },
118619
- expression: "searchForm.type"
118662
+ expression: "form.mailSubject"
118620
118663
  }
118621
- }, [_c('el-option', {
118622
- key: 1,
118664
+ })], 1)], 1), _c('div', {
118665
+ staticClass: "form-editor mb24"
118666
+ }, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.content")))]), _c('div', {
118667
+ staticClass: "form-editor-wrap"
118668
+ }, [_c('editor', {
118669
+ ref: "templateContent",
118623
118670
  attrs: {
118624
- "value": 1,
118625
- "label": "系统模版"
118671
+ "height": 400,
118672
+ "theme": "light"
118673
+ },
118674
+ on: {
118675
+ "click": function ($event) {
118676
+ _vm.isFocusSubject = false;
118677
+ }
118626
118678
  }
118627
- }), _c('el-option', {
118628
- key: 2,
118679
+ }), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
118680
+ staticClass: "form-tool"
118681
+ }, [_c('div', {
118682
+ staticClass: "form-tool-title"
118683
+ }, [_c('i', {
118684
+ staticClass: "dss-iconfont icon-info"
118685
+ }), _c('p', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.template_var")))])]), _c('div', {
118686
+ staticClass: "form-tool-main"
118687
+ }, [_c('button', {
118688
+ staticClass: "mb8 mr16",
118629
118689
  attrs: {
118630
- "value": 2,
118631
- "label": "自定义模版"
118690
+ "disabled": _vm.selectType == 1 && !!_vm.id
118691
+ },
118692
+ on: {
118693
+ "click": function ($event) {
118694
+ $event.preventDefault();
118695
+ return _vm.setVariable(0);
118696
+ }
118632
118697
  }
118633
- })], 1)], 1)]), _c('el-col', {
118698
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_name")) + " ")]), _c('button', {
118699
+ staticClass: "mb8 mr16",
118700
+ on: {
118701
+ "click": function ($event) {
118702
+ $event.preventDefault();
118703
+ return _vm.setVariable(3);
118704
+ }
118705
+ }
118706
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_Id")) + " ")]), _c('button', {
118707
+ staticClass: "mb8 mr16",
118708
+ attrs: {
118709
+ "disabled": _vm.selectType == 1 && !!_vm.id
118710
+ },
118711
+ on: {
118712
+ "click": function ($event) {
118713
+ $event.preventDefault();
118714
+ return _vm.setVariable(1);
118715
+ }
118716
+ }
118717
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.fans_num")) + " ")]), _c('button', {
118634
118718
  attrs: {
118635
- "span": 8
118719
+ "disabled": _vm.selectType == 1 && !!_vm.id
118720
+ },
118721
+ on: {
118722
+ "click": function ($event) {
118723
+ $event.preventDefault();
118724
+ return _vm.setVariable(2);
118725
+ }
118636
118726
  }
118637
- }, [_c('div', {
118638
- staticClass: "col-item"
118639
- }, [_c('span', {
118640
- staticClass: "col-span"
118641
- }, [_vm._v("共享状态")]), _c('el-select', {
118642
- staticClass: "col-select",
118727
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_link")) + " ")])])]) : _vm._e()], 1)]), _c('div', {
118728
+ staticClass: "form-item"
118729
+ }, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
118643
118730
  attrs: {
118644
- "placeholder": _vm.$i18n.t('common.please_select'),
118731
+ "prop": "scene"
118732
+ }
118733
+ }, [_c('el-input', {
118734
+ attrs: {
118735
+ "placeholder": _vm.$i18n.t('common.please_input') + `(20` + _vm.$i18n.t('template.word_limit') + `)`,
118736
+ "disabled": _vm.selectType == 1 && !!_vm.id,
118645
118737
  "clearable": ""
118646
118738
  },
118647
118739
  model: {
118648
- value: _vm.searchForm.isShared,
118740
+ value: _vm.form.scene,
118649
118741
  callback: function ($$v) {
118650
- _vm.$set(_vm.searchForm, "isShared", $$v);
118742
+ _vm.$set(_vm.form, "scene", $$v);
118651
118743
  },
118652
- expression: "searchForm.isShared"
118653
- }
118654
- }, [_c('el-option', {
118655
- key: 1,
118656
- attrs: {
118657
- "value": true,
118658
- "label": "公开"
118659
- }
118660
- }), _c('el-option', {
118661
- key: 2,
118662
- attrs: {
118663
- "value": false,
118664
- "label": "私有"
118744
+ expression: "form.scene"
118665
118745
  }
118666
- })], 1)], 1)]), _c('el-col', {
118746
+ })], 1)], 1), _c('div', {
118747
+ staticClass: "form-item mb24"
118748
+ }, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
118667
118749
  attrs: {
118668
- "span": 8
118750
+ "prop": "modelLanguage"
118669
118751
  }
118670
- }, [_c('div', {
118671
- staticClass: "col-item"
118672
- }, [_c('span', {
118673
- staticClass: "col-span"
118674
- }, [_vm._v("创建人")]), _c('el-select', {
118675
- staticClass: "col-select",
118752
+ }, [_c('el-select', {
118676
118753
  attrs: {
118677
118754
  "placeholder": _vm.$i18n.t('common.please_select'),
118678
- "clearable": "",
118679
- "filterable": ""
118755
+ "disabled": _vm.selectType == 1 && !!_vm.id,
118756
+ "clearable": ""
118680
118757
  },
118681
118758
  model: {
118682
- value: _vm.searchForm.userId,
118759
+ value: _vm.form.modelLanguage,
118683
118760
  callback: function ($$v) {
118684
- _vm.$set(_vm.searchForm, "userId", $$v);
118761
+ _vm.$set(_vm.form, "modelLanguage", $$v);
118685
118762
  },
118686
- expression: "searchForm.userId"
118763
+ expression: "form.modelLanguage"
118687
118764
  }
118688
- }, _vm._l(_vm.accountList, function (item) {
118765
+ }, _vm._l(_vm.enumData.language, function (t, i) {
118689
118766
  return _c('el-option', {
118690
- key: item.userId,
118767
+ key: i,
118691
118768
  attrs: {
118692
- "label": item.userName,
118693
- "value": item.userId
118769
+ "value": Number(t.value),
118770
+ "label": t.label
118694
118771
  }
118695
118772
  });
118696
- }), 1)], 1)])], 1), _c('el-row', {
118697
- staticStyle: {
118698
- "margin-top": "8px"
118699
- },
118700
- attrs: {
118701
- "gutter": 20
118702
- }
118703
- }, [_c('el-col', {
118704
- attrs: {
118705
- "span": 24
118706
- }
118707
- }, [_c('div', {
118708
- staticClass: "btns_box"
118709
- }, [_c('div', [_c('el-button', {
118710
- attrs: {
118711
- "type": "primary"
118712
- },
118773
+ }), 1)], 1)], 1)])], 1), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
118774
+ staticClass: "drawer-foot"
118775
+ }, [_c('button', {
118776
+ staticClass: "drawer-btn drawer-btn-linear mr24",
118713
118777
  on: {
118714
118778
  "click": function ($event) {
118715
- _vm.searchForm.currentPage = 1;
118716
- _vm.getCardList();
118779
+ return _vm.close();
118717
118780
  }
118718
118781
  }
118719
- }, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
118720
- on: {
118721
- "click": _vm.resetEvt
118722
- }
118723
- }, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
118724
- staticStyle: {
118725
- "display": "flex",
118726
- "align-items": "center"
118727
- }
118728
- }, [_c('div', {
118729
- staticClass: "right_sort"
118730
- }, [_c('el-dropdown', {
118731
- attrs: {
118732
- "placement": "bottom"
118733
- }
118734
- }, [_c('div', {
118735
- staticClass: "sort_btn"
118736
- }, [_c('i', {
118737
- staticClass: "dss-iconfont"
118738
- }, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
118739
- attrs: {
118740
- "slot": "dropdown"
118741
- },
118742
- slot: "dropdown"
118743
- }, _vm._l(_vm.sortConfig, function (item, index) {
118744
- return _c('el-dropdown-item', {
118745
- key: index,
118746
- staticStyle: {
118747
- "white-space": "nowrap"
118748
- },
118749
- attrs: {
118750
- "command": item.value
118751
- },
118752
- nativeOn: {
118753
- "click": function ($event) {
118754
- return _vm.clickDropdownItem(item);
118755
- }
118756
- }
118757
- }, [_vm._v(_vm._s(item.label))]);
118758
- }), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
118759
- directives: [{
118760
- name: "loading",
118761
- rawName: "v-loading",
118762
- value: _vm.loading,
118763
- expression: "loading"
118764
- }],
118765
- staticClass: "temp_box"
118766
- }, [_vm.templateList.length ? _c('div', {
118767
- staticClass: "temp_list"
118768
- }, _vm._l(_vm.templateList, function (item) {
118769
- return _c('div', {
118770
- key: item.id,
118771
- staticClass: "temp_item"
118772
- }, [_c('div', {
118773
- staticClass: "temp_content"
118774
- }, [_c('div', {
118775
- staticClass: "temp_top"
118776
- }, [_c('div', {
118777
- staticClass: "temp_title"
118778
- }, [_c('div', {
118779
- staticClass: "title_text"
118780
- }, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
118781
- staticClass: "more_icon",
118782
- on: {
118783
- "click": function ($event) {
118784
- return _vm.toDetail(item);
118785
- }
118786
- }
118787
- }, [_vm._v(" 详情"), _c('i', {
118788
- staticClass: "el-icon-arrow-right"
118789
- })])]), _c('div', {
118790
- staticClass: "num_box"
118791
- }, [_c('div', {
118792
- staticClass: "lang_box"
118793
- }, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), item.attachmentNum ? _c('div', {
118794
- staticClass: "lang_box"
118795
- }, [_vm._v(" 附件:" + _vm._s(item.attachmentNum) + "个 ")]) : _vm._e(), item.productCardNum ? _c('div', {
118796
- staticClass: "lang_box"
118797
- }, [_vm._v(" 商品卡:" + _vm._s(item.productCardNum) + "个 ")]) : _vm._e()])]), _c('div', {
118798
- staticClass: "temp_middle"
118799
- }, [_c('div', {
118800
- staticClass: "nu_box"
118801
- }, [_c('div', {
118802
- staticClass: "nu_title"
118803
- }, [_vm._v("送达率")]), _c('div', {
118804
- staticClass: "nu_number"
118805
- }, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
118806
- staticClass: "nu_box"
118807
- }, [_c('div', {
118808
- staticClass: "nu_title"
118809
- }, [_vm._v("打开率")]), _c('div', {
118810
- staticClass: "nu_number"
118811
- }, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
118812
- staticClass: "nu_box"
118813
- }, [_c('div', {
118814
- staticClass: "nu_title"
118815
- }, [_vm._v("回复率")]), _c('div', {
118816
- staticClass: "nu_number"
118817
- }, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
118818
- staticClass: "nu_box"
118819
- }, [_c('div', {
118820
- staticClass: "nu_title"
118821
- }, [_vm._v("累计发送数")]), _c('div', {
118822
- staticClass: "nu_number"
118823
- }, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
118824
- staticClass: "tem_bottom"
118825
- }, [_c('div', {
118826
- staticClass: "tem_desc"
118827
- }, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
118828
- staticClass: "tem_desc"
118829
- }, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
118830
- staticClass: "desc_btns"
118831
- }, [_c('div', {
118832
- staticClass: "desc_text"
118833
- }, [_c('div', {
118834
- staticClass: "tem_desc"
118835
- }, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
118836
- staticClass: "tem_desc"
118837
- }, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
118838
- staticClass: "apply_btn"
118839
- }, [_c('el-button', {
118840
- attrs: {
118841
- "type": "primary"
118842
- },
118843
- on: {
118844
- "click": function ($event) {
118845
- return _vm.setMailTemplate(item);
118846
- }
118847
- }
118848
- }, [_vm._v("应用")])], 1)])])])]);
118849
- }), 0) : _c('Empty')], 1), _c('div', {
118850
- staticClass: "page_box"
118851
- }, [_c('el-pagination', {
118782
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.cancle")) + " ")]), _c('button', {
118783
+ staticClass: "drawer-btn drawer-btn-face",
118852
118784
  attrs: {
118853
- "current-page": _vm.searchForm.currentPage,
118854
- "page-size": _vm.searchForm.pageSize,
118855
- "layout": "total,prev, pager, next, jumper",
118856
- "total": _vm.total
118785
+ "disabled": _vm.isSubmit
118857
118786
  },
118858
118787
  on: {
118859
- "size-change": _vm.handleSizeChange,
118860
- "current-change": _vm.handleCurrentChange,
118861
- "update:currentPage": function ($event) {
118862
- return _vm.$set(_vm.searchForm, "currentPage", $event);
118863
- },
118864
- "update:current-page": function ($event) {
118865
- return _vm.$set(_vm.searchForm, "currentPage", $event);
118866
- }
118788
+ "click": _vm.submit
118867
118789
  }
118868
- })], 1)]);
118790
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.confirm")) + " "), _vm.isSubmit ? _c('i', {
118791
+ staticClass: "el-icon-loading"
118792
+ }) : _vm._e()])]) : _vm._e()]);
118869
118793
  };
118870
- var TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns = [];
118871
-
118872
- ;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=d1b92a60&scoped=true
118873
-
118874
- ;// ./src/components/EdmElement/TemplateCom/const.js
118875
-
118876
- const TemplateCom_const_language = [{
118877
- value: '7',
118878
- label: '汉语',
118879
- enLabel: 'Chinese'
118880
- }, {
118881
- value: '1',
118882
- label: '英语',
118883
- enLabel: 'English'
118884
- }, {
118885
- value: '3',
118886
- label: '法语',
118887
- enLabel: 'French'
118888
- }, {
118889
- value: '8',
118890
- label: '德语',
118891
- enLabel: 'German'
118892
- }, {
118893
- value: '6',
118894
- label: '日语',
118895
- enLabel: 'Japanese'
118896
- }, {
118897
- value: '9',
118898
- label: '韩语',
118899
- enLabel: 'Korean'
118900
- }, {
118901
- value: '10',
118902
- label: '越南语',
118903
- enLabel: 'Vietnamese'
118904
- }, {
118905
- value: '11',
118906
- label: '泰国语',
118907
- enLabel: 'Thai'
118908
- }, {
118909
- value: '12',
118910
- label: '菲律宾语',
118911
- enLabel: 'Filipino'
118912
- }, {
118913
- value: '13',
118914
- label: '印度尼西亚语',
118915
- enLabel: 'Indonesian'
118916
- }, {
118917
- value: '14',
118918
- label: '俄罗斯语',
118919
- enLabel: 'Russian'
118920
- }, {
118921
- value: '4',
118922
- label: '西班牙语',
118923
- enLabel: 'Spanish'
118924
- }, {
118925
- value: '15',
118926
- label: '意大利语',
118927
- enLabel: 'Italian'
118928
- }];
118929
- const sortConfig = [{
118930
- label: '按创建时间倒序',
118931
- value: 0
118932
- }, {
118933
- label: '按更新时间倒序',
118934
- value: 1
118935
- }, {
118936
- label: '按送达率倒序',
118937
- value: 2
118938
- }, {
118939
- label: '按打开率倒序',
118940
- value: 3
118941
- }, {
118942
- label: '按回复率倒序',
118943
- value: 4
118944
- }, {
118945
- label: '按累计发送数倒序',
118946
- value: 5
118947
- }];
118948
- // 系统模版场景
118949
- const templateSystemScene = [{
118950
- value: '1',
118951
- label: `${src_language.t('template.invite_cooperation')}`
118952
- },
118953
- //合作邀请
118954
- {
118955
- value: '2',
118956
- label: `${src_language.t('template.price_negotiation')}`
118957
- },
118958
- //价格协商
118959
- {
118960
- value: '3',
118961
- label: `${src_language.t('template.contract_template')}`
118962
- },
118963
- //合同模板
118964
- {
118965
- value: '4',
118966
- label: `${src_language.t('template.video_production')}`
118967
- },
118968
- //视频制作
118969
- {
118970
- value: '5',
118971
- label: `${src_language.t('template.expense_settlement')}`
118972
- } //费用结算
118973
- ];
118974
- ;// ./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
118975
-
118976
-
118794
+ var SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns = [];
118977
118795
 
118796
+ ;// ./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
118978
118797
 
118979
118798
 
118980
118799
 
118981
- function createSearchForm(tar) {
118982
- let raw = {
118983
- templatesTitle: "",
118984
- //模板标题
118985
- scene: "",
118986
- //应用场景
118987
- mailSubject: "",
118988
- //邮件主题
118989
- content: "",
118990
- //正文
118991
- type: null,
118992
- //模版类型 1-系统模板;2-自定义模板
118993
- modelLanguage: "",
118994
- //语言
118995
- isShared: "",
118996
- //是否共享
118997
- userId: "",
118998
- //创建人
118999
- searchSort: 1,
119000
- //排序
119001
- currentPage: 1,
119002
- pageSize: 10
119003
- };
119004
- if (tar) {
119005
- raw = Object.assign(raw, tar);
119006
- }
119007
- return raw;
119008
- }
119009
- /* harmony default export */ var TemplateListvue_type_script_lang_js = ({
118800
+ /* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
119010
118801
  components: {
119011
- Empty: Empty
118802
+ Editor: Editor
119012
118803
  },
119013
118804
  props: {
119014
- userId: {
118805
+ id: {
118806
+ default: 0,
118807
+ type: Number
118808
+ },
118809
+ rowData: {
118810
+ type: Object,
118811
+ default: () => {
118812
+ return {};
118813
+ }
118814
+ },
118815
+ // 自定义模板/系统模板
118816
+ selectType: {
119015
118817
  type: [Number, String],
119016
118818
  default: ""
119017
118819
  }
119018
118820
  },
119019
118821
  data() {
119020
118822
  return {
119021
- // 模版名称 场景
119022
- contentSelect: "1",
119023
- contentInput: "",
119024
- // 邮件主题正文
119025
- mailTitleSelect: "1",
119026
- mailTitleInput: "",
119027
- searchForm: createSearchForm(),
119028
- language: TemplateCom_const_language,
119029
- sortConfig: sortConfig,
119030
- accountList: [],
119031
- templateList: [],
119032
- templateSystemScene: templateSystemScene,
119033
- total: 0,
119034
- loading: false
118823
+ enumData: {
118824
+ language: language
118825
+ },
118826
+ // 枚举数据
118827
+ form: {
118828
+ // 表单
118829
+ templatesTitle: "",
118830
+ //模板标题
118831
+ mailSubject: "",
118832
+ //邮件标题
118833
+ scene: "",
118834
+ //应用场景
118835
+ modelLanguage: ""
118836
+ },
118837
+ verifyForm: {
118838
+ templatesTitle: [{
118839
+ required: true,
118840
+ message: `${this.$i18n.t("template.title_not_empty")}`,
118841
+ trigger: "blur"
118842
+ }, {
118843
+ max: 30,
118844
+ message: `${this.$i18n.t("template.title_word_limit")}`,
118845
+ trigger: "blur"
118846
+ }],
118847
+ mailSubject: [{
118848
+ required: true,
118849
+ message: `${this.$i18n.t("template.subject_not_empty")}`,
118850
+ trigger: "blur"
118851
+ }],
118852
+ scene: [{
118853
+ required: true,
118854
+ message: `${this.$i18n.t("template.scene_not_empty")}`,
118855
+ trigger: "blur"
118856
+ }, {
118857
+ max: 20,
118858
+ message: `${this.$i18n.t("template.scene_word_limit")}`,
118859
+ trigger: "blur"
118860
+ }],
118861
+ modelLanguage: [{
118862
+ required: true,
118863
+ message: `${this.$i18n.t("template.language_not_empty")}`,
118864
+ trigger: "change"
118865
+ }]
118866
+ },
118867
+ // 标签表单校验规则
118868
+ isFocusSubject: false,
118869
+ // 主题是否获取焦点
118870
+ isSubmit: false // 是否正在提交
119035
118871
  };
119036
118872
  },
119037
- mounted() {
119038
- this.getAccountList();
119039
- this.getCardList();
118873
+ created() {
118874
+ if (this.id) {
118875
+ // 初始化
118876
+ this.init();
118877
+ }
119040
118878
  },
119041
118879
  methods: {
119042
- // 语言枚举
119043
- getLangLabel(val) {
119044
- const currLang = this.language.find(item => item.value == val);
119045
- if (currLang) {
119046
- return currLang.label;
118880
+ // 初始化
118881
+ init() {
118882
+ if (this.id) {
118883
+ setTimeout(() => {
118884
+ this.$refs.templateContent.setContent(this.rowData.content);
118885
+ if (this.selectType == 1) {
118886
+ this.$refs.templateContent.setDisable();
118887
+ }
118888
+ }, 200);
118889
+ this.form = {
118890
+ templatesTitle: this.rowData.templatesTitle,
118891
+ mailSubject: this.rowData.mailSubject,
118892
+ scene: this.rowData.scene,
118893
+ modelLanguage: this.rowData.modelLanguage
118894
+ };
119047
118895
  }
119048
118896
  },
119049
- // 应用模版
119050
- setMailTemplate(data) {
119051
- this.$emit("setMailTemplate", data);
119052
- },
119053
- // 跳转详情
119054
- toDetail(item) {
119055
- const routeData = this.$router.resolve({
119056
- path: "/emailTempDetail",
119057
- query: {
119058
- type: "edit",
119059
- id: item.id
118897
+ // 提交
118898
+ submit() {
118899
+ this.$refs.form.validate(valid => {
118900
+ if (valid) {
118901
+ if (this.$refs.templateContent.isEmpty()) {
118902
+ this.$message({
118903
+ type: "warning",
118904
+ message: `${this.$i18n.t("template.no_content")}`
118905
+ });
118906
+ return;
118907
+ }
118908
+ const data = this.form;
118909
+ data.content = this.$refs.templateContent.getContent();
118910
+ this.isSubmit = true;
118911
+ if (this.id) {
118912
+ data.id = this.id;
118913
+ // 编辑
118914
+ editTemplate(data).then(res => {
118915
+ if (res.code == 0) {
118916
+ this.isSubmit = false;
118917
+ this.$emit("init");
118918
+ this.close();
118919
+ this.$message({
118920
+ type: "success",
118921
+ message: `${this.$i18n.t("outboxMail.success")}`
118922
+ });
118923
+ }
118924
+ });
118925
+ } else {
118926
+ // 新增
118927
+ addTemplate(data).then(res => {
118928
+ if (res.code == 0) {
118929
+ this.isSubmit = false;
118930
+ this.$emit("init");
118931
+ this.close();
118932
+ this.$message({
118933
+ type: "success",
118934
+ message: `${this.$i18n.t("outboxMail.success")}`
118935
+ });
118936
+ }
118937
+ });
118938
+ }
118939
+ } else {
118940
+ return false;
119060
118941
  }
119061
118942
  });
119062
- window.open(routeData.href, "_blank");
119063
118943
  },
119064
- // 获取列表
119065
- getCardList() {
119066
- if (this.contentSelect == "1") {
119067
- this.searchForm.templatesTitle = this.contentInput;
119068
- } else if (this.contentSelect == "2") {
119069
- //系统模版
119070
- if (this.searchForm.type != 1) {
119071
- this.searchForm.scene = this.contentInput;
118944
+ // 使用变量
118945
+ setVariable(type) {
118946
+ let content = ``;
118947
+ if (this.isFocusSubject) {
118948
+ switch (type) {
118949
+ case 0:
118950
+ // 频道名
118951
+ content = `{$channelName}`;
118952
+ break;
118953
+ case 1:
118954
+ // 粉丝数
118955
+ content = `{$subscriber}`;
118956
+ break;
118957
+ case 2:
118958
+ // 频道链接
118959
+ content = `{$link}`;
118960
+ break;
118961
+ case 3:
118962
+ // 频道id
118963
+ content = `{$channelId}`;
118964
+ break;
119072
118965
  }
118966
+ const caretPosition = this.$refs.mailSubjectIpt.$el.firstElementChild.selectionStart;
118967
+ const newValue = this.form.mailSubject.slice(0, caretPosition) + content + this.form.mailSubject.slice(caretPosition);
118968
+ this.form.mailSubject = newValue;
118969
+ this.isFocusSubject = false;
118970
+ } else {
118971
+ switch (type) {
118972
+ case 0:
118973
+ // 频道名
118974
+ content = `{$channelName}`;
118975
+ break;
118976
+ case 1:
118977
+ // 粉丝数
118978
+ content = `{$subscriber}`;
118979
+ break;
118980
+ case 2:
118981
+ // 频道链接
118982
+ content = `{$link}`;
118983
+ break;
118984
+ case 3:
118985
+ // 频道id
118986
+ content = `{$channelId}`;
118987
+ break;
118988
+ }
118989
+ this.$refs.templateContent.insertEditContent(content);
118990
+ }
118991
+ },
118992
+ // 关闭弹窗
118993
+ close() {
118994
+ this.$emit("close");
118995
+ }
118996
+ }
118997
+ });
118998
+ ;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
118999
+ /* harmony default export */ var TemplateCom_SetTemplatevue_type_script_lang_js = (SetTemplatevue_type_script_lang_js);
119000
+ ;// ./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
119001
+ // extracted by mini-css-extract-plugin
119002
+
119003
+ ;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=style&index=0&id=87417d06&prod&lang=scss&scoped=true
119004
+
119005
+ ;// ./src/components/EdmElement/TemplateCom/SetTemplate.vue
119006
+
119007
+
119008
+
119009
+ ;
119010
+
119011
+
119012
+ /* normalize component */
119013
+
119014
+ var SetTemplate_component = normalizeComponent(
119015
+ TemplateCom_SetTemplatevue_type_script_lang_js,
119016
+ SetTemplatevue_type_template_id_87417d06_scoped_true_render,
119017
+ SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns,
119018
+ false,
119019
+ null,
119020
+ "87417d06",
119021
+ null
119022
+
119023
+ )
119024
+
119025
+ /* harmony default export */ var SetTemplate = (SetTemplate_component.exports);
119026
+ ;// ./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
119027
+ var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render = function render() {
119028
+ var _vm = this,
119029
+ _c = _vm._self._c;
119030
+ return _c('el-dialog', {
119031
+ attrs: {
119032
+ "visible": _vm.isShowSetSystemDialog,
119033
+ "close-on-click-modal": false,
119034
+ "title": _vm.$i18n.t('template.set_system_template'),
119035
+ "width": "300px",
119036
+ "append-to-body": ""
119037
+ },
119038
+ on: {
119039
+ "update:visible": function ($event) {
119040
+ _vm.isShowSetSystemDialog = $event;
119041
+ },
119042
+ "close": _vm.closeEvt
119043
+ }
119044
+ }, [_c('div', {
119045
+ staticClass: "form-item flex-col mb24"
119046
+ }, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t('template.choose_type')))]), _c('el-select', {
119047
+ attrs: {
119048
+ "filterable": "",
119049
+ "placeholder": _vm.$i18n.t('common.please_select'),
119050
+ "clearable": ""
119051
+ },
119052
+ model: {
119053
+ value: _vm.setSystemForm.modelType,
119054
+ callback: function ($$v) {
119055
+ _vm.$set(_vm.setSystemForm, "modelType", $$v);
119056
+ },
119057
+ expression: "setSystemForm.modelType"
119058
+ }
119059
+ }, _vm._l(_vm.tabOpts, function (item) {
119060
+ return _c('el-option', {
119061
+ key: Number(item.name),
119062
+ attrs: {
119063
+ "value": Number(item.name),
119064
+ "label": item.label
119073
119065
  }
119074
- if (this.mailTitleSelect == "1") {
119075
- this.searchForm.mailSubject = this.mailTitleInput;
119076
- } else if (this.mailTitleSelect == "2") {
119077
- this.searchForm.content = this.mailTitleInput;
119066
+ });
119067
+ }), 1)], 1), _c('div', {
119068
+ staticClass: "flex justify-end"
119069
+ }, [_c('button', {
119070
+ staticClass: "form-btn form-btn-disabled mr16",
119071
+ on: {
119072
+ "click": _vm.closeEvt
119073
+ }
119074
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t('writeMail.cancle')) + " ")]), _c('button', {
119075
+ staticClass: "form-btn form-btn-face",
119076
+ on: {
119077
+ "click": _vm.customToSystem
119078
+ }
119079
+ }, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
119080
+ };
119081
+ var SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns = [];
119082
+
119083
+ ;// ./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
119084
+
119085
+ /* harmony default export */ var SetSysTemplatevue_type_script_lang_js = ({
119086
+ props: {
119087
+ isShowSetSystem: {
119088
+ type: Boolean,
119089
+ default: false
119090
+ },
119091
+ mailId: {
119092
+ type: [String, Number],
119093
+ default: ""
119094
+ },
119095
+ tabOpts: {
119096
+ type: Array,
119097
+ default: () => {
119098
+ return [];
119078
119099
  }
119079
- this.loading = true;
119080
- templatesList(this.searchForm).then(res => {
119081
- if (res.code == "0") {
119082
- this.templateList = res.data.rows;
119083
- this.total = res.data.total;
119084
- this.loading = false;
119100
+ }
119101
+ },
119102
+ data() {
119103
+ return {
119104
+ isShowSetSystemDialog: this.isShowSetSystem,
119105
+ setSystemForm: {
119106
+ // 设置系统模板表单
119107
+ id: this.mailId,
119108
+ modelType: ""
119109
+ }
119110
+ };
119111
+ },
119112
+ methods: {
119113
+ customToSystem() {
119114
+ if (!this.setSystemForm.modelType) {
119115
+ this.$message({
119116
+ type: "warning",
119117
+ message: `${this.$i18n.t('common.please_select')}${this.$i18n.t('template.template_type')}`
119118
+ });
119119
+ return;
119120
+ }
119121
+ setSysTemplate(this.setSystemForm).then(res => {
119122
+ if (res.code == 0) {
119123
+ this.closeEvt();
119124
+ this.$message({
119125
+ type: "success",
119126
+ message: `${this.$i18n.t('template.set_success')}`
119127
+ });
119085
119128
  } else {
119086
- this.loading = false;
119087
119129
  this.$message.error(res.message);
119130
+ this.closeEvt();
119088
119131
  }
119089
119132
  });
119090
119133
  },
119091
- // 模板类型切换
119092
- modelTypeChange(val) {
119093
- this.searchForm.scene = "";
119094
- this.contentInput = "";
119095
- },
119096
- // 重置
119097
- resetEvt() {
119098
- this.searchForm = createSearchForm();
119099
- this.contentSelect = "1";
119100
- this.contentInput = "";
119101
- this.mailTitleSelect = "1";
119102
- this.mailTitleInput = "";
119103
- this.getCardList();
119104
- },
119105
- // 获取账号下的账户
119106
- getAccountList() {
119107
- hubUserSonFather().then(res => {
119108
- if (res.code == "0") {
119109
- this.accountList = res.data;
119134
+ closeEvt() {
119135
+ this.setSystemForm.id = "";
119136
+ this.setSystemForm.modelType = "";
119137
+ this.$emit("closeDialog");
119138
+ }
119139
+ }
119140
+ });
119141
+ ;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
119142
+ /* harmony default export */ var TemplateCom_SetSysTemplatevue_type_script_lang_js = (SetSysTemplatevue_type_script_lang_js);
119143
+ ;// ./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
119144
+ // extracted by mini-css-extract-plugin
119145
+
119146
+ ;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
119147
+
119148
+ ;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue
119149
+
119150
+
119151
+
119152
+ ;
119153
+
119154
+
119155
+ /* normalize component */
119156
+
119157
+ var SetSysTemplate_component = normalizeComponent(
119158
+ TemplateCom_SetSysTemplatevue_type_script_lang_js,
119159
+ SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render,
119160
+ SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns,
119161
+ false,
119162
+ null,
119163
+ "3c0d8a32",
119164
+ null
119165
+
119166
+ )
119167
+
119168
+ /* harmony default export */ var SetSysTemplate = (SetSysTemplate_component.exports);
119169
+ ;// ./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
119170
+
119171
+
119172
+
119173
+
119174
+
119175
+ /* harmony default export */ var TemplateListvue_type_script_lang_js = ({
119176
+ components: {
119177
+ SetTemplate: SetTemplate,
119178
+ SetSysTemplate: SetSysTemplate
119179
+ },
119180
+ props: {
119181
+ userId: {
119182
+ type: [Number, String],
119183
+ default: ""
119184
+ }
119185
+ },
119186
+ data() {
119187
+ return {
119188
+ enumData: {
119189
+ modelLanguage: language,
119190
+ sysLanguage: sysLanguage
119191
+ },
119192
+ // 枚举数据
119193
+ searchForm: {
119194
+ // 检索字段
119195
+ modelType: "1",
119196
+ //模板类型1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
119197
+ type: 1,
119198
+ //模板选择1-系统模板;2-自定义模板
119199
+ modelLanguage: "",
119200
+ //模板语言
119201
+ currentPage: 1,
119202
+ //当前页
119203
+ pageSize: 10 //当前页条数
119204
+ },
119205
+ // 选项卡 1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
119206
+ tabOpts: [{
119207
+ name: "1",
119208
+ label: `${this.$i18n.t("template.invite_cooperation")}`
119209
+ },
119210
+ //合作邀请
119211
+ {
119212
+ name: "2",
119213
+ label: `${this.$i18n.t("template.price_negotiation")}`
119214
+ },
119215
+ //价格协商
119216
+ {
119217
+ name: "3",
119218
+ label: `${this.$i18n.t("template.contract_template")}`
119219
+ },
119220
+ //合同模板
119221
+ {
119222
+ name: "4",
119223
+ label: `${this.$i18n.t("template.video_production")}`
119224
+ },
119225
+ //视频制作
119226
+ {
119227
+ name: "5",
119228
+ label: `${this.$i18n.t("template.expense_settlement")}`
119229
+ } //费用结算
119230
+ ],
119231
+ loading: false,
119232
+ // 加载中
119233
+ tableData: [],
119234
+ // 表格数据
119235
+ tableTotal: 1,
119236
+ // 表格总数
119237
+ isShowSet: false,
119238
+ // 是否显示模板设置
119239
+ setId: 0,
119240
+ // 设置模板id
119241
+ rowData: null,
119242
+ //选择的模板数据
119243
+
119244
+ isShowSetSystem: false,
119245
+ // 是否显示设置系统模板
119246
+ mailId: ""
119247
+ };
119248
+ },
119249
+ created() {
119250
+ // 初始化
119251
+ this.init();
119252
+ },
119253
+ methods: {
119254
+ // 初始化
119255
+ init() {
119256
+ this.loading = true;
119257
+ if (this.searchForm.type === 2) {
119258
+ delete this.searchForm.modelType;
119259
+ }
119260
+ getTemplateList(this.searchForm).then(res => {
119261
+ this.loading = false;
119262
+ if (res.code == 0) {
119263
+ this.tableData = res.data.rows;
119264
+ this.tableTotal = res.data.total;
119110
119265
  } else {
119111
119266
  this.$message.error(res.message);
119112
119267
  }
119113
119268
  });
119114
119269
  },
119115
- // 排序按钮
119116
- clickDropdownItem(item) {
119117
- this.searchForm.currentPage = 1;
119118
- this.searchForm.searchSort = item.value;
119119
- this.getCardList();
119270
+ // 翻页
119271
+ changePage(curr) {
119272
+ this.searchForm.currentPage = curr;
119273
+ this.init();
119120
119274
  },
119121
- handleSizeChange(val) {
119275
+ // 删除模板
119276
+ del(id) {
119277
+ this.$confirm(this.$t("inboxTable.delMail"), this.$t("inboxTable.tip"), {
119278
+ confirmButtonText: this.$t("inboxTable.confirm"),
119279
+ cancelButtonText: this.$t("inboxTable.cancel"),
119280
+ type: "warning",
119281
+ confirmButtonClass: "confirm_del"
119282
+ }).then(() => {
119283
+ delTemplate({
119284
+ id
119285
+ }).then(res => {
119286
+ if (res.code == 0) {
119287
+ this.init();
119288
+ this.$message({
119289
+ type: "success",
119290
+ message: `${this.$i18n.t("outboxMail.success")}`,
119291
+ duration: 1500
119292
+ });
119293
+ }
119294
+ });
119295
+ }).catch(() => {});
119296
+ },
119297
+ // 设置邮件模板
119298
+ setMailTemplate(data) {
119299
+ this.$emit("setMailTemplate", data);
119300
+ },
119301
+ // 打开编辑模板
119302
+ showSetTemplate(row) {
119303
+ this.setId = row.id;
119304
+ this.rowData = row;
119305
+ this.isShowSet = true;
119306
+ },
119307
+ // 切换选项卡
119308
+ swicthTab(tab) {
119309
+ this.searchForm.modelType = tab.name;
119122
119310
  this.searchForm.currentPage = 1;
119123
- this.searchForm.pageSize = val;
119124
- this.getCardList();
119311
+ this.init();
119125
119312
  },
119126
- handleCurrentChange(val) {
119127
- this.searchForm.currentPage = val;
119128
- this.getCardList();
119313
+ // 时间戳转换
119314
+ parseTime(date, format) {
119315
+ return parseTime(date, format);
119316
+ },
119317
+ // 下载模板
119318
+ downloadTem(obj) {
119319
+ window.location.href = obj.downloadUrl;
119320
+ },
119321
+ // 打开转为系统模版弹窗
119322
+ showSetSystem(row) {
119323
+ this.mailId = row.id;
119324
+ this.isShowSetSystem = true;
119325
+ },
119326
+ // 关闭转为系统模版弹窗
119327
+ closeDialog() {
119328
+ this.isShowSetSystem = false;
119129
119329
  }
119130
119330
  }
119131
119331
  });
119132
119332
  ;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
119133
119333
  /* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
119134
- ;// ./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=d1b92a60&prod&lang=scss&scoped=true
119334
+ ;// ./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=13a1b12d&prod&lang=scss&scoped=true
119335
+ // extracted by mini-css-extract-plugin
119336
+
119337
+ ;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
119338
+
119339
+ ;// ./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
119135
119340
  // extracted by mini-css-extract-plugin
119136
119341
 
119137
- ;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=d1b92a60&prod&lang=scss&scoped=true
119342
+ ;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
119138
119343
 
119139
119344
  ;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
119140
119345
 
@@ -119143,15 +119348,16 @@ function createSearchForm(tar) {
119143
119348
  ;
119144
119349
 
119145
119350
 
119351
+
119146
119352
  /* normalize component */
119147
119353
 
119148
119354
  var TemplateList_component = normalizeComponent(
119149
119355
  TemplateCom_TemplateListvue_type_script_lang_js,
119150
- TemplateListvue_type_template_id_d1b92a60_scoped_true_render,
119151
- TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns,
119356
+ TemplateListvue_type_template_id_13a1b12d_scoped_true_render,
119357
+ TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns,
119152
119358
  false,
119153
119359
  null,
119154
- "d1b92a60",
119360
+ "13a1b12d",
119155
119361
  null
119156
119362
 
119157
119363
  )
@@ -121527,406 +121733,6 @@ function inviteEmailSave(data) {
121527
121733
  function inviteEmailGet(taskId) {
121528
121734
  return request_get(`/edm/ai/inviteEmail/${taskId}`);
121529
121735
  }
121530
- ;// ./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=62cde375&scoped=true
121531
- var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render = function render() {
121532
- var _vm = this,
121533
- _c = _vm._self._c;
121534
- return _c('el-dialog', {
121535
- attrs: {
121536
- "visible": _vm.visible,
121537
- "title": "存为模版",
121538
- "width": "480px",
121539
- "before-close": _vm.closeDialog,
121540
- "custom-class": "setting-nickname-dialog",
121541
- "close-on-click-modal": false
121542
- }
121543
- }, [_c('div', {
121544
- directives: [{
121545
- name: "loading",
121546
- rawName: "v-loading",
121547
- value: _vm.loading,
121548
- expression: "loading"
121549
- }]
121550
- }, [_c('el-form', {
121551
- ref: "ruleForm",
121552
- staticClass: "demo-ruleForm",
121553
- attrs: {
121554
- "label-position": "top",
121555
- "model": _vm.ruleForm,
121556
- "rules": _vm.rules,
121557
- "label-width": "100px"
121558
- }
121559
- }, [_c('el-form-item', {
121560
- attrs: {
121561
- "label": "模版名称",
121562
- "prop": "templatesTitle"
121563
- }
121564
- }, [_c('el-input', {
121565
- attrs: {
121566
- "clearable": ""
121567
- },
121568
- model: {
121569
- value: _vm.ruleForm.templatesTitle,
121570
- callback: function ($$v) {
121571
- _vm.$set(_vm.ruleForm, "templatesTitle", $$v);
121572
- },
121573
- expression: "ruleForm.templatesTitle"
121574
- }
121575
- })], 1), _c('el-form-item', {
121576
- attrs: {
121577
- "label": "应用场景",
121578
- "prop": "scene"
121579
- }
121580
- }, [_c('el-input', {
121581
- attrs: {
121582
- "clearable": ""
121583
- },
121584
- model: {
121585
- value: _vm.ruleForm.scene,
121586
- callback: function ($$v) {
121587
- _vm.$set(_vm.ruleForm, "scene", $$v);
121588
- },
121589
- expression: "ruleForm.scene"
121590
- }
121591
- })], 1), _c('el-form-item', {
121592
- attrs: {
121593
- "label": "语言",
121594
- "prop": "modelLanguage"
121595
- }
121596
- }, [_c('el-select', {
121597
- attrs: {
121598
- "placeholder": _vm.$i18n.t('common.please_select'),
121599
- "clearable": "",
121600
- "filterable": ""
121601
- },
121602
- model: {
121603
- value: _vm.ruleForm.modelLanguage,
121604
- callback: function ($$v) {
121605
- _vm.$set(_vm.ruleForm, "modelLanguage", $$v);
121606
- },
121607
- expression: "ruleForm.modelLanguage"
121608
- }
121609
- }, _vm._l(_vm.language, function (item) {
121610
- return _c('el-option', {
121611
- key: item.value,
121612
- attrs: {
121613
- "value": item.value,
121614
- "label": item.label
121615
- }
121616
- });
121617
- }), 1)], 1), _c('el-form-item', {
121618
- attrs: {
121619
- "label": "共享状态"
121620
- }
121621
- }, [_c('el-select', {
121622
- attrs: {
121623
- "clearable": "",
121624
- "placeholder": "请选择共享状态"
121625
- },
121626
- model: {
121627
- value: _vm.ruleForm.isShared,
121628
- callback: function ($$v) {
121629
- _vm.$set(_vm.ruleForm, "isShared", $$v);
121630
- },
121631
- expression: "ruleForm.isShared"
121632
- }
121633
- }, [_c('el-option', {
121634
- key: 1,
121635
- attrs: {
121636
- "value": true,
121637
- "label": "公开"
121638
- }
121639
- }), _c('el-option', {
121640
- key: 2,
121641
- attrs: {
121642
- "value": false,
121643
- "label": "私有"
121644
- }
121645
- })], 1)], 1)], 1), _c('div', {
121646
- staticClass: "footer-btn"
121647
- }, [_c('el-button', {
121648
- on: {
121649
- "click": function ($event) {
121650
- return _vm.resetForm('ruleForm');
121651
- }
121652
- }
121653
- }, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
121654
- attrs: {
121655
- "type": "primary",
121656
- "loading": _vm.confirmBtnLoading
121657
- },
121658
- on: {
121659
- "click": function ($event) {
121660
- return _vm.submitForm('ruleForm');
121661
- }
121662
- }
121663
- }, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
121664
- };
121665
- var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns = [];
121666
-
121667
- ;// ./src/api/mailData/index.js
121668
-
121669
-
121670
- // 文件上传
121671
- async function mailData_uploadFile(data) {
121672
- let res = await post("/edm/mail/upload_file", data);
121673
- return res;
121674
- }
121675
- // 邮件发送数据
121676
- async function getSendList(data) {
121677
- let res = await request_post("/edm/outbox/sendData", data);
121678
- if (res.code === '0') {
121679
- return res;
121680
- }
121681
- return null;
121682
- }
121683
-
121684
- // 邮件接收数据 inbox/receiveData
121685
- async function getReceiveList(data) {
121686
- let res = await request_post("/edm/inbox/receiveData", data);
121687
- if (res) {
121688
- return res;
121689
- }
121690
- return null;
121691
- }
121692
-
121693
- // 查看详情-收件数据
121694
- async function mailData_getInboxDetail(id) {
121695
- let res = await get(`/edm/inbox/inboxDetail/${id}`);
121696
- if (res) {
121697
- return res;
121698
- }
121699
- return null;
121700
- }
121701
-
121702
- // 查看会话-收件数据
121703
- async function getInboxDialogue(chatId) {
121704
- let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
121705
- if (res) {
121706
- return res;
121707
- }
121708
- return null;
121709
- }
121710
-
121711
- // 查看收件箱详情 /inbox/inboxDetail/{id}
121712
- async function getInboxDialogue1(id) {
121713
- let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
121714
- if (res) {
121715
- return res;
121716
- }
121717
- return null;
121718
- }
121719
-
121720
- //发送详情
121721
- async function getSendDetail(id) {
121722
- let res = await get(`/edm/outbox/outBoxDetail/${id}`);
121723
- if (res.code === '0') {
121724
- return res;
121725
- }
121726
- return null;
121727
- }
121728
-
121729
- // 发信详情 sendDetail/{id}
121730
- async function getDetailReceive() {
121731
- let res = await get(`/edm/inbox/receiveData`);
121732
- if (res.code === '0') {
121733
- return res;
121734
- }
121735
- return null;
121736
- }
121737
-
121738
- // 发件数据详情 --和邮件往来一样
121739
- async function sendDetail(id) {
121740
- let res = await request_get(`/edm/mail/sendDetail/${id}`);
121741
- if (res.code === '0') {
121742
- return res;
121743
- }
121744
- return null;
121745
- }
121746
-
121747
- // 收信详情
121748
- async function getDetailSend(id) {
121749
- let res = await get(`/edm/outbox/sendData`);
121750
- if (res.code === '0') {
121751
- return res;
121752
- }
121753
- return null;
121754
- }
121755
-
121756
- // 查看AI回复 - 发件
121757
- async function AiReplyDetail(id) {
121758
- let res = await request_get(`/edm/outbox/selAiReply/${id}`);
121759
- if (res) {
121760
- return res;
121761
- }
121762
- return null;
121763
- }
121764
-
121765
- // 查看AI回复 收件
121766
- async function aiReply(params) {
121767
- let res = await request_post(`/edm/inbox/aiReply`, params);
121768
- if (res) {
121769
- return res;
121770
- }
121771
- return null;
121772
- }
121773
-
121774
- // 导出收信数据 /inbox/exportReceiveData
121775
- async function exportReceiveData(params) {
121776
- let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
121777
- if (res) {
121778
- return res;
121779
- }
121780
- return null;
121781
- }
121782
-
121783
- // 导出发信数据 /outbox/exportSendData
121784
- async function exportSendData(params) {
121785
- let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
121786
- if (res) {
121787
- return res;
121788
- }
121789
- return null;
121790
- }
121791
- // 保存模版
121792
-
121793
- async function addTemplate(params) {
121794
- let res = await request_post(`/edm/template/addTemplate`, params);
121795
- if (res) {
121796
- return res;
121797
- }
121798
- return null;
121799
- }
121800
- ;// ./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
121801
-
121802
-
121803
-
121804
-
121805
- /* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
121806
- props: {
121807
- visible: {
121808
- type: Boolean,
121809
- default: false
121810
- },
121811
- mailTempList: {
121812
- type: Array,
121813
- default: () => []
121814
- },
121815
- tempProductCard: {
121816
- type: String,
121817
- default: ""
121818
- }
121819
- },
121820
- data() {
121821
- return {
121822
- confirmBtnLoading: false,
121823
- loading: false,
121824
- ruleForm: {
121825
- templatesTitle: "",
121826
- scene: "",
121827
- modelLanguage: "",
121828
- isShared: false
121829
- },
121830
- rules: {
121831
- templatesTitle: [{
121832
- required: true,
121833
- message: "请输入模版名称",
121834
- trigger: "blur"
121835
- }],
121836
- modelLanguage: [{
121837
- required: true,
121838
- message: "请选择模版语言",
121839
- trigger: "change"
121840
- }],
121841
- scene: [{
121842
- required: true,
121843
- message: "请输入应用场景",
121844
- trigger: "change"
121845
- }]
121846
- },
121847
- language: const_language
121848
- };
121849
- },
121850
- created() {},
121851
- methods: {
121852
- // 处理邮件参数
121853
- getMailParams() {
121854
- // 处理邮件
121855
- const currentMail = this.mailTempList.find(item => item.active);
121856
- let content = "";
121857
- if (currentMail.getReplyHtml()) {
121858
- content = currentMail.getContent() + "   " + currentMail.getReplyHtml() + this.tempProductCard;
121859
- } else {
121860
- content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
121861
- }
121862
- return {
121863
- mailSubject: currentMail.subject,
121864
- content,
121865
- attachments: currentMail.fileList
121866
- };
121867
- },
121868
- // 表单验证
121869
- submitForm(formName) {
121870
- const mailParams = this.getMailParams();
121871
- this.$refs[formName].validate(valid => {
121872
- if (valid) {
121873
- const paramsObj = {
121874
- ...this.ruleForm,
121875
- ...mailParams
121876
- };
121877
- //新增
121878
- addTemplate(paramsObj).then(res => {
121879
- console.log(res, "resss");
121880
- if (res.code == "0") {
121881
- this.$message.success("保存成功");
121882
- this.closeDialog();
121883
- } else {
121884
- this.$message.error(res.message);
121885
- }
121886
- });
121887
- } else {
121888
- console.log("error submit!!");
121889
- return false;
121890
- }
121891
- });
121892
- },
121893
- resetForm(formName) {
121894
- this.$refs[formName].resetFields();
121895
- this.closeDialog();
121896
- },
121897
- closeDialog() {
121898
- this.$emit("update:visible", false);
121899
- }
121900
- }
121901
- });
121902
- ;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
121903
- /* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
121904
- ;// ./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=62cde375&prod&lang=scss&scoped=true
121905
- // extracted by mini-css-extract-plugin
121906
-
121907
- ;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
121908
-
121909
- ;// ./src/package/write-email/components/saveMailTempDialog.vue
121910
-
121911
-
121912
-
121913
- ;
121914
-
121915
-
121916
- /* normalize component */
121917
-
121918
- var saveMailTempDialog_component = normalizeComponent(
121919
- components_saveMailTempDialogvue_type_script_lang_js,
121920
- saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render,
121921
- saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns,
121922
- false,
121923
- null,
121924
- "62cde375",
121925
- null
121926
-
121927
- )
121928
-
121929
- /* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
121930
121736
  ;// ./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
121931
121737
 
121932
121738
 
@@ -121968,7 +121774,6 @@ var saveMailTempDialog_component = normalizeComponent(
121968
121774
 
121969
121775
 
121970
121776
 
121971
-
121972
121777
 
121973
121778
 
121974
121779
  /* harmony default export */ var write_emailvue_type_script_lang_js = ({
@@ -121991,8 +121796,7 @@ var saveMailTempDialog_component = normalizeComponent(
121991
121796
  SignTextDrawer: signText,
121992
121797
  MailTemplateDrawer: mailTemplate,
121993
121798
  AiMailDialog: aiMail,
121994
- MailOptimizeDrawer: mailOptimize,
121995
- saveMailTempDialog: saveMailTempDialog
121799
+ MailOptimizeDrawer: mailOptimize
121996
121800
  },
121997
121801
  props: {
121998
121802
  // pm 添加
@@ -122221,11 +122025,7 @@ var saveMailTempDialog_component = normalizeComponent(
122221
122025
  nickName: "",
122222
122026
  // 发件人昵称
122223
122027
  pageFrom: this.$route.query.pageFrom || '',
122224
- currentAiPlatform: this.$route.query.currentAiPlatform || '',
122225
- // 当前使用的AI平台
122226
- saveMailTempDialogVisible: false,
122227
- // 保存模版弹窗
122228
- tempProductCard: '' // 模版产品卡
122028
+ currentAiPlatform: this.$route.query.currentAiPlatform || '' // 当前使用的AI平台
122229
122029
  };
122230
122030
  },
122231
122031
  created() {
@@ -122301,18 +122101,6 @@ var saveMailTempDialog_component = normalizeComponent(
122301
122101
  window.onbeforeunload = null;
122302
122102
  },
122303
122103
  methods: {
122304
- // 保存邮件模版
122305
- saveMailTemplate() {
122306
- const currentMail = this.mailList.find(item => item.active);
122307
- if (currentMail.subject == '') {
122308
- this.$message.error('请输入邮件主题');
122309
- return;
122310
- }
122311
- let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
122312
- let cardIds = arrayColumn(this.cardsArr, "id");
122313
- this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
122314
- this.saveMailTempDialogVisible = true;
122315
- },
122316
122104
  // 初始化邮件模版
122317
122105
  payInitTemplate() {
122318
122106
  // 初始化收件人
@@ -122719,7 +122507,6 @@ var saveMailTempDialog_component = normalizeComponent(
122719
122507
  active: idx === 0,
122720
122508
  // 是否当前选中
122721
122509
  isAiContent: false,
122722
- templateId: item.templateId,
122723
122510
  getContent: () => {},
122724
122511
  getTextContent: () => {},
122725
122512
  setContent: () => {},
@@ -122944,8 +122731,7 @@ var saveMailTempDialog_component = normalizeComponent(
122944
122731
  id: item.id,
122945
122732
  subject: item.subject,
122946
122733
  content: content,
122947
- attachments: item.fileList,
122948
- templateId: item.templateId
122734
+ attachments: item.fileList
122949
122735
  };
122950
122736
  });
122951
122737
 
@@ -123122,8 +122908,7 @@ var saveMailTempDialog_component = normalizeComponent(
123122
122908
  id: item.id,
123123
122909
  subject: item.subject,
123124
122910
  content: item.getContent() + "&nbsp;&nbsp;&nbsp;" + item.getReplyHtml() + sendProductCard,
123125
- attachments: item.fileList,
123126
- templateId: item.templateId
122911
+ attachments: item.fileList
123127
122912
  };
123128
122913
  });
123129
122914
  // 处理红人
@@ -123279,7 +123064,6 @@ var saveMailTempDialog_component = normalizeComponent(
123279
123064
  this.mailList.forEach(mail => {
123280
123065
  if (mail.active) {
123281
123066
  mail.subject = data.mailSubject;
123282
- mail.templateId = data.id;
123283
123067
  if (mail.setContent) {
123284
123068
  mail.setContent(data.content);
123285
123069
  }
@@ -123624,15 +123408,15 @@ var saveMailTempDialog_component = normalizeComponent(
123624
123408
  });
123625
123409
  ;// ./src/package/write-email/index.vue?vue&type=script&lang=js
123626
123410
  /* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
123627
- ;// ./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=3564e8e7&prod&lang=scss&scoped=true
123411
+ ;// ./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=6c2fdda1&prod&lang=scss&scoped=true
123628
123412
  // extracted by mini-css-extract-plugin
123629
123413
 
123630
- ;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=3564e8e7&prod&lang=scss&scoped=true
123414
+ ;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=6c2fdda1&prod&lang=scss&scoped=true
123631
123415
 
123632
- ;// ./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=3564e8e7&prod&lang=scss
123416
+ ;// ./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=6c2fdda1&prod&lang=scss
123633
123417
  // extracted by mini-css-extract-plugin
123634
123418
 
123635
- ;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=3564e8e7&prod&lang=scss
123419
+ ;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=6c2fdda1&prod&lang=scss
123636
123420
 
123637
123421
  ;// ./src/package/write-email/index.vue
123638
123422
 
@@ -123646,11 +123430,11 @@ var saveMailTempDialog_component = normalizeComponent(
123646
123430
 
123647
123431
  var write_email_component = normalizeComponent(
123648
123432
  package_write_emailvue_type_script_lang_js,
123649
- write_emailvue_type_template_id_3564e8e7_scoped_true_render,
123650
- write_emailvue_type_template_id_3564e8e7_scoped_true_staticRenderFns,
123433
+ write_emailvue_type_template_id_6c2fdda1_scoped_true_render,
123434
+ write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns,
123651
123435
  false,
123652
123436
  null,
123653
- "3564e8e7",
123437
+ "6c2fdda1",
123654
123438
  null
123655
123439
 
123656
123440
  )
@@ -123717,8 +123501,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
123717
123501
  };
123718
123502
  var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
123719
123503
 
123720
- ;// ./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=31e099df&scoped=true
123721
- var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function render() {
123504
+ ;// ./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=1f01a884&scoped=true
123505
+ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function render() {
123722
123506
  var _vm = this,
123723
123507
  _c = _vm._self._c;
123724
123508
  return _c('div', {
@@ -124039,25 +123823,6 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
124039
123823
  }
124040
123824
  })];
124041
123825
  }
124042
- }, {
124043
- key: "operation",
124044
- fn: function ({
124045
- data
124046
- }) {
124047
- return [_c('el-link', {
124048
- attrs: {
124049
- "type": "primary",
124050
- "size": "small",
124051
- "underline": false
124052
- },
124053
- on: {
124054
- "click": function ($event) {
124055
- $event.stopPropagation();
124056
- return _vm.recallMail(data.scope);
124057
- }
124058
- }
124059
- }, [_vm._v("撤回")])];
124060
- }
124061
123826
  }])
124062
123827
  }), _c('div', {
124063
123828
  staticClass: "tool"
@@ -124099,7 +123864,7 @@ var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function re
124099
123864
  staticClass: "dss-iconfont"
124100
123865
  }, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
124101
123866
  };
124102
- var singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns = [];
123867
+ var singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns = [];
124103
123868
 
124104
123869
  // EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
124105
123870
  var dayjs_min = __webpack_require__(4353);
@@ -124187,10 +123952,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
124187
123952
  label: src_language.t("edm2.mailEn12"),
124188
123953
  prop: "sendTime",
124189
123954
  width: "200"
124190
- }, {
124191
- label: "操作",
124192
- scope: "operation",
124193
- width: "100"
124194
123955
  }],
124195
123956
  tableData: [],
124196
123957
  loading: false,
@@ -124239,32 +124000,6 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
124239
124000
  localStorage.removeItem("searchFlag");
124240
124001
  },
124241
124002
  methods: {
124242
- // 撤回邮件
124243
- recallMail(row) {
124244
- console.log(row, "row");
124245
- this.$confirm("请确认是否撤回该邮件?", "提示", {
124246
- confirmButtonText: "确定",
124247
- cancelButtonText: "取消",
124248
- type: "warning"
124249
- }).then(() => {
124250
- withdraw(row.id).then(res => {
124251
- if (res.code == "0") {
124252
- this.$message({
124253
- type: "success",
124254
- duration: 7000,
124255
- message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
124256
- });
124257
- this.init();
124258
- } else {
124259
- this.$message({
124260
- type: "error",
124261
- duration: 7000,
124262
- message: res.message
124263
- });
124264
- }
124265
- });
124266
- }).catch(() => {});
124267
- },
124268
124003
  // 主题-正文
124269
124004
  changeContentMode(val) {
124270
124005
  this.contentSelect = val;
@@ -124458,10 +124193,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
124458
124193
  });
124459
124194
  ;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
124460
124195
  /* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
124461
- ;// ./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=31e099df&prod&lang=scss&scoped=true
124196
+ ;// ./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=1f01a884&prod&lang=scss&scoped=true
124462
124197
  // extracted by mini-css-extract-plugin
124463
124198
 
124464
- ;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=31e099df&prod&lang=scss&scoped=true
124199
+ ;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
124465
124200
 
124466
124201
  ;// ./src/package/outbox-email/components/singleSendMail.vue
124467
124202
 
@@ -124474,18 +124209,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
124474
124209
 
124475
124210
  var singleSendMail_component = normalizeComponent(
124476
124211
  components_singleSendMailvue_type_script_lang_js,
124477
- singleSendMailvue_type_template_id_31e099df_scoped_true_render,
124478
- singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns,
124212
+ singleSendMailvue_type_template_id_1f01a884_scoped_true_render,
124213
+ singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns,
124479
124214
  false,
124480
124215
  null,
124481
- "31e099df",
124216
+ "1f01a884",
124482
124217
  null
124483
124218
 
124484
124219
  )
124485
124220
 
124486
124221
  /* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
124487
- ;// ./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=561c9fe0&scoped=true
124488
- var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function render() {
124222
+ ;// ./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=9bfe54da&scoped=true
124223
+ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function render() {
124489
124224
  var _vm = this,
124490
124225
  _c = _vm._self._c;
124491
124226
  return _c('div', {
@@ -124775,25 +124510,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
124775
124510
  }
124776
124511
  })];
124777
124512
  }
124778
- }, {
124779
- key: "operation",
124780
- fn: function ({
124781
- data
124782
- }) {
124783
- return [_c('el-link', {
124784
- attrs: {
124785
- "type": "primary",
124786
- "size": "small",
124787
- "underline": false
124788
- },
124789
- on: {
124790
- "click": function ($event) {
124791
- $event.stopPropagation();
124792
- return _vm.recallMail(data.scope);
124793
- }
124794
- }
124795
- }, [_vm._v("撤回")])];
124796
- }
124797
124513
  }])
124798
124514
  }), _c('div', {
124799
124515
  staticClass: "tool"
@@ -124820,7 +124536,7 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function ren
124820
124536
  staticClass: "dss-iconfont icon-delete-2"
124821
124537
  })])])])], 1)]);
124822
124538
  };
124823
- var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
124539
+ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
124824
124540
 
124825
124541
  ;// ./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
124826
124542
 
@@ -124892,10 +124608,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
124892
124608
  label: src_language.t("edm2.mailEn12"),
124893
124609
  prop: "sendTime",
124894
124610
  width: "200"
124895
- }, {
124896
- label: "操作",
124897
- scope: "operation",
124898
- width: "100"
124899
124611
  }],
124900
124612
  contentInput: "",
124901
124613
  contentSelect: "1",
@@ -124947,32 +124659,6 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
124947
124659
  localStorage.removeItem("searchFlag");
124948
124660
  },
124949
124661
  methods: {
124950
- // 撤回邮件
124951
- recallMail(row) {
124952
- console.log(row, "row");
124953
- this.$confirm("请确认是否撤回该邮件?", "提示", {
124954
- confirmButtonText: "确定",
124955
- cancelButtonText: "取消",
124956
- type: "warning"
124957
- }).then(() => {
124958
- withdraw(row.id).then(res => {
124959
- if (res.code == "0") {
124960
- this.$message({
124961
- type: "success",
124962
- duration: 7000,
124963
- message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
124964
- });
124965
- this.init();
124966
- } else {
124967
- this.$message({
124968
- type: "error",
124969
- duration: 7000,
124970
- message: res.message
124971
- });
124972
- }
124973
- });
124974
- }).catch(() => {});
124975
- },
124976
124662
  // 去除html标签
124977
124663
  filterHtmlTag(str) {
124978
124664
  if (str) {
@@ -125184,10 +124870,10 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
125184
124870
  });
125185
124871
  ;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
125186
124872
  /* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
125187
- ;// ./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=561c9fe0&prod&lang=scss&scoped=true
124873
+ ;// ./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=9bfe54da&prod&lang=scss&scoped=true
125188
124874
  // extracted by mini-css-extract-plugin
125189
124875
 
125190
- ;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=561c9fe0&prod&lang=scss&scoped=true
124876
+ ;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
125191
124877
 
125192
124878
  ;// ./src/package/outbox-email/components/replySendMail.vue
125193
124879
 
@@ -125200,11 +124886,11 @@ var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
125200
124886
 
125201
124887
  var replySendMail_component = normalizeComponent(
125202
124888
  components_replySendMailvue_type_script_lang_js,
125203
- replySendMailvue_type_template_id_561c9fe0_scoped_true_render,
125204
- replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns,
124889
+ replySendMailvue_type_template_id_9bfe54da_scoped_true_render,
124890
+ replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns,
125205
124891
  false,
125206
124892
  null,
125207
- "561c9fe0",
124893
+ "9bfe54da",
125208
124894
  null
125209
124895
 
125210
124896
  )
@@ -126672,8 +126358,8 @@ var draft_email_component = normalizeComponent(
126672
126358
  )
126673
126359
 
126674
126360
  /* harmony default export */ var draft_email = (draft_email_component.exports);
126675
- ;// ./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=ad633b50&scoped=true
126676
- var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
126361
+ ;// ./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=cfc1a914&scoped=true
126362
+ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
126677
126363
  var _vm = this,
126678
126364
  _c = _vm._self._c;
126679
126365
  return _vm.emailArr.length !== 0 ? _c('div', {
@@ -126686,11 +126372,6 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
126686
126372
  }, [_c('i', {
126687
126373
  staticClass: "el-icon-arrow-left"
126688
126374
  })]), _c('div', {
126689
- staticClass: "back recall_btn",
126690
- on: {
126691
- "click": _vm.recallMail
126692
- }
126693
- }, [_vm._m(0)]), _c('div', {
126694
126375
  staticClass: "mail-items-box"
126695
126376
  }, [_c('div', {
126696
126377
  staticClass: "mail-item-row mail-template"
@@ -126917,19 +126598,7 @@ var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
126917
126598
  }
126918
126599
  }) : _vm._e()], 1) : _vm._e();
126919
126600
  };
126920
- var detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns = [function () {
126921
- var _vm = this,
126922
- _c = _vm._self._c;
126923
- return _c('div', {
126924
- staticClass: "re_box"
126925
- }, [_c('i', {
126926
- staticClass: "dss-iconfont btn_con"
126927
- }, [_vm._v("")]), _c('span', {
126928
- staticClass: "btn_con"
126929
- }, [_vm._v("撤回")])]);
126930
- }];
126931
-
126932
- ;// ./src/package/outbox-email/detail.vue?vue&type=template&id=ad633b50&scoped=true
126601
+ var detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns = [];
126933
126602
 
126934
126603
  ;// ./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
126935
126604
  var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
@@ -127178,31 +126847,6 @@ var bloggerColumn_component = normalizeComponent(
127178
126847
  localStorage.setItem("searchFlag", true);
127179
126848
  },
127180
126849
  methods: {
127181
- // 撤回邮件
127182
- recallMail() {
127183
- this.$confirm("请确认是否撤回该邮件?", "提示", {
127184
- confirmButtonText: "确定",
127185
- cancelButtonText: "取消",
127186
- type: "warning"
127187
- }).then(() => {
127188
- withdraw(this.$route.query.id).then(res => {
127189
- if (res.code == "0") {
127190
- this.$message({
127191
- type: "success",
127192
- duration: 7000,
127193
- message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
127194
- });
127195
- this.backToOutbox();
127196
- } else {
127197
- this.$message({
127198
- type: "error",
127199
- duration: 7000,
127200
- message: res.message
127201
- });
127202
- }
127203
- });
127204
- }).catch(() => {});
127205
- },
127206
126850
  // 红人档案侧抽
127207
126851
  toBloggerDeatil(item) {
127208
126852
  this.$emit("toBloggerDeatil", item);
@@ -127334,10 +126978,10 @@ var bloggerColumn_component = normalizeComponent(
127334
126978
  });
127335
126979
  ;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
127336
126980
  /* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
127337
- ;// ./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=ad633b50&prod&lang=scss&scoped=true
126981
+ ;// ./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=cfc1a914&prod&lang=scss&scoped=true
127338
126982
  // extracted by mini-css-extract-plugin
127339
126983
 
127340
- ;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=ad633b50&prod&lang=scss&scoped=true
126984
+ ;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=cfc1a914&prod&lang=scss&scoped=true
127341
126985
 
127342
126986
  ;// ./src/package/outbox-email/detail.vue
127343
126987
 
@@ -127350,11 +126994,11 @@ var bloggerColumn_component = normalizeComponent(
127350
126994
 
127351
126995
  var outbox_email_detail_component = normalizeComponent(
127352
126996
  package_outbox_email_detailvue_type_script_lang_js,
127353
- detailvue_type_template_id_ad633b50_scoped_true_render,
127354
- detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns,
126997
+ detailvue_type_template_id_cfc1a914_scoped_true_render,
126998
+ detailvue_type_template_id_cfc1a914_scoped_true_staticRenderFns,
127355
126999
  false,
127356
127000
  null,
127357
- "ad633b50",
127001
+ "cfc1a914",
127358
127002
  null
127359
127003
 
127360
127004
  )
@@ -127660,7 +127304,7 @@ async function mailList2(data) {
127660
127304
  }
127661
127305
 
127662
127306
  // 查看邮件往来里的发件详情
127663
- async function blogmail_sendDetail(params) {
127307
+ async function sendDetail(params) {
127664
127308
  let res = await get(`/edm/mail/sendDetail/${params.id}`);
127665
127309
  return res;
127666
127310
  }
@@ -128905,6 +128549,130 @@ var Editorvue_type_template_id_16051201_scoped_true_render = function render() {
128905
128549
  };
128906
128550
  var Editorvue_type_template_id_16051201_scoped_true_staticRenderFns = [];
128907
128551
 
128552
+ ;// ./src/api/mailData/index.js
128553
+
128554
+
128555
+ // 文件上传
128556
+ async function mailData_uploadFile(data) {
128557
+ let res = await post("/edm/mail/upload_file", data);
128558
+ return res;
128559
+ }
128560
+ // 邮件发送数据
128561
+ async function getSendList(data) {
128562
+ let res = await request_post("/edm/outbox/sendData", data);
128563
+ if (res.code === '0') {
128564
+ return res;
128565
+ }
128566
+ return null;
128567
+ }
128568
+
128569
+ // 邮件接收数据 inbox/receiveData
128570
+ async function getReceiveList(data) {
128571
+ let res = await request_post("/edm/inbox/receiveData", data);
128572
+ if (res) {
128573
+ return res;
128574
+ }
128575
+ return null;
128576
+ }
128577
+
128578
+ // 查看详情-收件数据
128579
+ async function mailData_getInboxDetail(id) {
128580
+ let res = await get(`/edm/inbox/inboxDetail/${id}`);
128581
+ if (res) {
128582
+ return res;
128583
+ }
128584
+ return null;
128585
+ }
128586
+
128587
+ // 查看会话-收件数据
128588
+ async function getInboxDialogue(chatId) {
128589
+ let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
128590
+ if (res) {
128591
+ return res;
128592
+ }
128593
+ return null;
128594
+ }
128595
+
128596
+ // 查看收件箱详情 /inbox/inboxDetail/{id}
128597
+ async function getInboxDialogue1(id) {
128598
+ let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
128599
+ if (res) {
128600
+ return res;
128601
+ }
128602
+ return null;
128603
+ }
128604
+
128605
+ //发送详情
128606
+ async function getSendDetail(id) {
128607
+ let res = await get(`/edm/outbox/outBoxDetail/${id}`);
128608
+ if (res.code === '0') {
128609
+ return res;
128610
+ }
128611
+ return null;
128612
+ }
128613
+
128614
+ // 发信详情 sendDetail/{id}
128615
+ async function getDetailReceive() {
128616
+ let res = await get(`/edm/inbox/receiveData`);
128617
+ if (res.code === '0') {
128618
+ return res;
128619
+ }
128620
+ return null;
128621
+ }
128622
+
128623
+ // 发件数据详情 --和邮件往来一样
128624
+ async function mailData_sendDetail(id) {
128625
+ let res = await request_get(`/edm/mail/sendDetail/${id}`);
128626
+ if (res.code === '0') {
128627
+ return res;
128628
+ }
128629
+ return null;
128630
+ }
128631
+
128632
+ // 收信详情
128633
+ async function getDetailSend(id) {
128634
+ let res = await get(`/edm/outbox/sendData`);
128635
+ if (res.code === '0') {
128636
+ return res;
128637
+ }
128638
+ return null;
128639
+ }
128640
+
128641
+ // 查看AI回复 - 发件
128642
+ async function AiReplyDetail(id) {
128643
+ let res = await request_get(`/edm/outbox/selAiReply/${id}`);
128644
+ if (res) {
128645
+ return res;
128646
+ }
128647
+ return null;
128648
+ }
128649
+
128650
+ // 查看AI回复 收件
128651
+ async function aiReply(params) {
128652
+ let res = await request_post(`/edm/inbox/aiReply`, params);
128653
+ if (res) {
128654
+ return res;
128655
+ }
128656
+ return null;
128657
+ }
128658
+
128659
+ // 导出收信数据 /inbox/exportReceiveData
128660
+ async function exportReceiveData(params) {
128661
+ let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
128662
+ if (res) {
128663
+ return res;
128664
+ }
128665
+ return null;
128666
+ }
128667
+
128668
+ // 导出发信数据 /outbox/exportSendData
128669
+ async function exportSendData(params) {
128670
+ let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
128671
+ if (res) {
128672
+ return res;
128673
+ }
128674
+ return null;
128675
+ }
128908
128676
  ;// ./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/MailPage/Editor.vue?vue&type=script&lang=js
128909
128677
  //import { uploadFile } from '@/api'
128910
128678
 
@@ -130045,7 +129813,7 @@ var AttachmentList_component = normalizeComponent(
130045
129813
  methods: {
130046
129814
  // 获取页面数据
130047
129815
  initPageData() {
130048
- sendDetail(this.id).then(res => {
129816
+ mailData_sendDetail(this.id).then(res => {
130049
129817
  if (res) {
130050
129818
  this.mailData = res.data;
130051
129819
  }