wotokol-edm 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/wotokol-edm.common.js +1246 -1028
- 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 +1246 -1028
- 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
|
@@ -98675,6 +98675,14 @@ function delTags(id) {
|
|
|
98675
98675
|
function addTags(data) {
|
|
98676
98676
|
return request_post(`/edm/tag/addSign`, data);
|
|
98677
98677
|
}
|
|
98678
|
+
// 获取账号
|
|
98679
|
+
function hubUserSonFather(params) {
|
|
98680
|
+
return request_get(`/user/hubUser/sonFather`, params);
|
|
98681
|
+
}
|
|
98682
|
+
// 分页查看模板列表
|
|
98683
|
+
function templatesList(params) {
|
|
98684
|
+
return request_get(`/edm/template/templates`, params);
|
|
98685
|
+
}
|
|
98678
98686
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-search/index.vue?vue&type=template&id=4d651f22&scoped=true
|
|
98679
98687
|
var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
|
|
98680
98688
|
var _vm = this,
|
|
@@ -100692,8 +100700,8 @@ var edm_inbox_component = normalizeComponent(
|
|
|
100692
100700
|
)
|
|
100693
100701
|
|
|
100694
100702
|
/* harmony default export */ var edm_inbox = (edm_inbox_component.exports);
|
|
100695
|
-
;// ./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-inbox/detail.vue?vue&type=template&id=
|
|
100696
|
-
var
|
|
100703
|
+
;// ./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-inbox/detail.vue?vue&type=template&id=ef661182&scoped=true
|
|
100704
|
+
var detailvue_type_template_id_ef661182_scoped_true_render = function render() {
|
|
100697
100705
|
var _vm = this,
|
|
100698
100706
|
_c = _vm._self._c;
|
|
100699
100707
|
return _c('div', {
|
|
@@ -101172,9 +101180,9 @@ var detailvue_type_template_id_0ed42f03_scoped_true_render = function render() {
|
|
|
101172
101180
|
}
|
|
101173
101181
|
}) : _vm._e()], 1);
|
|
101174
101182
|
};
|
|
101175
|
-
var
|
|
101183
|
+
var detailvue_type_template_id_ef661182_scoped_true_staticRenderFns = [];
|
|
101176
101184
|
|
|
101177
|
-
;// ./src/package/edm-inbox/detail.vue?vue&type=template&id=
|
|
101185
|
+
;// ./src/package/edm-inbox/detail.vue?vue&type=template&id=ef661182&scoped=true
|
|
101178
101186
|
|
|
101179
101187
|
;// ./node_modules/vue-i18n/dist/vue-i18n.esm.js
|
|
101180
101188
|
/*!
|
|
@@ -106571,6 +106579,10 @@ function comeGoBloggerPage(data) {
|
|
|
106571
106579
|
function pagePlan(data) {
|
|
106572
106580
|
return post(`/user/popularize/pagePlan`, data);
|
|
106573
106581
|
}
|
|
106582
|
+
// 撤回邮件
|
|
106583
|
+
function withdraw(id) {
|
|
106584
|
+
return request_get(`/edm/outbox/withdraw/groupId/${id}`);
|
|
106585
|
+
}
|
|
106574
106586
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EmailPlan/index.vue?vue&type=script&lang=js
|
|
106575
106587
|
|
|
106576
106588
|
|
|
@@ -108763,7 +108775,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
108763
108775
|
if (!item.attachment) {
|
|
108764
108776
|
item.attachment = [];
|
|
108765
108777
|
}
|
|
108766
|
-
item.isShowFull =
|
|
108778
|
+
item.isShowFull = true;
|
|
108767
108779
|
item.isOut = false; // 默认不是库外
|
|
108768
108780
|
// 头像设置
|
|
108769
108781
|
if (item.type === 2) {
|
|
@@ -108990,7 +109002,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
108990
109002
|
return {
|
|
108991
109003
|
...val,
|
|
108992
109004
|
isExpand: mail.id === val.id ? !val.isExpand : false,
|
|
108993
|
-
isShowFull:
|
|
109005
|
+
isShowFull: true
|
|
108994
109006
|
};
|
|
108995
109007
|
});
|
|
108996
109008
|
},
|
|
@@ -109181,15 +109193,15 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
109181
109193
|
});
|
|
109182
109194
|
;// ./src/package/edm-inbox/detail.vue?vue&type=script&lang=js
|
|
109183
109195
|
/* harmony default export */ var edm_inbox_detailvue_type_script_lang_js = (detailvue_type_script_lang_js);
|
|
109184
|
-
;// ./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/edm-inbox/detail.vue?vue&type=style&index=0&id=
|
|
109196
|
+
;// ./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/edm-inbox/detail.vue?vue&type=style&index=0&id=ef661182&prod&lang=scss&scoped=true
|
|
109185
109197
|
// extracted by mini-css-extract-plugin
|
|
109186
109198
|
|
|
109187
|
-
;// ./src/package/edm-inbox/detail.vue?vue&type=style&index=0&id=
|
|
109199
|
+
;// ./src/package/edm-inbox/detail.vue?vue&type=style&index=0&id=ef661182&prod&lang=scss&scoped=true
|
|
109188
109200
|
|
|
109189
|
-
;// ./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/edm-inbox/detail.vue?vue&type=style&index=1&id=
|
|
109201
|
+
;// ./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/edm-inbox/detail.vue?vue&type=style&index=1&id=ef661182&prod&lang=scss
|
|
109190
109202
|
// extracted by mini-css-extract-plugin
|
|
109191
109203
|
|
|
109192
|
-
;// ./src/package/edm-inbox/detail.vue?vue&type=style&index=1&id=
|
|
109204
|
+
;// ./src/package/edm-inbox/detail.vue?vue&type=style&index=1&id=ef661182&prod&lang=scss
|
|
109193
109205
|
|
|
109194
109206
|
;// ./src/package/edm-inbox/detail.vue
|
|
109195
109207
|
|
|
@@ -109203,18 +109215,18 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
109203
109215
|
|
|
109204
109216
|
var detail_component = normalizeComponent(
|
|
109205
109217
|
edm_inbox_detailvue_type_script_lang_js,
|
|
109206
|
-
|
|
109207
|
-
|
|
109218
|
+
detailvue_type_template_id_ef661182_scoped_true_render,
|
|
109219
|
+
detailvue_type_template_id_ef661182_scoped_true_staticRenderFns,
|
|
109208
109220
|
false,
|
|
109209
109221
|
null,
|
|
109210
|
-
"
|
|
109222
|
+
"ef661182",
|
|
109211
109223
|
null
|
|
109212
109224
|
|
|
109213
109225
|
)
|
|
109214
109226
|
|
|
109215
109227
|
/* harmony default export */ var detail = (detail_component.exports);
|
|
109216
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=
|
|
109217
|
-
var
|
|
109228
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=template&id=7011cdc3&scoped=true
|
|
109229
|
+
var write_emailvue_type_template_id_7011cdc3_scoped_true_render = function render() {
|
|
109218
109230
|
var _vm = this,
|
|
109219
109231
|
_c = _vm._self._c;
|
|
109220
109232
|
return _c('div', {
|
|
@@ -109253,7 +109265,7 @@ var write_emailvue_type_template_id_6c425314_scoped_true_render = function rende
|
|
|
109253
109265
|
_vm.isSpreadAddress = !_vm.isSpreadAddress;
|
|
109254
109266
|
}
|
|
109255
109267
|
}
|
|
109256
|
-
}, [_vm._v(" " + _vm._s(_vm.isSpreadAddress ? `- ${_vm.$i18n.t("writeMail.retract")}` : `+ ${_vm.$i18n.t("writeMail.other")}` + (_vm.addresseeArr.length - 5) + `${_vm.$i18n.t("writeMail.person")}`) + " ")]) : _vm._e()], 2), !_vm.isReply && !_vm.isMultiReply ? _c('el-button', {
|
|
109268
|
+
}, [_vm._v(" " + _vm._s(_vm.isSpreadAddress ? `- ${_vm.$i18n.t("writeMail.retract")}` : `+ ${_vm.$i18n.t("writeMail.other")}` + (_vm.addresseeArr.length - 5) + `${_vm.$i18n.t("writeMail.person")}`) + " ")]) : _vm._e()], 2), !_vm.isReply && !_vm.isMultiReply && _vm.$route.query.pageFrom !== 'payStatusDetail' ? _c('el-button', {
|
|
109257
109269
|
staticClass: "edit-btn",
|
|
109258
109270
|
attrs: {
|
|
109259
109271
|
"loading": _vm.editBloggerLoading
|
|
@@ -109579,7 +109591,17 @@ var write_emailvue_type_template_id_6c425314_scoped_true_render = function rende
|
|
|
109579
109591
|
staticClass: "el-icon-loading"
|
|
109580
109592
|
}) : _vm._e(), _vm._v(" 保存 ")])], 1) : _c('div', {
|
|
109581
109593
|
staticClass: "operate-right"
|
|
109582
|
-
}, [
|
|
109594
|
+
}, [_c('el-button', {
|
|
109595
|
+
staticClass: "operate-btn",
|
|
109596
|
+
attrs: {
|
|
109597
|
+
"disabled": _vm.loading
|
|
109598
|
+
},
|
|
109599
|
+
on: {
|
|
109600
|
+
"click": _vm.saveMailTemplate
|
|
109601
|
+
}
|
|
109602
|
+
}, [_vm.loading ? _c('i', {
|
|
109603
|
+
staticClass: "el-icon-loading"
|
|
109604
|
+
}) : _vm._e(), _vm._v(" 存为模版 ")]), _vm.isTiming == 0 && !_vm.isMultiReply ? _c('el-button', {
|
|
109583
109605
|
staticClass: "operate-btn",
|
|
109584
109606
|
attrs: {
|
|
109585
109607
|
"disabled": _vm.loading
|
|
@@ -109944,9 +109966,20 @@ var write_emailvue_type_template_id_6c425314_scoped_true_render = function rende
|
|
|
109944
109966
|
},
|
|
109945
109967
|
"updateNickName": val => _vm.nickName = val
|
|
109946
109968
|
}
|
|
109969
|
+
}) : _vm._e(), _vm.saveMailTempDialogVisible ? _c('saveMailTempDialog', {
|
|
109970
|
+
attrs: {
|
|
109971
|
+
"tempProductCard": _vm.tempProductCard,
|
|
109972
|
+
"mailTempList": _vm.mailList,
|
|
109973
|
+
"visible": _vm.saveMailTempDialogVisible
|
|
109974
|
+
},
|
|
109975
|
+
on: {
|
|
109976
|
+
"update:visible": function ($event) {
|
|
109977
|
+
_vm.saveMailTempDialogVisible = $event;
|
|
109978
|
+
}
|
|
109979
|
+
}
|
|
109947
109980
|
}) : _vm._e()], 1);
|
|
109948
109981
|
};
|
|
109949
|
-
var
|
|
109982
|
+
var write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns = [function () {
|
|
109950
109983
|
var _vm = this,
|
|
109951
109984
|
_c = _vm._self._c;
|
|
109952
109985
|
return _c('div', {
|
|
@@ -109967,7 +110000,7 @@ var write_emailvue_type_template_id_6c425314_scoped_true_staticRenderFns = [func
|
|
|
109967
110000
|
}, [_c('span', [_vm._v("$4.98")]), _vm._v(" /per ordered item ")]);
|
|
109968
110001
|
}];
|
|
109969
110002
|
|
|
109970
|
-
;// ./src/package/write-email/index.vue?vue&type=template&id=
|
|
110003
|
+
;// ./src/package/write-email/index.vue?vue&type=template&id=7011cdc3&scoped=true
|
|
109971
110004
|
|
|
109972
110005
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.difference.v2.js
|
|
109973
110006
|
var es_set_difference_v2 = __webpack_require__(7642);
|
|
@@ -114324,6 +114357,59 @@ const moneyTypeOpts = [{
|
|
|
114324
114357
|
code: "IDR",
|
|
114325
114358
|
symbol: "Rp"
|
|
114326
114359
|
}];
|
|
114360
|
+
const const_language = [{
|
|
114361
|
+
value: '7',
|
|
114362
|
+
label: '汉语',
|
|
114363
|
+
enLabel: 'Chinese'
|
|
114364
|
+
}, {
|
|
114365
|
+
value: '1',
|
|
114366
|
+
label: '英语',
|
|
114367
|
+
enLabel: 'English'
|
|
114368
|
+
}, {
|
|
114369
|
+
value: '3',
|
|
114370
|
+
label: '法语',
|
|
114371
|
+
enLabel: 'French'
|
|
114372
|
+
}, {
|
|
114373
|
+
value: '8',
|
|
114374
|
+
label: '德语',
|
|
114375
|
+
enLabel: 'German'
|
|
114376
|
+
}, {
|
|
114377
|
+
value: '6',
|
|
114378
|
+
label: '日语',
|
|
114379
|
+
enLabel: 'Japanese'
|
|
114380
|
+
}, {
|
|
114381
|
+
value: '9',
|
|
114382
|
+
label: '韩语',
|
|
114383
|
+
enLabel: 'Korean'
|
|
114384
|
+
}, {
|
|
114385
|
+
value: '10',
|
|
114386
|
+
label: '越南语',
|
|
114387
|
+
enLabel: 'Vietnamese'
|
|
114388
|
+
}, {
|
|
114389
|
+
value: '11',
|
|
114390
|
+
label: '泰国语',
|
|
114391
|
+
enLabel: 'Thai'
|
|
114392
|
+
}, {
|
|
114393
|
+
value: '12',
|
|
114394
|
+
label: '菲律宾语',
|
|
114395
|
+
enLabel: 'Filipino'
|
|
114396
|
+
}, {
|
|
114397
|
+
value: '13',
|
|
114398
|
+
label: '印度尼西亚语',
|
|
114399
|
+
enLabel: 'Indonesian'
|
|
114400
|
+
}, {
|
|
114401
|
+
value: '14',
|
|
114402
|
+
label: '俄罗斯语',
|
|
114403
|
+
enLabel: 'Russian'
|
|
114404
|
+
}, {
|
|
114405
|
+
value: '4',
|
|
114406
|
+
label: '西班牙语',
|
|
114407
|
+
enLabel: 'Spanish'
|
|
114408
|
+
}, {
|
|
114409
|
+
value: '15',
|
|
114410
|
+
label: '意大利语',
|
|
114411
|
+
enLabel: 'Italian'
|
|
114412
|
+
}];
|
|
114327
114413
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/productNewCom/detail.vue?vue&type=script&lang=js
|
|
114328
114414
|
|
|
114329
114415
|
|
|
@@ -118334,55 +118420,154 @@ var mailTemplatevue_type_template_id_2b36ea26_scoped_true_render = function rend
|
|
|
118334
118420
|
};
|
|
118335
118421
|
var mailTemplatevue_type_template_id_2b36ea26_scoped_true_staticRenderFns = [];
|
|
118336
118422
|
|
|
118337
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=
|
|
118338
|
-
|
|
118423
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=0aaac0a8&scoped=true
|
|
118424
|
+
|
|
118425
|
+
|
|
118426
|
+
var TemplateListvue_type_template_id_0aaac0a8_scoped_true_render = function render() {
|
|
118339
118427
|
var _vm = this,
|
|
118340
118428
|
_c = _vm._self._c;
|
|
118341
118429
|
return _c('div', {
|
|
118342
118430
|
staticClass: "wrap"
|
|
118343
118431
|
}, [_c('div', {
|
|
118344
|
-
staticClass: "
|
|
118432
|
+
staticClass: "inbox-search-wrap"
|
|
118433
|
+
}, [_c('el-row', {
|
|
118434
|
+
attrs: {
|
|
118435
|
+
"gutter": 12
|
|
118436
|
+
}
|
|
118437
|
+
}, [_c('el-col', {
|
|
118438
|
+
attrs: {
|
|
118439
|
+
"span": 8
|
|
118440
|
+
}
|
|
118345
118441
|
}, [_c('div', {
|
|
118346
|
-
staticClass: "
|
|
118442
|
+
staticClass: "col-item col-select-input-item"
|
|
118347
118443
|
}, [_c('el-select', {
|
|
118444
|
+
staticClass: "template_select",
|
|
118445
|
+
attrs: {
|
|
118446
|
+
"slot": "prepend",
|
|
118447
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118448
|
+
},
|
|
118348
118449
|
on: {
|
|
118349
118450
|
"change": function ($event) {
|
|
118350
|
-
_vm.searchForm.
|
|
118351
|
-
_vm.
|
|
118352
|
-
_vm.searchForm.modelType = _vm.searchForm.type === 1 ? '1' : undefined;
|
|
118353
|
-
_vm.init();
|
|
118451
|
+
_vm.searchForm.scene = '';
|
|
118452
|
+
_vm.contentInput = '';
|
|
118354
118453
|
}
|
|
118355
118454
|
},
|
|
118455
|
+
slot: "prepend",
|
|
118356
118456
|
model: {
|
|
118357
|
-
value: _vm.
|
|
118457
|
+
value: _vm.contentSelect,
|
|
118358
118458
|
callback: function ($$v) {
|
|
118359
|
-
_vm
|
|
118459
|
+
_vm.contentSelect = $$v;
|
|
118360
118460
|
},
|
|
118361
|
-
expression: "
|
|
118461
|
+
expression: "contentSelect"
|
|
118362
118462
|
}
|
|
118363
118463
|
}, [_c('el-option', {
|
|
118364
118464
|
attrs: {
|
|
118365
|
-
"label":
|
|
118366
|
-
"value": 1
|
|
118465
|
+
"label": "模版名称",
|
|
118466
|
+
"value": "1"
|
|
118367
118467
|
}
|
|
118368
118468
|
}), _c('el-option', {
|
|
118369
118469
|
attrs: {
|
|
118370
|
-
"label":
|
|
118371
|
-
"value": 2
|
|
118470
|
+
"label": "应用场景",
|
|
118471
|
+
"value": "2"
|
|
118372
118472
|
}
|
|
118373
|
-
})], 1)
|
|
118374
|
-
staticClass: "
|
|
118473
|
+
})], 1), _vm.searchForm.modelType == 1 && _vm.contentSelect == 2 ? _c('div', {
|
|
118474
|
+
staticClass: "temp_right"
|
|
118375
118475
|
}, [_c('el-select', {
|
|
118376
118476
|
attrs: {
|
|
118377
|
-
"
|
|
118378
|
-
"
|
|
118477
|
+
"slot": "prepend",
|
|
118478
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118479
|
+
},
|
|
118480
|
+
slot: "prepend",
|
|
118481
|
+
model: {
|
|
118482
|
+
value: _vm.searchForm.scene,
|
|
118483
|
+
callback: function ($$v) {
|
|
118484
|
+
_vm.$set(_vm.searchForm, "scene", $$v);
|
|
118485
|
+
},
|
|
118486
|
+
expression: "searchForm.scene"
|
|
118487
|
+
}
|
|
118488
|
+
}, _vm._l(_vm.templateSystemScene, function (scene) {
|
|
118489
|
+
return _c('el-option', {
|
|
118490
|
+
key: scene.value,
|
|
118491
|
+
attrs: {
|
|
118492
|
+
"label": scene.label,
|
|
118493
|
+
"value": scene.value
|
|
118494
|
+
}
|
|
118495
|
+
});
|
|
118496
|
+
}), 1)], 1) : _c('div', {
|
|
118497
|
+
staticClass: "temp_right"
|
|
118498
|
+
}, [_c('el-input', {
|
|
118499
|
+
staticClass: "col-input-select",
|
|
118500
|
+
attrs: {
|
|
118501
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118502
|
+
},
|
|
118503
|
+
model: {
|
|
118504
|
+
value: _vm.contentInput,
|
|
118505
|
+
callback: function ($$v) {
|
|
118506
|
+
_vm.contentInput = $$v;
|
|
118507
|
+
},
|
|
118508
|
+
expression: "contentInput"
|
|
118509
|
+
}
|
|
118510
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118511
|
+
attrs: {
|
|
118512
|
+
"span": 8
|
|
118513
|
+
}
|
|
118514
|
+
}, [_c('div', {
|
|
118515
|
+
staticClass: "col-item col-select-input-item"
|
|
118516
|
+
}, [_c('el-input', {
|
|
118517
|
+
staticClass: "col-input-select",
|
|
118518
|
+
attrs: {
|
|
118519
|
+
"placeholder": _vm.$i18n.t('common.please_input')
|
|
118520
|
+
},
|
|
118521
|
+
model: {
|
|
118522
|
+
value: _vm.mailTitleInput,
|
|
118523
|
+
callback: function ($$v) {
|
|
118524
|
+
_vm.mailTitleInput = $$v;
|
|
118525
|
+
},
|
|
118526
|
+
expression: "mailTitleInput"
|
|
118527
|
+
}
|
|
118528
|
+
}, [_c('el-select', {
|
|
118529
|
+
attrs: {
|
|
118530
|
+
"slot": "prepend",
|
|
118531
|
+
"placeholder": _vm.$i18n.t('common.please_select')
|
|
118379
118532
|
},
|
|
118380
118533
|
on: {
|
|
118381
118534
|
"change": function ($event) {
|
|
118382
|
-
_vm.
|
|
118383
|
-
_vm.init();
|
|
118535
|
+
_vm.mailTitleInput = '';
|
|
118384
118536
|
}
|
|
118385
118537
|
},
|
|
118538
|
+
slot: "prepend",
|
|
118539
|
+
model: {
|
|
118540
|
+
value: _vm.mailTitleSelect,
|
|
118541
|
+
callback: function ($$v) {
|
|
118542
|
+
_vm.mailTitleSelect = $$v;
|
|
118543
|
+
},
|
|
118544
|
+
expression: "mailTitleSelect"
|
|
118545
|
+
}
|
|
118546
|
+
}, [_c('el-option', {
|
|
118547
|
+
attrs: {
|
|
118548
|
+
"label": _vm.$t('edm2.mailEn6'),
|
|
118549
|
+
"value": "1"
|
|
118550
|
+
}
|
|
118551
|
+
}), _c('el-option', {
|
|
118552
|
+
attrs: {
|
|
118553
|
+
"label": _vm.$t('edm2.mailEn7'),
|
|
118554
|
+
"value": "2"
|
|
118555
|
+
}
|
|
118556
|
+
})], 1)], 1)], 1)]), _c('el-col', {
|
|
118557
|
+
attrs: {
|
|
118558
|
+
"span": 8
|
|
118559
|
+
}
|
|
118560
|
+
}, [_c('div', {
|
|
118561
|
+
staticClass: "col-item"
|
|
118562
|
+
}, [_c('span', {
|
|
118563
|
+
staticClass: "col-span"
|
|
118564
|
+
}, [_vm._v("模版语言")]), _c('el-select', {
|
|
118565
|
+
staticClass: "col-select",
|
|
118566
|
+
attrs: {
|
|
118567
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118568
|
+
"clearable": "",
|
|
118569
|
+
"filterable": ""
|
|
118570
|
+
},
|
|
118386
118571
|
model: {
|
|
118387
118572
|
value: _vm.searchForm.modelLanguage,
|
|
118388
118573
|
callback: function ($$v) {
|
|
@@ -118390,28 +118575,34 @@ var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function rend
|
|
|
118390
118575
|
},
|
|
118391
118576
|
expression: "searchForm.modelLanguage"
|
|
118392
118577
|
}
|
|
118393
|
-
}, _vm._l(_vm.
|
|
118578
|
+
}, _vm._l(_vm.language, function (item) {
|
|
118394
118579
|
return _c('el-option', {
|
|
118395
|
-
key:
|
|
118580
|
+
key: item.value,
|
|
118396
118581
|
attrs: {
|
|
118397
|
-
"value":
|
|
118398
|
-
"label":
|
|
118582
|
+
"value": item.value,
|
|
118583
|
+
"label": item.label
|
|
118399
118584
|
}
|
|
118400
118585
|
});
|
|
118401
|
-
}), 1)], 1), _c('
|
|
118402
|
-
|
|
118403
|
-
|
|
118404
|
-
|
|
118405
|
-
|
|
118406
|
-
"
|
|
118407
|
-
_vm.isShowSet = true;
|
|
118408
|
-
}
|
|
118586
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118587
|
+
staticStyle: {
|
|
118588
|
+
"margin-top": "8px"
|
|
118589
|
+
},
|
|
118590
|
+
attrs: {
|
|
118591
|
+
"gutter": 12
|
|
118409
118592
|
}
|
|
118410
|
-
}, [
|
|
118411
|
-
|
|
118412
|
-
|
|
118413
|
-
|
|
118414
|
-
|
|
118593
|
+
}, [_c('el-col', {
|
|
118594
|
+
attrs: {
|
|
118595
|
+
"span": 8
|
|
118596
|
+
}
|
|
118597
|
+
}, [_c('div', {
|
|
118598
|
+
staticClass: "col-item"
|
|
118599
|
+
}, [_c('span', {
|
|
118600
|
+
staticClass: "col-span"
|
|
118601
|
+
}, [_vm._v("模板类型")]), _c('el-select', {
|
|
118602
|
+
staticClass: "col-select",
|
|
118603
|
+
attrs: {
|
|
118604
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118605
|
+
"clearable": ""
|
|
118415
118606
|
},
|
|
118416
118607
|
model: {
|
|
118417
118608
|
value: _vm.searchForm.modelType,
|
|
@@ -118420,755 +118611,382 @@ var TemplateListvue_type_template_id_13a1b12d_scoped_true_render = function rend
|
|
|
118420
118611
|
},
|
|
118421
118612
|
expression: "searchForm.modelType"
|
|
118422
118613
|
}
|
|
118423
|
-
},
|
|
118424
|
-
|
|
118425
|
-
|
|
118614
|
+
}, [_c('el-option', {
|
|
118615
|
+
key: 1,
|
|
118616
|
+
attrs: {
|
|
118617
|
+
"value": 1,
|
|
118618
|
+
"label": "系统模版"
|
|
118619
|
+
}
|
|
118620
|
+
}), _c('el-option', {
|
|
118621
|
+
key: 2,
|
|
118622
|
+
attrs: {
|
|
118623
|
+
"value": 2,
|
|
118624
|
+
"label": "自定义模版"
|
|
118625
|
+
}
|
|
118626
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118627
|
+
attrs: {
|
|
118628
|
+
"span": 8
|
|
118629
|
+
}
|
|
118630
|
+
}, [_c('div', {
|
|
118631
|
+
staticClass: "col-item"
|
|
118632
|
+
}, [_c('span', {
|
|
118633
|
+
staticClass: "col-span"
|
|
118634
|
+
}, [_vm._v("共享状态")]), _c('el-select', {
|
|
118635
|
+
staticClass: "col-select",
|
|
118636
|
+
attrs: {
|
|
118637
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118638
|
+
"clearable": ""
|
|
118639
|
+
},
|
|
118640
|
+
model: {
|
|
118641
|
+
value: _vm.searchForm.isShared,
|
|
118642
|
+
callback: function ($$v) {
|
|
118643
|
+
_vm.$set(_vm.searchForm, "isShared", $$v);
|
|
118644
|
+
},
|
|
118645
|
+
expression: "searchForm.isShared"
|
|
118646
|
+
}
|
|
118647
|
+
}, [_c('el-option', {
|
|
118648
|
+
key: 1,
|
|
118649
|
+
attrs: {
|
|
118650
|
+
"value": true,
|
|
118651
|
+
"label": "公开"
|
|
118652
|
+
}
|
|
118653
|
+
}), _c('el-option', {
|
|
118654
|
+
key: 2,
|
|
118655
|
+
attrs: {
|
|
118656
|
+
"value": false,
|
|
118657
|
+
"label": "私有"
|
|
118658
|
+
}
|
|
118659
|
+
})], 1)], 1)]), _c('el-col', {
|
|
118660
|
+
attrs: {
|
|
118661
|
+
"span": 8
|
|
118662
|
+
}
|
|
118663
|
+
}, [_c('div', {
|
|
118664
|
+
staticClass: "col-item"
|
|
118665
|
+
}, [_c('span', {
|
|
118666
|
+
staticClass: "col-span"
|
|
118667
|
+
}, [_vm._v("创建人")]), _c('el-select', {
|
|
118668
|
+
staticClass: "col-select",
|
|
118669
|
+
attrs: {
|
|
118670
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
118671
|
+
"clearable": "",
|
|
118672
|
+
"filterable": ""
|
|
118673
|
+
},
|
|
118674
|
+
model: {
|
|
118675
|
+
value: _vm.searchForm.createdUser,
|
|
118676
|
+
callback: function ($$v) {
|
|
118677
|
+
_vm.$set(_vm.searchForm, "createdUser", $$v);
|
|
118678
|
+
},
|
|
118679
|
+
expression: "searchForm.createdUser"
|
|
118680
|
+
}
|
|
118681
|
+
}, _vm._l(_vm.accountList, function (item) {
|
|
118682
|
+
return _c('el-option', {
|
|
118683
|
+
key: item.userId,
|
|
118426
118684
|
attrs: {
|
|
118427
|
-
"
|
|
118428
|
-
"
|
|
118685
|
+
"label": item.userName,
|
|
118686
|
+
"value": item.userId
|
|
118429
118687
|
}
|
|
118430
118688
|
});
|
|
118431
|
-
}), 1)], 1)
|
|
118432
|
-
|
|
118433
|
-
|
|
118434
|
-
rawName: "v-loading",
|
|
118435
|
-
value: _vm.loading,
|
|
118436
|
-
expression: "loading"
|
|
118437
|
-
}],
|
|
118438
|
-
staticClass: "list hidden-scrollbar"
|
|
118439
|
-
}, [_vm.tableTotal ? _vm._l(_vm.tableData, function (t, i) {
|
|
118440
|
-
return _c('div', {
|
|
118441
|
-
key: i,
|
|
118442
|
-
staticClass: "list-item grid grid-cols-2 mb16"
|
|
118443
|
-
}, [_c('div', {
|
|
118444
|
-
staticClass: "desc"
|
|
118445
|
-
}, [_c('h3', {
|
|
118446
|
-
staticClass: "beyond_eip mb16"
|
|
118447
|
-
}, [_vm._v(" " + _vm._s(t.templatesTitle) + " ")]), _c('p', {
|
|
118448
|
-
staticClass: "beyond_eip mb8"
|
|
118449
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.apply_scene")) + ":" + _vm._s(t.scene) + " ")]), _c('p', [_vm._v(" " + _vm._s(_vm.$i18n.t("common.update_on")) + _vm._s(_vm.parseTime(t.gmtModify, "{y}-{m}-{d}")) + " ")])]), _c('div', {
|
|
118450
|
-
staticClass: "operate"
|
|
118451
|
-
}, [_c('button', {
|
|
118452
|
-
staticClass: "operate-detail",
|
|
118453
|
-
on: {
|
|
118454
|
-
"click": function ($event) {
|
|
118455
|
-
return _vm.showSetTemplate(t);
|
|
118456
|
-
}
|
|
118457
|
-
}
|
|
118458
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.detail"))), _c('i', {
|
|
118459
|
-
staticClass: "dss-iconfont icon-arrow"
|
|
118460
|
-
})]), _c('div', {
|
|
118461
|
-
staticClass: "operate-btns"
|
|
118462
|
-
}, [_vm.searchForm.type == 2 || _vm.searchForm.type == 1 && _vm.userId == 1 ? _c('button', {
|
|
118463
|
-
staticClass: "operate-btn operate-btn-linear mr8",
|
|
118464
|
-
on: {
|
|
118465
|
-
"click": function ($event) {
|
|
118466
|
-
return _vm.del(t.id);
|
|
118467
|
-
}
|
|
118468
|
-
}
|
|
118469
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.delete")) + " ")]) : _vm._e(), _vm.searchForm.type === 2 && _vm.userId === 1 ? _c('el-button', {
|
|
118470
|
-
staticClass: "operate-btn-setsys mr8",
|
|
118471
|
-
attrs: {
|
|
118472
|
-
"type": "primary",
|
|
118473
|
-
"size": "small"
|
|
118474
|
-
},
|
|
118475
|
-
on: {
|
|
118476
|
-
"click": function ($event) {
|
|
118477
|
-
return _vm.showSetSystem(t);
|
|
118478
|
-
}
|
|
118479
|
-
}
|
|
118480
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("template.set_system_template")) + " ")]) : _vm._e(), t.isShowDownload === 1 ? _c('el-button', {
|
|
118481
|
-
staticClass: "mr8",
|
|
118482
|
-
attrs: {
|
|
118483
|
-
"type": "primary",
|
|
118484
|
-
"size": "small"
|
|
118485
|
-
},
|
|
118486
|
-
on: {
|
|
118487
|
-
"click": function ($event) {
|
|
118488
|
-
return _vm.downloadTem(t);
|
|
118489
|
-
}
|
|
118490
|
-
}
|
|
118491
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.download")) + " ")]) : _vm._e(), _c('el-button', {
|
|
118492
|
-
attrs: {
|
|
118493
|
-
"type": "primary",
|
|
118494
|
-
"size": "small"
|
|
118495
|
-
},
|
|
118496
|
-
on: {
|
|
118497
|
-
"click": function ($event) {
|
|
118498
|
-
return _vm.setMailTemplate(t);
|
|
118499
|
-
}
|
|
118500
|
-
}
|
|
118501
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.apply")) + " ")])], 1)])]);
|
|
118502
|
-
}) : _vm._e(), !_vm.tableTotal ? _c('div', {
|
|
118503
|
-
staticClass: "w-full h-full flex items-center justify-center"
|
|
118504
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.no_data")) + " ")]) : _vm._e()], 2), _c('div', {
|
|
118505
|
-
staticClass: "list-page"
|
|
118506
|
-
}, [_c('el-pagination', {
|
|
118507
|
-
attrs: {
|
|
118508
|
-
"current-page": _vm.searchForm.currentPage,
|
|
118509
|
-
"total": _vm.tableTotal,
|
|
118510
|
-
"page-size": _vm.searchForm.pageSize,
|
|
118511
|
-
"pager-count": 5,
|
|
118512
|
-
"small": "",
|
|
118513
|
-
"layout": "total, prev, pager, next, jumper"
|
|
118689
|
+
}), 1)], 1)])], 1), _c('el-row', {
|
|
118690
|
+
staticStyle: {
|
|
118691
|
+
"margin-top": "8px"
|
|
118514
118692
|
},
|
|
118515
|
-
|
|
118516
|
-
"
|
|
118693
|
+
attrs: {
|
|
118694
|
+
"gutter": 20
|
|
118517
118695
|
}
|
|
118518
|
-
}
|
|
118696
|
+
}, [_c('el-col', {
|
|
118519
118697
|
attrs: {
|
|
118520
|
-
"
|
|
118521
|
-
"with-header": false,
|
|
118522
|
-
"wrapper-closable": false,
|
|
118523
|
-
"append-to-body": "",
|
|
118524
|
-
"size": "800px"
|
|
118525
|
-
},
|
|
118526
|
-
on: {
|
|
118527
|
-
"update:visible": function ($event) {
|
|
118528
|
-
_vm.isShowSet = $event;
|
|
118529
|
-
}
|
|
118698
|
+
"span": 24
|
|
118530
118699
|
}
|
|
118531
|
-
}, [
|
|
118700
|
+
}, [_c('div', {
|
|
118701
|
+
staticClass: "btns_box"
|
|
118702
|
+
}, [_c('div', [_c('el-button', {
|
|
118532
118703
|
attrs: {
|
|
118533
|
-
"
|
|
118534
|
-
"rowData": _vm.rowData,
|
|
118535
|
-
"selectType": _vm.searchForm.type
|
|
118704
|
+
"type": "primary"
|
|
118536
118705
|
},
|
|
118537
118706
|
on: {
|
|
118538
|
-
"
|
|
118707
|
+
"click": function ($event) {
|
|
118539
118708
|
_vm.searchForm.currentPage = 1;
|
|
118540
|
-
_vm.
|
|
118541
|
-
},
|
|
118542
|
-
"close": function ($event) {
|
|
118543
|
-
_vm.setId = 0;
|
|
118544
|
-
_vm.isShowSet = false;
|
|
118709
|
+
_vm.getCardList();
|
|
118545
118710
|
}
|
|
118546
118711
|
}
|
|
118547
|
-
}
|
|
118548
|
-
attrs: {
|
|
118549
|
-
"isShowSetSystem": _vm.isShowSetSystem,
|
|
118550
|
-
"tabOpts": _vm.tabOpts,
|
|
118551
|
-
"mailId": _vm.mailId
|
|
118552
|
-
},
|
|
118553
|
-
on: {
|
|
118554
|
-
"closeDialog": _vm.closeDialog
|
|
118555
|
-
}
|
|
118556
|
-
}) : _vm._e()], 1);
|
|
118557
|
-
};
|
|
118558
|
-
var TemplateListvue_type_template_id_13a1b12d_scoped_true_staticRenderFns = [];
|
|
118559
|
-
|
|
118560
|
-
;// ./src/api/send/template.js
|
|
118561
|
-
|
|
118562
|
-
// 分页查看模板列表
|
|
118563
|
-
async function getTemplateList(params) {
|
|
118564
|
-
let res = await request_get("/edm/template/templates", params);
|
|
118565
|
-
return res;
|
|
118566
|
-
}
|
|
118567
|
-
// 添加模板
|
|
118568
|
-
async function addTemplate(data) {
|
|
118569
|
-
let res = await request_post("/edm/template/addTemplate", data);
|
|
118570
|
-
return res;
|
|
118571
|
-
}
|
|
118572
|
-
// 编辑模板
|
|
118573
|
-
async function editTemplate(data) {
|
|
118574
|
-
let res = await request_post("/edm/template/editTemplate", data);
|
|
118575
|
-
return res;
|
|
118576
|
-
}
|
|
118577
|
-
// 删除模板
|
|
118578
|
-
async function delTemplate(data) {
|
|
118579
|
-
let res = await request_del(`/edm/template/delTemplate/${data.id}`);
|
|
118580
|
-
return res;
|
|
118581
|
-
}
|
|
118582
|
-
// 设为系统模版
|
|
118583
|
-
async function setSysTemplate(data) {
|
|
118584
|
-
let res = await request_put(`/edm/template/setSysTemplate`, data);
|
|
118585
|
-
return res;
|
|
118586
|
-
}
|
|
118587
|
-
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=template&id=87417d06&scoped=true
|
|
118588
|
-
var SetTemplatevue_type_template_id_87417d06_scoped_true_render = function render() {
|
|
118589
|
-
var _vm = this,
|
|
118590
|
-
_c = _vm._self._c;
|
|
118591
|
-
return _c('div', {
|
|
118592
|
-
staticClass: "drawer"
|
|
118593
|
-
}, [_c('div', {
|
|
118594
|
-
staticClass: "drawer-head"
|
|
118595
|
-
}, [_c('h3', [_vm._v(" " + _vm._s(_vm.id ? `${_vm.$i18n.t("template.edit_template")}` : `${_vm.$i18n.t("template.new_template")}`) + " ")]), _c('button', {
|
|
118596
|
-
staticClass: "close-btn",
|
|
118712
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.search")) + " ")]), _c('el-button', {
|
|
118597
118713
|
on: {
|
|
118598
|
-
"click":
|
|
118599
|
-
return _vm.close();
|
|
118600
|
-
}
|
|
118714
|
+
"click": _vm.resetEvt
|
|
118601
118715
|
}
|
|
118602
|
-
}, [_c('
|
|
118603
|
-
|
|
118604
|
-
|
|
118605
|
-
|
|
118606
|
-
}, [_c('el-form', {
|
|
118607
|
-
ref: "form",
|
|
118608
|
-
attrs: {
|
|
118609
|
-
"model": _vm.form,
|
|
118610
|
-
"rules": _vm.verifyForm
|
|
118716
|
+
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("searchButton.reset")) + " ")])], 1), _c('div', {
|
|
118717
|
+
staticStyle: {
|
|
118718
|
+
"display": "flex",
|
|
118719
|
+
"align-items": "center"
|
|
118611
118720
|
}
|
|
118612
118721
|
}, [_c('div', {
|
|
118613
|
-
staticClass: "
|
|
118614
|
-
}, [_c('
|
|
118615
|
-
attrs: {
|
|
118616
|
-
"prop": "templatesTitle"
|
|
118617
|
-
}
|
|
118618
|
-
}, [_c('el-input', {
|
|
118619
|
-
attrs: {
|
|
118620
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118621
|
-
"placeholder": _vm.$i18n.t('common.please_input') + `(30` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118622
|
-
"clearable": ""
|
|
118623
|
-
},
|
|
118624
|
-
model: {
|
|
118625
|
-
value: _vm.form.templatesTitle,
|
|
118626
|
-
callback: function ($$v) {
|
|
118627
|
-
_vm.$set(_vm.form, "templatesTitle", $$v);
|
|
118628
|
-
},
|
|
118629
|
-
expression: "form.templatesTitle"
|
|
118630
|
-
}
|
|
118631
|
-
})], 1)], 1), _c('div', {
|
|
118632
|
-
staticClass: "form-item"
|
|
118633
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.mail_title")))]), _c('el-form-item', {
|
|
118634
|
-
attrs: {
|
|
118635
|
-
"prop": "mailSubject"
|
|
118636
|
-
}
|
|
118637
|
-
}, [_c('el-input', {
|
|
118638
|
-
ref: "mailSubjectIpt",
|
|
118639
|
-
attrs: {
|
|
118640
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118641
|
-
"placeholder": _vm.$i18n.t('common.please_input'),
|
|
118642
|
-
"clearable": ""
|
|
118643
|
-
},
|
|
118644
|
-
on: {
|
|
118645
|
-
"focus": function ($event) {
|
|
118646
|
-
_vm.isFocusSubject = true;
|
|
118647
|
-
}
|
|
118648
|
-
},
|
|
118649
|
-
model: {
|
|
118650
|
-
value: _vm.form.mailSubject,
|
|
118651
|
-
callback: function ($$v) {
|
|
118652
|
-
_vm.$set(_vm.form, "mailSubject", $$v);
|
|
118653
|
-
},
|
|
118654
|
-
expression: "form.mailSubject"
|
|
118655
|
-
}
|
|
118656
|
-
})], 1)], 1), _c('div', {
|
|
118657
|
-
staticClass: "form-editor mb24"
|
|
118658
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("writeMail.content")))]), _c('div', {
|
|
118659
|
-
staticClass: "form-editor-wrap"
|
|
118660
|
-
}, [_c('editor', {
|
|
118661
|
-
ref: "templateContent",
|
|
118722
|
+
staticClass: "right_sort"
|
|
118723
|
+
}, [_c('el-dropdown', {
|
|
118662
118724
|
attrs: {
|
|
118663
|
-
"
|
|
118664
|
-
"theme": "light"
|
|
118665
|
-
},
|
|
118666
|
-
on: {
|
|
118667
|
-
"click": function ($event) {
|
|
118668
|
-
_vm.isFocusSubject = false;
|
|
118669
|
-
}
|
|
118725
|
+
"placement": "bottom"
|
|
118670
118726
|
}
|
|
118671
|
-
}), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118672
|
-
staticClass: "form-tool"
|
|
118673
118727
|
}, [_c('div', {
|
|
118674
|
-
staticClass: "
|
|
118728
|
+
staticClass: "sort_btn"
|
|
118675
118729
|
}, [_c('i', {
|
|
118676
|
-
staticClass: "dss-iconfont
|
|
118677
|
-
}
|
|
118678
|
-
staticClass: "form-tool-main"
|
|
118679
|
-
}, [_c('button', {
|
|
118680
|
-
staticClass: "mb8 mr16",
|
|
118681
|
-
attrs: {
|
|
118682
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118683
|
-
},
|
|
118684
|
-
on: {
|
|
118685
|
-
"click": function ($event) {
|
|
118686
|
-
$event.preventDefault();
|
|
118687
|
-
return _vm.setVariable(0);
|
|
118688
|
-
}
|
|
118689
|
-
}
|
|
118690
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_name")) + " ")]), _c('button', {
|
|
118691
|
-
staticClass: "mb8 mr16",
|
|
118692
|
-
on: {
|
|
118693
|
-
"click": function ($event) {
|
|
118694
|
-
$event.preventDefault();
|
|
118695
|
-
return _vm.setVariable(3);
|
|
118696
|
-
}
|
|
118697
|
-
}
|
|
118698
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_Id")) + " ")]), _c('button', {
|
|
118699
|
-
staticClass: "mb8 mr16",
|
|
118700
|
-
attrs: {
|
|
118701
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118702
|
-
},
|
|
118703
|
-
on: {
|
|
118704
|
-
"click": function ($event) {
|
|
118705
|
-
$event.preventDefault();
|
|
118706
|
-
return _vm.setVariable(1);
|
|
118707
|
-
}
|
|
118708
|
-
}
|
|
118709
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.fans_num")) + " ")]), _c('button', {
|
|
118710
|
-
attrs: {
|
|
118711
|
-
"disabled": _vm.selectType == 1 && !!_vm.id
|
|
118712
|
-
},
|
|
118713
|
-
on: {
|
|
118714
|
-
"click": function ($event) {
|
|
118715
|
-
$event.preventDefault();
|
|
118716
|
-
return _vm.setVariable(2);
|
|
118717
|
-
}
|
|
118718
|
-
}
|
|
118719
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("writeMail.channel_link")) + " ")])])]) : _vm._e()], 1)]), _c('div', {
|
|
118720
|
-
staticClass: "form-item"
|
|
118721
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.apply_scene")))]), _c('el-form-item', {
|
|
118722
|
-
attrs: {
|
|
118723
|
-
"prop": "scene"
|
|
118724
|
-
}
|
|
118725
|
-
}, [_c('el-input', {
|
|
118726
|
-
attrs: {
|
|
118727
|
-
"placeholder": _vm.$i18n.t('common.please_input') + `(20` + _vm.$i18n.t('template.word_limit') + `)`,
|
|
118728
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118729
|
-
"clearable": ""
|
|
118730
|
-
},
|
|
118731
|
-
model: {
|
|
118732
|
-
value: _vm.form.scene,
|
|
118733
|
-
callback: function ($$v) {
|
|
118734
|
-
_vm.$set(_vm.form, "scene", $$v);
|
|
118735
|
-
},
|
|
118736
|
-
expression: "form.scene"
|
|
118737
|
-
}
|
|
118738
|
-
})], 1)], 1), _c('div', {
|
|
118739
|
-
staticClass: "form-item mb24"
|
|
118740
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.$i18n.t("template.language")))]), _c('el-form-item', {
|
|
118741
|
-
attrs: {
|
|
118742
|
-
"prop": "modelLanguage"
|
|
118743
|
-
}
|
|
118744
|
-
}, [_c('el-select', {
|
|
118730
|
+
staticClass: "dss-iconfont"
|
|
118731
|
+
}, [_vm._v("")]), _vm._v(" " + _vm._s(_vm.sortConfig.find(item => item.value == _vm.searchForm.searchSort).label) + " ")]), _c('el-dropdown-menu', {
|
|
118745
118732
|
attrs: {
|
|
118746
|
-
"
|
|
118747
|
-
"disabled": _vm.selectType == 1 && !!_vm.id,
|
|
118748
|
-
"clearable": ""
|
|
118733
|
+
"slot": "dropdown"
|
|
118749
118734
|
},
|
|
118750
|
-
|
|
118751
|
-
|
|
118752
|
-
|
|
118753
|
-
|
|
118735
|
+
slot: "dropdown"
|
|
118736
|
+
}, _vm._l(_vm.sortConfig, function (item, index) {
|
|
118737
|
+
return _c('el-dropdown-item', {
|
|
118738
|
+
key: index,
|
|
118739
|
+
staticStyle: {
|
|
118740
|
+
"white-space": "nowrap"
|
|
118754
118741
|
},
|
|
118755
|
-
expression: "form.modelLanguage"
|
|
118756
|
-
}
|
|
118757
|
-
}, _vm._l(_vm.enumData.language, function (t, i) {
|
|
118758
|
-
return _c('el-option', {
|
|
118759
|
-
key: i,
|
|
118760
118742
|
attrs: {
|
|
118761
|
-
"
|
|
118762
|
-
"label": t.label
|
|
118763
|
-
}
|
|
118764
|
-
});
|
|
118765
|
-
}), 1)], 1)], 1)])], 1), !(_vm.selectType == 1 && !!_vm.id) ? _c('div', {
|
|
118766
|
-
staticClass: "drawer-foot"
|
|
118767
|
-
}, [_c('button', {
|
|
118768
|
-
staticClass: "drawer-btn drawer-btn-linear mr24",
|
|
118769
|
-
on: {
|
|
118770
|
-
"click": function ($event) {
|
|
118771
|
-
return _vm.close();
|
|
118772
|
-
}
|
|
118773
|
-
}
|
|
118774
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.cancle")) + " ")]), _c('button', {
|
|
118775
|
-
staticClass: "drawer-btn drawer-btn-face",
|
|
118776
|
-
attrs: {
|
|
118777
|
-
"disabled": _vm.isSubmit
|
|
118778
|
-
},
|
|
118779
|
-
on: {
|
|
118780
|
-
"click": _vm.submit
|
|
118781
|
-
}
|
|
118782
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t("common.confirm")) + " "), _vm.isSubmit ? _c('i', {
|
|
118783
|
-
staticClass: "el-icon-loading"
|
|
118784
|
-
}) : _vm._e()])]) : _vm._e()]);
|
|
118785
|
-
};
|
|
118786
|
-
var SetTemplatevue_type_template_id_87417d06_scoped_true_staticRenderFns = [];
|
|
118787
|
-
|
|
118788
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetTemplate.vue?vue&type=script&lang=js
|
|
118789
|
-
|
|
118790
|
-
|
|
118791
|
-
|
|
118792
|
-
/* harmony default export */ var SetTemplatevue_type_script_lang_js = ({
|
|
118793
|
-
components: {
|
|
118794
|
-
Editor: Editor
|
|
118795
|
-
},
|
|
118796
|
-
props: {
|
|
118797
|
-
id: {
|
|
118798
|
-
default: 0,
|
|
118799
|
-
type: Number
|
|
118800
|
-
},
|
|
118801
|
-
rowData: {
|
|
118802
|
-
type: Object,
|
|
118803
|
-
default: () => {
|
|
118804
|
-
return {};
|
|
118805
|
-
}
|
|
118806
|
-
},
|
|
118807
|
-
// 自定义模板/系统模板
|
|
118808
|
-
selectType: {
|
|
118809
|
-
type: [Number, String],
|
|
118810
|
-
default: ""
|
|
118811
|
-
}
|
|
118812
|
-
},
|
|
118813
|
-
data() {
|
|
118814
|
-
return {
|
|
118815
|
-
enumData: {
|
|
118816
|
-
language: language
|
|
118743
|
+
"command": item.value
|
|
118817
118744
|
},
|
|
118818
|
-
|
|
118819
|
-
|
|
118820
|
-
|
|
118821
|
-
templatesTitle: "",
|
|
118822
|
-
//模板标题
|
|
118823
|
-
mailSubject: "",
|
|
118824
|
-
//邮件标题
|
|
118825
|
-
scene: "",
|
|
118826
|
-
//应用场景
|
|
118827
|
-
modelLanguage: ""
|
|
118828
|
-
},
|
|
118829
|
-
verifyForm: {
|
|
118830
|
-
templatesTitle: [{
|
|
118831
|
-
required: true,
|
|
118832
|
-
message: `${this.$i18n.t("template.title_not_empty")}`,
|
|
118833
|
-
trigger: "blur"
|
|
118834
|
-
}, {
|
|
118835
|
-
max: 30,
|
|
118836
|
-
message: `${this.$i18n.t("template.title_word_limit")}`,
|
|
118837
|
-
trigger: "blur"
|
|
118838
|
-
}],
|
|
118839
|
-
mailSubject: [{
|
|
118840
|
-
required: true,
|
|
118841
|
-
message: `${this.$i18n.t("template.subject_not_empty")}`,
|
|
118842
|
-
trigger: "blur"
|
|
118843
|
-
}],
|
|
118844
|
-
scene: [{
|
|
118845
|
-
required: true,
|
|
118846
|
-
message: `${this.$i18n.t("template.scene_not_empty")}`,
|
|
118847
|
-
trigger: "blur"
|
|
118848
|
-
}, {
|
|
118849
|
-
max: 20,
|
|
118850
|
-
message: `${this.$i18n.t("template.scene_word_limit")}`,
|
|
118851
|
-
trigger: "blur"
|
|
118852
|
-
}],
|
|
118853
|
-
modelLanguage: [{
|
|
118854
|
-
required: true,
|
|
118855
|
-
message: `${this.$i18n.t("template.language_not_empty")}`,
|
|
118856
|
-
trigger: "change"
|
|
118857
|
-
}]
|
|
118858
|
-
},
|
|
118859
|
-
// 标签表单校验规则
|
|
118860
|
-
isFocusSubject: false,
|
|
118861
|
-
// 主题是否获取焦点
|
|
118862
|
-
isSubmit: false // 是否正在提交
|
|
118863
|
-
};
|
|
118864
|
-
},
|
|
118865
|
-
created() {
|
|
118866
|
-
if (this.id) {
|
|
118867
|
-
// 初始化
|
|
118868
|
-
this.init();
|
|
118869
|
-
}
|
|
118870
|
-
},
|
|
118871
|
-
methods: {
|
|
118872
|
-
// 初始化
|
|
118873
|
-
init() {
|
|
118874
|
-
if (this.id) {
|
|
118875
|
-
setTimeout(() => {
|
|
118876
|
-
this.$refs.templateContent.setContent(this.rowData.content);
|
|
118877
|
-
if (this.selectType == 1) {
|
|
118878
|
-
this.$refs.templateContent.setDisable();
|
|
118879
|
-
}
|
|
118880
|
-
}, 200);
|
|
118881
|
-
this.form = {
|
|
118882
|
-
templatesTitle: this.rowData.templatesTitle,
|
|
118883
|
-
mailSubject: this.rowData.mailSubject,
|
|
118884
|
-
scene: this.rowData.scene,
|
|
118885
|
-
modelLanguage: this.rowData.modelLanguage
|
|
118886
|
-
};
|
|
118887
|
-
}
|
|
118888
|
-
},
|
|
118889
|
-
// 提交
|
|
118890
|
-
submit() {
|
|
118891
|
-
this.$refs.form.validate(valid => {
|
|
118892
|
-
if (valid) {
|
|
118893
|
-
if (this.$refs.templateContent.isEmpty()) {
|
|
118894
|
-
this.$message({
|
|
118895
|
-
type: "warning",
|
|
118896
|
-
message: `${this.$i18n.t("template.no_content")}`
|
|
118897
|
-
});
|
|
118898
|
-
return;
|
|
118899
|
-
}
|
|
118900
|
-
const data = this.form;
|
|
118901
|
-
data.content = this.$refs.templateContent.getContent();
|
|
118902
|
-
this.isSubmit = true;
|
|
118903
|
-
if (this.id) {
|
|
118904
|
-
data.id = this.id;
|
|
118905
|
-
// 编辑
|
|
118906
|
-
editTemplate(data).then(res => {
|
|
118907
|
-
if (res.code == 0) {
|
|
118908
|
-
this.isSubmit = false;
|
|
118909
|
-
this.$emit("init");
|
|
118910
|
-
this.close();
|
|
118911
|
-
this.$message({
|
|
118912
|
-
type: "success",
|
|
118913
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118914
|
-
});
|
|
118915
|
-
}
|
|
118916
|
-
});
|
|
118917
|
-
} else {
|
|
118918
|
-
// 新增
|
|
118919
|
-
addTemplate(data).then(res => {
|
|
118920
|
-
if (res.code == 0) {
|
|
118921
|
-
this.isSubmit = false;
|
|
118922
|
-
this.$emit("init");
|
|
118923
|
-
this.close();
|
|
118924
|
-
this.$message({
|
|
118925
|
-
type: "success",
|
|
118926
|
-
message: `${this.$i18n.t("outboxMail.success")}`
|
|
118927
|
-
});
|
|
118928
|
-
}
|
|
118929
|
-
});
|
|
118930
|
-
}
|
|
118931
|
-
} else {
|
|
118932
|
-
return false;
|
|
118933
|
-
}
|
|
118934
|
-
});
|
|
118935
|
-
},
|
|
118936
|
-
// 使用变量
|
|
118937
|
-
setVariable(type) {
|
|
118938
|
-
let content = ``;
|
|
118939
|
-
if (this.isFocusSubject) {
|
|
118940
|
-
switch (type) {
|
|
118941
|
-
case 0:
|
|
118942
|
-
// 频道名
|
|
118943
|
-
content = `{$channelName}`;
|
|
118944
|
-
break;
|
|
118945
|
-
case 1:
|
|
118946
|
-
// 粉丝数
|
|
118947
|
-
content = `{$subscriber}`;
|
|
118948
|
-
break;
|
|
118949
|
-
case 2:
|
|
118950
|
-
// 频道链接
|
|
118951
|
-
content = `{$link}`;
|
|
118952
|
-
break;
|
|
118953
|
-
case 3:
|
|
118954
|
-
// 频道id
|
|
118955
|
-
content = `{$channelId}`;
|
|
118956
|
-
break;
|
|
118745
|
+
nativeOn: {
|
|
118746
|
+
"click": function ($event) {
|
|
118747
|
+
return _vm.clickDropdownItem(item);
|
|
118957
118748
|
}
|
|
118958
|
-
|
|
118959
|
-
|
|
118960
|
-
|
|
118961
|
-
|
|
118962
|
-
|
|
118963
|
-
|
|
118964
|
-
|
|
118965
|
-
|
|
118966
|
-
|
|
118967
|
-
|
|
118968
|
-
|
|
118969
|
-
|
|
118970
|
-
|
|
118971
|
-
|
|
118972
|
-
|
|
118973
|
-
|
|
118974
|
-
|
|
118975
|
-
|
|
118976
|
-
|
|
118977
|
-
|
|
118978
|
-
|
|
118979
|
-
|
|
118749
|
+
}
|
|
118750
|
+
}, [_vm._v(_vm._s(item.label))]);
|
|
118751
|
+
}), 1)], 1)], 1)])])])], 1)], 1), _c('div', {
|
|
118752
|
+
staticClass: "temp_box"
|
|
118753
|
+
}, [_vm.templateList.length ? _c('div', {
|
|
118754
|
+
staticClass: "temp_list"
|
|
118755
|
+
}, _vm._l(_vm.templateList, function (item) {
|
|
118756
|
+
return _c('div', {
|
|
118757
|
+
key: item.id,
|
|
118758
|
+
staticClass: "temp_item"
|
|
118759
|
+
}, [_c('div', {
|
|
118760
|
+
staticClass: "temp_content"
|
|
118761
|
+
}, [_c('div', {
|
|
118762
|
+
staticClass: "temp_top"
|
|
118763
|
+
}, [_c('div', {
|
|
118764
|
+
staticClass: "temp_title"
|
|
118765
|
+
}, [_c('div', {
|
|
118766
|
+
staticClass: "title_text"
|
|
118767
|
+
}, [_vm._v(" " + _vm._s(item.templatesTitle) + " ")]), _c('div', {
|
|
118768
|
+
staticClass: "more_icon",
|
|
118769
|
+
on: {
|
|
118770
|
+
"click": function ($event) {
|
|
118771
|
+
return _vm.toDetail(item);
|
|
118980
118772
|
}
|
|
118981
|
-
this.$refs.templateContent.insertEditContent(content);
|
|
118982
118773
|
}
|
|
118983
|
-
},
|
|
118984
|
-
|
|
118985
|
-
|
|
118986
|
-
|
|
118987
|
-
}
|
|
118988
|
-
|
|
118989
|
-
})
|
|
118990
|
-
|
|
118991
|
-
|
|
118992
|
-
|
|
118993
|
-
|
|
118994
|
-
|
|
118995
|
-
|
|
118996
|
-
|
|
118997
|
-
|
|
118998
|
-
|
|
118999
|
-
|
|
119000
|
-
|
|
119001
|
-
|
|
119002
|
-
|
|
119003
|
-
|
|
119004
|
-
|
|
119005
|
-
|
|
119006
|
-
|
|
119007
|
-
|
|
119008
|
-
|
|
119009
|
-
|
|
119010
|
-
|
|
119011
|
-
|
|
119012
|
-
|
|
119013
|
-
|
|
119014
|
-
|
|
119015
|
-
|
|
119016
|
-
|
|
119017
|
-
|
|
119018
|
-
|
|
119019
|
-
|
|
119020
|
-
|
|
119021
|
-
_c
|
|
119022
|
-
|
|
119023
|
-
|
|
119024
|
-
"
|
|
119025
|
-
|
|
119026
|
-
"
|
|
119027
|
-
|
|
119028
|
-
|
|
119029
|
-
},
|
|
119030
|
-
|
|
119031
|
-
|
|
119032
|
-
|
|
118774
|
+
}, [_vm._v(" 详情"), _c('i', {
|
|
118775
|
+
staticClass: "el-icon-arrow-right"
|
|
118776
|
+
})])]), _c('div', {
|
|
118777
|
+
staticClass: "num_box"
|
|
118778
|
+
}, [_c('div', {
|
|
118779
|
+
staticClass: "lang_box"
|
|
118780
|
+
}, [_vm._v(" 语言:" + _vm._s(_vm.getLangLabel(item.modelLanguage)) + " ")]), _c('div', {
|
|
118781
|
+
staticClass: "lang_box"
|
|
118782
|
+
}, [_vm._v("附件:??个")]), _c('div', {
|
|
118783
|
+
staticClass: "lang_box"
|
|
118784
|
+
}, [_vm._v("商品卡:??个")])])]), _c('div', {
|
|
118785
|
+
staticClass: "temp_middle"
|
|
118786
|
+
}, [_c('div', {
|
|
118787
|
+
staticClass: "nu_box"
|
|
118788
|
+
}, [_c('div', {
|
|
118789
|
+
staticClass: "nu_title"
|
|
118790
|
+
}, [_vm._v("送达率")]), _c('div', {
|
|
118791
|
+
staticClass: "nu_number"
|
|
118792
|
+
}, [_vm._v(" " + _vm._s(item.deliveryRate == null ? "-" : item.deliveryRate + "%") + " ")])]), _c('div', {
|
|
118793
|
+
staticClass: "nu_box"
|
|
118794
|
+
}, [_c('div', {
|
|
118795
|
+
staticClass: "nu_title"
|
|
118796
|
+
}, [_vm._v("打开率")]), _c('div', {
|
|
118797
|
+
staticClass: "nu_number"
|
|
118798
|
+
}, [_vm._v(" " + _vm._s(item.openRate == null ? "-" : item.openRate + "%") + " ")])]), _c('div', {
|
|
118799
|
+
staticClass: "nu_box"
|
|
118800
|
+
}, [_c('div', {
|
|
118801
|
+
staticClass: "nu_title"
|
|
118802
|
+
}, [_vm._v("回复率")]), _c('div', {
|
|
118803
|
+
staticClass: "nu_number"
|
|
118804
|
+
}, [_vm._v(" " + _vm._s(item.replyRate == null ? "-" : item.replyRate + "%") + " ")])]), _c('div', {
|
|
118805
|
+
staticClass: "nu_box"
|
|
118806
|
+
}, [_c('div', {
|
|
118807
|
+
staticClass: "nu_title"
|
|
118808
|
+
}, [_vm._v("累计发送数")]), _c('div', {
|
|
118809
|
+
staticClass: "nu_number"
|
|
118810
|
+
}, [_vm._v(" " + _vm._s(item.totalSentNumber == null ? "-" : item.totalSentNumber + "%") + " ")])])]), _c('div', {
|
|
118811
|
+
staticClass: "tem_bottom"
|
|
118812
|
+
}, [_c('div', {
|
|
118813
|
+
staticClass: "tem_desc"
|
|
118814
|
+
}, [_vm._v("邮件标题:" + _vm._s(item.mailSubject))]), _c('div', {
|
|
118815
|
+
staticClass: "tem_desc"
|
|
118816
|
+
}, [_vm._v("应用场景:" + _vm._s(item.scene))]), _c('div', {
|
|
118817
|
+
staticClass: "desc_btns"
|
|
118818
|
+
}, [_c('div', {
|
|
118819
|
+
staticClass: "desc_text"
|
|
118820
|
+
}, [_c('div', {
|
|
118821
|
+
staticClass: "tem_desc"
|
|
118822
|
+
}, [_vm._v("创建人:" + _vm._s(item.creator))]), _c('div', {
|
|
118823
|
+
staticClass: "tem_desc"
|
|
118824
|
+
}, [_vm._v("更新时间:" + _vm._s(item.gmtModify))])]), _c('div', {
|
|
118825
|
+
staticClass: "apply_btn"
|
|
118826
|
+
}, [_c('el-button', {
|
|
118827
|
+
attrs: {
|
|
118828
|
+
"type": "primary"
|
|
119033
118829
|
},
|
|
119034
|
-
|
|
119035
|
-
|
|
119036
|
-
|
|
119037
|
-
|
|
119038
|
-
|
|
118830
|
+
on: {
|
|
118831
|
+
"click": function ($event) {
|
|
118832
|
+
return _vm.setMailTemplate(item);
|
|
118833
|
+
}
|
|
118834
|
+
}
|
|
118835
|
+
}, [_vm._v("应用")])], 1)])])])]);
|
|
118836
|
+
}), 0) : _c('Empty')], 1), _c('div', {
|
|
118837
|
+
staticClass: "page_box"
|
|
118838
|
+
}, [_c('el-pagination', {
|
|
119039
118839
|
attrs: {
|
|
119040
|
-
"
|
|
119041
|
-
"
|
|
119042
|
-
"
|
|
118840
|
+
"current-page": _vm.searchForm.currentPage,
|
|
118841
|
+
"page-size": _vm.searchForm.pageSize,
|
|
118842
|
+
"layout": "total,prev, pager, next, jumper",
|
|
118843
|
+
"total": _vm.total
|
|
119043
118844
|
},
|
|
119044
|
-
|
|
119045
|
-
|
|
119046
|
-
|
|
119047
|
-
|
|
118845
|
+
on: {
|
|
118846
|
+
"size-change": _vm.handleSizeChange,
|
|
118847
|
+
"current-change": _vm.handleCurrentChange,
|
|
118848
|
+
"update:currentPage": function ($event) {
|
|
118849
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
119048
118850
|
},
|
|
119049
|
-
|
|
119050
|
-
|
|
119051
|
-
}, _vm._l(_vm.tabOpts, function (item) {
|
|
119052
|
-
return _c('el-option', {
|
|
119053
|
-
key: Number(item.name),
|
|
119054
|
-
attrs: {
|
|
119055
|
-
"value": Number(item.name),
|
|
119056
|
-
"label": item.label
|
|
118851
|
+
"update:current-page": function ($event) {
|
|
118852
|
+
return _vm.$set(_vm.searchForm, "currentPage", $event);
|
|
119057
118853
|
}
|
|
119058
|
-
});
|
|
119059
|
-
}), 1)], 1), _c('div', {
|
|
119060
|
-
staticClass: "flex justify-end"
|
|
119061
|
-
}, [_c('button', {
|
|
119062
|
-
staticClass: "form-btn form-btn-disabled mr16",
|
|
119063
|
-
on: {
|
|
119064
|
-
"click": _vm.closeEvt
|
|
119065
118854
|
}
|
|
119066
|
-
},
|
|
119067
|
-
staticClass: "form-btn form-btn-face",
|
|
119068
|
-
on: {
|
|
119069
|
-
"click": _vm.customToSystem
|
|
119070
|
-
}
|
|
119071
|
-
}, [_vm._v(" " + _vm._s(_vm.$i18n.t('template.confirm')) + " ")])])]);
|
|
118855
|
+
})], 1)]);
|
|
119072
118856
|
};
|
|
119073
|
-
var
|
|
119074
|
-
|
|
119075
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119076
|
-
|
|
119077
|
-
/* harmony default export */ var SetSysTemplatevue_type_script_lang_js = ({
|
|
119078
|
-
props: {
|
|
119079
|
-
isShowSetSystem: {
|
|
119080
|
-
type: Boolean,
|
|
119081
|
-
default: false
|
|
119082
|
-
},
|
|
119083
|
-
mailId: {
|
|
119084
|
-
type: [String, Number],
|
|
119085
|
-
default: ""
|
|
119086
|
-
},
|
|
119087
|
-
tabOpts: {
|
|
119088
|
-
type: Array,
|
|
119089
|
-
default: () => {
|
|
119090
|
-
return [];
|
|
119091
|
-
}
|
|
119092
|
-
}
|
|
119093
|
-
},
|
|
119094
|
-
data() {
|
|
119095
|
-
return {
|
|
119096
|
-
isShowSetSystemDialog: this.isShowSetSystem,
|
|
119097
|
-
setSystemForm: {
|
|
119098
|
-
// 设置系统模板表单
|
|
119099
|
-
id: this.mailId,
|
|
119100
|
-
modelType: ""
|
|
119101
|
-
}
|
|
119102
|
-
};
|
|
119103
|
-
},
|
|
119104
|
-
methods: {
|
|
119105
|
-
customToSystem() {
|
|
119106
|
-
if (!this.setSystemForm.modelType) {
|
|
119107
|
-
this.$message({
|
|
119108
|
-
type: "warning",
|
|
119109
|
-
message: `${this.$i18n.t('common.please_select')}${this.$i18n.t('template.template_type')}`
|
|
119110
|
-
});
|
|
119111
|
-
return;
|
|
119112
|
-
}
|
|
119113
|
-
setSysTemplate(this.setSystemForm).then(res => {
|
|
119114
|
-
if (res.code == 0) {
|
|
119115
|
-
this.closeEvt();
|
|
119116
|
-
this.$message({
|
|
119117
|
-
type: "success",
|
|
119118
|
-
message: `${this.$i18n.t('template.set_success')}`
|
|
119119
|
-
});
|
|
119120
|
-
} else {
|
|
119121
|
-
this.$message.error(res.message);
|
|
119122
|
-
this.closeEvt();
|
|
119123
|
-
}
|
|
119124
|
-
});
|
|
119125
|
-
},
|
|
119126
|
-
closeEvt() {
|
|
119127
|
-
this.setSystemForm.id = "";
|
|
119128
|
-
this.setSystemForm.modelType = "";
|
|
119129
|
-
this.$emit("closeDialog");
|
|
119130
|
-
}
|
|
119131
|
-
}
|
|
119132
|
-
});
|
|
119133
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=script&lang=js
|
|
119134
|
-
/* harmony default export */ var TemplateCom_SetSysTemplatevue_type_script_lang_js = (SetSysTemplatevue_type_script_lang_js);
|
|
119135
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119136
|
-
// extracted by mini-css-extract-plugin
|
|
119137
|
-
|
|
119138
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue?vue&type=style&index=0&id=3c0d8a32&prod&lang=scss&scoped=true
|
|
119139
|
-
|
|
119140
|
-
;// ./src/components/EdmElement/TemplateCom/SetSysTemplate.vue
|
|
119141
|
-
|
|
119142
|
-
|
|
119143
|
-
|
|
119144
|
-
;
|
|
119145
|
-
|
|
118857
|
+
var TemplateListvue_type_template_id_0aaac0a8_scoped_true_staticRenderFns = [];
|
|
119146
118858
|
|
|
119147
|
-
|
|
118859
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=template&id=0aaac0a8&scoped=true
|
|
119148
118860
|
|
|
119149
|
-
|
|
119150
|
-
TemplateCom_SetSysTemplatevue_type_script_lang_js,
|
|
119151
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_render,
|
|
119152
|
-
SetSysTemplatevue_type_template_id_3c0d8a32_scoped_true_staticRenderFns,
|
|
119153
|
-
false,
|
|
119154
|
-
null,
|
|
119155
|
-
"3c0d8a32",
|
|
119156
|
-
null
|
|
119157
|
-
|
|
119158
|
-
)
|
|
118861
|
+
;// ./src/components/EdmElement/TemplateCom/const.js
|
|
119159
118862
|
|
|
119160
|
-
|
|
118863
|
+
const TemplateCom_const_language = [{
|
|
118864
|
+
value: '7',
|
|
118865
|
+
label: '汉语',
|
|
118866
|
+
enLabel: 'Chinese'
|
|
118867
|
+
}, {
|
|
118868
|
+
value: '1',
|
|
118869
|
+
label: '英语',
|
|
118870
|
+
enLabel: 'English'
|
|
118871
|
+
}, {
|
|
118872
|
+
value: '3',
|
|
118873
|
+
label: '法语',
|
|
118874
|
+
enLabel: 'French'
|
|
118875
|
+
}, {
|
|
118876
|
+
value: '8',
|
|
118877
|
+
label: '德语',
|
|
118878
|
+
enLabel: 'German'
|
|
118879
|
+
}, {
|
|
118880
|
+
value: '6',
|
|
118881
|
+
label: '日语',
|
|
118882
|
+
enLabel: 'Japanese'
|
|
118883
|
+
}, {
|
|
118884
|
+
value: '9',
|
|
118885
|
+
label: '韩语',
|
|
118886
|
+
enLabel: 'Korean'
|
|
118887
|
+
}, {
|
|
118888
|
+
value: '10',
|
|
118889
|
+
label: '越南语',
|
|
118890
|
+
enLabel: 'Vietnamese'
|
|
118891
|
+
}, {
|
|
118892
|
+
value: '11',
|
|
118893
|
+
label: '泰国语',
|
|
118894
|
+
enLabel: 'Thai'
|
|
118895
|
+
}, {
|
|
118896
|
+
value: '12',
|
|
118897
|
+
label: '菲律宾语',
|
|
118898
|
+
enLabel: 'Filipino'
|
|
118899
|
+
}, {
|
|
118900
|
+
value: '13',
|
|
118901
|
+
label: '印度尼西亚语',
|
|
118902
|
+
enLabel: 'Indonesian'
|
|
118903
|
+
}, {
|
|
118904
|
+
value: '14',
|
|
118905
|
+
label: '俄罗斯语',
|
|
118906
|
+
enLabel: 'Russian'
|
|
118907
|
+
}, {
|
|
118908
|
+
value: '4',
|
|
118909
|
+
label: '西班牙语',
|
|
118910
|
+
enLabel: 'Spanish'
|
|
118911
|
+
}, {
|
|
118912
|
+
value: '15',
|
|
118913
|
+
label: '意大利语',
|
|
118914
|
+
enLabel: 'Italian'
|
|
118915
|
+
}];
|
|
118916
|
+
const sortConfig = [{
|
|
118917
|
+
label: '按创建时间倒序',
|
|
118918
|
+
value: 0
|
|
118919
|
+
}, {
|
|
118920
|
+
label: '按更新时间倒序',
|
|
118921
|
+
value: 1
|
|
118922
|
+
}, {
|
|
118923
|
+
label: '按送达率倒序',
|
|
118924
|
+
value: 2
|
|
118925
|
+
}, {
|
|
118926
|
+
label: '按打开率倒序',
|
|
118927
|
+
value: 3
|
|
118928
|
+
}, {
|
|
118929
|
+
label: '按回复率倒序',
|
|
118930
|
+
value: 4
|
|
118931
|
+
}, {
|
|
118932
|
+
label: '按累计发送数倒序',
|
|
118933
|
+
value: 5
|
|
118934
|
+
}];
|
|
118935
|
+
// 系统模版场景
|
|
118936
|
+
const templateSystemScene = [{
|
|
118937
|
+
value: '1',
|
|
118938
|
+
label: `${src_language.t('template.invite_cooperation')}`
|
|
118939
|
+
},
|
|
118940
|
+
//合作邀请
|
|
118941
|
+
{
|
|
118942
|
+
value: '2',
|
|
118943
|
+
label: `${src_language.t('template.price_negotiation')}`
|
|
118944
|
+
},
|
|
118945
|
+
//价格协商
|
|
118946
|
+
{
|
|
118947
|
+
value: '3',
|
|
118948
|
+
label: `${src_language.t('template.contract_template')}`
|
|
118949
|
+
},
|
|
118950
|
+
//合同模板
|
|
118951
|
+
{
|
|
118952
|
+
value: '4',
|
|
118953
|
+
label: `${src_language.t('template.video_production')}`
|
|
118954
|
+
},
|
|
118955
|
+
//视频制作
|
|
118956
|
+
{
|
|
118957
|
+
value: '5',
|
|
118958
|
+
label: `${src_language.t('template.expense_settlement')}`
|
|
118959
|
+
} //费用结算
|
|
118960
|
+
];
|
|
119161
118961
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119162
118962
|
|
|
119163
118963
|
|
|
119164
118964
|
|
|
119165
118965
|
|
|
119166
118966
|
|
|
118967
|
+
function createSearchForm(tar) {
|
|
118968
|
+
let raw = {
|
|
118969
|
+
// templatesTitle: '', //模板标题
|
|
118970
|
+
// scene: '', //应用场景
|
|
118971
|
+
// mailSubject: '', //邮件主题
|
|
118972
|
+
// content: '', //正文
|
|
118973
|
+
type: 2,
|
|
118974
|
+
//模版类型 1-系统模板;2-自定义模板
|
|
118975
|
+
// modelLanguage: '', //语言
|
|
118976
|
+
// isShared: '', //是否共享
|
|
118977
|
+
// userId: '', //创建人
|
|
118978
|
+
searchSort: 1,
|
|
118979
|
+
//排序
|
|
118980
|
+
currentPage: 1,
|
|
118981
|
+
pageSize: 9
|
|
118982
|
+
};
|
|
118983
|
+
if (tar) {
|
|
118984
|
+
raw = Object.assign(raw, tar);
|
|
118985
|
+
}
|
|
118986
|
+
return raw;
|
|
118987
|
+
}
|
|
119167
118988
|
/* harmony default export */ var TemplateListvue_type_script_lang_js = ({
|
|
119168
|
-
components: {
|
|
119169
|
-
SetTemplate: SetTemplate,
|
|
119170
|
-
SetSysTemplate: SetSysTemplate
|
|
119171
|
-
},
|
|
118989
|
+
components: {},
|
|
119172
118990
|
props: {
|
|
119173
118991
|
userId: {
|
|
119174
118992
|
type: [Number, String],
|
|
@@ -119177,161 +118995,123 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119177
118995
|
},
|
|
119178
118996
|
data() {
|
|
119179
118997
|
return {
|
|
119180
|
-
|
|
119181
|
-
|
|
119182
|
-
|
|
119183
|
-
|
|
119184
|
-
|
|
119185
|
-
|
|
119186
|
-
|
|
119187
|
-
|
|
119188
|
-
|
|
119189
|
-
|
|
119190
|
-
|
|
119191
|
-
|
|
119192
|
-
|
|
119193
|
-
|
|
119194
|
-
|
|
119195
|
-
pageSize: 10 //当前页条数
|
|
119196
|
-
},
|
|
119197
|
-
// 选项卡 1合作邀请,2价格协商,3合同模板,4视频制作,5费用结算
|
|
119198
|
-
tabOpts: [{
|
|
119199
|
-
name: "1",
|
|
119200
|
-
label: `${this.$i18n.t("template.invite_cooperation")}`
|
|
119201
|
-
},
|
|
119202
|
-
//合作邀请
|
|
119203
|
-
{
|
|
119204
|
-
name: "2",
|
|
119205
|
-
label: `${this.$i18n.t("template.price_negotiation")}`
|
|
119206
|
-
},
|
|
119207
|
-
//价格协商
|
|
119208
|
-
{
|
|
119209
|
-
name: "3",
|
|
119210
|
-
label: `${this.$i18n.t("template.contract_template")}`
|
|
119211
|
-
},
|
|
119212
|
-
//合同模板
|
|
119213
|
-
{
|
|
119214
|
-
name: "4",
|
|
119215
|
-
label: `${this.$i18n.t("template.video_production")}`
|
|
119216
|
-
},
|
|
119217
|
-
//视频制作
|
|
119218
|
-
{
|
|
119219
|
-
name: "5",
|
|
119220
|
-
label: `${this.$i18n.t("template.expense_settlement")}`
|
|
119221
|
-
} //费用结算
|
|
119222
|
-
],
|
|
119223
|
-
loading: false,
|
|
119224
|
-
// 加载中
|
|
119225
|
-
tableData: [],
|
|
119226
|
-
// 表格数据
|
|
119227
|
-
tableTotal: 1,
|
|
119228
|
-
// 表格总数
|
|
119229
|
-
isShowSet: false,
|
|
119230
|
-
// 是否显示模板设置
|
|
119231
|
-
setId: 0,
|
|
119232
|
-
// 设置模板id
|
|
119233
|
-
rowData: null,
|
|
119234
|
-
//选择的模板数据
|
|
119235
|
-
|
|
119236
|
-
isShowSetSystem: false,
|
|
119237
|
-
// 是否显示设置系统模板
|
|
119238
|
-
mailId: ""
|
|
118998
|
+
// 模版名称 场景
|
|
118999
|
+
contentSelect: "1",
|
|
119000
|
+
contentInput: "",
|
|
119001
|
+
// 邮件主题正文
|
|
119002
|
+
mailTitleSelect: "1",
|
|
119003
|
+
mailTitleInput: "",
|
|
119004
|
+
searchForm: createSearchForm(),
|
|
119005
|
+
language: TemplateCom_const_language,
|
|
119006
|
+
sortConfig: sortConfig,
|
|
119007
|
+
accountList: [],
|
|
119008
|
+
currentPage: 5,
|
|
119009
|
+
templateList: [1],
|
|
119010
|
+
templateSystemScene: templateSystemScene,
|
|
119011
|
+
total: 0,
|
|
119012
|
+
loading: false
|
|
119239
119013
|
};
|
|
119240
119014
|
},
|
|
119241
|
-
|
|
119242
|
-
|
|
119243
|
-
this.
|
|
119015
|
+
mounted() {
|
|
119016
|
+
this.getAccountList();
|
|
119017
|
+
this.getCardList();
|
|
119244
119018
|
},
|
|
119245
119019
|
methods: {
|
|
119246
|
-
//
|
|
119247
|
-
|
|
119248
|
-
this.
|
|
119249
|
-
if (
|
|
119250
|
-
|
|
119020
|
+
// 语言枚举
|
|
119021
|
+
getLangLabel(val) {
|
|
119022
|
+
const currLang = this.language.find(item => item.value == val);
|
|
119023
|
+
if (currLang) {
|
|
119024
|
+
return currLang.label;
|
|
119251
119025
|
}
|
|
119252
|
-
getTemplateList(this.searchForm).then(res => {
|
|
119253
|
-
this.loading = false;
|
|
119254
|
-
if (res.code == 0) {
|
|
119255
|
-
this.tableData = res.data.rows;
|
|
119256
|
-
this.tableTotal = res.data.total;
|
|
119257
|
-
} else {
|
|
119258
|
-
this.$message.error(res.message);
|
|
119259
|
-
}
|
|
119260
|
-
});
|
|
119261
|
-
},
|
|
119262
|
-
// 翻页
|
|
119263
|
-
changePage(curr) {
|
|
119264
|
-
this.searchForm.currentPage = curr;
|
|
119265
|
-
this.init();
|
|
119266
|
-
},
|
|
119267
|
-
// 删除模板
|
|
119268
|
-
del(id) {
|
|
119269
|
-
this.$confirm(this.$t("inboxTable.delMail"), this.$t("inboxTable.tip"), {
|
|
119270
|
-
confirmButtonText: this.$t("inboxTable.confirm"),
|
|
119271
|
-
cancelButtonText: this.$t("inboxTable.cancel"),
|
|
119272
|
-
type: "warning",
|
|
119273
|
-
confirmButtonClass: "confirm_del"
|
|
119274
|
-
}).then(() => {
|
|
119275
|
-
delTemplate({
|
|
119276
|
-
id
|
|
119277
|
-
}).then(res => {
|
|
119278
|
-
if (res.code == 0) {
|
|
119279
|
-
this.init();
|
|
119280
|
-
this.$message({
|
|
119281
|
-
type: "success",
|
|
119282
|
-
message: `${this.$i18n.t("outboxMail.success")}`,
|
|
119283
|
-
duration: 1500
|
|
119284
|
-
});
|
|
119285
|
-
}
|
|
119286
|
-
});
|
|
119287
|
-
}).catch(() => {});
|
|
119288
119026
|
},
|
|
119289
|
-
//
|
|
119027
|
+
// 应用模版
|
|
119290
119028
|
setMailTemplate(data) {
|
|
119291
119029
|
this.$emit("setMailTemplate", data);
|
|
119292
119030
|
},
|
|
119293
|
-
//
|
|
119294
|
-
|
|
119295
|
-
|
|
119296
|
-
|
|
119297
|
-
|
|
119031
|
+
// 跳转详情
|
|
119032
|
+
toDetail(item) {
|
|
119033
|
+
const routeData = this.$router.resolve({
|
|
119034
|
+
path: "/emailTempDetail",
|
|
119035
|
+
query: {
|
|
119036
|
+
type: "edit",
|
|
119037
|
+
id: item.id
|
|
119038
|
+
}
|
|
119039
|
+
});
|
|
119040
|
+
window.open(routeData.href, "_blank");
|
|
119041
|
+
},
|
|
119042
|
+
// 获取列表
|
|
119043
|
+
getCardList() {
|
|
119044
|
+
// if (this.contentSelect == '1') {
|
|
119045
|
+
// this.searchForm.templatesTitle = this.contentInput
|
|
119046
|
+
// } else if (this.contentSelect == '2') {
|
|
119047
|
+
// //系统模版
|
|
119048
|
+
// if (this.searchForm.type == 2) {
|
|
119049
|
+
// this.searchForm.scene = this.contentInput
|
|
119050
|
+
// }
|
|
119051
|
+
// }
|
|
119052
|
+
// if (this.mailTitleSelect == '1') {
|
|
119053
|
+
// this.searchForm.mailSubject = this.mailTitleInput
|
|
119054
|
+
// } else if (this.mailTitleSelect == '2') {
|
|
119055
|
+
// this.searchForm.content = this.mailTitleInput
|
|
119056
|
+
// }
|
|
119057
|
+
console.log(this.searchForm, "searchForm");
|
|
119058
|
+
this.loading = true;
|
|
119059
|
+
templatesList(this.searchForm).then(res => {
|
|
119060
|
+
if (res.code == "0") {
|
|
119061
|
+
this.templateList = res.data.rows;
|
|
119062
|
+
this.total = res.data.total;
|
|
119063
|
+
this.loading = false;
|
|
119064
|
+
} else {
|
|
119065
|
+
this.loading = false;
|
|
119066
|
+
this.$message.error(res.message);
|
|
119067
|
+
}
|
|
119068
|
+
});
|
|
119069
|
+
},
|
|
119070
|
+
// 模板类型切换
|
|
119071
|
+
modelTypeChange(val) {
|
|
119072
|
+
this.searchForm.scene = "";
|
|
119073
|
+
this.contentInput = "";
|
|
119298
119074
|
},
|
|
119299
|
-
//
|
|
119300
|
-
|
|
119301
|
-
this.searchForm
|
|
119302
|
-
this.
|
|
119303
|
-
this.
|
|
119075
|
+
// 重置
|
|
119076
|
+
resetEvt() {
|
|
119077
|
+
this.searchForm = createSearchForm();
|
|
119078
|
+
this.contentSelect = "1";
|
|
119079
|
+
this.contentInput = "";
|
|
119080
|
+
this.mailTitleSelect = "1";
|
|
119081
|
+
this.mailTitleInput = "";
|
|
119082
|
+
this.getCardList();
|
|
119304
119083
|
},
|
|
119305
|
-
//
|
|
119306
|
-
|
|
119307
|
-
|
|
119084
|
+
// 获取账号下的账户
|
|
119085
|
+
getAccountList() {
|
|
119086
|
+
hubUserSonFather().then(res => {
|
|
119087
|
+
if (res.code == "0") {
|
|
119088
|
+
this.accountList = res.data;
|
|
119089
|
+
}
|
|
119090
|
+
});
|
|
119308
119091
|
},
|
|
119309
|
-
//
|
|
119310
|
-
|
|
119311
|
-
|
|
119092
|
+
// 排序按钮
|
|
119093
|
+
clickDropdownItem(item) {
|
|
119094
|
+
this.searchForm.currentPage = 1;
|
|
119095
|
+
this.searchForm.searchSort = item.value;
|
|
119096
|
+
this.getCardList();
|
|
119312
119097
|
},
|
|
119313
|
-
|
|
119314
|
-
|
|
119315
|
-
this.
|
|
119316
|
-
this.
|
|
119098
|
+
handleSizeChange(val) {
|
|
119099
|
+
this.searchForm.currentPage = 1;
|
|
119100
|
+
this.searchForm.pageSize = val;
|
|
119101
|
+
this.getCardList();
|
|
119317
119102
|
},
|
|
119318
|
-
|
|
119319
|
-
|
|
119320
|
-
this.
|
|
119103
|
+
handleCurrentChange(val) {
|
|
119104
|
+
this.searchForm.currentPage = val;
|
|
119105
|
+
this.getCardList();
|
|
119321
119106
|
}
|
|
119322
119107
|
}
|
|
119323
119108
|
});
|
|
119324
119109
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=script&lang=js
|
|
119325
119110
|
/* harmony default export */ var TemplateCom_TemplateListvue_type_script_lang_js = (TemplateListvue_type_script_lang_js);
|
|
119326
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=
|
|
119327
|
-
// extracted by mini-css-extract-plugin
|
|
119328
|
-
|
|
119329
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=13a1b12d&prod&lang=scss&scoped=true
|
|
119330
|
-
|
|
119331
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=1&id=13a1b12d&prod&lang=css
|
|
119111
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=0aaac0a8&prod&lang=scss&scoped=true
|
|
119332
119112
|
// extracted by mini-css-extract-plugin
|
|
119333
119113
|
|
|
119334
|
-
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=
|
|
119114
|
+
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue?vue&type=style&index=0&id=0aaac0a8&prod&lang=scss&scoped=true
|
|
119335
119115
|
|
|
119336
119116
|
;// ./src/components/EdmElement/TemplateCom/TemplateList.vue
|
|
119337
119117
|
|
|
@@ -119340,16 +119120,15 @@ var SetSysTemplate_component = normalizeComponent(
|
|
|
119340
119120
|
;
|
|
119341
119121
|
|
|
119342
119122
|
|
|
119343
|
-
|
|
119344
119123
|
/* normalize component */
|
|
119345
119124
|
|
|
119346
119125
|
var TemplateList_component = normalizeComponent(
|
|
119347
119126
|
TemplateCom_TemplateListvue_type_script_lang_js,
|
|
119348
|
-
|
|
119349
|
-
|
|
119127
|
+
TemplateListvue_type_template_id_0aaac0a8_scoped_true_render,
|
|
119128
|
+
TemplateListvue_type_template_id_0aaac0a8_scoped_true_staticRenderFns,
|
|
119350
119129
|
false,
|
|
119351
119130
|
null,
|
|
119352
|
-
"
|
|
119131
|
+
"0aaac0a8",
|
|
119353
119132
|
null
|
|
119354
119133
|
|
|
119355
119134
|
)
|
|
@@ -121568,21 +121347,286 @@ var settingNicknamevue_type_template_id_779abf97_render = function render() {
|
|
|
121568
121347
|
staticClass: "setting-input"
|
|
121569
121348
|
}, [_c('el-input', {
|
|
121570
121349
|
attrs: {
|
|
121571
|
-
"type": "input",
|
|
121572
|
-
"placeholder": _vm.$t('edm5.v95')
|
|
121350
|
+
"type": "input",
|
|
121351
|
+
"placeholder": _vm.$t('edm5.v95')
|
|
121352
|
+
},
|
|
121353
|
+
model: {
|
|
121354
|
+
value: _vm.nickName,
|
|
121355
|
+
callback: function ($$v) {
|
|
121356
|
+
_vm.nickName = $$v;
|
|
121357
|
+
},
|
|
121358
|
+
expression: "nickName"
|
|
121359
|
+
}
|
|
121360
|
+
})], 1), _c('div', {
|
|
121361
|
+
staticClass: "footer-btn"
|
|
121362
|
+
}, [_c('el-button', {
|
|
121363
|
+
on: {
|
|
121364
|
+
"click": _vm.closeDialog
|
|
121365
|
+
}
|
|
121366
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121367
|
+
attrs: {
|
|
121368
|
+
"type": "primary",
|
|
121369
|
+
"loading": _vm.confirmBtnLoading
|
|
121370
|
+
},
|
|
121371
|
+
on: {
|
|
121372
|
+
"click": _vm.confirmSetting
|
|
121373
|
+
}
|
|
121374
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)])]);
|
|
121375
|
+
};
|
|
121376
|
+
var settingNicknamevue_type_template_id_779abf97_staticRenderFns = [];
|
|
121377
|
+
|
|
121378
|
+
;// ./src/api/setting/index.js
|
|
121379
|
+
|
|
121380
|
+
|
|
121381
|
+
// 设置邀约规则
|
|
121382
|
+
function settingAiRules(data) {
|
|
121383
|
+
return post(`/edm/outbox/invitationRules/save`, data);
|
|
121384
|
+
}
|
|
121385
|
+
|
|
121386
|
+
// 根据写信id获取邀约规则
|
|
121387
|
+
function getAiRules(writeId) {
|
|
121388
|
+
return get(`/edm/outbox/invitationRules/${writeId}`);
|
|
121389
|
+
}
|
|
121390
|
+
|
|
121391
|
+
// 获取发件人昵称
|
|
121392
|
+
function getNickname() {
|
|
121393
|
+
return request_get(`/edm/mail/getSenderInfo`);
|
|
121394
|
+
}
|
|
121395
|
+
|
|
121396
|
+
// 设置发件人昵称
|
|
121397
|
+
function settingNickname(data) {
|
|
121398
|
+
return request_post(`/edm/mail/saveSenderInfo`, data);
|
|
121399
|
+
}
|
|
121400
|
+
;// ./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/settingNickname.vue?vue&type=script&lang=js
|
|
121401
|
+
|
|
121402
|
+
/* harmony default export */ var settingNicknamevue_type_script_lang_js = ({
|
|
121403
|
+
props: {
|
|
121404
|
+
visible: {
|
|
121405
|
+
type: Boolean,
|
|
121406
|
+
default: false
|
|
121407
|
+
},
|
|
121408
|
+
nickNameDefault: {
|
|
121409
|
+
type: String,
|
|
121410
|
+
default: ""
|
|
121411
|
+
}
|
|
121412
|
+
},
|
|
121413
|
+
data() {
|
|
121414
|
+
return {
|
|
121415
|
+
nickName: "",
|
|
121416
|
+
confirmBtnLoading: false,
|
|
121417
|
+
loading: false
|
|
121418
|
+
};
|
|
121419
|
+
},
|
|
121420
|
+
created() {
|
|
121421
|
+
if (this.nickNameDefault) this.nickName = this.nickNameDefault;
|
|
121422
|
+
},
|
|
121423
|
+
methods: {
|
|
121424
|
+
closeDialog() {
|
|
121425
|
+
this.$emit("update:visible", false);
|
|
121426
|
+
},
|
|
121427
|
+
// 获取发件人昵称
|
|
121428
|
+
async getNickname() {
|
|
121429
|
+
try {
|
|
121430
|
+
this.loading = true;
|
|
121431
|
+
const res = await getNickname();
|
|
121432
|
+
if (res.code === "0") {
|
|
121433
|
+
this.nickName = res.data || "";
|
|
121434
|
+
} else {
|
|
121435
|
+
this.$message.error(res.message);
|
|
121436
|
+
}
|
|
121437
|
+
} catch (error) {
|
|
121438
|
+
console.log(error);
|
|
121439
|
+
this.loading = false;
|
|
121440
|
+
} finally {
|
|
121441
|
+
this.loading = false;
|
|
121442
|
+
}
|
|
121443
|
+
},
|
|
121444
|
+
// 确定设置昵称
|
|
121445
|
+
async confirmSetting() {
|
|
121446
|
+
try {
|
|
121447
|
+
if (!this.nickName) return this.$message.error(this.$t('edm5.v254'));
|
|
121448
|
+
this.confirmBtnLoading = true;
|
|
121449
|
+
const res = await settingNickname({
|
|
121450
|
+
nickName: this.nickName.trim()
|
|
121451
|
+
});
|
|
121452
|
+
if (res.code === "0") {
|
|
121453
|
+
this.$message.success("设置成功!");
|
|
121454
|
+
this.$emit("updateNickName", this.nickName);
|
|
121455
|
+
this.closeDialog();
|
|
121456
|
+
} else {
|
|
121457
|
+
this.$message.error(res.message);
|
|
121458
|
+
}
|
|
121459
|
+
} catch (error) {
|
|
121460
|
+
console.log(error);
|
|
121461
|
+
} finally {
|
|
121462
|
+
this.confirmBtnLoading = false;
|
|
121463
|
+
}
|
|
121464
|
+
}
|
|
121465
|
+
}
|
|
121466
|
+
});
|
|
121467
|
+
;// ./src/package/write-email/components/settingNickname.vue?vue&type=script&lang=js
|
|
121468
|
+
/* harmony default export */ var components_settingNicknamevue_type_script_lang_js = (settingNicknamevue_type_script_lang_js);
|
|
121469
|
+
;// ./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/settingNickname.vue?vue&type=style&index=0&id=779abf97&prod&lang=scss
|
|
121470
|
+
// extracted by mini-css-extract-plugin
|
|
121471
|
+
|
|
121472
|
+
;// ./src/package/write-email/components/settingNickname.vue?vue&type=style&index=0&id=779abf97&prod&lang=scss
|
|
121473
|
+
|
|
121474
|
+
;// ./src/package/write-email/components/settingNickname.vue
|
|
121475
|
+
|
|
121476
|
+
|
|
121477
|
+
|
|
121478
|
+
;
|
|
121479
|
+
|
|
121480
|
+
|
|
121481
|
+
/* normalize component */
|
|
121482
|
+
|
|
121483
|
+
var settingNickname_component = normalizeComponent(
|
|
121484
|
+
components_settingNicknamevue_type_script_lang_js,
|
|
121485
|
+
settingNicknamevue_type_template_id_779abf97_render,
|
|
121486
|
+
settingNicknamevue_type_template_id_779abf97_staticRenderFns,
|
|
121487
|
+
false,
|
|
121488
|
+
null,
|
|
121489
|
+
null,
|
|
121490
|
+
null
|
|
121491
|
+
|
|
121492
|
+
)
|
|
121493
|
+
|
|
121494
|
+
/* harmony default export */ var components_settingNickname = (settingNickname_component.exports);
|
|
121495
|
+
;// ./src/api/inviteTask/index.js
|
|
121496
|
+
|
|
121497
|
+
|
|
121498
|
+
// 保存AI自动邀约邮件
|
|
121499
|
+
function inviteEmailSave(data) {
|
|
121500
|
+
return request_post(`/edm/ai/inviteEmail/save`, data);
|
|
121501
|
+
}
|
|
121502
|
+
|
|
121503
|
+
// 获取邀请AI邮件
|
|
121504
|
+
function inviteEmailGet(taskId) {
|
|
121505
|
+
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121506
|
+
}
|
|
121507
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=template&id=075aae44&scoped=true
|
|
121508
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render = function render() {
|
|
121509
|
+
var _vm = this,
|
|
121510
|
+
_c = _vm._self._c;
|
|
121511
|
+
return _c('el-dialog', {
|
|
121512
|
+
attrs: {
|
|
121513
|
+
"visible": _vm.visible,
|
|
121514
|
+
"title": "存为模版",
|
|
121515
|
+
"width": "480px",
|
|
121516
|
+
"before-close": _vm.closeDialog,
|
|
121517
|
+
"custom-class": "setting-nickname-dialog",
|
|
121518
|
+
"close-on-click-modal": false
|
|
121519
|
+
}
|
|
121520
|
+
}, [_c('div', {
|
|
121521
|
+
directives: [{
|
|
121522
|
+
name: "loading",
|
|
121523
|
+
rawName: "v-loading",
|
|
121524
|
+
value: _vm.loading,
|
|
121525
|
+
expression: "loading"
|
|
121526
|
+
}]
|
|
121527
|
+
}, [_c('el-form', {
|
|
121528
|
+
ref: "ruleForm",
|
|
121529
|
+
staticClass: "demo-ruleForm",
|
|
121530
|
+
attrs: {
|
|
121531
|
+
"label-position": "top",
|
|
121532
|
+
"model": _vm.ruleForm,
|
|
121533
|
+
"rules": _vm.rules,
|
|
121534
|
+
"label-width": "100px"
|
|
121535
|
+
}
|
|
121536
|
+
}, [_c('el-form-item', {
|
|
121537
|
+
attrs: {
|
|
121538
|
+
"label": "模版名称",
|
|
121539
|
+
"prop": "templatesTitle"
|
|
121540
|
+
}
|
|
121541
|
+
}, [_c('el-input', {
|
|
121542
|
+
attrs: {
|
|
121543
|
+
"clearable": ""
|
|
121544
|
+
},
|
|
121545
|
+
model: {
|
|
121546
|
+
value: _vm.ruleForm.templatesTitle,
|
|
121547
|
+
callback: function ($$v) {
|
|
121548
|
+
_vm.$set(_vm.ruleForm, "templatesTitle", $$v);
|
|
121549
|
+
},
|
|
121550
|
+
expression: "ruleForm.templatesTitle"
|
|
121551
|
+
}
|
|
121552
|
+
})], 1), _c('el-form-item', {
|
|
121553
|
+
attrs: {
|
|
121554
|
+
"label": "应用场景",
|
|
121555
|
+
"prop": "scene"
|
|
121556
|
+
}
|
|
121557
|
+
}, [_c('el-input', {
|
|
121558
|
+
attrs: {
|
|
121559
|
+
"clearable": ""
|
|
121560
|
+
},
|
|
121561
|
+
model: {
|
|
121562
|
+
value: _vm.ruleForm.scene,
|
|
121563
|
+
callback: function ($$v) {
|
|
121564
|
+
_vm.$set(_vm.ruleForm, "scene", $$v);
|
|
121565
|
+
},
|
|
121566
|
+
expression: "ruleForm.scene"
|
|
121567
|
+
}
|
|
121568
|
+
})], 1), _c('el-form-item', {
|
|
121569
|
+
attrs: {
|
|
121570
|
+
"label": "语言",
|
|
121571
|
+
"prop": "modelLanguage"
|
|
121572
|
+
}
|
|
121573
|
+
}, [_c('el-select', {
|
|
121574
|
+
attrs: {
|
|
121575
|
+
"placeholder": _vm.$i18n.t('common.please_select'),
|
|
121576
|
+
"clearable": "",
|
|
121577
|
+
"filterable": ""
|
|
121578
|
+
},
|
|
121579
|
+
model: {
|
|
121580
|
+
value: _vm.ruleForm.modelLanguage,
|
|
121581
|
+
callback: function ($$v) {
|
|
121582
|
+
_vm.$set(_vm.ruleForm, "modelLanguage", $$v);
|
|
121583
|
+
},
|
|
121584
|
+
expression: "ruleForm.modelLanguage"
|
|
121585
|
+
}
|
|
121586
|
+
}, _vm._l(_vm.language, function (item) {
|
|
121587
|
+
return _c('el-option', {
|
|
121588
|
+
key: item.value,
|
|
121589
|
+
attrs: {
|
|
121590
|
+
"value": item.value,
|
|
121591
|
+
"label": item.label
|
|
121592
|
+
}
|
|
121593
|
+
});
|
|
121594
|
+
}), 1)], 1), _c('el-form-item', {
|
|
121595
|
+
attrs: {
|
|
121596
|
+
"label": "共享状态",
|
|
121597
|
+
"prop": "isShared"
|
|
121598
|
+
}
|
|
121599
|
+
}, [_c('el-select', {
|
|
121600
|
+
attrs: {
|
|
121601
|
+
"clearable": "",
|
|
121602
|
+
"placeholder": "请选择共享状态"
|
|
121573
121603
|
},
|
|
121574
121604
|
model: {
|
|
121575
|
-
value: _vm.
|
|
121605
|
+
value: _vm.ruleForm.isShared,
|
|
121576
121606
|
callback: function ($$v) {
|
|
121577
|
-
_vm.
|
|
121607
|
+
_vm.$set(_vm.ruleForm, "isShared", $$v);
|
|
121578
121608
|
},
|
|
121579
|
-
expression: "
|
|
121609
|
+
expression: "ruleForm.isShared"
|
|
121580
121610
|
}
|
|
121581
|
-
}
|
|
121611
|
+
}, [_c('el-option', {
|
|
121612
|
+
key: 1,
|
|
121613
|
+
attrs: {
|
|
121614
|
+
"value": "1",
|
|
121615
|
+
"label": "公开"
|
|
121616
|
+
}
|
|
121617
|
+
}), _c('el-option', {
|
|
121618
|
+
key: 2,
|
|
121619
|
+
attrs: {
|
|
121620
|
+
"value": "2",
|
|
121621
|
+
"label": "私有"
|
|
121622
|
+
}
|
|
121623
|
+
})], 1)], 1)], 1), _c('div', {
|
|
121582
121624
|
staticClass: "footer-btn"
|
|
121583
121625
|
}, [_c('el-button', {
|
|
121584
121626
|
on: {
|
|
121585
|
-
"click":
|
|
121627
|
+
"click": function ($event) {
|
|
121628
|
+
return _vm.resetForm('ruleForm');
|
|
121629
|
+
}
|
|
121586
121630
|
}
|
|
121587
121631
|
}, [_vm._v(_vm._s(_vm.$t("edm5.v226")))]), _c('el-button', {
|
|
121588
121632
|
attrs: {
|
|
@@ -121590,109 +121634,111 @@ var settingNicknamevue_type_template_id_779abf97_render = function render() {
|
|
|
121590
121634
|
"loading": _vm.confirmBtnLoading
|
|
121591
121635
|
},
|
|
121592
121636
|
on: {
|
|
121593
|
-
"click":
|
|
121637
|
+
"click": function ($event) {
|
|
121638
|
+
return _vm.submitForm('ruleForm');
|
|
121639
|
+
}
|
|
121594
121640
|
}
|
|
121595
|
-
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)])]);
|
|
121641
|
+
}, [_vm._v(_vm._s(_vm.$t("edm5.v45")))])], 1)], 1)]);
|
|
121596
121642
|
};
|
|
121597
|
-
var
|
|
121598
|
-
|
|
121599
|
-
;// ./src/api/setting/index.js
|
|
121600
|
-
|
|
121601
|
-
|
|
121602
|
-
// 设置邀约规则
|
|
121603
|
-
function settingAiRules(data) {
|
|
121604
|
-
return post(`/edm/outbox/invitationRules/save`, data);
|
|
121605
|
-
}
|
|
121643
|
+
var saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns = [];
|
|
121606
121644
|
|
|
121607
|
-
|
|
121608
|
-
function getAiRules(writeId) {
|
|
121609
|
-
return get(`/edm/outbox/invitationRules/${writeId}`);
|
|
121610
|
-
}
|
|
121645
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121611
121646
|
|
|
121612
|
-
// 获取发件人昵称
|
|
121613
|
-
function getNickname() {
|
|
121614
|
-
return request_get(`/edm/mail/getSenderInfo`);
|
|
121615
|
-
}
|
|
121616
121647
|
|
|
121617
|
-
// 设置发件人昵称
|
|
121618
|
-
function settingNickname(data) {
|
|
121619
|
-
return request_post(`/edm/mail/saveSenderInfo`, data);
|
|
121620
|
-
}
|
|
121621
|
-
;// ./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/settingNickname.vue?vue&type=script&lang=js
|
|
121622
121648
|
|
|
121623
|
-
/* harmony default export */ var
|
|
121649
|
+
/* harmony default export */ var saveMailTempDialogvue_type_script_lang_js = ({
|
|
121624
121650
|
props: {
|
|
121625
121651
|
visible: {
|
|
121626
121652
|
type: Boolean,
|
|
121627
121653
|
default: false
|
|
121628
121654
|
},
|
|
121629
|
-
|
|
121655
|
+
mailTempList: {
|
|
121656
|
+
type: Array,
|
|
121657
|
+
default: () => []
|
|
121658
|
+
},
|
|
121659
|
+
tempProductCard: {
|
|
121630
121660
|
type: String,
|
|
121631
121661
|
default: ""
|
|
121632
121662
|
}
|
|
121633
121663
|
},
|
|
121634
121664
|
data() {
|
|
121635
121665
|
return {
|
|
121636
|
-
nickName: "",
|
|
121637
121666
|
confirmBtnLoading: false,
|
|
121638
|
-
loading: false
|
|
121667
|
+
loading: false,
|
|
121668
|
+
ruleForm: {
|
|
121669
|
+
templatesTitle: "",
|
|
121670
|
+
scene: "",
|
|
121671
|
+
modelLanguage: "",
|
|
121672
|
+
isShared: "2"
|
|
121673
|
+
},
|
|
121674
|
+
rules: {
|
|
121675
|
+
templatesTitle: [{
|
|
121676
|
+
required: true,
|
|
121677
|
+
message: "请输入模版名称",
|
|
121678
|
+
trigger: "blur"
|
|
121679
|
+
}],
|
|
121680
|
+
modelLanguage: [{
|
|
121681
|
+
required: true,
|
|
121682
|
+
message: "请选择模版语言",
|
|
121683
|
+
trigger: "change"
|
|
121684
|
+
}],
|
|
121685
|
+
isShared: [{
|
|
121686
|
+
required: true,
|
|
121687
|
+
message: "请选择共享状态",
|
|
121688
|
+
trigger: "change"
|
|
121689
|
+
}]
|
|
121690
|
+
},
|
|
121691
|
+
language: const_language
|
|
121639
121692
|
};
|
|
121640
121693
|
},
|
|
121641
|
-
created() {
|
|
121642
|
-
if (this.nickNameDefault) this.nickName = this.nickNameDefault;
|
|
121643
|
-
},
|
|
121694
|
+
created() {},
|
|
121644
121695
|
methods: {
|
|
121645
|
-
|
|
121646
|
-
|
|
121647
|
-
|
|
121648
|
-
|
|
121649
|
-
|
|
121650
|
-
|
|
121651
|
-
|
|
121652
|
-
|
|
121653
|
-
|
|
121654
|
-
this.nickName = res.data || "";
|
|
121655
|
-
} else {
|
|
121656
|
-
this.$message.error(res.message);
|
|
121657
|
-
}
|
|
121658
|
-
} catch (error) {
|
|
121659
|
-
console.log(error);
|
|
121660
|
-
this.loading = false;
|
|
121661
|
-
} finally {
|
|
121662
|
-
this.loading = false;
|
|
121696
|
+
// 处理邮件参数
|
|
121697
|
+
getMailParams() {
|
|
121698
|
+
// 处理邮件
|
|
121699
|
+
const currentMail = this.mailTempList.find(item => item.active);
|
|
121700
|
+
let content = "";
|
|
121701
|
+
if (currentMail.getReplyHtml()) {
|
|
121702
|
+
content = currentMail.getContent() + " " + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121703
|
+
} else {
|
|
121704
|
+
content = currentMail.getContent() + currentMail.getReplyHtml() + this.tempProductCard;
|
|
121663
121705
|
}
|
|
121706
|
+
return {
|
|
121707
|
+
subject: currentMail.subject,
|
|
121708
|
+
content,
|
|
121709
|
+
attachments: currentMail.fileList
|
|
121710
|
+
};
|
|
121664
121711
|
},
|
|
121665
|
-
//
|
|
121666
|
-
|
|
121667
|
-
|
|
121668
|
-
|
|
121669
|
-
|
|
121670
|
-
|
|
121671
|
-
|
|
121672
|
-
});
|
|
121673
|
-
if (res.code === "0") {
|
|
121674
|
-
this.$message.success("设置成功!");
|
|
121675
|
-
this.$emit("updateNickName", this.nickName);
|
|
121676
|
-
this.closeDialog();
|
|
121712
|
+
// 表单验证
|
|
121713
|
+
submitForm(formName) {
|
|
121714
|
+
const mailParams = this.getMailParams();
|
|
121715
|
+
console.log(mailParams, 'mailParams');
|
|
121716
|
+
this.$refs[formName].validate(valid => {
|
|
121717
|
+
if (valid) {
|
|
121718
|
+
alert("submit!");
|
|
121677
121719
|
} else {
|
|
121678
|
-
|
|
121720
|
+
console.log("error submit!!");
|
|
121721
|
+
return false;
|
|
121679
121722
|
}
|
|
121680
|
-
}
|
|
121681
|
-
|
|
121682
|
-
|
|
121683
|
-
|
|
121684
|
-
|
|
121723
|
+
});
|
|
121724
|
+
},
|
|
121725
|
+
resetForm(formName) {
|
|
121726
|
+
this.$refs[formName].resetFields();
|
|
121727
|
+
this.closeDialog();
|
|
121728
|
+
},
|
|
121729
|
+
closeDialog() {
|
|
121730
|
+
this.$emit("update:visible", false);
|
|
121685
121731
|
}
|
|
121686
121732
|
}
|
|
121687
121733
|
});
|
|
121688
|
-
;// ./src/package/write-email/components/
|
|
121689
|
-
/* harmony default export */ var
|
|
121690
|
-
;// ./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/
|
|
121734
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=script&lang=js
|
|
121735
|
+
/* harmony default export */ var components_saveMailTempDialogvue_type_script_lang_js = (saveMailTempDialogvue_type_script_lang_js);
|
|
121736
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=075aae44&prod&lang=scss&scoped=true
|
|
121691
121737
|
// extracted by mini-css-extract-plugin
|
|
121692
121738
|
|
|
121693
|
-
;// ./src/package/write-email/components/
|
|
121739
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue?vue&type=style&index=0&id=075aae44&prod&lang=scss&scoped=true
|
|
121694
121740
|
|
|
121695
|
-
;// ./src/package/write-email/components/
|
|
121741
|
+
;// ./src/package/write-email/components/saveMailTempDialog.vue
|
|
121696
121742
|
|
|
121697
121743
|
|
|
121698
121744
|
|
|
@@ -121701,30 +121747,18 @@ function settingNickname(data) {
|
|
|
121701
121747
|
|
|
121702
121748
|
/* normalize component */
|
|
121703
121749
|
|
|
121704
|
-
var
|
|
121705
|
-
|
|
121706
|
-
|
|
121707
|
-
|
|
121750
|
+
var saveMailTempDialog_component = normalizeComponent(
|
|
121751
|
+
components_saveMailTempDialogvue_type_script_lang_js,
|
|
121752
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_render,
|
|
121753
|
+
saveMailTempDialogvue_type_template_id_075aae44_scoped_true_staticRenderFns,
|
|
121708
121754
|
false,
|
|
121709
121755
|
null,
|
|
121710
|
-
|
|
121756
|
+
"075aae44",
|
|
121711
121757
|
null
|
|
121712
121758
|
|
|
121713
121759
|
)
|
|
121714
121760
|
|
|
121715
|
-
/* harmony default export */ var
|
|
121716
|
-
;// ./src/api/inviteTask/index.js
|
|
121717
|
-
|
|
121718
|
-
|
|
121719
|
-
// 保存AI自动邀约邮件
|
|
121720
|
-
function inviteEmailSave(data) {
|
|
121721
|
-
return request_post(`/edm/ai/inviteEmail/save`, data);
|
|
121722
|
-
}
|
|
121723
|
-
|
|
121724
|
-
// 获取邀请AI邮件
|
|
121725
|
-
function inviteEmailGet(taskId) {
|
|
121726
|
-
return request_get(`/edm/ai/inviteEmail/${taskId}`);
|
|
121727
|
-
}
|
|
121761
|
+
/* harmony default export */ var saveMailTempDialog = (saveMailTempDialog_component.exports);
|
|
121728
121762
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
121729
121763
|
|
|
121730
121764
|
|
|
@@ -121766,6 +121800,7 @@ function inviteEmailGet(taskId) {
|
|
|
121766
121800
|
|
|
121767
121801
|
|
|
121768
121802
|
|
|
121803
|
+
|
|
121769
121804
|
|
|
121770
121805
|
|
|
121771
121806
|
/* harmony default export */ var write_emailvue_type_script_lang_js = ({
|
|
@@ -121788,7 +121823,8 @@ function inviteEmailGet(taskId) {
|
|
|
121788
121823
|
SignTextDrawer: signText,
|
|
121789
121824
|
MailTemplateDrawer: mailTemplate,
|
|
121790
121825
|
AiMailDialog: aiMail,
|
|
121791
|
-
MailOptimizeDrawer: mailOptimize
|
|
121826
|
+
MailOptimizeDrawer: mailOptimize,
|
|
121827
|
+
saveMailTempDialog: saveMailTempDialog
|
|
121792
121828
|
},
|
|
121793
121829
|
props: {
|
|
121794
121830
|
// pm 添加
|
|
@@ -122017,7 +122053,11 @@ function inviteEmailGet(taskId) {
|
|
|
122017
122053
|
nickName: "",
|
|
122018
122054
|
// 发件人昵称
|
|
122019
122055
|
pageFrom: this.$route.query.pageFrom || '',
|
|
122020
|
-
currentAiPlatform: this.$route.query.currentAiPlatform || ''
|
|
122056
|
+
currentAiPlatform: this.$route.query.currentAiPlatform || '',
|
|
122057
|
+
// 当前使用的AI平台
|
|
122058
|
+
saveMailTempDialogVisible: false,
|
|
122059
|
+
// 保存模版弹窗
|
|
122060
|
+
tempProductCard: '' // 模版产品卡
|
|
122021
122061
|
};
|
|
122022
122062
|
},
|
|
122023
122063
|
created() {
|
|
@@ -122048,6 +122088,9 @@ function inviteEmailGet(taskId) {
|
|
|
122048
122088
|
} else if (this.$route.query.inviteAITaskId) {
|
|
122049
122089
|
// 获取自动邀约邮件详情
|
|
122050
122090
|
this.getInviteAITaskDetail();
|
|
122091
|
+
} else if (this.$route.query.pageFrom == 'payStatusDetail') {
|
|
122092
|
+
// 支付详情跳转到写信页面
|
|
122093
|
+
this.payInitTemplate();
|
|
122051
122094
|
} else {
|
|
122052
122095
|
// 获取发信红人-普通情况
|
|
122053
122096
|
this.getMailBlogger();
|
|
@@ -122090,6 +122133,53 @@ function inviteEmailGet(taskId) {
|
|
|
122090
122133
|
window.onbeforeunload = null;
|
|
122091
122134
|
},
|
|
122092
122135
|
methods: {
|
|
122136
|
+
// 保存邮件模版
|
|
122137
|
+
saveMailTemplate() {
|
|
122138
|
+
// 处理商品卡
|
|
122139
|
+
let cardHtml = this.cardsArr.map(item => this.finallyCardHtml(item)).join("");
|
|
122140
|
+
let cardIds = arrayColumn(this.cardsArr, "id");
|
|
122141
|
+
this.tempProductCard = `<product-card cardIds=${cardIds}><div style="display:flex;overflow-x:auto">${cardHtml}</div></product-card>`;
|
|
122142
|
+
this.saveMailTempDialogVisible = true;
|
|
122143
|
+
},
|
|
122144
|
+
// 初始化邮件模版
|
|
122145
|
+
payInitTemplate() {
|
|
122146
|
+
// 初始化收件人
|
|
122147
|
+
const bloggerList = JSON.parse(localStorage.getItem('resultRecipientData') || '[]');
|
|
122148
|
+
if (bloggerList && bloggerList.length) {
|
|
122149
|
+
bloggerList.forEach(item => {
|
|
122150
|
+
this.addresseeArr.push({
|
|
122151
|
+
...item,
|
|
122152
|
+
bloggerId: item.bloggerId,
|
|
122153
|
+
bloggerName: item.bloggerName
|
|
122154
|
+
});
|
|
122155
|
+
});
|
|
122156
|
+
}
|
|
122157
|
+
// 初始化写信模版
|
|
122158
|
+
const payWriteData = JSON.parse(localStorage.getItem('payWriteData') || '{}');
|
|
122159
|
+
this.mailList = [{
|
|
122160
|
+
attachments: [],
|
|
122161
|
+
content: `<p>To: ${this.addresseeArr[0].bloggerName}</p>
|
|
122162
|
+
<p>Hello!</p>
|
|
122163
|
+
<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>
|
|
122164
|
+
<p>Below are the contract details. Please review and sign them carefully:<a href=\"${payWriteData.payWriteUrl}\" target=\"_blank\">${payWriteData.payWriteUrl}</a></p>`,
|
|
122165
|
+
subject: 'Contract Signature Required to Confirm Collaboration Payment ',
|
|
122166
|
+
id: "mockId-" + Date.now(),
|
|
122167
|
+
fileList: [],
|
|
122168
|
+
// 附件
|
|
122169
|
+
active: true,
|
|
122170
|
+
// 是否当前选中
|
|
122171
|
+
isAiContent: false,
|
|
122172
|
+
getContent: () => {},
|
|
122173
|
+
getTextContent: () => {},
|
|
122174
|
+
setContent: () => {},
|
|
122175
|
+
insertEditContent: () => {},
|
|
122176
|
+
addEditContent: () => {},
|
|
122177
|
+
dangerouslyInsertHtml: () => {},
|
|
122178
|
+
isEmpty: () => {},
|
|
122179
|
+
getReplyHtml: () => {},
|
|
122180
|
+
setEditorBar: () => {}
|
|
122181
|
+
}];
|
|
122182
|
+
},
|
|
122093
122183
|
// 获取自动邀约邮件详情
|
|
122094
122184
|
getInviteAITaskDetail() {
|
|
122095
122185
|
inviteEmailGet(this.$route.query.inviteAITaskId).then(res => {
|
|
@@ -123358,15 +123448,15 @@ function inviteEmailGet(taskId) {
|
|
|
123358
123448
|
});
|
|
123359
123449
|
;// ./src/package/write-email/index.vue?vue&type=script&lang=js
|
|
123360
123450
|
/* harmony default export */ var package_write_emailvue_type_script_lang_js = (write_emailvue_type_script_lang_js);
|
|
123361
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123451
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=0&id=7011cdc3&prod&lang=scss&scoped=true
|
|
123362
123452
|
// extracted by mini-css-extract-plugin
|
|
123363
123453
|
|
|
123364
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=
|
|
123454
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=0&id=7011cdc3&prod&lang=scss&scoped=true
|
|
123365
123455
|
|
|
123366
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123456
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/write-email/index.vue?vue&type=style&index=1&id=7011cdc3&prod&lang=scss
|
|
123367
123457
|
// extracted by mini-css-extract-plugin
|
|
123368
123458
|
|
|
123369
|
-
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=
|
|
123459
|
+
;// ./src/package/write-email/index.vue?vue&type=style&index=1&id=7011cdc3&prod&lang=scss
|
|
123370
123460
|
|
|
123371
123461
|
;// ./src/package/write-email/index.vue
|
|
123372
123462
|
|
|
@@ -123380,11 +123470,11 @@ function inviteEmailGet(taskId) {
|
|
|
123380
123470
|
|
|
123381
123471
|
var write_email_component = normalizeComponent(
|
|
123382
123472
|
package_write_emailvue_type_script_lang_js,
|
|
123383
|
-
|
|
123384
|
-
|
|
123473
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_render,
|
|
123474
|
+
write_emailvue_type_template_id_7011cdc3_scoped_true_staticRenderFns,
|
|
123385
123475
|
false,
|
|
123386
123476
|
null,
|
|
123387
|
-
"
|
|
123477
|
+
"7011cdc3",
|
|
123388
123478
|
null
|
|
123389
123479
|
|
|
123390
123480
|
)
|
|
@@ -123451,8 +123541,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
|
|
|
123451
123541
|
};
|
|
123452
123542
|
var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
|
|
123453
123543
|
|
|
123454
|
-
;// ./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=
|
|
123455
|
-
var
|
|
123544
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=9dd5bd72&scoped=true
|
|
123545
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render = function render() {
|
|
123456
123546
|
var _vm = this,
|
|
123457
123547
|
_c = _vm._self._c;
|
|
123458
123548
|
return _c('div', {
|
|
@@ -123773,6 +123863,25 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123773
123863
|
}
|
|
123774
123864
|
})];
|
|
123775
123865
|
}
|
|
123866
|
+
}, {
|
|
123867
|
+
key: "operation",
|
|
123868
|
+
fn: function ({
|
|
123869
|
+
data
|
|
123870
|
+
}) {
|
|
123871
|
+
return [_c('el-link', {
|
|
123872
|
+
attrs: {
|
|
123873
|
+
"type": "primary",
|
|
123874
|
+
"size": "small",
|
|
123875
|
+
"underline": false
|
|
123876
|
+
},
|
|
123877
|
+
on: {
|
|
123878
|
+
"click": function ($event) {
|
|
123879
|
+
$event.stopPropagation();
|
|
123880
|
+
return _vm.recallMail(data.scope);
|
|
123881
|
+
}
|
|
123882
|
+
}
|
|
123883
|
+
}, [_vm._v("撤回")])];
|
|
123884
|
+
}
|
|
123776
123885
|
}])
|
|
123777
123886
|
}), _c('div', {
|
|
123778
123887
|
staticClass: "tool"
|
|
@@ -123814,7 +123923,7 @@ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function re
|
|
|
123814
123923
|
staticClass: "dss-iconfont"
|
|
123815
123924
|
}, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
|
|
123816
123925
|
};
|
|
123817
|
-
var
|
|
123926
|
+
var singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns = [];
|
|
123818
123927
|
|
|
123819
123928
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
123820
123929
|
var dayjs_min = __webpack_require__(4353);
|
|
@@ -123902,6 +124011,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123902
124011
|
label: src_language.t("edm2.mailEn12"),
|
|
123903
124012
|
prop: "sendTime",
|
|
123904
124013
|
width: "200"
|
|
124014
|
+
}, {
|
|
124015
|
+
label: "操作",
|
|
124016
|
+
scope: "operation",
|
|
124017
|
+
width: "100"
|
|
123905
124018
|
}],
|
|
123906
124019
|
tableData: [],
|
|
123907
124020
|
loading: false,
|
|
@@ -123950,6 +124063,28 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
123950
124063
|
localStorage.removeItem("searchFlag");
|
|
123951
124064
|
},
|
|
123952
124065
|
methods: {
|
|
124066
|
+
// 撤回邮件
|
|
124067
|
+
recallMail(row) {
|
|
124068
|
+
console.log(row, "row");
|
|
124069
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124070
|
+
confirmButtonText: "确定",
|
|
124071
|
+
cancelButtonText: "取消",
|
|
124072
|
+
type: "warning"
|
|
124073
|
+
}).then(() => {
|
|
124074
|
+
withdraw(row.id).then(res => {
|
|
124075
|
+
if (res.code == "0") {
|
|
124076
|
+
this.$message({
|
|
124077
|
+
type: "success",
|
|
124078
|
+
duration: 7000,
|
|
124079
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124080
|
+
});
|
|
124081
|
+
this.init();
|
|
124082
|
+
} else {
|
|
124083
|
+
this.$message.error(res.message);
|
|
124084
|
+
}
|
|
124085
|
+
});
|
|
124086
|
+
}).catch(() => {});
|
|
124087
|
+
},
|
|
123953
124088
|
// 主题-正文
|
|
123954
124089
|
changeContentMode(val) {
|
|
123955
124090
|
this.contentSelect = val;
|
|
@@ -124143,10 +124278,10 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124143
124278
|
});
|
|
124144
124279
|
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
|
|
124145
124280
|
/* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
|
|
124146
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124281
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=9dd5bd72&prod&lang=scss&scoped=true
|
|
124147
124282
|
// extracted by mini-css-extract-plugin
|
|
124148
124283
|
|
|
124149
|
-
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=
|
|
124284
|
+
;// ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=9dd5bd72&prod&lang=scss&scoped=true
|
|
124150
124285
|
|
|
124151
124286
|
;// ./src/package/outbox-email/components/singleSendMail.vue
|
|
124152
124287
|
|
|
@@ -124159,18 +124294,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
124159
124294
|
|
|
124160
124295
|
var singleSendMail_component = normalizeComponent(
|
|
124161
124296
|
components_singleSendMailvue_type_script_lang_js,
|
|
124162
|
-
|
|
124163
|
-
|
|
124297
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_render,
|
|
124298
|
+
singleSendMailvue_type_template_id_9dd5bd72_scoped_true_staticRenderFns,
|
|
124164
124299
|
false,
|
|
124165
124300
|
null,
|
|
124166
|
-
"
|
|
124301
|
+
"9dd5bd72",
|
|
124167
124302
|
null
|
|
124168
124303
|
|
|
124169
124304
|
)
|
|
124170
124305
|
|
|
124171
124306
|
/* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
|
|
124172
|
-
;// ./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=
|
|
124173
|
-
var
|
|
124307
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=b7b4f6b0&scoped=true
|
|
124308
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render = function render() {
|
|
124174
124309
|
var _vm = this,
|
|
124175
124310
|
_c = _vm._self._c;
|
|
124176
124311
|
return _c('div', {
|
|
@@ -124460,6 +124595,25 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124460
124595
|
}
|
|
124461
124596
|
})];
|
|
124462
124597
|
}
|
|
124598
|
+
}, {
|
|
124599
|
+
key: "operation",
|
|
124600
|
+
fn: function ({
|
|
124601
|
+
data
|
|
124602
|
+
}) {
|
|
124603
|
+
return [_c('el-link', {
|
|
124604
|
+
attrs: {
|
|
124605
|
+
"type": "primary",
|
|
124606
|
+
"size": "small",
|
|
124607
|
+
"underline": false
|
|
124608
|
+
},
|
|
124609
|
+
on: {
|
|
124610
|
+
"click": function ($event) {
|
|
124611
|
+
$event.stopPropagation();
|
|
124612
|
+
return _vm.recallMail(data.scope);
|
|
124613
|
+
}
|
|
124614
|
+
}
|
|
124615
|
+
}, [_vm._v("撤回")])];
|
|
124616
|
+
}
|
|
124463
124617
|
}])
|
|
124464
124618
|
}), _c('div', {
|
|
124465
124619
|
staticClass: "tool"
|
|
@@ -124486,7 +124640,7 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function ren
|
|
|
124486
124640
|
staticClass: "dss-iconfont icon-delete-2"
|
|
124487
124641
|
})])])])], 1)]);
|
|
124488
124642
|
};
|
|
124489
|
-
var
|
|
124643
|
+
var replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns = [];
|
|
124490
124644
|
|
|
124491
124645
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124492
124646
|
|
|
@@ -124558,6 +124712,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124558
124712
|
label: src_language.t("edm2.mailEn12"),
|
|
124559
124713
|
prop: "sendTime",
|
|
124560
124714
|
width: "200"
|
|
124715
|
+
}, {
|
|
124716
|
+
label: "操作",
|
|
124717
|
+
scope: "operation",
|
|
124718
|
+
width: "100"
|
|
124561
124719
|
}],
|
|
124562
124720
|
contentInput: "",
|
|
124563
124721
|
contentSelect: "1",
|
|
@@ -124609,6 +124767,28 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124609
124767
|
localStorage.removeItem("searchFlag");
|
|
124610
124768
|
},
|
|
124611
124769
|
methods: {
|
|
124770
|
+
// 撤回邮件
|
|
124771
|
+
recallMail(row) {
|
|
124772
|
+
console.log(row, "row");
|
|
124773
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
124774
|
+
confirmButtonText: "确定",
|
|
124775
|
+
cancelButtonText: "取消",
|
|
124776
|
+
type: "warning"
|
|
124777
|
+
}).then(() => {
|
|
124778
|
+
withdraw(row.id).then(res => {
|
|
124779
|
+
if (res.code == "0") {
|
|
124780
|
+
this.$message({
|
|
124781
|
+
type: "success",
|
|
124782
|
+
duration: 7000,
|
|
124783
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
124784
|
+
});
|
|
124785
|
+
this.init();
|
|
124786
|
+
} else {
|
|
124787
|
+
this.$message.error(res.message);
|
|
124788
|
+
}
|
|
124789
|
+
});
|
|
124790
|
+
}).catch(() => {});
|
|
124791
|
+
},
|
|
124612
124792
|
// 去除html标签
|
|
124613
124793
|
filterHtmlTag(str) {
|
|
124614
124794
|
if (str) {
|
|
@@ -124820,10 +125000,10 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124820
125000
|
});
|
|
124821
125001
|
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
|
|
124822
125002
|
/* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
|
|
124823
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125003
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124824
125004
|
// extracted by mini-css-extract-plugin
|
|
124825
125005
|
|
|
124826
|
-
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=
|
|
125006
|
+
;// ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=b7b4f6b0&prod&lang=scss&scoped=true
|
|
124827
125007
|
|
|
124828
125008
|
;// ./src/package/outbox-email/components/replySendMail.vue
|
|
124829
125009
|
|
|
@@ -124836,11 +125016,11 @@ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
|
|
|
124836
125016
|
|
|
124837
125017
|
var replySendMail_component = normalizeComponent(
|
|
124838
125018
|
components_replySendMailvue_type_script_lang_js,
|
|
124839
|
-
|
|
124840
|
-
|
|
125019
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_render,
|
|
125020
|
+
replySendMailvue_type_template_id_b7b4f6b0_scoped_true_staticRenderFns,
|
|
124841
125021
|
false,
|
|
124842
125022
|
null,
|
|
124843
|
-
"
|
|
125023
|
+
"b7b4f6b0",
|
|
124844
125024
|
null
|
|
124845
125025
|
|
|
124846
125026
|
)
|
|
@@ -126308,8 +126488,8 @@ var draft_email_component = normalizeComponent(
|
|
|
126308
126488
|
)
|
|
126309
126489
|
|
|
126310
126490
|
/* harmony default export */ var draft_email = (draft_email_component.exports);
|
|
126311
|
-
;// ./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=
|
|
126312
|
-
var
|
|
126491
|
+
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=template&id=6a248e40&scoped=true
|
|
126492
|
+
var detailvue_type_template_id_6a248e40_scoped_true_render = function render() {
|
|
126313
126493
|
var _vm = this,
|
|
126314
126494
|
_c = _vm._self._c;
|
|
126315
126495
|
return _vm.emailArr.length !== 0 ? _c('div', {
|
|
@@ -126322,6 +126502,11 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126322
126502
|
}, [_c('i', {
|
|
126323
126503
|
staticClass: "el-icon-arrow-left"
|
|
126324
126504
|
})]), _c('div', {
|
|
126505
|
+
staticClass: "back recall_btn",
|
|
126506
|
+
on: {
|
|
126507
|
+
"click": _vm.recallMail
|
|
126508
|
+
}
|
|
126509
|
+
}, [_vm._m(0)]), _c('div', {
|
|
126325
126510
|
staticClass: "mail-items-box"
|
|
126326
126511
|
}, [_c('div', {
|
|
126327
126512
|
staticClass: "mail-item-row mail-template"
|
|
@@ -126548,7 +126733,19 @@ var detailvue_type_template_id_cfc1a914_scoped_true_render = function render() {
|
|
|
126548
126733
|
}
|
|
126549
126734
|
}) : _vm._e()], 1) : _vm._e();
|
|
126550
126735
|
};
|
|
126551
|
-
var
|
|
126736
|
+
var detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns = [function () {
|
|
126737
|
+
var _vm = this,
|
|
126738
|
+
_c = _vm._self._c;
|
|
126739
|
+
return _c('div', {
|
|
126740
|
+
staticClass: "re_box"
|
|
126741
|
+
}, [_c('i', {
|
|
126742
|
+
staticClass: "dss-iconfont btn_con"
|
|
126743
|
+
}, [_vm._v("")]), _c('span', {
|
|
126744
|
+
staticClass: "btn_con"
|
|
126745
|
+
}, [_vm._v("撤回")])]);
|
|
126746
|
+
}];
|
|
126747
|
+
|
|
126748
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=template&id=6a248e40&scoped=true
|
|
126552
126749
|
|
|
126553
126750
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Table/components/bloggerColumn.vue?vue&type=template&id=2b58a2e1&scoped=true
|
|
126554
126751
|
var bloggerColumnvue_type_template_id_2b58a2e1_scoped_true_render = function render() {
|
|
@@ -126797,6 +126994,27 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126797
126994
|
localStorage.setItem("searchFlag", true);
|
|
126798
126995
|
},
|
|
126799
126996
|
methods: {
|
|
126997
|
+
// 撤回邮件
|
|
126998
|
+
recallMail() {
|
|
126999
|
+
this.$confirm("请确认是否撤回该邮件?", "提示", {
|
|
127000
|
+
confirmButtonText: "确定",
|
|
127001
|
+
cancelButtonText: "取消",
|
|
127002
|
+
type: "warning"
|
|
127003
|
+
}).then(() => {
|
|
127004
|
+
withdraw(this.$route.query.id).then(res => {
|
|
127005
|
+
if (res.code == "0") {
|
|
127006
|
+
this.$message({
|
|
127007
|
+
type: "success",
|
|
127008
|
+
duration: 7000,
|
|
127009
|
+
message: "撤回成功,该邮件现已被存放至草稿箱中,本次发件消耗的权益数已自动为您回退至账户中。"
|
|
127010
|
+
});
|
|
127011
|
+
this.backToOutbox();
|
|
127012
|
+
} else {
|
|
127013
|
+
this.$message.error(res.message);
|
|
127014
|
+
}
|
|
127015
|
+
});
|
|
127016
|
+
}).catch(() => {});
|
|
127017
|
+
},
|
|
126800
127018
|
// 红人档案侧抽
|
|
126801
127019
|
toBloggerDeatil(item) {
|
|
126802
127020
|
this.$emit("toBloggerDeatil", item);
|
|
@@ -126928,10 +127146,10 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126928
127146
|
});
|
|
126929
127147
|
;// ./src/package/outbox-email/detail.vue?vue&type=script&lang=js
|
|
126930
127148
|
/* harmony default export */ var package_outbox_email_detailvue_type_script_lang_js = (outbox_email_detailvue_type_script_lang_js);
|
|
126931
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127149
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=6a248e40&prod&lang=scss&scoped=true
|
|
126932
127150
|
// extracted by mini-css-extract-plugin
|
|
126933
127151
|
|
|
126934
|
-
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=
|
|
127152
|
+
;// ./src/package/outbox-email/detail.vue?vue&type=style&index=0&id=6a248e40&prod&lang=scss&scoped=true
|
|
126935
127153
|
|
|
126936
127154
|
;// ./src/package/outbox-email/detail.vue
|
|
126937
127155
|
|
|
@@ -126944,11 +127162,11 @@ var bloggerColumn_component = normalizeComponent(
|
|
|
126944
127162
|
|
|
126945
127163
|
var outbox_email_detail_component = normalizeComponent(
|
|
126946
127164
|
package_outbox_email_detailvue_type_script_lang_js,
|
|
126947
|
-
|
|
126948
|
-
|
|
127165
|
+
detailvue_type_template_id_6a248e40_scoped_true_render,
|
|
127166
|
+
detailvue_type_template_id_6a248e40_scoped_true_staticRenderFns,
|
|
126949
127167
|
false,
|
|
126950
127168
|
null,
|
|
126951
|
-
"
|
|
127169
|
+
"6a248e40",
|
|
126952
127170
|
null
|
|
126953
127171
|
|
|
126954
127172
|
)
|