wotokol-edm 1.1.21 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/wotokol-edm.common.js +1447 -1130
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css +1 -1
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +1450 -1133
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +20 -20
- package/wotokol-edm.umd.min.js.gz +0 -0
package/wotokol-edm.umd.js
CHANGED
|
@@ -1513,7 +1513,7 @@ module.exports = function (IS_INCLUDES) {
|
|
|
1513
1513
|
|
|
1514
1514
|
/***/ }),
|
|
1515
1515
|
|
|
1516
|
-
/***/
|
|
1516
|
+
/***/ 4194:
|
|
1517
1517
|
/***/ (function(module) {
|
|
1518
1518
|
|
|
1519
1519
|
var toString = {}.toString;
|
|
@@ -1776,7 +1776,7 @@ module.exports = !__webpack_require__(5872) && !__webpack_require__(2451)(functi
|
|
|
1776
1776
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1777
1777
|
|
|
1778
1778
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1779
|
-
var cof = __webpack_require__(
|
|
1779
|
+
var cof = __webpack_require__(4194);
|
|
1780
1780
|
// eslint-disable-next-line no-prototype-builtins
|
|
1781
1781
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
1782
1782
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
@@ -1789,7 +1789,7 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
|
1789
1789
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1790
1790
|
|
|
1791
1791
|
// 7.2.2 IsArray(argument)
|
|
1792
|
-
var cof = __webpack_require__(
|
|
1792
|
+
var cof = __webpack_require__(4194);
|
|
1793
1793
|
module.exports = Array.isArray || function isArray(arg) {
|
|
1794
1794
|
return cof(arg) == 'Array';
|
|
1795
1795
|
};
|
|
@@ -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=
|
|
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
|
|
85288
85288
|
var render = function render() {
|
|
85289
85289
|
var _vm = this,
|
|
85290
85290
|
_c = _vm._self._c;
|
|
@@ -91223,8 +91223,10 @@ async function test_test(params) {
|
|
|
91223
91223
|
// 模拟 hub 登陆 测试账号
|
|
91224
91224
|
// mobileOrEmail: "13262005357",
|
|
91225
91225
|
// password: "123123123"
|
|
91226
|
-
mobileOrEmail: "18846078060",
|
|
91227
|
-
password: "asd123456"
|
|
91226
|
+
// mobileOrEmail: "18846078060",
|
|
91227
|
+
// password: "asd123456"
|
|
91228
|
+
mobileOrEmail: "18767117493",
|
|
91229
|
+
password: "tm123456789"
|
|
91228
91230
|
// mobileOrEmail: "15658187195",
|
|
91229
91231
|
// password: "wotu987412365"
|
|
91230
91232
|
}).then(res => {
|
|
@@ -91376,7 +91378,7 @@ var component = normalizeComponent(
|
|
|
91376
91378
|
staticRenderFns,
|
|
91377
91379
|
false,
|
|
91378
91380
|
null,
|
|
91379
|
-
"
|
|
91381
|
+
"380dc28b",
|
|
91380
91382
|
null
|
|
91381
91383
|
|
|
91382
91384
|
)
|
|
@@ -98675,6 +98677,14 @@ function delTags(id) {
|
|
|
98675
98677
|
function addTags(data) {
|
|
98676
98678
|
return request_post(`/edm/tag/addSign`, data);
|
|
98677
98679
|
}
|
|
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
|
+
}
|
|
98678
98688
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-search/index.vue?vue&type=template&id=4d651f22&scoped=true
|
|
98679
98689
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98680
98690
|
var _vm = this,
|
|
@@ -106579,6 +106589,10 @@ function comeGoBloggerPage(data) {
|
|
|
106579
106589
|
function pagePlan(data) {
|
|
106580
106590
|
return post(`/user/popularize/pagePlan`, data);
|
|
106581
106591
|
}
|
|
106592
|
+
// 撤回邮件
|
|
106593
|
+
function withdraw(id) {
|
|
106594
|
+
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106595
|
+
}
|
|
106582
106596
|
;// ./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
|
|
106583
106597
|
|
|
106584
106598
|
|
|
@@ -109221,8 +109235,8 @@ var detail_component = normalizeComponent(
|
|
|
109221
109235
|
)
|
|
109222
109236
|
|
|
109223
109237
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
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=
|
|
109225
|
-
var
|
|
109238
|
+
;// ./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=3c690e4c&scoped=true
|
|
109239
|
+
var write_emailvue_type_template_id_3c690e4c_scoped_true_render = function render() {
|
|
109226
109240
|
var _vm = this,
|
|
109227
109241
|
_c = _vm._self._c;
|
|
109228
109242
|
return _c('div', {
|
|
@@ -109587,7 +109601,17 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109587
109601
|
staticClass: "el-icon-loading"
|
|
109588
109602
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109589
109603
|
staticClass: "operate-right"
|
|
109590
|
-
}, [
|
|
109604
|
+
}, [_c('el-button', {
|
|
109605
|
+
staticClass: "operate-btn",
|
|
109606
|
+
attrs: {
|
|
109607
|
+
"disabled": _vm.loading
|
|
109608
|
+
},
|
|
109609
|
+
on: {
|
|
109610
|
+
"click": _vm.saveMailTemplate
|
|
109611
|
+
}
|
|
109612
|
+
}, [_vm.loading ? _c('i', {
|
|
109613
|
+
staticClass: "el-icon-loading"
|
|
109614
|
+
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109591
109615
|
staticClass: "operate-btn",
|
|
109592
109616
|
attrs: {
|
|
109593
109617
|
"disabled": _vm.loading
|
|
@@ -109856,12 +109880,13 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109856
109880
|
}) : _vm._e(), _vm.isShowCheck ? _c('check-mail', {
|
|
109857
109881
|
attrs: {
|
|
109858
109882
|
"isShow": _vm.isShowCheck,
|
|
109859
|
-
"reContactNum": _vm.
|
|
109860
|
-
"
|
|
109883
|
+
"reContactNum": _vm.reContactList.length,
|
|
109884
|
+
"riskNum": _vm.riskList.length,
|
|
109861
109885
|
"filterBloggerArr": _vm.filterBloggerArr,
|
|
109862
109886
|
"checkEmails": _vm.checkEmails,
|
|
109863
109887
|
"isSendSuccess": _vm.isSendSuccess,
|
|
109864
|
-
"isReply": _vm.isReply
|
|
109888
|
+
"isReply": _vm.isReply,
|
|
109889
|
+
"totalNum": _vm.totalNum
|
|
109865
109890
|
},
|
|
109866
109891
|
on: {
|
|
109867
109892
|
"closeCheck": _vm.closeCheckEvt,
|
|
@@ -109869,7 +109894,8 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109869
109894
|
"selfSend": _vm.selfSend,
|
|
109870
109895
|
"openAutoJump": function ($event) {
|
|
109871
109896
|
_vm.isSelfClick = false;
|
|
109872
|
-
}
|
|
109897
|
+
},
|
|
109898
|
+
"updateFilterBloggerArr": _vm.updateFilterBloggerArr
|
|
109873
109899
|
}
|
|
109874
109900
|
}) : _vm._e(), _vm.showChooseMail ? _c('chooseMailNew', {
|
|
109875
109901
|
attrs: {
|
|
@@ -109952,9 +109978,20 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_render = function rende
|
|
|
109952
109978
|
},
|
|
109953
109979
|
"updateNickName": val => _vm.nickName = val
|
|
109954
109980
|
}
|
|
109981
|
+
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109982
|
+
attrs: {
|
|
109983
|
+
"tempProductCard": _vm.tempProductCard,
|
|
109984
|
+
"mailTempList": _vm.mailList,
|
|
109985
|
+
"visible": _vm.saveMailTempDialogVisible
|
|
109986
|
+
},
|
|
109987
|
+
on: {
|
|
109988
|
+
"update:visible": function ($event) {
|
|
109989
|
+
_vm.saveMailTempDialogVisible = $event;
|
|
109990
|
+
}
|
|
109991
|
+
}
|
|
109955
109992
|
}) : _vm._e()], 1);
|
|
109956
109993
|
};
|
|
109957
|
-
var
|
|
109994
|
+
var write_emailvue_type_template_id_3c690e4c_scoped_true_staticRenderFns = [function () {
|
|
109958
109995
|
var _vm = this,
|
|
109959
109996
|
_c = _vm._self._c;
|
|
109960
109997
|
return _c('div', {
|
|
@@ -109975,7 +110012,7 @@ var write_emailvue_type_template_id_6c2fdda1_scoped_true_staticRenderFns = [func
|
|
|
109975
110012
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109976
110013
|
}];
|
|
109977
110014
|
|
|
109978
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
110015
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=3c690e4c&scoped=true
|
|
109979
110016
|
|
|
109980
110017
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109981
110018
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -110189,6 +110226,16 @@ function getOauthLink(params) {
|
|
|
110189
110226
|
function bindOutlookEmail(params) {
|
|
110190
110227
|
return request_get("/edm/qiye/saveToken", params);
|
|
110191
110228
|
}
|
|
110229
|
+
|
|
110230
|
+
// 查询风险红人根据红人id列表
|
|
110231
|
+
function getRiskRedList(data) {
|
|
110232
|
+
return request_post("/woto-crm/bloggerRisk/selectBloggerRiskByIds", data);
|
|
110233
|
+
}
|
|
110234
|
+
|
|
110235
|
+
// 获取模板详情
|
|
110236
|
+
function templatesDetail(id) {
|
|
110237
|
+
return request_get(`/edm/template/template/${id}`);
|
|
110238
|
+
}
|
|
110192
110239
|
;// ./src/api/send/outbox.js
|
|
110193
110240
|
|
|
110194
110241
|
// 分页查看发件箱列表
|
|
@@ -111783,8 +111830,8 @@ var sendLimit_component = normalizeComponent(
|
|
|
111783
111830
|
)
|
|
111784
111831
|
|
|
111785
111832
|
/* harmony default export */ var sendLimit = (sendLimit_component.exports);
|
|
111786
|
-
;// ./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/checkMail.vue?vue&type=template&id=
|
|
111787
|
-
var
|
|
111833
|
+
;// ./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/checkMail.vue?vue&type=template&id=5354cf44
|
|
111834
|
+
var checkMailvue_type_template_id_5354cf44_render = function render() {
|
|
111788
111835
|
var _vm = this,
|
|
111789
111836
|
_c = _vm._self._c;
|
|
111790
111837
|
return _c('el-dialog', {
|
|
@@ -111816,36 +111863,75 @@ var checkMailvue_type_template_id_24f8b777_render = function render() {
|
|
|
111816
111863
|
});
|
|
111817
111864
|
}), 1), _vm.active === 0 ? _c('div', {
|
|
111818
111865
|
staticClass: "active1"
|
|
111819
|
-
}, [_c('
|
|
111820
|
-
staticClass: "
|
|
111866
|
+
}, [_c('div', {
|
|
111867
|
+
staticClass: "check-title"
|
|
111868
|
+
}, [_c('span', {
|
|
111869
|
+
staticClass: "txt"
|
|
111870
|
+
}, [_vm._v("检测发现" + _vm._s(_vm.totalNum) + "位有效收件人中")]), _c('Tooltip', {
|
|
111821
111871
|
attrs: {
|
|
111822
|
-
"
|
|
111823
|
-
|
|
111824
|
-
|
|
111825
|
-
|
|
111826
|
-
}
|
|
111827
|
-
staticClass: "
|
|
111828
|
-
}, [
|
|
111829
|
-
staticClass: "
|
|
111830
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("checkMail.filter_completed")) + " ")]), _c('p', {
|
|
111831
|
-
staticClass: "progress-tip"
|
|
111832
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("checkMail.tip1_1")) + " "), _c('span', {
|
|
111833
|
-
staticClass: "underline-span"
|
|
111834
|
-
}, [_vm._v("3S")]), _vm._v(_vm._s(_vm.$i18n.t("checkMail.tip1_2")) + " ")]), _c('p', {
|
|
111835
|
-
staticClass: "progress-note"
|
|
111872
|
+
"content": "123"
|
|
111873
|
+
}
|
|
111874
|
+
})], 1), _c('div', {
|
|
111875
|
+
staticClass: "check-item"
|
|
111876
|
+
}, [_c('div', {
|
|
111877
|
+
staticClass: "check-item_left"
|
|
111878
|
+
}, [_c('div', {
|
|
111879
|
+
staticClass: "check-label"
|
|
111836
111880
|
}, [_c('span', {
|
|
111837
|
-
staticClass: "
|
|
111838
|
-
}, [_vm._v(
|
|
111839
|
-
staticClass: "
|
|
111840
|
-
}, [_vm._v("
|
|
111841
|
-
staticClass: "
|
|
111842
|
-
}, [
|
|
111843
|
-
|
|
111844
|
-
|
|
111845
|
-
|
|
111881
|
+
staticClass: "red"
|
|
111882
|
+
}, [_vm._v(_vm._s(_vm.reContactNum))]), _vm._v("位重复触达红人 ")]), _c('div', {
|
|
111883
|
+
staticClass: "check-tip"
|
|
111884
|
+
}, [_vm._v("*30天内邮件联系过")])]), _c('div', {
|
|
111885
|
+
staticClass: "check-item_right"
|
|
111886
|
+
}, [_c('el-switch', {
|
|
111887
|
+
attrs: {
|
|
111888
|
+
"active-text": _vm.isFilterRepeat ? '过滤' : '不过滤'
|
|
111889
|
+
},
|
|
111890
|
+
on: {
|
|
111891
|
+
"change": _vm.changeFilter
|
|
111892
|
+
},
|
|
111893
|
+
model: {
|
|
111894
|
+
value: _vm.isFilterRepeat,
|
|
111895
|
+
callback: function ($$v) {
|
|
111896
|
+
_vm.isFilterRepeat = $$v;
|
|
111897
|
+
},
|
|
111898
|
+
expression: "isFilterRepeat"
|
|
111899
|
+
}
|
|
111900
|
+
})], 1), _c('img', {
|
|
111901
|
+
attrs: {
|
|
111902
|
+
"src": "https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png"
|
|
111903
|
+
}
|
|
111904
|
+
})]), _c('div', {
|
|
111905
|
+
staticClass: "check-item"
|
|
111906
|
+
}, [_c('div', {
|
|
111907
|
+
staticClass: "check-item_left"
|
|
111908
|
+
}, [_c('div', {
|
|
111909
|
+
staticClass: "check-label"
|
|
111846
111910
|
}, [_c('span', {
|
|
111847
|
-
staticClass: "
|
|
111848
|
-
}, [_vm._v(
|
|
111911
|
+
staticClass: "red"
|
|
111912
|
+
}, [_vm._v(_vm._s(_vm.riskNum))]), _vm._v("位有履约风险红人 ")]), _c('div', {
|
|
111913
|
+
staticClass: "check-tip"
|
|
111914
|
+
}, [_vm._v("*平台上记录有履约风险")])]), _c('div', {
|
|
111915
|
+
staticClass: "check-item_right"
|
|
111916
|
+
}, [_c('el-switch', {
|
|
111917
|
+
attrs: {
|
|
111918
|
+
"active-text": _vm.isFilterRisk ? '过滤' : '不过滤'
|
|
111919
|
+
},
|
|
111920
|
+
on: {
|
|
111921
|
+
"change": _vm.changeFilter
|
|
111922
|
+
},
|
|
111923
|
+
model: {
|
|
111924
|
+
value: _vm.isFilterRisk,
|
|
111925
|
+
callback: function ($$v) {
|
|
111926
|
+
_vm.isFilterRisk = $$v;
|
|
111927
|
+
},
|
|
111928
|
+
expression: "isFilterRisk"
|
|
111929
|
+
}
|
|
111930
|
+
})], 1), _c('img', {
|
|
111931
|
+
attrs: {
|
|
111932
|
+
"src": "https://wotokol-oss.oss-cn-hangzhou.aliyuncs.com/check-fail.png"
|
|
111933
|
+
}
|
|
111934
|
+
})])]) : _vm._e(), _vm.active === 1 ? _c('div', {
|
|
111849
111935
|
staticClass: "active2"
|
|
111850
111936
|
}, [_c('div', {
|
|
111851
111937
|
staticClass: "variable-check"
|
|
@@ -111946,35 +112032,49 @@ var checkMailvue_type_template_id_24f8b777_render = function render() {
|
|
|
111946
112032
|
"size": "small"
|
|
111947
112033
|
},
|
|
111948
112034
|
on: {
|
|
111949
|
-
"click": _vm.
|
|
112035
|
+
"click": _vm.closeCheck
|
|
111950
112036
|
}
|
|
111951
|
-
}, [_vm._v("
|
|
112037
|
+
}, [_vm._v(" 取 消 ")]), _c('el-button', {
|
|
111952
112038
|
staticClass: "active1-btn2",
|
|
111953
112039
|
attrs: {
|
|
111954
112040
|
"size": "small",
|
|
111955
112041
|
"type": "primary"
|
|
111956
112042
|
},
|
|
111957
112043
|
on: {
|
|
111958
|
-
"click": _vm.
|
|
112044
|
+
"click": _vm.filterContactBlogger
|
|
111959
112045
|
}
|
|
111960
|
-
}, [_vm._v(
|
|
112046
|
+
}, [_vm._v("下一步")])], 1) : _vm._e()], 1);
|
|
111961
112047
|
};
|
|
111962
|
-
var
|
|
112048
|
+
var checkMailvue_type_template_id_5354cf44_staticRenderFns = [];
|
|
111963
112049
|
|
|
111964
112050
|
;// ./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/checkMail.vue?vue&type=script&lang=js
|
|
111965
112051
|
|
|
111966
112052
|
|
|
112053
|
+
|
|
111967
112054
|
/* harmony default export */ var checkMailvue_type_script_lang_js = ({
|
|
112055
|
+
components: {
|
|
112056
|
+
Tooltip: Tooltip
|
|
112057
|
+
},
|
|
111968
112058
|
props: {
|
|
111969
112059
|
isShow: {
|
|
111970
112060
|
default: false,
|
|
111971
112061
|
type: Boolean
|
|
111972
112062
|
},
|
|
112063
|
+
// 总数
|
|
112064
|
+
totalNum: {
|
|
112065
|
+
type: Number,
|
|
112066
|
+
default: 0
|
|
112067
|
+
},
|
|
111973
112068
|
// 重复触达数
|
|
111974
112069
|
reContactNum: {
|
|
111975
112070
|
type: Number,
|
|
111976
112071
|
default: 0
|
|
111977
112072
|
},
|
|
112073
|
+
// 风险红人数
|
|
112074
|
+
riskNum: {
|
|
112075
|
+
type: Number,
|
|
112076
|
+
default: 0
|
|
112077
|
+
},
|
|
111978
112078
|
//过滤重复发件
|
|
111979
112079
|
filterBloggerArr: {
|
|
111980
112080
|
type: Array,
|
|
@@ -111982,13 +112082,6 @@ var checkMailvue_type_template_id_24f8b777_staticRenderFns = [];
|
|
|
111982
112082
|
return [];
|
|
111983
112083
|
}
|
|
111984
112084
|
},
|
|
111985
|
-
//继续发件
|
|
111986
|
-
continueBloggerArr: {
|
|
111987
|
-
type: Array,
|
|
111988
|
-
default: () => {
|
|
111989
|
-
return [];
|
|
111990
|
-
}
|
|
111991
|
-
},
|
|
111992
112085
|
// 邮件检测
|
|
111993
112086
|
checkEmails: {
|
|
111994
112087
|
type: Array,
|
|
@@ -112013,11 +112106,12 @@ var checkMailvue_type_template_id_24f8b777_staticRenderFns = [];
|
|
|
112013
112106
|
hasVar: false,
|
|
112014
112107
|
//是否有变量
|
|
112015
112108
|
isLoading: false,
|
|
112016
|
-
sendWay: "",
|
|
112017
|
-
//发件方式
|
|
112018
112109
|
checkVar: true,
|
|
112019
112110
|
//检测成功or失败
|
|
112020
|
-
language: api.get("language")
|
|
112111
|
+
language: api.get("language"),
|
|
112112
|
+
isFilterRepeat: true,
|
|
112113
|
+
// 是否过滤重复触发红人
|
|
112114
|
+
isFilterRisk: true // 是否过滤风险红人
|
|
112021
112115
|
};
|
|
112022
112116
|
},
|
|
112023
112117
|
mounted() {
|
|
@@ -112033,8 +112127,7 @@ var checkMailvue_type_template_id_24f8b777_staticRenderFns = [];
|
|
|
112033
112127
|
this.$emit("closeCheck");
|
|
112034
112128
|
},
|
|
112035
112129
|
// 下一步
|
|
112036
|
-
next(
|
|
112037
|
-
// this.active++;
|
|
112130
|
+
next() {
|
|
112038
112131
|
if (!this.isSuccess) {
|
|
112039
112132
|
this.active = 2;
|
|
112040
112133
|
setTimeout(() => {
|
|
@@ -112051,19 +112144,12 @@ var checkMailvue_type_template_id_24f8b777_staticRenderFns = [];
|
|
|
112051
112144
|
this.isLoading = false;
|
|
112052
112145
|
if (!res.data) {
|
|
112053
112146
|
// 检测失败
|
|
112054
|
-
this.sendWay = flag;
|
|
112055
112147
|
this.hasVar = false;
|
|
112056
112148
|
} else {
|
|
112057
|
-
if (flag) {
|
|
112058
|
-
this.sendWay = flag;
|
|
112059
|
-
} else {
|
|
112060
|
-
this.sendWay = "auto";
|
|
112061
|
-
}
|
|
112062
112149
|
this.hasVar = true;
|
|
112063
112150
|
setTimeout(() => {
|
|
112064
112151
|
this.active = 2;
|
|
112065
|
-
|
|
112066
|
-
this.$emit("selfSend", status);
|
|
112152
|
+
this.$emit("selfSend");
|
|
112067
112153
|
}, 3000);
|
|
112068
112154
|
}
|
|
112069
112155
|
} else {
|
|
@@ -112074,16 +112160,12 @@ var checkMailvue_type_template_id_24f8b777_staticRenderFns = [];
|
|
|
112074
112160
|
});
|
|
112075
112161
|
}
|
|
112076
112162
|
},
|
|
112077
|
-
//
|
|
112078
|
-
|
|
112079
|
-
this.next("continueSend");
|
|
112080
|
-
},
|
|
112081
|
-
// 过滤重复红人
|
|
112082
|
-
filterReContact() {
|
|
112163
|
+
// 过滤红人
|
|
112164
|
+
filterContactBlogger() {
|
|
112083
112165
|
if (this.filterBloggerArr.length === 0) {
|
|
112084
112166
|
this.isSuccess = false;
|
|
112085
112167
|
}
|
|
112086
|
-
this.next(
|
|
112168
|
+
this.next();
|
|
112087
112169
|
},
|
|
112088
112170
|
skipToOut() {
|
|
112089
112171
|
this.$emit("skipToOut");
|
|
@@ -112091,27 +112173,23 @@ var checkMailvue_type_template_id_24f8b777_staticRenderFns = [];
|
|
|
112091
112173
|
// 变量检测后发件 区分上一步是自动到变量检测还是继续发件还是过滤了重复触达
|
|
112092
112174
|
varCheckSend() {
|
|
112093
112175
|
this.active = 2;
|
|
112094
|
-
|
|
112095
|
-
|
|
112096
|
-
this.$emit("selfSend", "continueSend");
|
|
112097
|
-
} else if (this.sendWay === "filterSend") {
|
|
112098
|
-
if (this.filterBloggerArr.length === 0) {
|
|
112099
|
-
this.isSuccess = false;
|
|
112100
|
-
} else {
|
|
112101
|
-
this.$emit("selfSend", "filterSend");
|
|
112102
|
-
}
|
|
112176
|
+
if (this.filterBloggerArr.length === 0) {
|
|
112177
|
+
this.isSuccess = false;
|
|
112103
112178
|
} else {
|
|
112104
|
-
this.$emit("selfSend"
|
|
112179
|
+
this.$emit("selfSend");
|
|
112105
112180
|
}
|
|
112181
|
+
},
|
|
112182
|
+
changeFilter() {
|
|
112183
|
+
this.$emit("updateFilterBloggerArr", this.isFilterRepeat, this.isFilterRisk);
|
|
112106
112184
|
}
|
|
112107
112185
|
}
|
|
112108
112186
|
});
|
|
112109
112187
|
;// ./src/package/write-email/components/checkMail.vue?vue&type=script&lang=js
|
|
112110
112188
|
/* harmony default export */ var components_checkMailvue_type_script_lang_js = (checkMailvue_type_script_lang_js);
|
|
112111
|
-
;// ./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/checkMail.vue?vue&type=style&index=0&id=
|
|
112189
|
+
;// ./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/checkMail.vue?vue&type=style&index=0&id=5354cf44&prod&lang=scss
|
|
112112
112190
|
// extracted by mini-css-extract-plugin
|
|
112113
112191
|
|
|
112114
|
-
;// ./src/package/write-email/components/checkMail.vue?vue&type=style&index=0&id=
|
|
112192
|
+
;// ./src/package/write-email/components/checkMail.vue?vue&type=style&index=0&id=5354cf44&prod&lang=scss
|
|
112115
112193
|
|
|
112116
112194
|
;// ./src/package/write-email/components/checkMail.vue
|
|
112117
112195
|
|
|
@@ -112124,8 +112202,8 @@ var checkMailvue_type_template_id_24f8b777_staticRenderFns = [];
|
|
|
112124
112202
|
|
|
112125
112203
|
var checkMail_component = normalizeComponent(
|
|
112126
112204
|
components_checkMailvue_type_script_lang_js,
|
|
112127
|
-
|
|
112128
|
-
|
|
112205
|
+
checkMailvue_type_template_id_5354cf44_render,
|
|
112206
|
+
checkMailvue_type_template_id_5354cf44_staticRenderFns,
|
|
112129
112207
|
false,
|
|
112130
112208
|
null,
|
|
112131
112209
|
null,
|
|
@@ -114332,6 +114410,59 @@ const moneyTypeOpts = [{
|
|
|
114332
114410
|
code: "IDR",
|
|
114333
114411
|
symbol: "Rp"
|
|
114334
114412
|
}];
|
|
114413
|
+
const const_language = [{
|
|
114414
|
+
value: 7,
|
|
114415
|
+
label: '汉语',
|
|
114416
|
+
enLabel: 'Chinese'
|
|
114417
|
+
}, {
|
|
114418
|
+
value: 1,
|
|
114419
|
+
label: '英语',
|
|
114420
|
+
enLabel: 'English'
|
|
114421
|
+
}, {
|
|
114422
|
+
value: 3,
|
|
114423
|
+
label: '法语',
|
|
114424
|
+
enLabel: 'French'
|
|
114425
|
+
}, {
|
|
114426
|
+
value: 8,
|
|
114427
|
+
label: '德语',
|
|
114428
|
+
enLabel: 'German'
|
|
114429
|
+
}, {
|
|
114430
|
+
value: 6,
|
|
114431
|
+
label: '日语',
|
|
114432
|
+
enLabel: 'Japanese'
|
|
114433
|
+
}, {
|
|
114434
|
+
value: 9,
|
|
114435
|
+
label: '韩语',
|
|
114436
|
+
enLabel: 'Korean'
|
|
114437
|
+
}, {
|
|
114438
|
+
value: 10,
|
|
114439
|
+
label: '越南语',
|
|
114440
|
+
enLabel: 'Vietnamese'
|
|
114441
|
+
}, {
|
|
114442
|
+
value: 11,
|
|
114443
|
+
label: '泰国语',
|
|
114444
|
+
enLabel: 'Thai'
|
|
114445
|
+
}, {
|
|
114446
|
+
value: 12,
|
|
114447
|
+
label: '菲律宾语',
|
|
114448
|
+
enLabel: 'Filipino'
|
|
114449
|
+
}, {
|
|
114450
|
+
value: 13,
|
|
114451
|
+
label: '印度尼西亚语',
|
|
114452
|
+
enLabel: 'Indonesian'
|
|
114453
|
+
}, {
|
|
114454
|
+
value: 14,
|
|
114455
|
+
label: '俄罗斯语',
|
|
114456
|
+
enLabel: 'Russian'
|
|
114457
|
+
}, {
|
|
114458
|
+
value: 4,
|
|
114459
|
+
label: '西班牙语',
|
|
114460
|
+
enLabel: 'Spanish'
|
|
114461
|
+
}, {
|
|
114462
|
+
value: 15,
|
|
114463
|
+
label: '意大利语',
|
|
114464
|
+
enLabel: 'Italian'
|
|
114465
|
+
}];
|
|
114335
114466
|
;// ./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
|
|
114336
114467
|
|
|
114337
114468
|
|
|
@@ -118342,840 +118473,593 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118342
118473
|
};
|
|
118343
118474
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118344
118475
|
|
|
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=
|
|
118346
|
-
|
|
118476
|
+
;// ./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
|
|
118477
|
+
|
|
118478
|
+
|
|
118479
|
+
var TemplateListvue_type_template_id_d1b92a60_scoped_true_render = function render() {
|
|
118347
118480
|
var _vm = this,
|
|
118348
118481
|
_c = _vm._self._c;
|
|
118349
118482
|
return _c('div', {
|
|
118350
118483
|
staticClass: "wrap"
|
|
118351
118484
|
}, [_c('div', {
|
|
118352
|
-
staticClass: "
|
|
118485
|
+
staticClass: "inbox-search-wrap"
|
|
118486
|
+
}, [_c('el-row', {
|
|
118487
|
+
attrs: {
|
|
118488
|
+
"gutter": 12
|
|
118489
|
+
}
|
|
118490
|
+
}, [_c('el-col', {
|
|
118491
|
+
attrs: {
|
|
118492
|
+
"span": 8
|
|
118493
|
+
}
|
|
118353
118494
|
}, [_c('div', {
|
|
118354
|
-
staticClass: "
|
|
118495
|
+
staticClass: "col-item col-select-input-item"
|
|
118355
118496
|
}, [_c('el-select', {
|
|
118497
|
+
staticClass: "template_select",
|
|
118498
|
+
attrs: {
|
|
118499
|
+
"slot": "prepend",
|
|
118500
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118501
|
+
},
|
|
118356
118502
|
on: {
|
|
118357
118503
|
"change": function ($event) {
|
|
118358
|
-
_vm.searchForm.
|
|
118359
|
-
_vm.
|
|
118360
|
-
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118361
|
-
_vm.init();
|
|
118504
|
+
_vm.searchForm.scene = '';
|
|
118505
|
+
_vm.contentInput = '';
|
|
118362
118506
|
}
|
|
118363
118507
|
},
|
|
118508
|
+
slot: "prepend",
|
|
118364
118509
|
model: {
|
|
118365
|
-
value: _vm.
|
|
118510
|
+
value: _vm.contentSelect,
|
|
118366
118511
|
callback: function ($$v) {
|
|
118367
|
-
_vm
|
|
118512
|
+
_vm.contentSelect = $$v;
|
|
118368
118513
|
},
|
|
118369
|
-
expression: "
|
|
118514
|
+
expression: "contentSelect"
|
|
118370
118515
|
}
|
|
118371
118516
|
}, [_c('el-option', {
|
|
118372
118517
|
attrs: {
|
|
118373
|
-
"label":
|
|
118374
|
-
"value": 1
|
|
118518
|
+
"label": "模版名称",
|
|
118519
|
+
"value": "1"
|
|
118375
118520
|
}
|
|
118376
118521
|
}), _c('el-option', {
|
|
118377
118522
|
attrs: {
|
|
118378
|
-
"label":
|
|
118379
|
-
"value": 2
|
|
118523
|
+
"label": "应用场景",
|
|
118524
|
+
"value": "2"
|
|
118380
118525
|
}
|
|
118381
|
-
})], 1)
|
|
118382
|
-
staticClass: "
|
|
118526
|
+
})], 1), _vm.searchForm.type == 1 && _vm.contentSelect == 2 ? _c('div', {
|
|
118527
|
+
staticClass: "temp_right"
|
|
118383
118528
|
}, [_c('el-select', {
|
|
118384
118529
|
attrs: {
|
|
118385
|
-
"
|
|
118386
|
-
"
|
|
118387
|
-
},
|
|
118388
|
-
on: {
|
|
118389
|
-
"change": function ($event) {
|
|
118390
|
-
_vm.searchForm.currentPage = 1;
|
|
118391
|
-
_vm.init();
|
|
118392
|
-
}
|
|
118530
|
+
"slot": "prepend",
|
|
118531
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118393
118532
|
},
|
|
118533
|
+
slot: "prepend",
|
|
118394
118534
|
model: {
|
|
118395
|
-
value: _vm.searchForm.
|
|
118535
|
+
value: _vm.searchForm.scene,
|
|
118396
118536
|
callback: function ($$v) {
|
|
118397
|
-
_vm.$set(_vm.searchForm, "
|
|
118537
|
+
_vm.$set(_vm.searchForm, "scene", $$v);
|
|
118398
118538
|
},
|
|
118399
|
-
expression: "searchForm.
|
|
118539
|
+
expression: "searchForm.scene"
|
|
118400
118540
|
}
|
|
118401
|
-
}, _vm._l(_vm.
|
|
118541
|
+
}, _vm._l(_vm.templateSystemScene, function (scene) {
|
|
118402
118542
|
return _c('el-option', {
|
|
118403
|
-
key:
|
|
118543
|
+
key: scene.value,
|
|
118404
118544
|
attrs: {
|
|
118405
|
-
"
|
|
118406
|
-
"
|
|
118545
|
+
"label": scene.label,
|
|
118546
|
+
"value": scene.value
|
|
118407
118547
|
}
|
|
118408
118548
|
});
|
|
118409
|
-
}), 1)], 1)
|
|
118410
|
-
staticClass: "
|
|
118411
|
-
}, [_c('
|
|
118412
|
-
staticClass: "
|
|
118413
|
-
|
|
118414
|
-
"
|
|
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
|
|
118549
|
+
}), 1)], 1) : _c('div', {
|
|
118550
|
+
staticClass: "temp_right"
|
|
118551
|
+
}, [_c('el-input', {
|
|
118552
|
+
staticClass: "col-input-select",
|
|
118553
|
+
attrs: {
|
|
118554
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118423
118555
|
},
|
|
118424
118556
|
model: {
|
|
118425
|
-
value: _vm.
|
|
118557
|
+
value: _vm.contentInput,
|
|
118426
118558
|
callback: function ($$v) {
|
|
118427
|
-
_vm
|
|
118559
|
+
_vm.contentInput = $$v;
|
|
118428
118560
|
},
|
|
118429
|
-
expression: "
|
|
118561
|
+
expression: "contentInput"
|
|
118430
118562
|
}
|
|
118431
|
-
},
|
|
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', {
|
|
118563
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118515
118564
|
attrs: {
|
|
118516
|
-
"
|
|
118517
|
-
"total": _vm.tableTotal,
|
|
118518
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118519
|
-
"pager-count": 5,
|
|
118520
|
-
"small": "",
|
|
118521
|
-
"layout": "total, prev, pager, next, jumper"
|
|
118522
|
-
},
|
|
118523
|
-
on: {
|
|
118524
|
-
"current-change": _vm.changePage
|
|
118565
|
+
"span": 8
|
|
118525
118566
|
}
|
|
118526
|
-
}
|
|
118567
|
+
}, [_c('div', {
|
|
118568
|
+
staticClass: "col-item col-select-input-item"
|
|
118569
|
+
}, [_c('el-input', {
|
|
118570
|
+
staticClass: "col-input-select",
|
|
118527
118571
|
attrs: {
|
|
118528
|
-
"
|
|
118529
|
-
"with-header": false,
|
|
118530
|
-
"wrapper-closable": false,
|
|
118531
|
-
"append-to-body": "",
|
|
118532
|
-
"size": "800px"
|
|
118572
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118533
118573
|
},
|
|
118534
|
-
|
|
118535
|
-
|
|
118536
|
-
|
|
118537
|
-
|
|
118574
|
+
model: {
|
|
118575
|
+
value: _vm.mailTitleInput,
|
|
118576
|
+
callback: function ($$v) {
|
|
118577
|
+
_vm.mailTitleInput = $$v;
|
|
118578
|
+
},
|
|
118579
|
+
expression: "mailTitleInput"
|
|
118538
118580
|
}
|
|
118539
|
-
}, [
|
|
118581
|
+
}, [_c('el-select', {
|
|
118540
118582
|
attrs: {
|
|
118541
|
-
"
|
|
118542
|
-
"
|
|
118543
|
-
"selectType": _vm.searchForm.type
|
|
118583
|
+
"slot": "prepend",
|
|
118584
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118544
118585
|
},
|
|
118545
118586
|
on: {
|
|
118546
|
-
"
|
|
118547
|
-
_vm.
|
|
118548
|
-
_vm.
|
|
118549
|
-
|
|
118550
|
-
"close": function ($event) {
|
|
118551
|
-
_vm.setId = 0;
|
|
118552
|
-
_vm.isShowSet = false;
|
|
118587
|
+
"change": function ($event) {
|
|
118588
|
+
_vm.mailTitleInput = '';
|
|
118589
|
+
_vm.searchForm.content = '';
|
|
118590
|
+
_vm.searchForm.mailSubject = '';
|
|
118553
118591
|
}
|
|
118554
|
-
}
|
|
118555
|
-
}) : _vm._e()], 1), _vm.isShowSetSystem ? _c('set-sys-template', {
|
|
118556
|
-
attrs: {
|
|
118557
|
-
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118558
|
-
"tabOpts": _vm.tabOpts,
|
|
118559
|
-
"mailId": _vm.mailId
|
|
118560
118592
|
},
|
|
118561
|
-
|
|
118562
|
-
|
|
118593
|
+
slot: "prepend",
|
|
118594
|
+
model: {
|
|
118595
|
+
value: _vm.mailTitleSelect,
|
|
118596
|
+
callback: function ($$v) {
|
|
118597
|
+
_vm.mailTitleSelect = $$v;
|
|
118598
|
+
},
|
|
118599
|
+
expression: "mailTitleSelect"
|
|
118563
118600
|
}
|
|
118564
|
-
}
|
|
118565
|
-
|
|
118566
|
-
|
|
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
|
-
}
|
|
118601
|
+
}, [_c('el-option', {
|
|
118602
|
+
attrs: {
|
|
118603
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118604
|
+
"value": "1"
|
|
118609
118605
|
}
|
|
118610
|
-
},
|
|
118611
|
-
staticClass: "dss-iconfont icon-close"
|
|
118612
|
-
})])]), _c('div', {
|
|
118613
|
-
staticClass: "drawer-body hidden-scrollbar"
|
|
118614
|
-
}, [_c('el-form', {
|
|
118615
|
-
ref: "form",
|
|
118606
|
+
}), _c('el-option', {
|
|
118616
118607
|
attrs: {
|
|
118617
|
-
"
|
|
118618
|
-
"
|
|
118608
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118609
|
+
"value": "2"
|
|
118619
118610
|
}
|
|
118620
|
-
},
|
|
118621
|
-
staticClass: "form-item"
|
|
118622
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.template_title")))]), _c('el-form-item', {
|
|
118611
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118623
118612
|
attrs: {
|
|
118624
|
-
"
|
|
118613
|
+
"span": 8
|
|
118625
118614
|
}
|
|
118626
|
-
}, [_c('
|
|
118615
|
+
}, [_c('div', {
|
|
118616
|
+
staticClass: "col-item"
|
|
118617
|
+
}, [_c('span', {
|
|
118618
|
+
staticClass: "col-span"
|
|
118619
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118620
|
+
staticClass: "col-select",
|
|
118627
118621
|
attrs: {
|
|
118628
|
-
"
|
|
118629
|
-
"
|
|
118630
|
-
"
|
|
118622
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118623
|
+
"clearable": "",
|
|
118624
|
+
"filterable": ""
|
|
118631
118625
|
},
|
|
118632
118626
|
model: {
|
|
118633
|
-
value: _vm.
|
|
118627
|
+
value: _vm.searchForm.modelLanguage,
|
|
118634
118628
|
callback: function ($$v) {
|
|
118635
|
-
_vm.$set(_vm.
|
|
118629
|
+
_vm.$set(_vm.searchForm, "modelLanguage", $$v);
|
|
118636
118630
|
},
|
|
118637
|
-
expression: "
|
|
118631
|
+
expression: "searchForm.modelLanguage"
|
|
118638
118632
|
}
|
|
118639
|
-
}
|
|
118640
|
-
|
|
118641
|
-
|
|
118633
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118634
|
+
return _c('el-option', {
|
|
118635
|
+
key: item.value,
|
|
118636
|
+
attrs: {
|
|
118637
|
+
"value": item.value,
|
|
118638
|
+
"label": item.label
|
|
118639
|
+
}
|
|
118640
|
+
});
|
|
118641
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118642
|
+
staticStyle: {
|
|
118643
|
+
"margin-top": "8px"
|
|
118644
|
+
},
|
|
118642
118645
|
attrs: {
|
|
118643
|
-
"
|
|
118646
|
+
"gutter": 12
|
|
118644
118647
|
}
|
|
118645
|
-
}, [_c('el-
|
|
118646
|
-
ref: "mailSubjectIpt",
|
|
118648
|
+
}, [_c('el-col', {
|
|
118647
118649
|
attrs: {
|
|
118648
|
-
"
|
|
118649
|
-
|
|
118650
|
+
"span": 8
|
|
118651
|
+
}
|
|
118652
|
+
}, [_c('div', {
|
|
118653
|
+
staticClass: "col-item"
|
|
118654
|
+
}, [_c('span', {
|
|
118655
|
+
staticClass: "col-span"
|
|
118656
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118657
|
+
staticClass: "col-select",
|
|
118658
|
+
attrs: {
|
|
118659
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118650
118660
|
"clearable": ""
|
|
118651
118661
|
},
|
|
118652
118662
|
on: {
|
|
118653
|
-
"
|
|
118654
|
-
_vm.isFocusSubject = true;
|
|
118655
|
-
}
|
|
118663
|
+
"change": _vm.modelTypeChange
|
|
118656
118664
|
},
|
|
118657
118665
|
model: {
|
|
118658
|
-
value: _vm.
|
|
118666
|
+
value: _vm.searchForm.type,
|
|
118659
118667
|
callback: function ($$v) {
|
|
118660
|
-
_vm.$set(_vm.
|
|
118668
|
+
_vm.$set(_vm.searchForm, "type", $$v);
|
|
118661
118669
|
},
|
|
118662
|
-
expression: "
|
|
118663
|
-
}
|
|
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",
|
|
118670
|
-
attrs: {
|
|
118671
|
-
"height": 400,
|
|
118672
|
-
"theme": "light"
|
|
118673
|
-
},
|
|
118674
|
-
on: {
|
|
118675
|
-
"click": function ($event) {
|
|
118676
|
-
_vm.isFocusSubject = false;
|
|
118677
|
-
}
|
|
118678
|
-
}
|
|
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",
|
|
118689
|
-
attrs: {
|
|
118690
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118691
|
-
},
|
|
118692
|
-
on: {
|
|
118693
|
-
"click": function ($event) {
|
|
118694
|
-
$event.preventDefault();
|
|
118695
|
-
return _vm.setVariable(0);
|
|
118696
|
-
}
|
|
118697
|
-
}
|
|
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
|
-
}
|
|
118670
|
+
expression: "searchForm.type"
|
|
118705
118671
|
}
|
|
118706
|
-
}, [
|
|
118707
|
-
|
|
118672
|
+
}, [_c('el-option', {
|
|
118673
|
+
key: 1,
|
|
118708
118674
|
attrs: {
|
|
118709
|
-
"
|
|
118710
|
-
|
|
118711
|
-
on: {
|
|
118712
|
-
"click": function ($event) {
|
|
118713
|
-
$event.preventDefault();
|
|
118714
|
-
return _vm.setVariable(1);
|
|
118715
|
-
}
|
|
118675
|
+
"value": 1,
|
|
118676
|
+
"label": "系统模版"
|
|
118716
118677
|
}
|
|
118717
|
-
}
|
|
118678
|
+
}), _c('el-option', {
|
|
118679
|
+
key: 2,
|
|
118718
118680
|
attrs: {
|
|
118719
|
-
"
|
|
118720
|
-
|
|
118721
|
-
on: {
|
|
118722
|
-
"click": function ($event) {
|
|
118723
|
-
$event.preventDefault();
|
|
118724
|
-
return _vm.setVariable(2);
|
|
118725
|
-
}
|
|
118681
|
+
"value": 2,
|
|
118682
|
+
"label": "自定义模版"
|
|
118726
118683
|
}
|
|
118727
|
-
}
|
|
118728
|
-
staticClass: "form-item"
|
|
118729
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118684
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118730
118685
|
attrs: {
|
|
118731
|
-
"
|
|
118686
|
+
"span": 8
|
|
118732
118687
|
}
|
|
118733
|
-
}, [_c('
|
|
118688
|
+
}, [_c('div', {
|
|
118689
|
+
staticClass: "col-item"
|
|
118690
|
+
}, [_c('span', {
|
|
118691
|
+
staticClass: "col-span"
|
|
118692
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118693
|
+
staticClass: "col-select",
|
|
118734
118694
|
attrs: {
|
|
118735
|
-
"placeholder": _vm.$i18n.t('common.
|
|
118736
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118695
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118737
118696
|
"clearable": ""
|
|
118738
118697
|
},
|
|
118739
118698
|
model: {
|
|
118740
|
-
value: _vm.
|
|
118699
|
+
value: _vm.searchForm.isShared,
|
|
118741
118700
|
callback: function ($$v) {
|
|
118742
|
-
_vm.$set(_vm.
|
|
118701
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118743
118702
|
},
|
|
118744
|
-
expression: "
|
|
118703
|
+
expression: "searchForm.isShared"
|
|
118745
118704
|
}
|
|
118746
|
-
}
|
|
118747
|
-
|
|
118748
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118705
|
+
}, [_c('el-option', {
|
|
118706
|
+
key: 1,
|
|
118749
118707
|
attrs: {
|
|
118750
|
-
"
|
|
118708
|
+
"value": true,
|
|
118709
|
+
"label": "公开"
|
|
118751
118710
|
}
|
|
118752
|
-
},
|
|
118711
|
+
}), _c('el-option', {
|
|
118712
|
+
key: 2,
|
|
118713
|
+
attrs: {
|
|
118714
|
+
"value": false,
|
|
118715
|
+
"label": "私有"
|
|
118716
|
+
}
|
|
118717
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118718
|
+
attrs: {
|
|
118719
|
+
"span": 8
|
|
118720
|
+
}
|
|
118721
|
+
}, [_c('div', {
|
|
118722
|
+
staticClass: "col-item"
|
|
118723
|
+
}, [_c('span', {
|
|
118724
|
+
staticClass: "col-span"
|
|
118725
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118726
|
+
staticClass: "col-select",
|
|
118753
118727
|
attrs: {
|
|
118754
118728
|
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118755
|
-
"
|
|
118756
|
-
"
|
|
118729
|
+
"clearable": "",
|
|
118730
|
+
"filterable": ""
|
|
118757
118731
|
},
|
|
118758
118732
|
model: {
|
|
118759
|
-
value: _vm.
|
|
118733
|
+
value: _vm.searchForm.userId,
|
|
118760
118734
|
callback: function ($$v) {
|
|
118761
|
-
_vm.$set(_vm.
|
|
118735
|
+
_vm.$set(_vm.searchForm, "userId", $$v);
|
|
118762
118736
|
},
|
|
118763
|
-
expression: "
|
|
118737
|
+
expression: "searchForm.userId"
|
|
118764
118738
|
}
|
|
118765
|
-
}, _vm._l(_vm.
|
|
118739
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118766
118740
|
return _c('el-option', {
|
|
118767
|
-
key:
|
|
118741
|
+
key: item.userId,
|
|
118768
118742
|
attrs: {
|
|
118769
|
-
"
|
|
118770
|
-
"
|
|
118743
|
+
"label": item.userName,
|
|
118744
|
+
"value": item.userId
|
|
118771
118745
|
}
|
|
118772
118746
|
});
|
|
118773
|
-
}), 1)], 1)]
|
|
118774
|
-
|
|
118775
|
-
|
|
118776
|
-
|
|
118747
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118748
|
+
staticStyle: {
|
|
118749
|
+
"margin-top": "8px"
|
|
118750
|
+
},
|
|
118751
|
+
attrs: {
|
|
118752
|
+
"gutter": 20
|
|
118753
|
+
}
|
|
118754
|
+
}, [_c('el-col', {
|
|
118755
|
+
attrs: {
|
|
118756
|
+
"span": 24
|
|
118757
|
+
}
|
|
118758
|
+
}, [_c('div', {
|
|
118759
|
+
staticClass: "btns_box"
|
|
118760
|
+
}, [_c('div', [_c('el-button', {
|
|
118761
|
+
attrs: {
|
|
118762
|
+
"type": "primary"
|
|
118763
|
+
},
|
|
118777
118764
|
on: {
|
|
118778
118765
|
"click": function ($event) {
|
|
118779
|
-
|
|
118766
|
+
_vm.searchForm.currentPage = 1;
|
|
118767
|
+
_vm.getCardList();
|
|
118780
118768
|
}
|
|
118781
118769
|
}
|
|
118782
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118783
|
-
staticClass: "drawer-btn drawer-btn-face",
|
|
118784
|
-
attrs: {
|
|
118785
|
-
"disabled": _vm.isSubmit
|
|
118786
|
-
},
|
|
118770
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118787
118771
|
on: {
|
|
118788
|
-
"click": _vm.
|
|
118772
|
+
"click": _vm.resetEvt
|
|
118789
118773
|
}
|
|
118790
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("
|
|
118791
|
-
|
|
118792
|
-
|
|
118793
|
-
|
|
118794
|
-
var SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns = [];
|
|
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
|
|
118797
|
-
|
|
118798
|
-
|
|
118799
|
-
|
|
118800
|
-
/* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
|
|
118801
|
-
components: {
|
|
118802
|
-
Editor: Editor
|
|
118803
|
-
},
|
|
118804
|
-
props: {
|
|
118805
|
-
id: {
|
|
118806
|
-
default: 0,
|
|
118807
|
-
type: Number
|
|
118808
|
-
},
|
|
118809
|
-
rowData: {
|
|
118810
|
-
type: Object,
|
|
118811
|
-
default: () => {
|
|
118812
|
-
return {};
|
|
118813
|
-
}
|
|
118814
|
-
},
|
|
118815
|
-
// 自定义模板/系统模板
|
|
118816
|
-
selectType: {
|
|
118817
|
-
type: [Number, String],
|
|
118818
|
-
default: ""
|
|
118774
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118775
|
+
staticStyle: {
|
|
118776
|
+
"display": "flex",
|
|
118777
|
+
"align-items": "center"
|
|
118819
118778
|
}
|
|
118820
|
-
},
|
|
118821
|
-
|
|
118822
|
-
|
|
118823
|
-
|
|
118824
|
-
|
|
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 // 是否正在提交
|
|
118871
|
-
};
|
|
118872
|
-
},
|
|
118873
|
-
created() {
|
|
118874
|
-
if (this.id) {
|
|
118875
|
-
// 初始化
|
|
118876
|
-
this.init();
|
|
118779
|
+
}, [_c('div', {
|
|
118780
|
+
staticClass: "right_sort"
|
|
118781
|
+
}, [_c('el-dropdown', {
|
|
118782
|
+
attrs: {
|
|
118783
|
+
"placement": "bottom"
|
|
118877
118784
|
}
|
|
118878
|
-
},
|
|
118879
|
-
|
|
118880
|
-
|
|
118881
|
-
|
|
118882
|
-
|
|
118883
|
-
|
|
118884
|
-
|
|
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
|
-
};
|
|
118895
|
-
}
|
|
118785
|
+
}, [_c('div', {
|
|
118786
|
+
staticClass: "sort_btn"
|
|
118787
|
+
}, [_c('i', {
|
|
118788
|
+
staticClass: "dss-iconfont"
|
|
118789
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118790
|
+
attrs: {
|
|
118791
|
+
"slot": "dropdown"
|
|
118896
118792
|
},
|
|
118897
|
-
|
|
118898
|
-
|
|
118899
|
-
|
|
118900
|
-
|
|
118901
|
-
|
|
118902
|
-
|
|
118903
|
-
|
|
118904
|
-
|
|
118905
|
-
|
|
118906
|
-
|
|
118907
|
-
|
|
118908
|
-
|
|
118909
|
-
|
|
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;
|
|
118793
|
+
slot: "dropdown"
|
|
118794
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118795
|
+
return _c('el-dropdown-item', {
|
|
118796
|
+
key: index,
|
|
118797
|
+
staticStyle: {
|
|
118798
|
+
"white-space": "nowrap"
|
|
118799
|
+
},
|
|
118800
|
+
attrs: {
|
|
118801
|
+
"command": item.value
|
|
118802
|
+
},
|
|
118803
|
+
nativeOn: {
|
|
118804
|
+
"click": function ($event) {
|
|
118805
|
+
return _vm.clickDropdownItem(item);
|
|
118941
118806
|
}
|
|
118942
|
-
}
|
|
118943
|
-
},
|
|
118944
|
-
|
|
118945
|
-
|
|
118946
|
-
|
|
118947
|
-
|
|
118948
|
-
|
|
118949
|
-
|
|
118950
|
-
|
|
118951
|
-
|
|
118952
|
-
|
|
118953
|
-
|
|
118954
|
-
|
|
118955
|
-
|
|
118956
|
-
|
|
118957
|
-
|
|
118958
|
-
|
|
118959
|
-
|
|
118960
|
-
|
|
118961
|
-
|
|
118962
|
-
|
|
118963
|
-
|
|
118964
|
-
|
|
118807
|
+
}
|
|
118808
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118809
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118810
|
+
directives: [{
|
|
118811
|
+
name: "loading",
|
|
118812
|
+
rawName: "v-loading",
|
|
118813
|
+
value: _vm.loading,
|
|
118814
|
+
expression: "loading"
|
|
118815
|
+
}],
|
|
118816
|
+
staticClass: "temp_box"
|
|
118817
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118818
|
+
staticClass: "temp_list"
|
|
118819
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118820
|
+
return _c('div', {
|
|
118821
|
+
key: item.id,
|
|
118822
|
+
staticClass: "temp_item"
|
|
118823
|
+
}, [_c('div', {
|
|
118824
|
+
staticClass: "temp_content"
|
|
118825
|
+
}, [_c('div', {
|
|
118826
|
+
staticClass: "temp_top"
|
|
118827
|
+
}, [_c('div', {
|
|
118828
|
+
staticClass: "temp_title"
|
|
118829
|
+
}, [_c('div', {
|
|
118830
|
+
staticClass: "title_text"
|
|
118831
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118832
|
+
staticClass: "more_icon",
|
|
118833
|
+
on: {
|
|
118834
|
+
"click": function ($event) {
|
|
118835
|
+
return _vm.toDetail(item);
|
|
118965
118836
|
}
|
|
118966
|
-
|
|
118967
|
-
|
|
118968
|
-
|
|
118969
|
-
|
|
118970
|
-
|
|
118971
|
-
|
|
118972
|
-
|
|
118973
|
-
|
|
118974
|
-
|
|
118975
|
-
|
|
118976
|
-
|
|
118977
|
-
|
|
118978
|
-
|
|
118979
|
-
|
|
118980
|
-
|
|
118981
|
-
|
|
118982
|
-
|
|
118983
|
-
|
|
118984
|
-
|
|
118985
|
-
|
|
118986
|
-
|
|
118987
|
-
|
|
118837
|
+
}
|
|
118838
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118839
|
+
staticClass: "el-icon-arrow-right"
|
|
118840
|
+
})])]), _c('div', {
|
|
118841
|
+
staticClass: "num_box"
|
|
118842
|
+
}, [_c('div', {
|
|
118843
|
+
staticClass: "lang_box"
|
|
118844
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), item.attachmentNum ? _c('div', {
|
|
118845
|
+
staticClass: "lang_box"
|
|
118846
|
+
}, [_vm._v(" 附件:" + _vm._s(item.attachmentNum) + "个 ")]) : _vm._e(), item.productCardNum ? _c('div', {
|
|
118847
|
+
staticClass: "lang_box"
|
|
118848
|
+
}, [_vm._v(" 商品卡:" + _vm._s(item.productCardNum) + "个 ")]) : _vm._e()])]), _c('div', {
|
|
118849
|
+
staticClass: "temp_middle"
|
|
118850
|
+
}, [_c('div', {
|
|
118851
|
+
staticClass: "nu_box"
|
|
118852
|
+
}, [_c('div', {
|
|
118853
|
+
staticClass: "nu_title"
|
|
118854
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118855
|
+
staticClass: "nu_number"
|
|
118856
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118857
|
+
staticClass: "nu_box"
|
|
118858
|
+
}, [_c('div', {
|
|
118859
|
+
staticClass: "nu_title"
|
|
118860
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118861
|
+
staticClass: "nu_number"
|
|
118862
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118863
|
+
staticClass: "nu_box"
|
|
118864
|
+
}, [_c('div', {
|
|
118865
|
+
staticClass: "nu_title"
|
|
118866
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118867
|
+
staticClass: "nu_number"
|
|
118868
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118869
|
+
staticClass: "nu_box"
|
|
118870
|
+
}, [_c('div', {
|
|
118871
|
+
staticClass: "nu_title"
|
|
118872
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118873
|
+
staticClass: "nu_number"
|
|
118874
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118875
|
+
staticClass: "tem_bottom"
|
|
118876
|
+
}, [_c('div', {
|
|
118877
|
+
staticClass: "tem_desc"
|
|
118878
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118879
|
+
staticClass: "tem_desc"
|
|
118880
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118881
|
+
staticClass: "desc_btns"
|
|
118882
|
+
}, [_c('div', {
|
|
118883
|
+
staticClass: "desc_text"
|
|
118884
|
+
}, [_c('div', {
|
|
118885
|
+
staticClass: "tem_desc"
|
|
118886
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118887
|
+
staticClass: "tem_desc"
|
|
118888
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118889
|
+
staticClass: "apply_btn"
|
|
118890
|
+
}, [_c('el-button', {
|
|
118891
|
+
attrs: {
|
|
118892
|
+
"type": "primary"
|
|
118893
|
+
},
|
|
118894
|
+
on: {
|
|
118895
|
+
"click": function ($event) {
|
|
118896
|
+
return _vm.setMailTemplate(item);
|
|
118988
118897
|
}
|
|
118989
|
-
this.$refs.templateContent.insertEditContent(content);
|
|
118990
118898
|
}
|
|
118991
|
-
},
|
|
118992
|
-
|
|
118993
|
-
|
|
118994
|
-
|
|
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', {
|
|
118899
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118900
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118901
|
+
staticClass: "page_box"
|
|
118902
|
+
}, [_c('el-pagination', {
|
|
119031
118903
|
attrs: {
|
|
119032
|
-
"
|
|
119033
|
-
"
|
|
119034
|
-
"
|
|
119035
|
-
"
|
|
119036
|
-
"append-to-body": ""
|
|
118904
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118905
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118906
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118907
|
+
"total": _vm.total
|
|
119037
118908
|
},
|
|
119038
118909
|
on: {
|
|
119039
|
-
"
|
|
119040
|
-
|
|
119041
|
-
|
|
119042
|
-
|
|
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);
|
|
118910
|
+
"size-change": _vm.handleSizeChange,
|
|
118911
|
+
"current-change": _vm.handleCurrentChange,
|
|
118912
|
+
"update:currentPage": function ($event) {
|
|
118913
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
119056
118914
|
},
|
|
119057
|
-
|
|
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
|
|
118915
|
+
"update:current-page": function ($event) {
|
|
118916
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
119065
118917
|
}
|
|
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
118918
|
}
|
|
119074
|
-
},
|
|
119075
|
-
staticClass: "form-btn form-btn-face",
|
|
119076
|
-
on: {
|
|
119077
|
-
"click": _vm.customToSystem
|
|
119078
|
-
}
|
|
119079
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
|
|
118919
|
+
})], 1)]);
|
|
119080
118920
|
};
|
|
119081
|
-
var
|
|
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 [];
|
|
119099
|
-
}
|
|
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
|
-
});
|
|
119128
|
-
} else {
|
|
119129
|
-
this.$message.error(res.message);
|
|
119130
|
-
this.closeEvt();
|
|
119131
|
-
}
|
|
119132
|
-
});
|
|
119133
|
-
},
|
|
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
|
-
;
|
|
118921
|
+
var TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns = [];
|
|
119153
118922
|
|
|
118923
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=d1b92a60&scoped=true
|
|
119154
118924
|
|
|
119155
|
-
|
|
118925
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
119156
118926
|
|
|
119157
|
-
|
|
119158
|
-
|
|
119159
|
-
|
|
119160
|
-
|
|
119161
|
-
|
|
119162
|
-
|
|
119163
|
-
|
|
119164
|
-
|
|
119165
|
-
|
|
119166
|
-
|
|
119167
|
-
|
|
119168
|
-
|
|
118927
|
+
const TemplateCom_const_language = [{
|
|
118928
|
+
value: '7',
|
|
118929
|
+
label: '汉语',
|
|
118930
|
+
enLabel: 'Chinese'
|
|
118931
|
+
}, {
|
|
118932
|
+
value: '1',
|
|
118933
|
+
label: '英语',
|
|
118934
|
+
enLabel: 'English'
|
|
118935
|
+
}, {
|
|
118936
|
+
value: '3',
|
|
118937
|
+
label: '法语',
|
|
118938
|
+
enLabel: 'French'
|
|
118939
|
+
}, {
|
|
118940
|
+
value: '8',
|
|
118941
|
+
label: '德语',
|
|
118942
|
+
enLabel: 'German'
|
|
118943
|
+
}, {
|
|
118944
|
+
value: '6',
|
|
118945
|
+
label: '日语',
|
|
118946
|
+
enLabel: 'Japanese'
|
|
118947
|
+
}, {
|
|
118948
|
+
value: '9',
|
|
118949
|
+
label: '韩语',
|
|
118950
|
+
enLabel: 'Korean'
|
|
118951
|
+
}, {
|
|
118952
|
+
value: '10',
|
|
118953
|
+
label: '越南语',
|
|
118954
|
+
enLabel: 'Vietnamese'
|
|
118955
|
+
}, {
|
|
118956
|
+
value: '11',
|
|
118957
|
+
label: '泰国语',
|
|
118958
|
+
enLabel: 'Thai'
|
|
118959
|
+
}, {
|
|
118960
|
+
value: '12',
|
|
118961
|
+
label: '菲律宾语',
|
|
118962
|
+
enLabel: 'Filipino'
|
|
118963
|
+
}, {
|
|
118964
|
+
value: '13',
|
|
118965
|
+
label: '印度尼西亚语',
|
|
118966
|
+
enLabel: 'Indonesian'
|
|
118967
|
+
}, {
|
|
118968
|
+
value: '14',
|
|
118969
|
+
label: '俄罗斯语',
|
|
118970
|
+
enLabel: 'Russian'
|
|
118971
|
+
}, {
|
|
118972
|
+
value: '4',
|
|
118973
|
+
label: '西班牙语',
|
|
118974
|
+
enLabel: 'Spanish'
|
|
118975
|
+
}, {
|
|
118976
|
+
value: '15',
|
|
118977
|
+
label: '意大利语',
|
|
118978
|
+
enLabel: 'Italian'
|
|
118979
|
+
}];
|
|
118980
|
+
const sortConfig = [{
|
|
118981
|
+
label: '按创建时间倒序',
|
|
118982
|
+
value: 0
|
|
118983
|
+
}, {
|
|
118984
|
+
label: '按更新时间倒序',
|
|
118985
|
+
value: 1
|
|
118986
|
+
}, {
|
|
118987
|
+
label: '按送达率倒序',
|
|
118988
|
+
value: 2
|
|
118989
|
+
}, {
|
|
118990
|
+
label: '按打开率倒序',
|
|
118991
|
+
value: 3
|
|
118992
|
+
}, {
|
|
118993
|
+
label: '按回复率倒序',
|
|
118994
|
+
value: 4
|
|
118995
|
+
}, {
|
|
118996
|
+
label: '按累计发送数倒序',
|
|
118997
|
+
value: 5
|
|
118998
|
+
}];
|
|
118999
|
+
// 系统模版场景
|
|
119000
|
+
const templateSystemScene = [{
|
|
119001
|
+
value: '1',
|
|
119002
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
119003
|
+
},
|
|
119004
|
+
//合作邀请
|
|
119005
|
+
{
|
|
119006
|
+
value: '2',
|
|
119007
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
119008
|
+
},
|
|
119009
|
+
//价格协商
|
|
119010
|
+
{
|
|
119011
|
+
value: '3',
|
|
119012
|
+
label: `${src_language.t('template.contract_template')}`
|
|
119013
|
+
},
|
|
119014
|
+
//合同模板
|
|
119015
|
+
{
|
|
119016
|
+
value: '4',
|
|
119017
|
+
label: `${src_language.t('template.video_production')}`
|
|
119018
|
+
},
|
|
119019
|
+
//视频制作
|
|
119020
|
+
{
|
|
119021
|
+
value: '5',
|
|
119022
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
119023
|
+
} //费用结算
|
|
119024
|
+
];
|
|
119169
119025
|
;// ./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
119026
|
|
|
119171
119027
|
|
|
119172
119028
|
|
|
119173
119029
|
|
|
119174
119030
|
|
|
119031
|
+
|
|
119032
|
+
function createSearchForm(tar) {
|
|
119033
|
+
let raw = {
|
|
119034
|
+
templatesTitle: "",
|
|
119035
|
+
//模板标题
|
|
119036
|
+
scene: "",
|
|
119037
|
+
//应用场景
|
|
119038
|
+
mailSubject: "",
|
|
119039
|
+
//邮件主题
|
|
119040
|
+
content: "",
|
|
119041
|
+
//正文
|
|
119042
|
+
type: null,
|
|
119043
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
119044
|
+
modelLanguage: "",
|
|
119045
|
+
//语言
|
|
119046
|
+
isShared: "",
|
|
119047
|
+
//是否共享
|
|
119048
|
+
userId: "",
|
|
119049
|
+
//创建人
|
|
119050
|
+
searchSort: 1,
|
|
119051
|
+
//排序
|
|
119052
|
+
currentPage: 1,
|
|
119053
|
+
pageSize: 10
|
|
119054
|
+
};
|
|
119055
|
+
if (tar) {
|
|
119056
|
+
raw = Object.assign(raw, tar);
|
|
119057
|
+
}
|
|
119058
|
+
return raw;
|
|
119059
|
+
}
|
|
119175
119060
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119176
119061
|
components: {
|
|
119177
|
-
|
|
119178
|
-
SetSysTemplate: SetSysTemplate
|
|
119062
|
+
Empty: Empty
|
|
119179
119063
|
},
|
|
119180
119064
|
props: {
|
|
119181
119065
|
userId: {
|
|
@@ -119185,161 +119069,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119185
119069
|
},
|
|
119186
119070
|
data() {
|
|
119187
119071
|
return {
|
|
119188
|
-
|
|
119189
|
-
|
|
119190
|
-
|
|
119191
|
-
|
|
119192
|
-
|
|
119193
|
-
|
|
119194
|
-
|
|
119195
|
-
|
|
119196
|
-
|
|
119197
|
-
|
|
119198
|
-
|
|
119199
|
-
|
|
119200
|
-
|
|
119201
|
-
|
|
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: ""
|
|
119072
|
+
// 模版名称 场景
|
|
119073
|
+
contentSelect: "1",
|
|
119074
|
+
contentInput: "",
|
|
119075
|
+
// 邮件主题正文
|
|
119076
|
+
mailTitleSelect: "1",
|
|
119077
|
+
mailTitleInput: "",
|
|
119078
|
+
searchForm: createSearchForm(),
|
|
119079
|
+
language: TemplateCom_const_language,
|
|
119080
|
+
sortConfig: sortConfig,
|
|
119081
|
+
accountList: [],
|
|
119082
|
+
templateList: [],
|
|
119083
|
+
templateSystemScene: templateSystemScene,
|
|
119084
|
+
total: 0,
|
|
119085
|
+
loading: false
|
|
119247
119086
|
};
|
|
119248
119087
|
},
|
|
119249
|
-
|
|
119250
|
-
|
|
119251
|
-
this.
|
|
119088
|
+
mounted() {
|
|
119089
|
+
this.getAccountList();
|
|
119090
|
+
this.getCardList();
|
|
119252
119091
|
},
|
|
119253
119092
|
methods: {
|
|
119254
|
-
//
|
|
119255
|
-
|
|
119256
|
-
this.
|
|
119257
|
-
if (
|
|
119258
|
-
|
|
119093
|
+
// 语言枚举
|
|
119094
|
+
getLangLabel(val) {
|
|
119095
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119096
|
+
if (currLang) {
|
|
119097
|
+
return currLang.label;
|
|
119259
119098
|
}
|
|
119260
|
-
|
|
119261
|
-
|
|
119262
|
-
|
|
119263
|
-
|
|
119264
|
-
|
|
119099
|
+
},
|
|
119100
|
+
// 应用模版
|
|
119101
|
+
setMailTemplate(data) {
|
|
119102
|
+
this.$emit("setMailTemplate", data);
|
|
119103
|
+
},
|
|
119104
|
+
// 跳转详情
|
|
119105
|
+
toDetail(item) {
|
|
119106
|
+
const routeData = this.$router.resolve({
|
|
119107
|
+
path: "/emailTempDetail",
|
|
119108
|
+
query: {
|
|
119109
|
+
type: "edit",
|
|
119110
|
+
id: item.id
|
|
119111
|
+
}
|
|
119112
|
+
});
|
|
119113
|
+
window.open(routeData.href, "_blank");
|
|
119114
|
+
},
|
|
119115
|
+
// 获取列表
|
|
119116
|
+
getCardList() {
|
|
119117
|
+
if (this.contentSelect == "1") {
|
|
119118
|
+
this.searchForm.templatesTitle = this.contentInput;
|
|
119119
|
+
} else if (this.contentSelect == "2") {
|
|
119120
|
+
//系统模版
|
|
119121
|
+
if (this.searchForm.type != 1) {
|
|
119122
|
+
this.searchForm.scene = this.contentInput;
|
|
119123
|
+
}
|
|
119124
|
+
}
|
|
119125
|
+
if (this.mailTitleSelect == "1") {
|
|
119126
|
+
this.searchForm.mailSubject = this.mailTitleInput;
|
|
119127
|
+
} else if (this.mailTitleSelect == "2") {
|
|
119128
|
+
this.searchForm.content = this.mailTitleInput;
|
|
119129
|
+
}
|
|
119130
|
+
this.loading = true;
|
|
119131
|
+
templatesList(this.searchForm).then(res => {
|
|
119132
|
+
if (res.code == "0") {
|
|
119133
|
+
this.templateList = res.data.rows;
|
|
119134
|
+
this.total = res.data.total;
|
|
119135
|
+
this.loading = false;
|
|
119265
119136
|
} else {
|
|
119137
|
+
this.loading = false;
|
|
119266
119138
|
this.$message.error(res.message);
|
|
119267
119139
|
}
|
|
119268
119140
|
});
|
|
119269
119141
|
},
|
|
119270
|
-
//
|
|
119271
|
-
|
|
119272
|
-
this.searchForm.
|
|
119273
|
-
this.
|
|
119274
|
-
},
|
|
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(() => {});
|
|
119142
|
+
// 模板类型切换
|
|
119143
|
+
modelTypeChange(val) {
|
|
119144
|
+
this.searchForm.scene = "";
|
|
119145
|
+
this.contentInput = "";
|
|
119296
119146
|
},
|
|
119297
|
-
//
|
|
119298
|
-
|
|
119299
|
-
this
|
|
119147
|
+
// 重置
|
|
119148
|
+
resetEvt() {
|
|
119149
|
+
this.searchForm = createSearchForm();
|
|
119150
|
+
this.contentSelect = "1";
|
|
119151
|
+
this.contentInput = "";
|
|
119152
|
+
this.mailTitleSelect = "1";
|
|
119153
|
+
this.mailTitleInput = "";
|
|
119154
|
+
this.getCardList();
|
|
119300
119155
|
},
|
|
119301
|
-
//
|
|
119302
|
-
|
|
119303
|
-
|
|
119304
|
-
|
|
119305
|
-
|
|
119156
|
+
// 获取账号下的账户
|
|
119157
|
+
getAccountList() {
|
|
119158
|
+
hubUserSonFather().then(res => {
|
|
119159
|
+
if (res.code == "0") {
|
|
119160
|
+
this.accountList = res.data;
|
|
119161
|
+
} else {
|
|
119162
|
+
this.$message.error(res.message);
|
|
119163
|
+
}
|
|
119164
|
+
});
|
|
119306
119165
|
},
|
|
119307
|
-
//
|
|
119308
|
-
|
|
119309
|
-
this.searchForm.modelType = tab.name;
|
|
119166
|
+
// 排序按钮
|
|
119167
|
+
clickDropdownItem(item) {
|
|
119310
119168
|
this.searchForm.currentPage = 1;
|
|
119311
|
-
this.
|
|
119169
|
+
this.searchForm.searchSort = item.value;
|
|
119170
|
+
this.getCardList();
|
|
119312
119171
|
},
|
|
119313
|
-
|
|
119314
|
-
|
|
119315
|
-
|
|
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;
|
|
119172
|
+
handleSizeChange(val) {
|
|
119173
|
+
this.searchForm.currentPage = 1;
|
|
119174
|
+
this.searchForm.pageSize = val;
|
|
119175
|
+
this.getCardList();
|
|
119325
119176
|
},
|
|
119326
|
-
|
|
119327
|
-
|
|
119328
|
-
this.
|
|
119177
|
+
handleCurrentChange(val) {
|
|
119178
|
+
this.searchForm.currentPage = val;
|
|
119179
|
+
this.getCardList();
|
|
119329
119180
|
}
|
|
119330
119181
|
}
|
|
119331
119182
|
});
|
|
119332
119183
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119333
119184
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
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=
|
|
119185
|
+
;// ./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
|
|
119335
119186
|
// extracted by mini-css-extract-plugin
|
|
119336
119187
|
|
|
119337
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=
|
|
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
|
|
119340
|
-
// extracted by mini-css-extract-plugin
|
|
119341
|
-
|
|
119342
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119188
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=d1b92a60&prod&lang=scss&scoped=true
|
|
119343
119189
|
|
|
119344
119190
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119345
119191
|
|
|
@@ -119348,16 +119194,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119348
119194
|
;
|
|
119349
119195
|
|
|
119350
119196
|
|
|
119351
|
-
|
|
119352
119197
|
/* normalize component */
|
|
119353
119198
|
|
|
119354
119199
|
var TemplateList_component = normalizeComponent(
|
|
119355
119200
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119356
|
-
|
|
119357
|
-
|
|
119201
|
+
TemplateListvue_type_template_id_d1b92a60_scoped_true_render,
|
|
119202
|
+
TemplateListvue_type_template_id_d1b92a60_scoped_true_staticRenderFns,
|
|
119358
119203
|
false,
|
|
119359
119204
|
null,
|
|
119360
|
-
"
|
|
119205
|
+
"d1b92a60",
|
|
119361
119206
|
null
|
|
119362
119207
|
|
|
119363
119208
|
)
|
|
@@ -121733,6 +121578,406 @@ function inviteEmailSave(data) {
|
|
|
121733
121578
|
function inviteEmailGet(taskId) {
|
|
121734
121579
|
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121735
121580
|
}
|
|
121581
|
+
;// ./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
|
|
121582
|
+
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render = function render() {
|
|
121583
|
+
var _vm = this,
|
|
121584
|
+
_c = _vm._self._c;
|
|
121585
|
+
return _c('el-dialog', {
|
|
121586
|
+
attrs: {
|
|
121587
|
+
"visible": _vm.visible,
|
|
121588
|
+
"title": "存为模版",
|
|
121589
|
+
"width": "480px",
|
|
121590
|
+
"before-close": _vm.closeDialog,
|
|
121591
|
+
"custom-class": "setting-nickname-dialog",
|
|
121592
|
+
"close-on-click-modal": false
|
|
121593
|
+
}
|
|
121594
|
+
}, [_c('div', {
|
|
121595
|
+
directives: [{
|
|
121596
|
+
name: "loading",
|
|
121597
|
+
rawName: "v-loading",
|
|
121598
|
+
value: _vm.loading,
|
|
121599
|
+
expression: "loading"
|
|
121600
|
+
}]
|
|
121601
|
+
}, [_c('el-form', {
|
|
121602
|
+
ref: "ruleForm",
|
|
121603
|
+
staticClass: "demo-ruleForm",
|
|
121604
|
+
attrs: {
|
|
121605
|
+
"label-position": "top",
|
|
121606
|
+
"model": _vm.ruleForm,
|
|
121607
|
+
"rules": _vm.rules,
|
|
121608
|
+
"label-width": "100px"
|
|
121609
|
+
}
|
|
121610
|
+
}, [_c('el-form-item', {
|
|
121611
|
+
attrs: {
|
|
121612
|
+
"label": "模版名称",
|
|
121613
|
+
"prop": "templatesTitle"
|
|
121614
|
+
}
|
|
121615
|
+
}, [_c('el-input', {
|
|
121616
|
+
attrs: {
|
|
121617
|
+
"clearable": ""
|
|
121618
|
+
},
|
|
121619
|
+
model: {
|
|
121620
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121621
|
+
callback: function ($$v) {
|
|
121622
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121623
|
+
},
|
|
121624
|
+
expression: "ruleForm.templatesTitle"
|
|
121625
|
+
}
|
|
121626
|
+
})], 1), _c('el-form-item', {
|
|
121627
|
+
attrs: {
|
|
121628
|
+
"label": "应用场景",
|
|
121629
|
+
"prop": "scene"
|
|
121630
|
+
}
|
|
121631
|
+
}, [_c('el-input', {
|
|
121632
|
+
attrs: {
|
|
121633
|
+
"clearable": ""
|
|
121634
|
+
},
|
|
121635
|
+
model: {
|
|
121636
|
+
value: _vm.ruleForm.scene,
|
|
121637
|
+
callback: function ($$v) {
|
|
121638
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121639
|
+
},
|
|
121640
|
+
expression: "ruleForm.scene"
|
|
121641
|
+
}
|
|
121642
|
+
})], 1), _c('el-form-item', {
|
|
121643
|
+
attrs: {
|
|
121644
|
+
"label": "语言",
|
|
121645
|
+
"prop": "modelLanguage"
|
|
121646
|
+
}
|
|
121647
|
+
}, [_c('el-select', {
|
|
121648
|
+
attrs: {
|
|
121649
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121650
|
+
"clearable": "",
|
|
121651
|
+
"filterable": ""
|
|
121652
|
+
},
|
|
121653
|
+
model: {
|
|
121654
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121655
|
+
callback: function ($$v) {
|
|
121656
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121657
|
+
},
|
|
121658
|
+
expression: "ruleForm.modelLanguage"
|
|
121659
|
+
}
|
|
121660
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121661
|
+
return _c('el-option', {
|
|
121662
|
+
key: item.value,
|
|
121663
|
+
attrs: {
|
|
121664
|
+
"value": item.value,
|
|
121665
|
+
"label": item.label
|
|
121666
|
+
}
|
|
121667
|
+
});
|
|
121668
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121669
|
+
attrs: {
|
|
121670
|
+
"label": "共享状态"
|
|
121671
|
+
}
|
|
121672
|
+
}, [_c('el-select', {
|
|
121673
|
+
attrs: {
|
|
121674
|
+
"clearable": "",
|
|
121675
|
+
"placeholder": "请选择共享状态"
|
|
121676
|
+
},
|
|
121677
|
+
model: {
|
|
121678
|
+
value: _vm.ruleForm.isShared,
|
|
121679
|
+
callback: function ($$v) {
|
|
121680
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121681
|
+
},
|
|
121682
|
+
expression: "ruleForm.isShared"
|
|
121683
|
+
}
|
|
121684
|
+
}, [_c('el-option', {
|
|
121685
|
+
key: 1,
|
|
121686
|
+
attrs: {
|
|
121687
|
+
"value": true,
|
|
121688
|
+
"label": "公开"
|
|
121689
|
+
}
|
|
121690
|
+
}), _c('el-option', {
|
|
121691
|
+
key: 2,
|
|
121692
|
+
attrs: {
|
|
121693
|
+
"value": false,
|
|
121694
|
+
"label": "私有"
|
|
121695
|
+
}
|
|
121696
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121697
|
+
staticClass: "footer-btn"
|
|
121698
|
+
}, [_c('el-button', {
|
|
121699
|
+
on: {
|
|
121700
|
+
"click": function ($event) {
|
|
121701
|
+
return _vm.resetForm('ruleForm');
|
|
121702
|
+
}
|
|
121703
|
+
}
|
|
121704
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121705
|
+
attrs: {
|
|
121706
|
+
"type": "primary",
|
|
121707
|
+
"loading": _vm.confirmBtnLoading
|
|
121708
|
+
},
|
|
121709
|
+
on: {
|
|
121710
|
+
"click": function ($event) {
|
|
121711
|
+
return _vm.submitForm('ruleForm');
|
|
121712
|
+
}
|
|
121713
|
+
}
|
|
121714
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121715
|
+
};
|
|
121716
|
+
var saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns = [];
|
|
121717
|
+
|
|
121718
|
+
;// ./src/api/mailData/index.js
|
|
121719
|
+
|
|
121720
|
+
|
|
121721
|
+
// 文件上传
|
|
121722
|
+
async function mailData_uploadFile(data) {
|
|
121723
|
+
let res = await post("/edm/mail/upload_file", data);
|
|
121724
|
+
return res;
|
|
121725
|
+
}
|
|
121726
|
+
// 邮件发送数据
|
|
121727
|
+
async function getSendList(data) {
|
|
121728
|
+
let res = await request_post("/edm/outbox/sendData", data);
|
|
121729
|
+
if (res.code === '0') {
|
|
121730
|
+
return res;
|
|
121731
|
+
}
|
|
121732
|
+
return null;
|
|
121733
|
+
}
|
|
121734
|
+
|
|
121735
|
+
// 邮件接收数据 inbox/receiveData
|
|
121736
|
+
async function getReceiveList(data) {
|
|
121737
|
+
let res = await request_post("/edm/inbox/receiveData", data);
|
|
121738
|
+
if (res) {
|
|
121739
|
+
return res;
|
|
121740
|
+
}
|
|
121741
|
+
return null;
|
|
121742
|
+
}
|
|
121743
|
+
|
|
121744
|
+
// 查看详情-收件数据
|
|
121745
|
+
async function mailData_getInboxDetail(id) {
|
|
121746
|
+
let res = await get(`/edm/inbox/inboxDetail/${id}`);
|
|
121747
|
+
if (res) {
|
|
121748
|
+
return res;
|
|
121749
|
+
}
|
|
121750
|
+
return null;
|
|
121751
|
+
}
|
|
121752
|
+
|
|
121753
|
+
// 查看会话-收件数据
|
|
121754
|
+
async function getInboxDialogue(chatId) {
|
|
121755
|
+
let res = await request_get(`/edm/inbox/inboxDialogue/${chatId}`);
|
|
121756
|
+
if (res) {
|
|
121757
|
+
return res;
|
|
121758
|
+
}
|
|
121759
|
+
return null;
|
|
121760
|
+
}
|
|
121761
|
+
|
|
121762
|
+
// 查看收件箱详情 /inbox/inboxDetail/{id}
|
|
121763
|
+
async function getInboxDialogue1(id) {
|
|
121764
|
+
let res = await request_get(`/edm/inbox/inboxDetail/${id}`);
|
|
121765
|
+
if (res) {
|
|
121766
|
+
return res;
|
|
121767
|
+
}
|
|
121768
|
+
return null;
|
|
121769
|
+
}
|
|
121770
|
+
|
|
121771
|
+
//发送详情
|
|
121772
|
+
async function getSendDetail(id) {
|
|
121773
|
+
let res = await get(`/edm/outbox/outBoxDetail/${id}`);
|
|
121774
|
+
if (res.code === '0') {
|
|
121775
|
+
return res;
|
|
121776
|
+
}
|
|
121777
|
+
return null;
|
|
121778
|
+
}
|
|
121779
|
+
|
|
121780
|
+
// 发信详情 sendDetail/{id}
|
|
121781
|
+
async function getDetailReceive() {
|
|
121782
|
+
let res = await get(`/edm/inbox/receiveData`);
|
|
121783
|
+
if (res.code === '0') {
|
|
121784
|
+
return res;
|
|
121785
|
+
}
|
|
121786
|
+
return null;
|
|
121787
|
+
}
|
|
121788
|
+
|
|
121789
|
+
// 发件数据详情 --和邮件往来一样
|
|
121790
|
+
async function sendDetail(id) {
|
|
121791
|
+
let res = await request_get(`/edm/mail/sendDetail/${id}`);
|
|
121792
|
+
if (res.code === '0') {
|
|
121793
|
+
return res;
|
|
121794
|
+
}
|
|
121795
|
+
return null;
|
|
121796
|
+
}
|
|
121797
|
+
|
|
121798
|
+
// 收信详情
|
|
121799
|
+
async function getDetailSend(id) {
|
|
121800
|
+
let res = await get(`/edm/outbox/sendData`);
|
|
121801
|
+
if (res.code === '0') {
|
|
121802
|
+
return res;
|
|
121803
|
+
}
|
|
121804
|
+
return null;
|
|
121805
|
+
}
|
|
121806
|
+
|
|
121807
|
+
// 查看AI回复 - 发件
|
|
121808
|
+
async function AiReplyDetail(id) {
|
|
121809
|
+
let res = await request_get(`/edm/outbox/selAiReply/${id}`);
|
|
121810
|
+
if (res) {
|
|
121811
|
+
return res;
|
|
121812
|
+
}
|
|
121813
|
+
return null;
|
|
121814
|
+
}
|
|
121815
|
+
|
|
121816
|
+
// 查看AI回复 收件
|
|
121817
|
+
async function aiReply(params) {
|
|
121818
|
+
let res = await request_post(`/edm/inbox/aiReply`, params);
|
|
121819
|
+
if (res) {
|
|
121820
|
+
return res;
|
|
121821
|
+
}
|
|
121822
|
+
return null;
|
|
121823
|
+
}
|
|
121824
|
+
|
|
121825
|
+
// 导出收信数据 /inbox/exportReceiveData
|
|
121826
|
+
async function exportReceiveData(params) {
|
|
121827
|
+
let res = await request_post(`/edm/inbox/exportReceiveData`, params, 'blob');
|
|
121828
|
+
if (res) {
|
|
121829
|
+
return res;
|
|
121830
|
+
}
|
|
121831
|
+
return null;
|
|
121832
|
+
}
|
|
121833
|
+
|
|
121834
|
+
// 导出发信数据 /outbox/exportSendData
|
|
121835
|
+
async function exportSendData(params) {
|
|
121836
|
+
let res = await request_post(`/edm/outbox/exportSendData`, params, 'blob');
|
|
121837
|
+
if (res) {
|
|
121838
|
+
return res;
|
|
121839
|
+
}
|
|
121840
|
+
return null;
|
|
121841
|
+
}
|
|
121842
|
+
// 保存模版
|
|
121843
|
+
|
|
121844
|
+
async function addTemplate(params) {
|
|
121845
|
+
let res = await request_post(`/edm/template/addTemplate`, params);
|
|
121846
|
+
if (res) {
|
|
121847
|
+
return res;
|
|
121848
|
+
}
|
|
121849
|
+
return null;
|
|
121850
|
+
}
|
|
121851
|
+
;// ./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
|
|
121852
|
+
|
|
121853
|
+
|
|
121854
|
+
|
|
121855
|
+
|
|
121856
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121857
|
+
props: {
|
|
121858
|
+
visible: {
|
|
121859
|
+
type: Boolean,
|
|
121860
|
+
default: false
|
|
121861
|
+
},
|
|
121862
|
+
mailTempList: {
|
|
121863
|
+
type: Array,
|
|
121864
|
+
default: () => []
|
|
121865
|
+
},
|
|
121866
|
+
tempProductCard: {
|
|
121867
|
+
type: String,
|
|
121868
|
+
default: ""
|
|
121869
|
+
}
|
|
121870
|
+
},
|
|
121871
|
+
data() {
|
|
121872
|
+
return {
|
|
121873
|
+
confirmBtnLoading: false,
|
|
121874
|
+
loading: false,
|
|
121875
|
+
ruleForm: {
|
|
121876
|
+
templatesTitle: "",
|
|
121877
|
+
scene: "",
|
|
121878
|
+
modelLanguage: "",
|
|
121879
|
+
isShared: false
|
|
121880
|
+
},
|
|
121881
|
+
rules: {
|
|
121882
|
+
templatesTitle: [{
|
|
121883
|
+
required: true,
|
|
121884
|
+
message: "请输入模版名称",
|
|
121885
|
+
trigger: "blur"
|
|
121886
|
+
}],
|
|
121887
|
+
modelLanguage: [{
|
|
121888
|
+
required: true,
|
|
121889
|
+
message: "请选择模版语言",
|
|
121890
|
+
trigger: "change"
|
|
121891
|
+
}],
|
|
121892
|
+
scene: [{
|
|
121893
|
+
required: true,
|
|
121894
|
+
message: "请输入应用场景",
|
|
121895
|
+
trigger: "change"
|
|
121896
|
+
}]
|
|
121897
|
+
},
|
|
121898
|
+
language: const_language
|
|
121899
|
+
};
|
|
121900
|
+
},
|
|
121901
|
+
created() {},
|
|
121902
|
+
methods: {
|
|
121903
|
+
// 处理邮件参数
|
|
121904
|
+
getMailParams() {
|
|
121905
|
+
// 处理邮件
|
|
121906
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121907
|
+
let content = "";
|
|
121908
|
+
if (currentMail.getReplyHtml()) {
|
|
121909
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121910
|
+
} else {
|
|
121911
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121912
|
+
}
|
|
121913
|
+
return {
|
|
121914
|
+
mailSubject: currentMail.subject,
|
|
121915
|
+
content,
|
|
121916
|
+
attachments: currentMail.fileList
|
|
121917
|
+
};
|
|
121918
|
+
},
|
|
121919
|
+
// 表单验证
|
|
121920
|
+
submitForm(formName) {
|
|
121921
|
+
const mailParams = this.getMailParams();
|
|
121922
|
+
this.$refs[formName].validate(valid => {
|
|
121923
|
+
if (valid) {
|
|
121924
|
+
const paramsObj = {
|
|
121925
|
+
...this.ruleForm,
|
|
121926
|
+
...mailParams
|
|
121927
|
+
};
|
|
121928
|
+
//新增
|
|
121929
|
+
addTemplate(paramsObj).then(res => {
|
|
121930
|
+
console.log(res, "resss");
|
|
121931
|
+
if (res.code == "0") {
|
|
121932
|
+
this.$message.success("保存成功");
|
|
121933
|
+
this.closeDialog();
|
|
121934
|
+
} else {
|
|
121935
|
+
this.$message.error(res.message);
|
|
121936
|
+
}
|
|
121937
|
+
});
|
|
121938
|
+
} else {
|
|
121939
|
+
console.log("error submit!!");
|
|
121940
|
+
return false;
|
|
121941
|
+
}
|
|
121942
|
+
});
|
|
121943
|
+
},
|
|
121944
|
+
resetForm(formName) {
|
|
121945
|
+
this.$refs[formName].resetFields();
|
|
121946
|
+
this.closeDialog();
|
|
121947
|
+
},
|
|
121948
|
+
closeDialog() {
|
|
121949
|
+
this.$emit("update:visible", false);
|
|
121950
|
+
}
|
|
121951
|
+
}
|
|
121952
|
+
});
|
|
121953
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121954
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121955
|
+
;// ./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
|
|
121956
|
+
// extracted by mini-css-extract-plugin
|
|
121957
|
+
|
|
121958
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=62cde375&prod&lang=scss&scoped=true
|
|
121959
|
+
|
|
121960
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121961
|
+
|
|
121962
|
+
|
|
121963
|
+
|
|
121964
|
+
;
|
|
121965
|
+
|
|
121966
|
+
|
|
121967
|
+
/* normalize component */
|
|
121968
|
+
|
|
121969
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121970
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121971
|
+
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_render,
|
|
121972
|
+
saveMailTempDialogvue_type_template_id_62cde375_scoped_true_staticRenderFns,
|
|
121973
|
+
false,
|
|
121974
|
+
null,
|
|
121975
|
+
"62cde375",
|
|
121976
|
+
null
|
|
121977
|
+
|
|
121978
|
+
)
|
|
121979
|
+
|
|
121980
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121736
121981
|
;// ./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
|
|
121737
121982
|
|
|
121738
121983
|
|
|
@@ -121774,6 +122019,7 @@ function inviteEmailGet(taskId) {
|
|
|
121774
122019
|
|
|
121775
122020
|
|
|
121776
122021
|
|
|
122022
|
+
|
|
121777
122023
|
|
|
121778
122024
|
|
|
121779
122025
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121796,7 +122042,8 @@ function inviteEmailGet(taskId) {
|
|
|
121796
122042
|
SignTextDrawer: signText,
|
|
121797
122043
|
MailTemplateDrawer: mailTemplate,
|
|
121798
122044
|
AiMailDialog: aiMail,
|
|
121799
|
-
MailOptimizeDrawer: mailOptimize
|
|
122045
|
+
MailOptimizeDrawer: mailOptimize,
|
|
122046
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121800
122047
|
},
|
|
121801
122048
|
props: {
|
|
121802
122049
|
// pm 添加
|
|
@@ -121816,6 +122063,10 @@ function inviteEmailGet(taskId) {
|
|
|
121816
122063
|
// {
|
|
121817
122064
|
// bloggerId: "UCCvAkgPsNA8dlZKZcxD9JtQytb0773",
|
|
121818
122065
|
// bloggerName: "Thắng Xinh Trai"
|
|
122066
|
+
// },
|
|
122067
|
+
// {
|
|
122068
|
+
// bloggerId: "UCB5FAog0G7LOrDgtsSVnsJAytb7800",
|
|
122069
|
+
// bloggerName: "mozanatv"
|
|
121819
122070
|
// }
|
|
121820
122071
|
];
|
|
121821
122072
|
}
|
|
@@ -121958,11 +122209,12 @@ function inviteEmailGet(taskId) {
|
|
|
121958
122209
|
//邮件检测
|
|
121959
122210
|
isCheckType: false,
|
|
121960
122211
|
// 是否是邮件检测模式
|
|
121961
|
-
|
|
122212
|
+
reContactList: [],
|
|
122213
|
+
// 重复触达红人列表
|
|
122214
|
+
riskList: [],
|
|
122215
|
+
// 风险红人列表
|
|
121962
122216
|
filterBloggerArr: [],
|
|
121963
122217
|
//过滤重复发件
|
|
121964
|
-
continueBloggerArr: [],
|
|
121965
|
-
//继续发件
|
|
121966
122218
|
isLimit: false,
|
|
121967
122219
|
//是否超限
|
|
121968
122220
|
restSendNum: 0,
|
|
@@ -122025,7 +122277,13 @@ function inviteEmailGet(taskId) {
|
|
|
122025
122277
|
nickName: "",
|
|
122026
122278
|
// 发件人昵称
|
|
122027
122279
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122028
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122280
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122281
|
+
// 当前使用的AI平台
|
|
122282
|
+
saveMailTempDialogVisible: false,
|
|
122283
|
+
// 保存模版弹窗
|
|
122284
|
+
tempProductCard: '',
|
|
122285
|
+
// 模版产品卡
|
|
122286
|
+
totalNum: 0 // 当前有效发件人数
|
|
122029
122287
|
};
|
|
122030
122288
|
},
|
|
122031
122289
|
created() {
|
|
@@ -122056,14 +122314,14 @@ function inviteEmailGet(taskId) {
|
|
|
122056
122314
|
} else if (this.$route.query.inviteAITaskId) {
|
|
122057
122315
|
// 获取自动邀约邮件详情
|
|
122058
122316
|
this.getInviteAITaskDetail();
|
|
122059
|
-
} else if (this.$route.query.pageFrom ==
|
|
122317
|
+
} else if (this.$route.query.pageFrom == "payStatusDetail") {
|
|
122060
122318
|
// 支付详情跳转到写信页面
|
|
122061
122319
|
this.payInitTemplate();
|
|
122062
122320
|
} else {
|
|
122063
122321
|
// 获取发信红人-普通情况
|
|
122064
122322
|
this.getMailBlogger();
|
|
122065
122323
|
}
|
|
122066
|
-
if (this.pageFrom !==
|
|
122324
|
+
if (this.pageFrom !== "AIinvitePlan") {
|
|
122067
122325
|
//设置定时器,注意:只有在 created 生命周期中设置的定时器 才能在beforeDestroy 中销毁
|
|
122068
122326
|
if (!this.isMultiReply) {
|
|
122069
122327
|
this.timer = window.setInterval(() => {
|
|
@@ -122088,7 +122346,7 @@ function inviteEmailGet(taskId) {
|
|
|
122088
122346
|
}, 150);
|
|
122089
122347
|
},
|
|
122090
122348
|
beforeDestroy() {
|
|
122091
|
-
if (this.pageFrom !==
|
|
122349
|
+
if (this.pageFrom !== "AIinvitePlan") {
|
|
122092
122350
|
this.remindSave();
|
|
122093
122351
|
}
|
|
122094
122352
|
//在 beforeDestroy生命周期函数中销毁定时器
|
|
@@ -122101,10 +122359,22 @@ function inviteEmailGet(taskId) {
|
|
|
122101
122359
|
window.onbeforeunload = null;
|
|
122102
122360
|
},
|
|
122103
122361
|
methods: {
|
|
122362
|
+
// 保存邮件模版
|
|
122363
|
+
saveMailTemplate() {
|
|
122364
|
+
const currentMail = this.mailList.find(item => item.active);
|
|
122365
|
+
if (currentMail.subject == '') {
|
|
122366
|
+
this.$message.error('请输入邮件主题');
|
|
122367
|
+
return;
|
|
122368
|
+
}
|
|
122369
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122370
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122371
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122372
|
+
this.saveMailTempDialogVisible = true;
|
|
122373
|
+
},
|
|
122104
122374
|
// 初始化邮件模版
|
|
122105
122375
|
payInitTemplate() {
|
|
122106
122376
|
// 初始化收件人
|
|
122107
|
-
const bloggerList = JSON.parse(localStorage.getItem(
|
|
122377
|
+
const bloggerList = JSON.parse(localStorage.getItem("resultRecipientData") || "[]");
|
|
122108
122378
|
if (bloggerList && bloggerList.length) {
|
|
122109
122379
|
bloggerList.forEach(item => {
|
|
122110
122380
|
this.addresseeArr.push({
|
|
@@ -122115,14 +122385,14 @@ function inviteEmailGet(taskId) {
|
|
|
122115
122385
|
});
|
|
122116
122386
|
}
|
|
122117
122387
|
// 初始化写信模版
|
|
122118
|
-
const payWriteData = JSON.parse(localStorage.getItem(
|
|
122388
|
+
const payWriteData = JSON.parse(localStorage.getItem("payWriteData") || "{}");
|
|
122119
122389
|
this.mailList = [{
|
|
122120
122390
|
attachments: [],
|
|
122121
122391
|
content: `<p>To: ${this.addresseeArr[0].bloggerName}</p>
|
|
122122
122392
|
<p>Hello!</p>
|
|
122123
122393
|
<p>We are the official customer service team of WotoHub. On behalf of the platform and [${payWriteData.companyName}], we confirm the upcoming payment for the agreement you reached on the platform. </p>
|
|
122124
122394
|
<p>Below are the contract details. Please review and sign them carefully:<a href=\"${payWriteData.payWriteUrl}\" target=\"_blank\">${payWriteData.payWriteUrl}</a></p>`,
|
|
122125
|
-
subject:
|
|
122395
|
+
subject: "Contract Signature Required to Confirm Collaboration Payment ",
|
|
122126
122396
|
id: "mockId-" + Date.now(),
|
|
122127
122397
|
fileList: [],
|
|
122128
122398
|
// 附件
|
|
@@ -122202,17 +122472,17 @@ function inviteEmailGet(taskId) {
|
|
|
122202
122472
|
};
|
|
122203
122473
|
});
|
|
122204
122474
|
const inviteParams = {
|
|
122205
|
-
taskId: this.$route.query.inviteAITaskId ||
|
|
122475
|
+
taskId: this.$route.query.inviteAITaskId || "",
|
|
122206
122476
|
platform: this.currentAiPlatform,
|
|
122207
122477
|
emails: this.filterEmailId(emails)
|
|
122208
122478
|
};
|
|
122209
122479
|
const isAllSubjectEmpty = this.mailList.every(item => !item.subject);
|
|
122210
122480
|
const isAllContentEmpty = this.mailList.every(item => item.isEmpty());
|
|
122211
122481
|
if (isAllSubjectEmpty || isAllContentEmpty) {
|
|
122212
|
-
return this.$message.error(
|
|
122482
|
+
return this.$message.error("邮件主题和正文不能为空!");
|
|
122213
122483
|
}
|
|
122214
122484
|
inviteEmailSave(inviteParams).then(res => {
|
|
122215
|
-
if (res.code ==
|
|
122485
|
+
if (res.code == "0") {
|
|
122216
122486
|
// 在新窗口的脚本中设置监听器 传递数据给旧窗口
|
|
122217
122487
|
const localTaskId = res.data;
|
|
122218
122488
|
if (window.opener) {
|
|
@@ -122225,11 +122495,11 @@ function inviteEmailGet(taskId) {
|
|
|
122225
122495
|
inviteAITaskId: localTaskId
|
|
122226
122496
|
}
|
|
122227
122497
|
}).catch(err => {
|
|
122228
|
-
if (err.name !==
|
|
122498
|
+
if (err.name !== "NavigationDuplicated") {
|
|
122229
122499
|
throw err;
|
|
122230
122500
|
}
|
|
122231
122501
|
});
|
|
122232
|
-
this.$message.success(
|
|
122502
|
+
this.$message.success("邮件添加成功,请回到原窗口继续创建任务!");
|
|
122233
122503
|
} else {
|
|
122234
122504
|
this.$message.error(res.message);
|
|
122235
122505
|
}
|
|
@@ -122507,6 +122777,7 @@ function inviteEmailGet(taskId) {
|
|
|
122507
122777
|
active: idx === 0,
|
|
122508
122778
|
// 是否当前选中
|
|
122509
122779
|
isAiContent: false,
|
|
122780
|
+
templateId: item.templateId,
|
|
122510
122781
|
getContent: () => {},
|
|
122511
122782
|
getTextContent: () => {},
|
|
122512
122783
|
setContent: () => {},
|
|
@@ -122647,11 +122918,8 @@ function inviteEmailGet(taskId) {
|
|
|
122647
122918
|
bloggerIds
|
|
122648
122919
|
});
|
|
122649
122920
|
if (res.code === "0") {
|
|
122650
|
-
this.
|
|
122651
|
-
this.
|
|
122652
|
-
this.filterBloggerArr = this.addresseeArr.filter(
|
|
122653
|
-
// 选择过滤重复触达,则需要过滤红人
|
|
122654
|
-
item => !res.data.some(ele => ele === item.bloggerId));
|
|
122921
|
+
this.totalNum = this.addresseeArr.length || 0;
|
|
122922
|
+
this.reContactList = res.data;
|
|
122655
122923
|
const hasOtherEmailRes = await hasBindOtherEmail();
|
|
122656
122924
|
if (hasOtherEmailRes.code === "0" && hasOtherEmailRes.data) {
|
|
122657
122925
|
// 如果除了系统邮箱还绑定了其他邮箱(如 Gmail、企业邮箱...)则发件检测要先选择本次发件的邮箱
|
|
@@ -122662,6 +122930,13 @@ function inviteEmailGet(taskId) {
|
|
|
122662
122930
|
this.isCheckType = false;
|
|
122663
122931
|
this.isShowCheck = true;
|
|
122664
122932
|
}
|
|
122933
|
+
const riskRes = await getRiskRedList({
|
|
122934
|
+
bloggerIds
|
|
122935
|
+
});
|
|
122936
|
+
if (riskRes.code === "0") {
|
|
122937
|
+
this.riskList = riskRes.data;
|
|
122938
|
+
this.updateFilterBloggerArr(true, true);
|
|
122939
|
+
}
|
|
122665
122940
|
} else {
|
|
122666
122941
|
this.$message.error(res.message);
|
|
122667
122942
|
}
|
|
@@ -122669,6 +122944,17 @@ function inviteEmailGet(taskId) {
|
|
|
122669
122944
|
console.log(error);
|
|
122670
122945
|
}
|
|
122671
122946
|
},
|
|
122947
|
+
updateFilterBloggerArr(isFilterRepeat, isFilterRisk) {
|
|
122948
|
+
if (isFilterRepeat && isFilterRisk) {
|
|
122949
|
+
this.filterBloggerArr = this.addresseeArr.filter(item => !this.reContactList.some(ele => ele === item.bloggerId) && !this.riskList.some(ele => ele === item.bloggerId));
|
|
122950
|
+
} else if (isFilterRepeat && !isFilterRisk) {
|
|
122951
|
+
this.filterBloggerArr = this.addresseeArr.filter(item => !this.reContactList.some(ele => ele === item.bloggerId));
|
|
122952
|
+
} else if (!isFilterRepeat && isFilterRisk) {
|
|
122953
|
+
this.filterBloggerArr = this.addresseeArr.filter(item => !this.riskList.some(ele => ele === item.bloggerId));
|
|
122954
|
+
} else {
|
|
122955
|
+
this.filterBloggerArr = this.addresseeArr;
|
|
122956
|
+
}
|
|
122957
|
+
},
|
|
122672
122958
|
// 邮件检测第一步--->发件箱选择--->下一步
|
|
122673
122959
|
openCheckNext() {
|
|
122674
122960
|
this.isShowCheck = true;
|
|
@@ -122703,17 +122989,7 @@ function inviteEmailGet(taskId) {
|
|
|
122703
122989
|
return `<div style="display: flex"><div style="box-sizing:border-box;width: 280px; min-height: 310px; border-radius: 14px; border: 1px solid #e8e8e8; padding: 12px;margin-right:8px"><div style="position: relative; margin-bottom: 10px;"><img style="object-fit:cover;border: 1px solid #333;width: 256px;height: 150px;border-radius: 14px;" src="${item.imageUrls[0]}"/><div style="position: absolute;top: 12px;left: 12px;display: flex;align-items: center;flex-wrap:wrap">${promotePlatformTypeImg}${typeName}</div></div><div style="margin-bottom: 16px"><div style="font-weight: 600;font-size: 16px;color: #333333;line-height: 22px;margin-bottom: 4px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">${nameEn}</div><div style="font-weight: 400;font-size: 14px;color: #666666;line-height: 20px;margin-bottom: 4px;">Price:${symbol}${item.priceDollar || "—"}</div><div style="font-weight: 400;font-size: 14px;color: #666666;line-height: 20px;margin-bottom: 0;">Commission rate:${item.commissionPercent || "—"}%</div></div><div style="display: flex; align-items: center"><div style="font-weight: 400;font-size: 12px;color: #999999;line-height: 17px;margin-right: 20px;"><span style="font-family: MiSans, MiSans;font-weight: 800;font-size: 18px;color: #f85277;line-height: 24px;padding-right: 6px;">${symbol}${(item.priceDollar * (item.commissionPercent / 100)).toFixed(2)}</span> /per ordered item</div><div style="width: 75px;height: 36px;border-radius: 10px;background: #f85277;font-weight: 600;font-size: 16px;color: #ffffff;line-height: 34px;text-align: center;"><a style="color:#fff;text-decoration:none" href='${currentApi}/user/productCard/noAuth/email/apply?productId=${item.id}' target='_blank'>Apply</a></div></div></div></div>`;
|
|
122704
122990
|
},
|
|
122705
122991
|
// 检测之后主动发信,区分继续发件/过滤重复触达
|
|
122706
|
-
async selfSend(
|
|
122707
|
-
// 继续立即发件 过滤立即发件 自动立即发送
|
|
122708
|
-
// 继续定时 过滤定时 自动定时
|
|
122709
|
-
if (flag === "continueSend") {
|
|
122710
|
-
this.addresseeArr = this.continueBloggerArr;
|
|
122711
|
-
} else if (flag === "filterSend") {
|
|
122712
|
-
this.addresseeArr = this.filterBloggerArr;
|
|
122713
|
-
} else {
|
|
122714
|
-
this.addresseeArr = this.addresseeArr;
|
|
122715
|
-
}
|
|
122716
|
-
|
|
122992
|
+
async selfSend() {
|
|
122717
122993
|
// 商品卡处理
|
|
122718
122994
|
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122719
122995
|
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
@@ -122731,12 +123007,13 @@ function inviteEmailGet(taskId) {
|
|
|
122731
123007
|
id: item.id,
|
|
122732
123008
|
subject: item.subject,
|
|
122733
123009
|
content: content,
|
|
122734
|
-
attachments: item.fileList
|
|
123010
|
+
attachments: item.fileList,
|
|
123011
|
+
templateId: item.templateId
|
|
122735
123012
|
};
|
|
122736
123013
|
});
|
|
122737
123014
|
|
|
122738
123015
|
// 发件人处理
|
|
122739
|
-
const bloggerInfos = this.
|
|
123016
|
+
const bloggerInfos = this.filterBloggerArr.map(item => {
|
|
122740
123017
|
return {
|
|
122741
123018
|
bloggerId: item.bloggerId,
|
|
122742
123019
|
chooseSource: item.chooseSource || undefined,
|
|
@@ -122908,7 +123185,8 @@ function inviteEmailGet(taskId) {
|
|
|
122908
123185
|
id: item.id,
|
|
122909
123186
|
subject: item.subject,
|
|
122910
123187
|
content: item.getContent() + " " + item.getReplyHtml() + sendProductCard,
|
|
122911
|
-
attachments: item.fileList
|
|
123188
|
+
attachments: item.fileList,
|
|
123189
|
+
templateId: item.templateId
|
|
122912
123190
|
};
|
|
122913
123191
|
});
|
|
122914
123192
|
// 处理红人
|
|
@@ -123061,15 +123339,38 @@ function inviteEmailGet(taskId) {
|
|
|
123061
123339
|
},
|
|
123062
123340
|
// 设置模板
|
|
123063
123341
|
setMailTemplate(data) {
|
|
123064
|
-
this.
|
|
123065
|
-
|
|
123066
|
-
|
|
123067
|
-
|
|
123068
|
-
|
|
123342
|
+
this.mailTemplateDrawerVisible = false;
|
|
123343
|
+
templatesDetail(data.id).then(res => {
|
|
123344
|
+
if (res.code == '0') {
|
|
123345
|
+
const detailObj = res.data;
|
|
123346
|
+
if (detailObj) {
|
|
123347
|
+
// 获取模版详情
|
|
123348
|
+
this.mailList.forEach(mail => {
|
|
123349
|
+
if (mail.active) {
|
|
123350
|
+
mail.subject = detailObj.mailSubject;
|
|
123351
|
+
mail.templateId = detailObj.id;
|
|
123352
|
+
mail.fileList = detailObj.attachmentRes;
|
|
123353
|
+
if (mail.setContent) {
|
|
123354
|
+
mail.setContent(detailObj.content);
|
|
123355
|
+
}
|
|
123356
|
+
}
|
|
123357
|
+
});
|
|
123358
|
+
// 商品卡相关逻辑
|
|
123359
|
+
if (detailObj.content) {
|
|
123360
|
+
let productCardStart = detailObj.content.indexOf('<product-card');
|
|
123361
|
+
let productCardEnd = detailObj.content.indexOf('</product-card>');
|
|
123362
|
+
let productCardHtml = detailObj.content.slice(productCardStart, productCardEnd + 15);
|
|
123363
|
+
const cardIdsMatch = productCardHtml.match(/cardids="([^"]+)"/);
|
|
123364
|
+
if (cardIdsMatch && cardIdsMatch[1]) {
|
|
123365
|
+
const cardIds = cardIdsMatch[1]; // 获取匹配到的cardids值
|
|
123366
|
+
this.addProductCard(cardIds.split(","));
|
|
123367
|
+
}
|
|
123368
|
+
}
|
|
123069
123369
|
}
|
|
123370
|
+
} else {
|
|
123371
|
+
this.$message.error(res.message);
|
|
123070
123372
|
}
|
|
123071
|
-
});
|
|
123072
|
-
this.mailTemplateDrawerVisible = false;
|
|
123373
|
+
}).catch(() => {});
|
|
123073
123374
|
},
|
|
123074
123375
|
// 设置签名
|
|
123075
123376
|
setMailSign(data) {
|
|
@@ -123408,15 +123709,15 @@ function inviteEmailGet(taskId) {
|
|
|
123408
123709
|
});
|
|
123409
123710
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123410
123711
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
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=
|
|
123712
|
+
;// ./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=3c690e4c&prod&lang=scss&scoped=true
|
|
123412
123713
|
// extracted by mini-css-extract-plugin
|
|
123413
123714
|
|
|
123414
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123715
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=3c690e4c&prod&lang=scss&scoped=true
|
|
123415
123716
|
|
|
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=
|
|
123717
|
+
;// ./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=3c690e4c&prod&lang=scss
|
|
123417
123718
|
// extracted by mini-css-extract-plugin
|
|
123418
123719
|
|
|
123419
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123720
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=3c690e4c&prod&lang=scss
|
|
123420
123721
|
|
|
123421
123722
|
;// ./src/package/write-email/index.vue
|
|
123422
123723
|
|
|
@@ -123430,11 +123731,11 @@ function inviteEmailGet(taskId) {
|
|
|
123430
123731
|
|
|
123431
123732
|
var write_email_component = normalizeComponent(
|
|
123432
123733
|
package_write_emailvue_type_script_lang_js,
|
|
123433
|
-
|
|
123434
|
-
|
|
123734
|
+
write_emailvue_type_template_id_3c690e4c_scoped_true_render,
|
|
123735
|
+
write_emailvue_type_template_id_3c690e4c_scoped_true_staticRenderFns,
|
|
123435
123736
|
false,
|
|
123436
123737
|
null,
|
|
123437
|
-
"
|
|
123738
|
+
"3c690e4c",
|
|
123438
123739
|
null
|
|
123439
123740
|
|
|
123440
123741
|
)
|
|
@@ -123501,8 +123802,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123501
123802
|
};
|
|
123502
123803
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123503
123804
|
|
|
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=
|
|
123505
|
-
var
|
|
123805
|
+
;// ./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
|
|
123806
|
+
var singleSendMailvue_type_template_id_31e099df_scoped_true_render = function render() {
|
|
123506
123807
|
var _vm = this,
|
|
123507
123808
|
_c = _vm._self._c;
|
|
123508
123809
|
return _c('div', {
|
|
@@ -123823,6 +124124,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123823
124124
|
}
|
|
123824
124125
|
})];
|
|
123825
124126
|
}
|
|
124127
|
+
}, {
|
|
124128
|
+
key: "operation",
|
|
124129
|
+
fn: function ({
|
|
124130
|
+
data
|
|
124131
|
+
}) {
|
|
124132
|
+
return [_c('el-link', {
|
|
124133
|
+
attrs: {
|
|
124134
|
+
"type": "primary",
|
|
124135
|
+
"size": "small",
|
|
124136
|
+
"underline": false
|
|
124137
|
+
},
|
|
124138
|
+
on: {
|
|
124139
|
+
"click": function ($event) {
|
|
124140
|
+
$event.stopPropagation();
|
|
124141
|
+
return _vm.recallMail(data.scope);
|
|
124142
|
+
}
|
|
124143
|
+
}
|
|
124144
|
+
}, [_vm._v("撤回")])];
|
|
124145
|
+
}
|
|
123826
124146
|
}])
|
|
123827
124147
|
}), _c('div', {
|
|
123828
124148
|
staticClass: "tool"
|
|
@@ -123864,7 +124184,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123864
124184
|
staticClass: "dss-iconfont"
|
|
123865
124185
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123866
124186
|
};
|
|
123867
|
-
var
|
|
124187
|
+
var singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns = [];
|
|
123868
124188
|
|
|
123869
124189
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123870
124190
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123952,6 +124272,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123952
124272
|
label: src_language.t("edm2.mailEn12"),
|
|
123953
124273
|
prop: "sendTime",
|
|
123954
124274
|
width: "200"
|
|
124275
|
+
}, {
|
|
124276
|
+
label: "操作",
|
|
124277
|
+
scope: "operation",
|
|
124278
|
+
width: "100"
|
|
123955
124279
|
}],
|
|
123956
124280
|
tableData: [],
|
|
123957
124281
|
loading: false,
|
|
@@ -124000,6 +124324,32 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124000
124324
|
localStorage.removeItem("searchFlag");
|
|
124001
124325
|
},
|
|
124002
124326
|
methods: {
|
|
124327
|
+
// 撤回邮件
|
|
124328
|
+
recallMail(row) {
|
|
124329
|
+
console.log(row, "row");
|
|
124330
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124331
|
+
confirmButtonText: "确定",
|
|
124332
|
+
cancelButtonText: "取消",
|
|
124333
|
+
type: "warning"
|
|
124334
|
+
}).then(() => {
|
|
124335
|
+
withdraw(row.id).then(res => {
|
|
124336
|
+
if (res.code == "0") {
|
|
124337
|
+
this.$message({
|
|
124338
|
+
type: "success",
|
|
124339
|
+
duration: 7000,
|
|
124340
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124341
|
+
});
|
|
124342
|
+
this.init();
|
|
124343
|
+
} else {
|
|
124344
|
+
this.$message({
|
|
124345
|
+
type: "error",
|
|
124346
|
+
duration: 7000,
|
|
124347
|
+
message: res.message
|
|
124348
|
+
});
|
|
124349
|
+
}
|
|
124350
|
+
});
|
|
124351
|
+
}).catch(() => {});
|
|
124352
|
+
},
|
|
124003
124353
|
// 主题-正文
|
|
124004
124354
|
changeContentMode(val) {
|
|
124005
124355
|
this.contentSelect = val;
|
|
@@ -124193,10 +124543,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124193
124543
|
});
|
|
124194
124544
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124195
124545
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
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=
|
|
124546
|
+
;// ./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
|
|
124197
124547
|
// extracted by mini-css-extract-plugin
|
|
124198
124548
|
|
|
124199
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124549
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=31e099df&prod&lang=scss&scoped=true
|
|
124200
124550
|
|
|
124201
124551
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124202
124552
|
|
|
@@ -124209,18 +124559,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124209
124559
|
|
|
124210
124560
|
var singleSendMail_component = normalizeComponent(
|
|
124211
124561
|
components_singleSendMailvue_type_script_lang_js,
|
|
124212
|
-
|
|
124213
|
-
|
|
124562
|
+
singleSendMailvue_type_template_id_31e099df_scoped_true_render,
|
|
124563
|
+
singleSendMailvue_type_template_id_31e099df_scoped_true_staticRenderFns,
|
|
124214
124564
|
false,
|
|
124215
124565
|
null,
|
|
124216
|
-
"
|
|
124566
|
+
"31e099df",
|
|
124217
124567
|
null
|
|
124218
124568
|
|
|
124219
124569
|
)
|
|
124220
124570
|
|
|
124221
124571
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
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=
|
|
124223
|
-
var
|
|
124572
|
+
;// ./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
|
|
124573
|
+
var replySendMailvue_type_template_id_561c9fe0_scoped_true_render = function render() {
|
|
124224
124574
|
var _vm = this,
|
|
124225
124575
|
_c = _vm._self._c;
|
|
124226
124576
|
return _c('div', {
|
|
@@ -124510,6 +124860,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124510
124860
|
}
|
|
124511
124861
|
})];
|
|
124512
124862
|
}
|
|
124863
|
+
}, {
|
|
124864
|
+
key: "operation",
|
|
124865
|
+
fn: function ({
|
|
124866
|
+
data
|
|
124867
|
+
}) {
|
|
124868
|
+
return [_c('el-link', {
|
|
124869
|
+
attrs: {
|
|
124870
|
+
"type": "primary",
|
|
124871
|
+
"size": "small",
|
|
124872
|
+
"underline": false
|
|
124873
|
+
},
|
|
124874
|
+
on: {
|
|
124875
|
+
"click": function ($event) {
|
|
124876
|
+
$event.stopPropagation();
|
|
124877
|
+
return _vm.recallMail(data.scope);
|
|
124878
|
+
}
|
|
124879
|
+
}
|
|
124880
|
+
}, [_vm._v("撤回")])];
|
|
124881
|
+
}
|
|
124513
124882
|
}])
|
|
124514
124883
|
}), _c('div', {
|
|
124515
124884
|
staticClass: "tool"
|
|
@@ -124536,7 +124905,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124536
124905
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124537
124906
|
})])])])], 1)]);
|
|
124538
124907
|
};
|
|
124539
|
-
var
|
|
124908
|
+
var replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns = [];
|
|
124540
124909
|
|
|
124541
124910
|
;// ./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
|
|
124542
124911
|
|
|
@@ -124608,6 +124977,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124608
124977
|
label: src_language.t("edm2.mailEn12"),
|
|
124609
124978
|
prop: "sendTime",
|
|
124610
124979
|
width: "200"
|
|
124980
|
+
}, {
|
|
124981
|
+
label: "操作",
|
|
124982
|
+
scope: "operation",
|
|
124983
|
+
width: "100"
|
|
124611
124984
|
}],
|
|
124612
124985
|
contentInput: "",
|
|
124613
124986
|
contentSelect: "1",
|
|
@@ -124659,6 +125032,32 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124659
125032
|
localStorage.removeItem("searchFlag");
|
|
124660
125033
|
},
|
|
124661
125034
|
methods: {
|
|
125035
|
+
// 撤回邮件
|
|
125036
|
+
recallMail(row) {
|
|
125037
|
+
console.log(row, "row");
|
|
125038
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
125039
|
+
confirmButtonText: "确定",
|
|
125040
|
+
cancelButtonText: "取消",
|
|
125041
|
+
type: "warning"
|
|
125042
|
+
}).then(() => {
|
|
125043
|
+
withdraw(row.id).then(res => {
|
|
125044
|
+
if (res.code == "0") {
|
|
125045
|
+
this.$message({
|
|
125046
|
+
type: "success",
|
|
125047
|
+
duration: 7000,
|
|
125048
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
125049
|
+
});
|
|
125050
|
+
this.init();
|
|
125051
|
+
} else {
|
|
125052
|
+
this.$message({
|
|
125053
|
+
type: "error",
|
|
125054
|
+
duration: 7000,
|
|
125055
|
+
message: res.message
|
|
125056
|
+
});
|
|
125057
|
+
}
|
|
125058
|
+
});
|
|
125059
|
+
}).catch(() => {});
|
|
125060
|
+
},
|
|
124662
125061
|
// 去除html标签
|
|
124663
125062
|
filterHtmlTag(str) {
|
|
124664
125063
|
if (str) {
|
|
@@ -124870,10 +125269,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124870
125269
|
});
|
|
124871
125270
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124872
125271
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
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=
|
|
125272
|
+
;// ./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
|
|
124874
125273
|
// extracted by mini-css-extract-plugin
|
|
124875
125274
|
|
|
124876
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125275
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=561c9fe0&prod&lang=scss&scoped=true
|
|
124877
125276
|
|
|
124878
125277
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124879
125278
|
|
|
@@ -124886,11 +125285,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124886
125285
|
|
|
124887
125286
|
var replySendMail_component = normalizeComponent(
|
|
124888
125287
|
components_replySendMailvue_type_script_lang_js,
|
|
124889
|
-
|
|
124890
|
-
|
|
125288
|
+
replySendMailvue_type_template_id_561c9fe0_scoped_true_render,
|
|
125289
|
+
replySendMailvue_type_template_id_561c9fe0_scoped_true_staticRenderFns,
|
|
124891
125290
|
false,
|
|
124892
125291
|
null,
|
|
124893
|
-
"
|
|
125292
|
+
"561c9fe0",
|
|
124894
125293
|
null
|
|
124895
125294
|
|
|
124896
125295
|
)
|
|
@@ -126358,8 +126757,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126358
126757
|
)
|
|
126359
126758
|
|
|
126360
126759
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
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=
|
|
126362
|
-
var
|
|
126760
|
+
;// ./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
|
|
126761
|
+
var detailvue_type_template_id_ad633b50_scoped_true_render = function render() {
|
|
126363
126762
|
var _vm = this,
|
|
126364
126763
|
_c = _vm._self._c;
|
|
126365
126764
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126372,6 +126771,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126372
126771
|
}, [_c('i', {
|
|
126373
126772
|
staticClass: "el-icon-arrow-left"
|
|
126374
126773
|
})]), _c('div', {
|
|
126774
|
+
staticClass: "back recall_btn",
|
|
126775
|
+
on: {
|
|
126776
|
+
"click": _vm.recallMail
|
|
126777
|
+
}
|
|
126778
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126375
126779
|
staticClass: "mail-items-box"
|
|
126376
126780
|
}, [_c('div', {
|
|
126377
126781
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126598,7 +127002,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126598
127002
|
}
|
|
126599
127003
|
}) : _vm._e()], 1) : _vm._e();
|
|
126600
127004
|
};
|
|
126601
|
-
var
|
|
127005
|
+
var detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns = [function () {
|
|
127006
|
+
var _vm = this,
|
|
127007
|
+
_c = _vm._self._c;
|
|
127008
|
+
return _c('div', {
|
|
127009
|
+
staticClass: "re_box"
|
|
127010
|
+
}, [_c('i', {
|
|
127011
|
+
staticClass: "dss-iconfont btn_con"
|
|
127012
|
+
}, [_vm._v("")]), _c('span', {
|
|
127013
|
+
staticClass: "btn_con"
|
|
127014
|
+
}, [_vm._v("撤回")])]);
|
|
127015
|
+
}];
|
|
127016
|
+
|
|
127017
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=ad633b50&scoped=true
|
|
126602
127018
|
|
|
126603
127019
|
;// ./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
|
|
126604
127020
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126847,6 +127263,31 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126847
127263
|
localStorage.setItem("searchFlag", true);
|
|
126848
127264
|
},
|
|
126849
127265
|
methods: {
|
|
127266
|
+
// 撤回邮件
|
|
127267
|
+
recallMail() {
|
|
127268
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127269
|
+
confirmButtonText: "确定",
|
|
127270
|
+
cancelButtonText: "取消",
|
|
127271
|
+
type: "warning"
|
|
127272
|
+
}).then(() => {
|
|
127273
|
+
withdraw(this.$route.query.id).then(res => {
|
|
127274
|
+
if (res.code == "0") {
|
|
127275
|
+
this.$message({
|
|
127276
|
+
type: "success",
|
|
127277
|
+
duration: 7000,
|
|
127278
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127279
|
+
});
|
|
127280
|
+
this.backToOutbox();
|
|
127281
|
+
} else {
|
|
127282
|
+
this.$message({
|
|
127283
|
+
type: "error",
|
|
127284
|
+
duration: 7000,
|
|
127285
|
+
message: res.message
|
|
127286
|
+
});
|
|
127287
|
+
}
|
|
127288
|
+
});
|
|
127289
|
+
}).catch(() => {});
|
|
127290
|
+
},
|
|
126850
127291
|
// 红人档案侧抽
|
|
126851
127292
|
toBloggerDeatil(item) {
|
|
126852
127293
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126978,10 +127419,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126978
127419
|
});
|
|
126979
127420
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126980
127421
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
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=
|
|
127422
|
+
;// ./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
|
|
126982
127423
|
// extracted by mini-css-extract-plugin
|
|
126983
127424
|
|
|
126984
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127425
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=ad633b50&prod&lang=scss&scoped=true
|
|
126985
127426
|
|
|
126986
127427
|
;// ./src/package/outbox-email/detail.vue
|
|
126987
127428
|
|
|
@@ -126994,11 +127435,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126994
127435
|
|
|
126995
127436
|
var outbox_email_detail_component = normalizeComponent(
|
|
126996
127437
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126997
|
-
|
|
126998
|
-
|
|
127438
|
+
detailvue_type_template_id_ad633b50_scoped_true_render,
|
|
127439
|
+
detailvue_type_template_id_ad633b50_scoped_true_staticRenderFns,
|
|
126999
127440
|
false,
|
|
127000
127441
|
null,
|
|
127001
|
-
"
|
|
127442
|
+
"ad633b50",
|
|
127002
127443
|
null
|
|
127003
127444
|
|
|
127004
127445
|
)
|
|
@@ -127304,7 +127745,7 @@ async function mailList2(data) {
|
|
|
127304
127745
|
}
|
|
127305
127746
|
|
|
127306
127747
|
// 查看邮件往来里的发件详情
|
|
127307
|
-
async function
|
|
127748
|
+
async function blogmail_sendDetail(params) {
|
|
127308
127749
|
let res = await get(`/edm/mail/sendDetail/${params.id}`);
|
|
127309
127750
|
return res;
|
|
127310
127751
|
}
|
|
@@ -128549,130 +128990,6 @@ var Editorvue_type_template_id_16051201_scoped_true_render = function render() {
|
|
|
128549
128990
|
};
|
|
128550
128991
|
var Editorvue_type_template_id_16051201_scoped_true_staticRenderFns = [];
|
|
128551
128992
|
|
|
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
|
-
}
|
|
128676
128993
|
;// ./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
|
|
128677
128994
|
//import { uploadFile } from '@/api'
|
|
128678
128995
|
|
|
@@ -129813,7 +130130,7 @@ var AttachmentList_component = normalizeComponent(
|
|
|
129813
130130
|
methods: {
|
|
129814
130131
|
// 获取页面数据
|
|
129815
130132
|
initPageData() {
|
|
129816
|
-
|
|
130133
|
+
sendDetail(this.id).then(res => {
|
|
129817
130134
|
if (res) {
|
|
129818
130135
|
this.mailData = res.data;
|
|
129819
130136
|
}
|