wotokol-edm 1.1.4 → 1.1.6

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.
@@ -88556,7 +88556,7 @@ const request_sin_get = (url, data) => {
88556
88556
  });
88557
88557
  });
88558
88558
  };
88559
- const del = (url, data) => {
88559
+ const request_sin_del = (url, data) => {
88560
88560
  return new Promise((resolve, reject) => {
88561
88561
  instance.delete(url, {
88562
88562
  params: data
@@ -90290,8 +90290,8 @@ var component = normalizeComponent(
90290
90290
  )
90291
90291
 
90292
90292
  /* harmony default export */ var edm_button = (component.exports);
90293
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/index.vue?vue&type=template&id=2eb0a98a&scoped=true
90294
- var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render = function render() {
90293
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/index.vue?vue&type=template&id=18de8074&scoped=true
90294
+ var edm_inboxvue_type_template_id_18de8074_scoped_true_render = function render() {
90295
90295
  var _vm = this,
90296
90296
  _c = _vm._self._c;
90297
90297
  return _c('div', {
@@ -90666,7 +90666,8 @@ var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render = function render(
90666
90666
  "row-key": _vm.getRowKeys
90667
90667
  },
90668
90668
  on: {
90669
- "selection-change": _vm.switchMail
90669
+ "selection-change": _vm.switchMail,
90670
+ "row-contextmenu": _vm.rightClick
90670
90671
  }
90671
90672
  }, [_c('el-table-column', {
90672
90673
  attrs: {
@@ -90907,27 +90908,20 @@ var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render = function render(
90907
90908
  "current-change": _vm.changePage,
90908
90909
  "size-change": _vm.changeSize
90909
90910
  }
90910
- }) : _vm._e()], 1)]), _c('SetTag', {
90911
- ref: "refTag",
90911
+ }) : _vm._e()], 1)]), _vm.isShowSettag ? _c('AddTagsDialog', {
90912
90912
  attrs: {
90913
- "is-show": _vm.isShowSettag,
90914
- "id": _vm.mailId,
90915
- "tagList": _vm.tagList,
90916
- "mailTags": _vm.mailTags,
90917
- "defaultTop": _vm.defaultTop
90913
+ "isShowDialog": _vm.isShowSettag,
90914
+ "defaultTag": _vm.selectedTags
90918
90915
  },
90919
90916
  on: {
90920
- "changeTagsHeight": _vm.changeTagsHeight,
90921
- "addTag": _vm.handleAddTag,
90922
- "initTag": _vm.initTagList,
90923
- "initInbox": _vm.initInbox,
90924
- "close": function ($event) {
90917
+ "updateTag": _vm.updateTag,
90918
+ "closeAddTagsDialog": function ($event) {
90925
90919
  _vm.isShowSettag = false;
90926
90920
  }
90927
90921
  }
90928
- })], 1);
90922
+ }) : _vm._e()], 1);
90929
90923
  };
90930
- var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_staticRenderFns = [];
90924
+ var edm_inboxvue_type_template_id_18de8074_scoped_true_staticRenderFns = [];
90931
90925
 
90932
90926
  ;// CONCATENATED MODULE: ./node_modules/jsencrypt/lib/lib/jsbn/util.js
90933
90927
  var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz";
@@ -97385,7 +97379,7 @@ async function tags() {
97385
97379
 
97386
97380
  // 删除
97387
97381
  async function delTag(id) {
97388
- let res = await request_del(`/edm/tag/delTag/${id}`);
97382
+ let res = await del(`/edm/tag/delTag/${id}`);
97389
97383
  if (res.code === "0") {
97390
97384
  return true;
97391
97385
  }
@@ -97394,7 +97388,7 @@ async function delTag(id) {
97394
97388
 
97395
97389
  // 添加标签
97396
97390
  async function addTag(params) {
97397
- let res = await request_post(`/edm/tag/addSign`, params);
97391
+ let res = await post(`/edm/tag/addSign`, params);
97398
97392
  if (res) {
97399
97393
  return res;
97400
97394
  }
@@ -97570,6 +97564,21 @@ function checkEmailOwner(params) {
97570
97564
  function addBlogRel(data) {
97571
97565
  return request_post(`/woto-crm/planBlog/addBlogRel`, data);
97572
97566
  }
97567
+
97568
+ // 获取标签
97569
+ function getTags(params) {
97570
+ return request_get(`/edm/tag/searchTags`, params);
97571
+ }
97572
+
97573
+ // 删除标签
97574
+ function delTags(id) {
97575
+ return request_del(`/edm/tag/delTag/${id}`);
97576
+ }
97577
+
97578
+ // 增加标签
97579
+ function addTags(data) {
97580
+ return request_post(`/edm/tag/addSign`, data);
97581
+ }
97573
97582
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
97574
97583
  var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
97575
97584
  var _vm = this,
@@ -97771,541 +97780,6 @@ var edm_search_component = normalizeComponent(
97771
97780
  )
97772
97781
 
97773
97782
  /* harmony default export */ var edm_search = (edm_search_component.exports);
97774
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/SetTag/index.vue?vue&type=template&id=7f750814&scoped=true
97775
- var SetTagvue_type_template_id_7f750814_scoped_true_render = function render() {
97776
- var _vm = this,
97777
- _c = _vm._self._c;
97778
- return _c('div', [_c('el-dialog', {
97779
- ref: "tagDialog",
97780
- staticClass: "edm-tag-dialog",
97781
- attrs: {
97782
- "visible": _vm.isShow,
97783
- "rendered": "",
97784
- "close-on-click-modal": false,
97785
- "before-close": _vm.close,
97786
- "title": _vm.$t('inboxTagDialog.title'),
97787
- "width": "440px"
97788
- },
97789
- on: {
97790
- "update:visible": function ($event) {
97791
- _vm.isShow = $event;
97792
- },
97793
- "closed": _vm.handleClose,
97794
- "opened": function ($event) {
97795
- return _vm.opened(true);
97796
- }
97797
- }
97798
- }, [_c('div', {
97799
- staticClass: "popup"
97800
- }, [_c('div', {
97801
- directives: [{
97802
- name: "loading",
97803
- rawName: "v-loading",
97804
- value: _vm.loading,
97805
- expression: "loading"
97806
- }],
97807
- ref: "tagList",
97808
- staticClass: "tag-list outTag"
97809
- }, [_vm._l(_vm.tagList, function (t, i) {
97810
- return _c('div', {
97811
- key: i,
97812
- staticClass: "tag-item cursor-pointer mb12 mr12",
97813
- class: t.tagType === 1 && 'defaultTag',
97814
- style: {
97815
- 'background-color': t.tagColor,
97816
- color: '#ffffff',
97817
- 'border-radius': '4px'
97818
- },
97819
- on: {
97820
- "click": function ($event) {
97821
- return _vm.useTag(t);
97822
- }
97823
- }
97824
- }, [_c('span', {
97825
- ref: "tagTxt",
97826
- refInFor: true,
97827
- staticClass: "tagText"
97828
- }, [_vm._v(_vm._s(t.tag))]), t.tagType === 2 ? _c('button', {
97829
- staticClass: "tagbg",
97830
- on: {
97831
- "click": function ($event) {
97832
- $event.stopPropagation();
97833
- return _vm.del(t.id);
97834
- }
97835
- }
97836
- }, [_c('i', {
97837
- staticClass: "dss-iconfont icon-close"
97838
- })]) : _vm._e()]);
97839
- }), _vm.showAddButton ? _c('div', {
97840
- staticClass: "tag-item-add cursor-pointer addTagBlock"
97841
- }, [_vm.showAddButton ? _c('span', {
97842
- staticClass: "popup-span",
97843
- on: {
97844
- "click": _vm.handlePlus
97845
- }
97846
- }, [_c('i', {
97847
- staticClass: "el-icon-plus"
97848
- })]) : _vm._e()]) : _vm._e()], 2), _vm.showAddTag ? _c('div', {
97849
- staticClass: "popup-form pad5"
97850
- }, [_c('el-input', {
97851
- staticStyle: {
97852
- "width": "80px"
97853
- },
97854
- attrs: {
97855
- "placeholder": _vm.$t('inboxTagDialog.default')
97856
- },
97857
- model: {
97858
- value: _vm.form.tag,
97859
- callback: function ($$v) {
97860
- _vm.$set(_vm.form, "tag", $$v);
97861
- },
97862
- expression: "form.tag"
97863
- }
97864
- }), _c('div', {
97865
- staticClass: "popup-colorPicker"
97866
- }, [_c('div', {
97867
- staticClass: "custom-picker-icon"
97868
- }, [_c('i', {
97869
- staticClass: "dss-iconfont icon-tianse",
97870
- style: {
97871
- color: _vm.iconColor
97872
- }
97873
- })]), _c('el-color-picker', {
97874
- attrs: {
97875
- "predefine": _vm.predefineColors,
97876
- "size": "mini",
97877
- "color-format": "hex"
97878
- },
97879
- on: {
97880
- "change": _vm.pickerChange
97881
- },
97882
- model: {
97883
- value: _vm.form.tag_color,
97884
- callback: function ($$v) {
97885
- _vm.$set(_vm.form, "tag_color", $$v);
97886
- },
97887
- expression: "form.tag_color"
97888
- }
97889
- })], 1), _c('div', [_c('button', {
97890
- staticClass: "btn-check",
97891
- on: {
97892
- "click": _vm.addTag
97893
- }
97894
- }, [_c('i', {
97895
- staticClass: "el-icon-check"
97896
- })])]), _c('div', [_c('button', {
97897
- staticClass: "btn-close",
97898
- on: {
97899
- "click": function ($event) {
97900
- _vm.showAddTag = false;
97901
- _vm.showAddButton = true;
97902
- }
97903
- }
97904
- }, [_c('i', {
97905
- staticClass: "el-icon-close"
97906
- })])])], 1) : _vm._e(), _c('div', {
97907
- staticClass: "tagtxt"
97908
- }, [_vm._v(_vm._s(_vm.$t("inboxTagDialog.selectTag")))]), _c('div', {
97909
- staticClass: "tag-list selectTagList"
97910
- }, _vm._l(_vm.tagSelectData, function (t, i) {
97911
- return _c('div', {
97912
- key: i,
97913
- staticClass: "tag-item cursor-pointer mb12 mr12",
97914
- class: t.tagType === 1 && 'defaultTag',
97915
- style: {
97916
- 'background-color': t.tagColor,
97917
- color: '#ffffff',
97918
- 'border-radius': '4px'
97919
- }
97920
- }, [_c('span', {
97921
- staticClass: "tagText"
97922
- }, [_vm._v(_vm._s(t.tag))]), _c('button', {
97923
- staticClass: "tagbg",
97924
- on: {
97925
- "click": function ($event) {
97926
- $event.stopPropagation();
97927
- return _vm.handleSelectTag(t.id);
97928
- }
97929
- }
97930
- }, [_c('i', {
97931
- staticClass: "dss-iconfont icon-close"
97932
- })])]);
97933
- }), 0)]), _c('div', {
97934
- staticClass: "popup-foot"
97935
- }, [_c('button', {
97936
- staticClass: "dialog-btn dialog-btn-linear mr24",
97937
- on: {
97938
- "click": function ($event) {
97939
- return _vm.close();
97940
- }
97941
- }
97942
- }, [_vm._v(" " + _vm._s(_vm.$t("inboxTagDialog.cancel")) + " ")]), _c('button', {
97943
- staticClass: "dialog-btn dialog-btn-face",
97944
- on: {
97945
- "click": function ($event) {
97946
- return _vm.affirm();
97947
- }
97948
- }
97949
- }, [_vm._v(" " + _vm._s(_vm.$t("inboxTagDialog.confirm")) + " ")])])])], 1);
97950
- };
97951
- var SetTagvue_type_template_id_7f750814_scoped_true_staticRenderFns = [];
97952
-
97953
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/SetTag/index.vue?vue&type=script&lang=js
97954
-
97955
-
97956
-
97957
- /* harmony default export */ var SetTagvue_type_script_lang_js = ({
97958
- name: "edm_tag",
97959
- props: {
97960
- // 是否显示
97961
- isShow: {
97962
- default: false,
97963
- type: Boolean
97964
- },
97965
- // 邮件id
97966
- id: {
97967
- default: "",
97968
- type: String
97969
- },
97970
- // 已选标签
97971
- mailTags: {
97972
- default: () => [],
97973
- type: Array
97974
- },
97975
- // 邮件详情
97976
- tagList: {
97977
- default: () => [],
97978
- type: Array
97979
- },
97980
- // 标签列表默认距离顶部4行高度
97981
- defaultTop: {
97982
- type: Number,
97983
- default: 118
97984
- }
97985
- },
97986
- data() {
97987
- return {
97988
- iconColor: "#1990FF",
97989
- findTagName: "",
97990
- // 标签名称用于生成新的标签列表
97991
- loading: false,
97992
- isExpand: true,
97993
- // 是否展开
97994
- uuid: uuid.v4(),
97995
- showUnfold: false,
97996
- showAddButton: true,
97997
- showAddTag: false,
97998
- tagData: [],
97999
- // 标签数据
98000
- tagSelectData: [],
98001
- mailId: "",
98002
- form: {
98003
- // 表单
98004
- tag: "",
98005
- tag_color: "gray"
98006
- },
98007
- predefineColors: ["#FF5277", "#FF9EC3", "#BF9EFF", "#4BB792", "#FFAA36", "#52BAFF", "#5F52FF", "#27C9B6"] // 预定义颜色
98008
- };
98009
- },
98010
- mounted() {
98011
- this.mailId = this.id;
98012
- },
98013
- watch: {
98014
- id(id) {
98015
- // 监控 mailId
98016
- this.form.tag = "";
98017
- this.showAddTag = false;
98018
- if (id) {
98019
- this.mailId = id;
98020
- }
98021
- },
98022
- mailTags(value) {
98023
- this.tagSelectData = value;
98024
- }
98025
- },
98026
- methods: {
98027
- opened(defaultTagList_status, status) {
98028
- this.$nextTick(() => {
98029
- this.loading = false;
98030
- this.showAddTag = false;
98031
- this.showAddButton = true;
98032
- this.form.tag = "";
98033
- this.setTagDistanceTop(defaultTagList_status, status);
98034
- if (status) {
98035
- //this.$emit('changeTagsHeight', false, this.findTagName)
98036
- // this.isExpand = false
98037
- } else {
98038
- // this.loading = true
98039
- // this.showAddTag = false
98040
- // this.showAddButton = true
98041
- // this.form.tag = ''
98042
- // this.setTagDistanceTop(defaultTagList_status, status)
98043
- }
98044
- });
98045
- },
98046
- // 换行计算(判断标签列表高度是否大于4行)
98047
- setTagDistanceTop(defaultTagList_status, status) {
98048
- //换行计算
98049
- let arr_tagTxt = this.$refs.tagTxt;
98050
- if (!arr_tagTxt) {
98051
- this.loading = false;
98052
- }
98053
- let tag_temp = [];
98054
- //console.log('arrtxt', arr_tagTxt)
98055
- if (arr_tagTxt) {
98056
- arr_tagTxt.forEach((item, i) => {
98057
- item.parentNode.parentNode.scrollTop = 0;
98058
- item.scrollTop = 0;
98059
- let pnode = item.parentNode.parentNode.getBoundingClientRect().top;
98060
- let cnode = item.getBoundingClientRect().top;
98061
- let distance = parseInt(cnode - pnode);
98062
- tag_temp.push({
98063
- name: item.innerText,
98064
- top: distance
98065
- });
98066
- });
98067
- console.log("tag_temp", tag_temp);
98068
- let find = tag_temp.filter(f => f.top > this.defaultTop);
98069
-
98070
- // 是否大于4行的高度
98071
- this.showUnfold = false;
98072
- // 判断是否大于4行的高度
98073
- if (find.length > 0) {
98074
- this.showUnfold = true;
98075
- let findTag = tag_temp.filter(f => f.top > this.defaultTop);
98076
- if (findTag.length > 0) {
98077
- let find_defaultTop = tag_temp.filter(f => f.top === this.defaultTop);
98078
- console.log("f", find_defaultTop);
98079
- this.findTagName = find_defaultTop[find_defaultTop.length - 2].name;
98080
- if (defaultTagList_status) {
98081
- setTimeout(() => {
98082
- if (status) {
98083
- this.$emit("changeTagsHeight", status.val, this.findTagName);
98084
- } else {
98085
- // 第一次加载 显示全部
98086
- this.$emit("changeTagsHeight", false, this.findTagName);
98087
- }
98088
-
98089
- // 显示展示状态
98090
- if (status) {
98091
- this.isExpand = status.val;
98092
- } else {
98093
- this.isExpand = false;
98094
- }
98095
- // 关闭loading 效果
98096
- this.loading = false;
98097
- }, 500);
98098
- } else {
98099
- // 显示默认数据
98100
- this.$emit("changeTagsHeight", null);
98101
- // 显示收缩状态
98102
- //this.isExpand = false
98103
- }
98104
- }
98105
- } else {
98106
- // 显示收缩状态
98107
- this.isExpand = false;
98108
- // 关闭loading 效果
98109
- this.loading = false;
98110
- }
98111
- }
98112
- },
98113
- handleClose() {
98114
- // 显示默认数据
98115
- this.$emit("changeTagsHeight", null);
98116
- // 显示展示状态
98117
- this.isExpand = true;
98118
- },
98119
- // 确认
98120
- affirm() {
98121
- if (this.tagSelectData.length === 0) {
98122
- this.$message({
98123
- type: "warning",
98124
- message: this.$t("inboxTagDialog.bindTagTip")
98125
- });
98126
- return;
98127
- } else {
98128
- let arr = [];
98129
- this.tagSelectData.map(item => {
98130
- arr.push({
98131
- tag: item.tag,
98132
- tagColor: item.tagColor
98133
- });
98134
- });
98135
- let params = {
98136
- mailId: this.mailId,
98137
- tags: arr
98138
- };
98139
- bindTag(params).then(res => {
98140
- if (res) {
98141
- this.$message({
98142
- type: "success",
98143
- message: this.$t("inboxTagDialog.bindSuccess")
98144
- });
98145
- this.$emit("initInbox");
98146
- }
98147
- });
98148
- }
98149
- },
98150
- // 添加输入框
98151
- handlePlus() {
98152
- this.showAddTag = true;
98153
- this.showAddButton = false;
98154
- this.form.tag = "";
98155
- },
98156
- // 添加标签
98157
- addTag() {
98158
- if (this.validateTag()) {
98159
- addTag({
98160
- tag: this.form.tag,
98161
- tagColor: this.form.tag_color
98162
- }).then(res => {
98163
- this.form.tag = "";
98164
- if (res && res.code === "0") {
98165
- this.$message({
98166
- type: "success",
98167
- message: this.$t("inboxTagDialog.addTagSuccess")
98168
- });
98169
- this.$emit("addTag", {
98170
- val: this.isExpand
98171
- });
98172
- } else if (res && res.code === "-1") {
98173
- this.$message({
98174
- type: "warning",
98175
- message: this.$t("inboxTagDialog.addTagFail")
98176
- });
98177
- } else if (res && res.code === "1") {
98178
- this.$message({
98179
- type: "warning",
98180
- message: this.$t("inboxTagDialog.addTagFail")
98181
- });
98182
- }
98183
- });
98184
- }
98185
- },
98186
- // 校验标签
98187
- validateTag() {
98188
- // 添加校验
98189
- let result = true;
98190
- let tagName = this.form.tag;
98191
- if (tagName === "") {
98192
- this.$message({
98193
- type: "warning",
98194
- message: this.$t("inboxTagDialog.default")
98195
- });
98196
- result = !result;
98197
- }
98198
- // 中文校验
98199
- let pattern_zh = new RegExp("[\u4E00-\u9FA5]+");
98200
- if (pattern_zh.test(tagName)) {
98201
- if (tagName.length > 15) {
98202
- this.$message({
98203
- type: "warning",
98204
- message: this.$t("inboxTagDialog.tagMaxLen")
98205
- });
98206
- result = !result;
98207
- }
98208
- } else {
98209
- if (tagName.length > 12) {
98210
- this.$message({
98211
- type: "warning",
98212
- message: this.$t("inboxTagDialog.tagMaxLen")
98213
- });
98214
- result = !result;
98215
- }
98216
- }
98217
- return result;
98218
- },
98219
- // 删除已选择标签
98220
- handleSelectTag(id) {
98221
- let findTag = this.tagSelectData.filter(f => f.id !== id);
98222
- this.tagSelectData = findTag;
98223
- },
98224
- // 显示添加标签
98225
- handleShowAddTag() {
98226
- this.showAddTag = true;
98227
- },
98228
- // 使用标签
98229
- useTag(obj) {
98230
- let isExist = this.tagSelectData.find(f => f.id === obj.id);
98231
- if (!isExist) {
98232
- this.tagSelectData.push({
98233
- id: obj.id,
98234
- tag: obj.tag,
98235
- tagColor: obj.tagColor,
98236
- tagType: obj.tagType
98237
- });
98238
- }
98239
- },
98240
- // 删除标签
98241
- del(id) {
98242
- delTag(id).then(res => {
98243
- if (res) {
98244
- this.$emit("init");
98245
- this.$message({
98246
- type: "success",
98247
- message: this.$t("inboxTagDialog.delTagSuccess")
98248
- });
98249
- }
98250
- this.$emit("initTag", {
98251
- val: this.isExpand
98252
- });
98253
- });
98254
- },
98255
- // 颜色改变
98256
- pickerChange(v) {
98257
- this.iconColor = v;
98258
- },
98259
- // 关闭弹窗
98260
- close() {
98261
- this.$emit("close");
98262
- },
98263
- // 标题展开/收缩
98264
- onUnfold() {
98265
- this.isExpand = !this.isExpand;
98266
- if (this.isExpand) {
98267
- this.$emit("changeTagsHeight", this.isExpand, this.findTagName);
98268
- } else {
98269
- // 展开
98270
- this.$emit("changeTagsHeight", this.isExpand, this.findTagName);
98271
- }
98272
- }
98273
- }
98274
- });
98275
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue?vue&type=script&lang=js
98276
- /* harmony default export */ var EdmElement_SetTagvue_type_script_lang_js = (SetTagvue_type_script_lang_js);
98277
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/SetTag/index.vue?vue&type=style&index=0&id=7f750814&prod&lang=scss&scoped=true
98278
- // extracted by mini-css-extract-plugin
98279
-
98280
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue?vue&type=style&index=0&id=7f750814&prod&lang=scss&scoped=true
98281
-
98282
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/EdmElement/SetTag/index.vue?vue&type=style&index=1&id=7f750814&prod&lang=scss&scoped=true
98283
- // extracted by mini-css-extract-plugin
98284
-
98285
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue?vue&type=style&index=1&id=7f750814&prod&lang=scss&scoped=true
98286
-
98287
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue
98288
-
98289
-
98290
-
98291
- ;
98292
-
98293
-
98294
-
98295
- /* normalize component */
98296
-
98297
- var SetTag_component = normalizeComponent(
98298
- EdmElement_SetTagvue_type_script_lang_js,
98299
- SetTagvue_type_template_id_7f750814_scoped_true_render,
98300
- SetTagvue_type_template_id_7f750814_scoped_true_staticRenderFns,
98301
- false,
98302
- null,
98303
- "7f750814",
98304
- null
98305
-
98306
- )
98307
-
98308
- /* harmony default export */ var SetTag = (SetTag_component.exports);
98309
97783
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
98310
97784
  var web_url_search_params_delete = __webpack_require__(4603);
98311
97785
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
@@ -99040,6 +98514,410 @@ function getMoneySymbolEvt(val) {
99040
98514
  });
99041
98515
  return symbol;
99042
98516
  }
98517
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/AddTag/addTagsDialog.vue?vue&type=template&id=0ee37952&scoped=true
98518
+ var addTagsDialogvue_type_template_id_0ee37952_scoped_true_render = function render() {
98519
+ var _vm = this,
98520
+ _c = _vm._self._c;
98521
+ return _c('el-dialog', {
98522
+ attrs: {
98523
+ "visible": _vm.isShowDialog,
98524
+ "title": _vm.$t('NP.np65'),
98525
+ "close-on-click-modal": false,
98526
+ "width": "600px",
98527
+ "custom-class": "add-tags-dialog",
98528
+ "append-to-body": _vm.appendBody
98529
+ },
98530
+ on: {
98531
+ "update:visible": function ($event) {
98532
+ _vm.isShowDialog = $event;
98533
+ },
98534
+ "close": _vm.closeAddTagsDialog
98535
+ }
98536
+ }, [_c('div', {
98537
+ directives: [{
98538
+ name: "loading",
98539
+ rawName: "v-loading",
98540
+ value: _vm.loading,
98541
+ expression: "loading"
98542
+ }]
98543
+ }, [_c('div', {
98544
+ staticClass: "operate-box"
98545
+ }, [_vm.optType === 'search' ? _c('div', {
98546
+ staticClass: "search-tag"
98547
+ }, [_c('el-input', {
98548
+ staticClass: "search-input",
98549
+ attrs: {
98550
+ "placeholder": _vm.$t('NP.np178'),
98551
+ "clearable": ""
98552
+ },
98553
+ on: {
98554
+ "clear": _vm.getPublishTags
98555
+ },
98556
+ nativeOn: {
98557
+ "keyup": function ($event) {
98558
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
98559
+ return _vm.getPublishTags.apply(null, arguments);
98560
+ }
98561
+ },
98562
+ model: {
98563
+ value: _vm.searchKeywords,
98564
+ callback: function ($$v) {
98565
+ _vm.searchKeywords = $$v;
98566
+ },
98567
+ expression: "searchKeywords"
98568
+ }
98569
+ }, [_c('i', {
98570
+ staticClass: "iconfont icon-a-sousuoxiao15x",
98571
+ attrs: {
98572
+ "slot": "suffix"
98573
+ },
98574
+ on: {
98575
+ "click": _vm.getPublishTags
98576
+ },
98577
+ slot: "suffix"
98578
+ })]), _c('el-button', {
98579
+ attrs: {
98580
+ "type": "primary",
98581
+ "size": "small"
98582
+ },
98583
+ on: {
98584
+ "click": _vm.handleAddTag
98585
+ }
98586
+ }, [_c('i', {
98587
+ staticClass: "el-icon-plus"
98588
+ }), _vm._v(_vm._s(_vm.$t("NP.np179")))])], 1) : _c('div', {
98589
+ staticClass: "add-tag"
98590
+ }, [_c('el-input', {
98591
+ attrs: {
98592
+ "placeholder": _vm.$t('inboxTagDialog.default')
98593
+ },
98594
+ model: {
98595
+ value: _vm.tagInputValue,
98596
+ callback: function ($$v) {
98597
+ _vm.tagInputValue = $$v;
98598
+ },
98599
+ expression: "tagInputValue"
98600
+ }
98601
+ }, [_c('div', {
98602
+ staticClass: "popup-colorPicker",
98603
+ attrs: {
98604
+ "slot": "suffix"
98605
+ },
98606
+ slot: "suffix"
98607
+ }, [_c('div', {
98608
+ staticClass: "custom-picker-icon"
98609
+ }, [_c('i', {
98610
+ staticClass: "dss-iconfont icon-tianse",
98611
+ style: {
98612
+ color: _vm.iconColor
98613
+ }
98614
+ }), _c('el-color-picker', {
98615
+ attrs: {
98616
+ "predefine": _vm.predefineColors,
98617
+ "size": "mini",
98618
+ "color-format": "hex"
98619
+ },
98620
+ on: {
98621
+ "change": _vm.pickerChange
98622
+ },
98623
+ model: {
98624
+ value: _vm.tagColor,
98625
+ callback: function ($$v) {
98626
+ _vm.tagColor = $$v;
98627
+ },
98628
+ expression: "tagColor"
98629
+ }
98630
+ })], 1)])]), _c('div', {
98631
+ staticClass: "add",
98632
+ on: {
98633
+ "click": _vm.addPublishTag
98634
+ }
98635
+ }, [_c('i', {
98636
+ staticClass: "el-icon-check"
98637
+ })]), _c('div', {
98638
+ staticClass: "cancel",
98639
+ on: {
98640
+ "click": _vm.handleCancelAdd
98641
+ }
98642
+ }, [_c('i', {
98643
+ staticClass: "el-icon-close"
98644
+ })])], 1)]), _c('div', {
98645
+ staticClass: "all-tag"
98646
+ }, _vm._l(_vm.allTagsArr, function (tag) {
98647
+ return _c('el-tag', {
98648
+ key: tag.id,
98649
+ staticClass: "tag-item",
98650
+ style: {
98651
+ 'background-color': tag.tagColor
98652
+ },
98653
+ on: {
98654
+ "click": function ($event) {
98655
+ return _vm.selectTag(tag);
98656
+ }
98657
+ }
98658
+ }, [_vm._v(_vm._s(tag.tag)), tag.tagType === 2 ? _c('i', {
98659
+ staticClass: "dss-iconfont icon-close",
98660
+ on: {
98661
+ "click": function ($event) {
98662
+ $event.stopPropagation();
98663
+ return _vm.deletePublishTag(tag.id);
98664
+ }
98665
+ }
98666
+ }) : _vm._e()]);
98667
+ }), 1), _c('div', {
98668
+ staticClass: "title"
98669
+ }, [_vm._v(_vm._s(_vm.$t("inboxTagDialog.selectTag")) + ":")]), _c('div', {
98670
+ staticClass: "selected-tags"
98671
+ }, _vm._l(_vm.selectedTagsArr, function (tag) {
98672
+ return _c('el-tag', {
98673
+ key: tag.tag,
98674
+ staticClass: "tag-item",
98675
+ style: {
98676
+ 'background-color': tag.tagColor
98677
+ }
98678
+ }, [_vm._v(_vm._s(tag.tag)), _c('i', {
98679
+ staticClass: "dss-iconfont icon-close",
98680
+ on: {
98681
+ "click": function ($event) {
98682
+ return _vm.clearTag(tag.tag);
98683
+ }
98684
+ }
98685
+ })]);
98686
+ }), 1)]), _c('span', {
98687
+ staticClass: "dialog-footer",
98688
+ attrs: {
98689
+ "slot": "footer"
98690
+ },
98691
+ slot: "footer"
98692
+ }, [_c('el-button', {
98693
+ on: {
98694
+ "click": _vm.cancelAddTags
98695
+ }
98696
+ }, [_vm._v(_vm._s(_vm.$t("common.cancle")))]), _c('el-button', {
98697
+ attrs: {
98698
+ "type": "primary"
98699
+ },
98700
+ on: {
98701
+ "click": _vm.confirmAddTags
98702
+ }
98703
+ }, [_vm._v(" " + _vm._s(_vm.$t("common.confirm")) + " ")])], 1)]);
98704
+ };
98705
+ var addTagsDialogvue_type_template_id_0ee37952_scoped_true_staticRenderFns = [];
98706
+
98707
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/AddTag/addTagsDialog.vue?vue&type=script&lang=js
98708
+
98709
+
98710
+ /* harmony default export */ var addTagsDialogvue_type_script_lang_js = ({
98711
+ props: {
98712
+ isShowDialog: {
98713
+ type: Boolean,
98714
+ default: false
98715
+ },
98716
+ defaultTag: {
98717
+ type: Array,
98718
+ default: () => []
98719
+ },
98720
+ appendBody: {
98721
+ type: Boolean,
98722
+ default: false
98723
+ },
98724
+ isOnlyTagName: {
98725
+ type: Boolean,
98726
+ default: false
98727
+ }
98728
+ },
98729
+ data() {
98730
+ return {
98731
+ loading: false,
98732
+ searchKeywords: "",
98733
+ tagInputValue: "",
98734
+ tagColor: "#808080",
98735
+ iconColor: "#808080",
98736
+ predefineColors: ["#FF5277", "#FF9EC3", "#BF9EFF", "#4BB792", "#FFAA36", "#52BAFF", "#5F52FF", "#27C9B6"],
98737
+ // 预定义颜色
98738
+ allTagsArr: [],
98739
+ selectedTagsArr: [],
98740
+ optType: "search"
98741
+ };
98742
+ },
98743
+ async created() {
98744
+ await this.getPublishTags();
98745
+ this.initDefaultTag();
98746
+ },
98747
+ methods: {
98748
+ // 回显默认值
98749
+ initDefaultTag() {
98750
+ const defaultTag = [];
98751
+ this.defaultTag.forEach(tag => {
98752
+ const tagObj = this.allTagsArr.find(val => val.tag === tag);
98753
+ if (tagObj) {
98754
+ defaultTag.push({
98755
+ ...tagObj
98756
+ });
98757
+ } else {
98758
+ defaultTag.push({
98759
+ tag,
98760
+ tagColor: "#808080",
98761
+ tagType: 2
98762
+ });
98763
+ }
98764
+ });
98765
+ this.selectedTagsArr = defaultTag;
98766
+ },
98767
+ // 关闭
98768
+ closeAddTagsDialog() {
98769
+ this.$emit("closeAddTagsDialog");
98770
+ },
98771
+ // 取消
98772
+ cancelAddTags() {
98773
+ this.closeAddTagsDialog();
98774
+ },
98775
+ // 确定
98776
+ confirmAddTags() {
98777
+ const tags = this.selectedTagsArr.map(item => this.isOnlyTagName ? item.tag : item);
98778
+ console.log(this.selectedTagsArr);
98779
+ this.$emit("updateTag", tags);
98780
+ this.closeAddTagsDialog();
98781
+ },
98782
+ // 颜色改变
98783
+ pickerChange(v) {
98784
+ this.iconColor = v;
98785
+ },
98786
+ handleAddTag() {
98787
+ this.optType = "add";
98788
+ this.searchKeywords = "";
98789
+ },
98790
+ handleCancelAdd() {
98791
+ this.optType = "search";
98792
+ },
98793
+ // 获取标签池
98794
+ async getPublishTags() {
98795
+ try {
98796
+ this.loading = true;
98797
+ const res = await getTags({
98798
+ tagValue: this.searchKeywords
98799
+ });
98800
+ if (res.code === "0") {
98801
+ this.allTagsArr = res.data || [];
98802
+ }
98803
+ } catch (error) {
98804
+ console.log(error);
98805
+ } finally {
98806
+ this.loading = false;
98807
+ }
98808
+ },
98809
+ // 增加标签池
98810
+ async addPublishTag() {
98811
+ try {
98812
+ if (!this.validateTag()) return false;
98813
+ const res = await addTags({
98814
+ tag: this.tagInputValue,
98815
+ tagColor: this.tagColor
98816
+ });
98817
+ if (res.code === "0") {
98818
+ this.selectedTagsArr.push({
98819
+ tag: this.tagInputValue,
98820
+ tagColor: this.tagColor
98821
+ });
98822
+ this.tagInputValue = "";
98823
+ this.getPublishTags();
98824
+ } else {
98825
+ this.$message.error(res.message);
98826
+ }
98827
+ } catch (error) {
98828
+ console.log(error);
98829
+ }
98830
+ },
98831
+ // 删除标签池
98832
+ async deletePublishTag(id) {
98833
+ try {
98834
+ const res = await delTags(id);
98835
+ if (res.code === "0") {
98836
+ setTimeout(() => {
98837
+ this.getPublishTags();
98838
+ }, 500);
98839
+ }
98840
+ } catch (error) {
98841
+ console.log(error);
98842
+ }
98843
+ },
98844
+ // 校验标签
98845
+ validateTag() {
98846
+ const tagName = this.tagInputValue;
98847
+ if (tagName === "") {
98848
+ this.$message({
98849
+ type: "warning",
98850
+ message: this.$t("inboxTagDialog.default")
98851
+ });
98852
+ return false;
98853
+ }
98854
+ // 中文校验
98855
+ const pattern_zh = new RegExp("[\u4E00-\u9FA5]+");
98856
+ if (pattern_zh.test(tagName)) {
98857
+ if (tagName.length > 15) {
98858
+ this.$message({
98859
+ type: "warning",
98860
+ message: this.$t("inboxTagDialog.tagMaxLen")
98861
+ });
98862
+ return false;
98863
+ }
98864
+ } else {
98865
+ if (tagName.length > 12) {
98866
+ this.$message({
98867
+ type: "warning",
98868
+ message: this.$t("inboxTagDialog.tagMaxLen")
98869
+ });
98870
+ return false;
98871
+ }
98872
+ }
98873
+ return true;
98874
+ },
98875
+ // 选择标签
98876
+ selectTag(tag) {
98877
+ const idx = this.selectedTagsArr.findIndex(v => v.tag === tag.tag);
98878
+ if (idx > -1) return false;
98879
+ this.selectedTagsArr.push(tag);
98880
+ },
98881
+ // 删除已经选择的标签
98882
+ clearTag(tag) {
98883
+ this.selectedTagsArr = this.selectedTagsArr.filter(v => v.tag !== tag);
98884
+ }
98885
+ }
98886
+ });
98887
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue?vue&type=script&lang=js
98888
+ /* harmony default export */ var AddTag_addTagsDialogvue_type_script_lang_js = (addTagsDialogvue_type_script_lang_js);
98889
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/AddTag/addTagsDialog.vue?vue&type=style&index=0&id=0ee37952&prod&lang=scss&scoped=true
98890
+ // extracted by mini-css-extract-plugin
98891
+
98892
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue?vue&type=style&index=0&id=0ee37952&prod&lang=scss&scoped=true
98893
+
98894
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/AddTag/addTagsDialog.vue?vue&type=style&index=1&id=0ee37952&prod&lang=scss
98895
+ // extracted by mini-css-extract-plugin
98896
+
98897
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue?vue&type=style&index=1&id=0ee37952&prod&lang=scss
98898
+
98899
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue
98900
+
98901
+
98902
+
98903
+ ;
98904
+
98905
+
98906
+
98907
+ /* normalize component */
98908
+
98909
+ var addTagsDialog_component = normalizeComponent(
98910
+ AddTag_addTagsDialogvue_type_script_lang_js,
98911
+ addTagsDialogvue_type_template_id_0ee37952_scoped_true_render,
98912
+ addTagsDialogvue_type_template_id_0ee37952_scoped_true_staticRenderFns,
98913
+ false,
98914
+ null,
98915
+ "0ee37952",
98916
+ null
98917
+
98918
+ )
98919
+
98920
+ /* harmony default export */ var addTagsDialog = (addTagsDialog_component.exports);
99043
98921
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-inbox/index.vue?vue&type=script&lang=js
99044
98922
 
99045
98923
 
@@ -99052,7 +98930,7 @@ function getMoneySymbolEvt(val) {
99052
98930
  name: "edm-inbox",
99053
98931
  components: {
99054
98932
  Search: edm_search,
99055
- SetTag: SetTag
98933
+ AddTagsDialog: addTagsDialog
99056
98934
  },
99057
98935
  props: {
99058
98936
  sourceApp: {
@@ -99117,7 +98995,9 @@ function getMoneySymbolEvt(val) {
99117
98995
  // 第一次加载缓存所有的标签
99118
98996
  bloggerArr: [],
99119
98997
  //选中项红人
99120
- selectedReplyIds: [] //选中红人回复id
98998
+ selectedReplyIds: [],
98999
+ //选中红人回复id
99000
+ selectedTags: []
99121
99001
  };
99122
99002
  },
99123
99003
  computed: {
@@ -99145,7 +99025,6 @@ function getMoneySymbolEvt(val) {
99145
99025
  this.searchForm = JSON.parse(localStorage.getItem("searchFormInbox"));
99146
99026
  }
99147
99027
  this.$nextTick(() => {
99148
- this.initTags();
99149
99028
  this.init();
99150
99029
  this.tableHeight = window.innerHeight - this.$refs["table"].$el.getBoundingClientRect().top - 66;
99151
99030
  });
@@ -99270,32 +99149,6 @@ function getMoneySymbolEvt(val) {
99270
99149
  }
99271
99150
  });
99272
99151
  },
99273
- // 初始化标签 ,val表示是否展开
99274
- initTags(val) {
99275
- this.tags = [];
99276
- tags().then(res => {
99277
- if (res) {
99278
- this.tagList = res;
99279
- this.defaultTagList = res;
99280
- res.map(item => {
99281
- this.tags.push({
99282
- id: item.id,
99283
- value: item.id.toString(),
99284
- label: item.tag
99285
- });
99286
- });
99287
- // 调用子组件的方法判断是否显示 (收缩/展开)按钮
99288
- let com_tag = this.$refs.refTag;
99289
- com_tag.opened(true, val);
99290
- }
99291
- });
99292
- },
99293
- // 绑定邮件标签刷新列表
99294
- initInbox() {
99295
- this.init();
99296
- this.isShowSettag = false;
99297
- this.mailId = "";
99298
- },
99299
99152
  // 绑定邮件标签
99300
99153
  handleBindTag(row, tag) {
99301
99154
  if (tag && !tag.tagColor && !tag.tagName) return false;
@@ -99305,49 +99158,19 @@ function getMoneySymbolEvt(val) {
99305
99158
  customClass: "del-model",
99306
99159
  type: "warning"
99307
99160
  }).then(() => {
99308
- let arr_temp = [];
99309
- if (row.tagList) {
99310
- let tagList = row.tagList;
99311
- if (tagList.length > 1) {
99312
- tagList.forEach(item => {
99313
- if (item.tagName !== tag.tagName) {
99314
- arr_temp.push({
99315
- tag: item.tagName,
99316
- tagColor: item.tagColor
99317
- });
99318
- }
99319
- });
99320
- }
99161
+ this.mailId = row.id + "";
99162
+ const tagList = row.tagList.filter(item => !!item.tagName) || [];
99163
+ let restTagList = [];
99164
+ if (tagList.length > 1) {
99165
+ restTagList = tagList.filter(item => item.tagName !== tag.tagName).map(item => {
99166
+ return {
99167
+ tag: item.tagName,
99168
+ tagColor: item.tagColor
99169
+ };
99170
+ });
99321
99171
  }
99322
- // 查询参数
99323
- let params = {
99324
- mailId: row.id,
99325
- tags: arr_temp
99326
- };
99327
- bindTag(params).then(res => {
99328
- if (res) {
99329
- this.$message({
99330
- type: "success",
99331
- message: this.$t("inboxTable.successTagDel")
99332
- });
99333
- this.initTags();
99334
- this.init();
99335
- }
99336
- });
99337
- }).catch(() => {
99338
- this.$message({
99339
- type: "info",
99340
- message: this.$t("inboxTable.cancelTagDel")
99341
- });
99342
- });
99343
- },
99344
- // 标签添加成功之后 显示为展开
99345
- handleAddTag(val) {
99346
- this.initTags(val);
99347
- },
99348
- // 删除成功之后 显示为展开
99349
- initTagList(val) {
99350
- this.initTags(val);
99172
+ this.updateTag(restTagList, true);
99173
+ }).catch(() => {});
99351
99174
  },
99352
99175
  // 标签选择
99353
99176
  handleTagChange(ids) {
@@ -99496,20 +99319,36 @@ function getMoneySymbolEvt(val) {
99496
99319
  this.searchForm.bloggerName = "";
99497
99320
  this.searchForm.subject = "";
99498
99321
  },
99499
- // 添加标签
99322
+ // 添加标签-start
99500
99323
  addMailTag(row) {
99501
- this.mailTags = [];
99502
- if (this.tagList) {
99503
- row.tagList.forEach(item => {
99504
- let findTag = this.tagList.find(f => f.tag === item.tagName);
99505
- if (findTag) {
99506
- this.mailTags.push(findTag);
99507
- }
99508
- });
99509
- }
99510
99324
  this.mailId = row.id.toString();
99325
+ console.log(row);
99326
+ this.selectedTags = row.tagList ? row.tagList.filter(val => !!val.tagName).map(item => item.tagName) : [];
99511
99327
  this.isShowSettag = true;
99512
99328
  },
99329
+ // 更新标签-end
99330
+ async updateTag(tags = [], isDelete = false) {
99331
+ try {
99332
+ const res = await bindTag({
99333
+ mailId: this.mailId,
99334
+ tags
99335
+ });
99336
+ if (res) {
99337
+ if (isDelete) {
99338
+ this.$message({
99339
+ type: "success",
99340
+ message: this.$t("inboxTagDialog.delTagSuccess")
99341
+ });
99342
+ } else {
99343
+ this.$message({
99344
+ type: "success",
99345
+ message: this.$t("inboxTagDialog.bindSuccess")
99346
+ });
99347
+ }
99348
+ this.init();
99349
+ }
99350
+ } catch (error) {}
99351
+ },
99513
99352
  // 跳转详情
99514
99353
  skipDetail(row) {
99515
99354
  localStorage.setItem("searchFormInbox", JSON.stringify(this.searchForm));
@@ -99616,26 +99455,91 @@ function getMoneySymbolEvt(val) {
99616
99455
  // 全部
99617
99456
  this.tagList = this.defaultTagList;
99618
99457
  }
99458
+ },
99459
+ rightClick(row, column, event) {
99460
+ event.preventDefault();
99461
+ this.$contextmenu({
99462
+ items: [{
99463
+ label: "在新标签页中打开邮件",
99464
+ icon: "el-icon-plus",
99465
+ onClick: () => {
99466
+ const routeData = this.$router.resolve({
99467
+ path: "/inboxDetail",
99468
+ query: {
99469
+ id: row.id,
99470
+ chatId: row.chatId,
99471
+ popularizePlanId: row.popularizePlanId,
99472
+ popularizePlanName: row.popularizePlanName,
99473
+ maxId: row.maxId
99474
+ }
99475
+ });
99476
+ window.open(routeData.href, "_blank");
99477
+ }
99478
+ }, {
99479
+ label: "刷新列表数据",
99480
+ icon: "el-icon-refresh",
99481
+ onClick: () => {
99482
+ this.init();
99483
+ }
99484
+ }, {
99485
+ label: "复制邮件主题",
99486
+ icon: "el-icon-document-copy",
99487
+ disabled: !row.subject,
99488
+ onClick: () => {
99489
+ this.copyText(row.subject);
99490
+ }
99491
+ }, {
99492
+ label: "复制推广计划名",
99493
+ icon: "el-icon-document-copy",
99494
+ disabled: !row.popularizePlanName,
99495
+ onClick: () => {
99496
+ this.copyText(row.popularizePlanName);
99497
+ }
99498
+ }, {
99499
+ label: "添加标签",
99500
+ icon: "el-icon-edit-outline",
99501
+ onClick: () => {
99502
+ this.addMailTag(row);
99503
+ }
99504
+ }],
99505
+ event,
99506
+ customClass: "contextmenu-container",
99507
+ zIndex: 3,
99508
+ minWidth: 230
99509
+ });
99510
+ return false;
99511
+ },
99512
+ copyText(text) {
99513
+ const input = document.createElement("input");
99514
+ input.value = text;
99515
+ document.body.appendChild(input);
99516
+ input.select();
99517
+ document.execCommand("copy");
99518
+ document.body.removeChild(input);
99519
+ this.$message({
99520
+ type: "success",
99521
+ message: "已复制到剪贴板"
99522
+ });
99619
99523
  }
99620
99524
  },
99621
99525
  destroyed() {}
99622
99526
  });
99623
99527
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=script&lang=js
99624
99528
  /* harmony default export */ var package_edm_inboxvue_type_script_lang_js = (edm_inboxvue_type_script_lang_js);
99625
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-inbox/index.vue?vue&type=style&index=0&id=2eb0a98a&prod&lang=scss&scoped=true
99529
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-inbox/index.vue?vue&type=style&index=0&id=18de8074&prod&lang=scss&scoped=true
99626
99530
  // extracted by mini-css-extract-plugin
99627
99531
 
99628
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=0&id=2eb0a98a&prod&lang=scss&scoped=true
99532
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=0&id=18de8074&prod&lang=scss&scoped=true
99629
99533
 
99630
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-inbox/index.vue?vue&type=style&index=1&id=2eb0a98a&prod&scoped=true&lang=css
99534
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-inbox/index.vue?vue&type=style&index=1&id=18de8074&prod&scoped=true&lang=css
99631
99535
  // extracted by mini-css-extract-plugin
99632
99536
 
99633
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=1&id=2eb0a98a&prod&scoped=true&lang=css
99537
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=1&id=18de8074&prod&scoped=true&lang=css
99634
99538
 
99635
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-inbox/index.vue?vue&type=style&index=2&id=2eb0a98a&prod&lang=scss
99539
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/edm-inbox/index.vue?vue&type=style&index=2&id=18de8074&prod&lang=scss
99636
99540
  // extracted by mini-css-extract-plugin
99637
99541
 
99638
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=2&id=2eb0a98a&prod&lang=scss
99542
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=2&id=18de8074&prod&lang=scss
99639
99543
 
99640
99544
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue
99641
99545
 
@@ -99650,18 +99554,18 @@ function getMoneySymbolEvt(val) {
99650
99554
 
99651
99555
  var edm_inbox_component = normalizeComponent(
99652
99556
  package_edm_inboxvue_type_script_lang_js,
99653
- edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render,
99654
- edm_inboxvue_type_template_id_2eb0a98a_scoped_true_staticRenderFns,
99557
+ edm_inboxvue_type_template_id_18de8074_scoped_true_render,
99558
+ edm_inboxvue_type_template_id_18de8074_scoped_true_staticRenderFns,
99655
99559
  false,
99656
99560
  null,
99657
- "2eb0a98a",
99561
+ "18de8074",
99658
99562
  null
99659
99563
 
99660
99564
  )
99661
99565
 
99662
99566
  /* harmony default export */ var edm_inbox = (edm_inbox_component.exports);
99663
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=33b0a398&scoped=true
99664
- var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
99567
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=725f3f30&scoped=true
99568
+ var detailvue_type_template_id_725f3f30_scoped_true_render = function render() {
99665
99569
  var _vm = this,
99666
99570
  _c = _vm._self._c;
99667
99571
  return _c('div', {
@@ -99710,12 +99614,10 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
99710
99614
  }), _c('div', {
99711
99615
  staticClass: "tag-btn cursor-pointer mr12 mb8",
99712
99616
  on: {
99713
- "click": function ($event) {
99714
- _vm.isShowSettag = true;
99715
- }
99617
+ "click": _vm.addTagsStart
99716
99618
  }
99717
99619
  }, [_c('i', {
99718
- staticClass: "dss-iconfont icon-add1"
99620
+ staticClass: "dss-iconfont icon-add2"
99719
99621
  }), _vm._v(" " + _vm._s(_vm.$t("inboxDetail.addTag")) + " ")])], 2), _c('div', {
99720
99622
  staticClass: "send-email"
99721
99623
  }, [_vm._v(_vm._s(_vm.$t("edm5.v4")) + _vm._s(_vm.mailData.receiver))])]), _c('div', {
@@ -99936,6 +99838,19 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
99936
99838
  }, [_vm._v(" " + _vm._s(mail.userName) + " ")])] : _vm._e()], 2), _c('div', {
99937
99839
  staticClass: "time"
99938
99840
  }, [_c('span', {
99841
+ directives: [{
99842
+ name: "show",
99843
+ rawName: "v-show",
99844
+ value: mail.isExpand,
99845
+ expression: "mail.isExpand"
99846
+ }],
99847
+ staticClass: "show-full",
99848
+ on: {
99849
+ "click": function ($event) {
99850
+ return _vm.toggleFullContent(mail);
99851
+ }
99852
+ }
99853
+ }, [_vm._v(_vm._s(mail.isShowFull ? "隐藏原始邮件" : "查看原始邮件"))]), _c('span', {
99939
99854
  staticClass: "date"
99940
99855
  }, [_vm._v(_vm._s(mail.createTime))]), mail.type === 1 && _vm.isHasAi ? _c('span', {
99941
99856
  class: {
@@ -99997,7 +99912,7 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
99997
99912
  staticClass: "txt-content"
99998
99913
  }, [_c('EmailBox', {
99999
99914
  attrs: {
100000
- "content": mail.content
99915
+ "content": mail.isShowFull ? mail.cleanContent : mail.content
100001
99916
  }
100002
99917
  })], 1)]), _c('div', {
100003
99918
  staticClass: "box-toggle",
@@ -100032,22 +99947,18 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
100032
99947
  staticClass: "dss-iconfont icon-download"
100033
99948
  })]);
100034
99949
  }), 0) : _vm._e()], 1);
100035
- }), 0)])]), _c('SetTag', {
99950
+ }), 0)])]), _vm.isShowSettag ? _c('AddTagsDialog', {
100036
99951
  attrs: {
100037
- "is-show": _vm.isShowSettag,
100038
- "id": _vm.mailId,
100039
- "tagList": _vm.mailTaglist,
100040
- "mailTags": _vm.mailTags
99952
+ "isShowDialog": _vm.isShowSettag,
99953
+ "defaultTag": _vm.selectedTags
100041
99954
  },
100042
99955
  on: {
100043
- "addTag": _vm.handleAddTag,
100044
- "initTag": _vm.initTagList,
100045
- "initInbox": _vm.initDetail,
100046
- "close": function ($event) {
99956
+ "updateTag": _vm.updateTag,
99957
+ "closeAddTagsDialog": function ($event) {
100047
99958
  _vm.isShowSettag = false;
100048
99959
  }
100049
99960
  }
100050
- }), _vm.showSimpleReplay ? _c('SimpleReplay', {
99961
+ }) : _vm._e(), _vm.showSimpleReplay ? _c('SimpleReplay', {
100051
99962
  attrs: {
100052
99963
  "maxId": _vm.maxId
100053
99964
  },
@@ -100132,9 +100043,9 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
100132
100043
  }
100133
100044
  }) : _vm._e()], 1);
100134
100045
  };
100135
- var detailvue_type_template_id_33b0a398_scoped_true_staticRenderFns = [];
100046
+ var detailvue_type_template_id_725f3f30_scoped_true_staticRenderFns = [];
100136
100047
 
100137
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=template&id=33b0a398&scoped=true
100048
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=template&id=725f3f30&scoped=true
100138
100049
 
100139
100050
  ;// CONCATENATED MODULE: ./node_modules/vue-i18n/dist/vue-i18n.esm.js
100140
100051
  /*!
@@ -107438,7 +107349,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107438
107349
  /* harmony default export */ var detailvue_type_script_lang_js = ({
107439
107350
  name: "edm-inboxDetail",
107440
107351
  components: {
107441
- SetTag: SetTag,
107352
+ AddTagsDialog: addTagsDialog,
107442
107353
  Tooltip: Tooltip,
107443
107354
  EmailBox: box,
107444
107355
  SimpleReplay: SimpleReplay,
@@ -107500,6 +107411,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107500
107411
  // 邮件组数据
107501
107412
  isShowSettag: false,
107502
107413
  // 是否显示设置标签
107414
+ selectedTags: [],
107503
107415
  tagList: [],
107504
107416
  // 标签数据
107505
107417
  isShowReply: false,
@@ -107694,6 +107606,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107694
107606
  if (!item.attachment) {
107695
107607
  item.attachment = [];
107696
107608
  }
107609
+ item.isShowFull = false;
107697
107610
  item.isOut = false; // 默认不是库外
107698
107611
  // 头像设置
107699
107612
  if (item.type === 2) {
@@ -107806,31 +107719,17 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107806
107719
  },
107807
107720
  // 删除标签
107808
107721
  delTag(row) {
107809
- let tags = [];
107810
- this.tagList.forEach(item => {
107811
- if (item.tag !== row.tag) {
107812
- tags.push({
107722
+ const tagList = this.tagList.filter(item => !!item.tag) || [];
107723
+ let restTagList = [];
107724
+ if (tagList.length > 1) {
107725
+ restTagList = tagList.filter(item => item.tag !== row.tag).map(item => {
107726
+ return {
107813
107727
  tag: item.tag,
107814
107728
  tagColor: item.tag_color
107815
- });
107816
- }
107817
- });
107818
- let params = {
107819
- mailId: this.id,
107820
- tags
107821
- };
107822
- bindTag(params).then(data => {
107823
- if (data) {
107824
- this.$message({
107825
- type: "success",
107826
- message: this.$t("inboxDetail.delSuccess"),
107827
- duration: 1500
107828
- });
107829
- }
107830
- }).finally(() => {
107831
- this.getMailDetailById();
107832
- this.getMailGroup();
107833
- });
107729
+ };
107730
+ });
107731
+ }
107732
+ this.updateTag(restTagList, true);
107834
107733
  },
107835
107734
  // 设置已读
107836
107735
  setReadstatus() {
@@ -107933,7 +107832,17 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107933
107832
  this.mailList = this.mailList.map(val => {
107934
107833
  return {
107935
107834
  ...val,
107936
- isExpand: mail.id === val.id ? !val.isExpand : false
107835
+ isExpand: mail.id === val.id ? !val.isExpand : false,
107836
+ isShowFull: false
107837
+ };
107838
+ });
107839
+ },
107840
+ // 切换显示/隐藏全文
107841
+ toggleFullContent(mail) {
107842
+ this.mailList = this.mailList.map(val => {
107843
+ return {
107844
+ ...val,
107845
+ isShowFull: mail.id === val.id ? !val.isShowFull : false
107937
107846
  };
107938
107847
  });
107939
107848
  },
@@ -108082,20 +107991,48 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
108082
107991
  })
108083
107992
  });
108084
107993
  this.getCrmInfo();
107994
+ },
107995
+ // 更新标签-start
107996
+ addTagsStart() {
107997
+ this.selectedTags = this.tagList && Array.isArray(this.tagList) ? this.tagList.filter(val => !!val.tag).map(item => item.tag) : [];
107998
+ this.isShowSettag = true;
107999
+ },
108000
+ // 更新标签-end
108001
+ async updateTag(tags = [], isDelete = false) {
108002
+ try {
108003
+ const res = await bindTag({
108004
+ mailId: this.id,
108005
+ tags
108006
+ });
108007
+ if (res) {
108008
+ if (isDelete) {
108009
+ this.$message({
108010
+ type: "success",
108011
+ message: this.$t("inboxTagDialog.delTagSuccess")
108012
+ });
108013
+ } else {
108014
+ this.$message({
108015
+ type: "success",
108016
+ message: this.$t("inboxTagDialog.bindSuccess")
108017
+ });
108018
+ }
108019
+ this.getMailDetailById();
108020
+ }
108021
+ } catch (error) {}
108085
108022
  }
108086
108023
  }
108087
108024
  });
108088
108025
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=script&lang=js
108089
108026
  /* harmony default export */ var edm_inbox_detailvue_type_script_lang_js = (detailvue_type_script_lang_js);
108090
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=33b0a398&prod&lang=scss&scoped=true
108027
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=725f3f30&prod&lang=scss&scoped=true
108091
108028
  // extracted by mini-css-extract-plugin
108092
108029
 
108093
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=0&id=33b0a398&prod&lang=scss&scoped=true
108030
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=0&id=725f3f30&prod&lang=scss&scoped=true
108094
108031
 
108095
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=33b0a398&prod&lang=scss
108032
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=725f3f30&prod&lang=scss
108096
108033
  // extracted by mini-css-extract-plugin
108097
108034
 
108098
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=1&id=33b0a398&prod&lang=scss
108035
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=1&id=725f3f30&prod&lang=scss
108099
108036
 
108100
108037
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue
108101
108038
 
@@ -108109,11 +108046,11 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
108109
108046
 
108110
108047
  var detail_component = normalizeComponent(
108111
108048
  edm_inbox_detailvue_type_script_lang_js,
108112
- detailvue_type_template_id_33b0a398_scoped_true_render,
108113
- detailvue_type_template_id_33b0a398_scoped_true_staticRenderFns,
108049
+ detailvue_type_template_id_725f3f30_scoped_true_render,
108050
+ detailvue_type_template_id_725f3f30_scoped_true_staticRenderFns,
108114
108051
  false,
108115
108052
  null,
108116
- "33b0a398",
108053
+ "725f3f30",
108117
108054
  null
108118
108055
 
108119
108056
  )
@@ -122305,8 +122242,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
122305
122242
  };
122306
122243
  var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
122307
122244
 
122308
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=44d9ca7e&scoped=true
122309
- var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render = function render() {
122245
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=1f01a884&scoped=true
122246
+ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function render() {
122310
122247
  var _vm = this,
122311
122248
  _c = _vm._self._c;
122312
122249
  return _c('div', {
@@ -122526,7 +122463,8 @@ var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render = function re
122526
122463
  return _vm.init();
122527
122464
  },
122528
122465
  "row-click": _vm.skipDetail,
122529
- "selection-change": _vm.selectTableRow
122466
+ "selection-change": _vm.selectTableRow,
122467
+ "row-contextmenu": _vm.rightClick
122530
122468
  },
122531
122469
  scopedSlots: _vm._u([{
122532
122470
  key: "isStar",
@@ -122667,7 +122605,7 @@ var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render = function re
122667
122605
  staticClass: "dss-iconfont"
122668
122606
  }, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
122669
122607
  };
122670
- var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_staticRenderFns = [];
122608
+ var singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns = [];
122671
122609
 
122672
122610
  // EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
122673
122611
  var dayjs_min = __webpack_require__(4353);
@@ -122941,15 +122879,64 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
122941
122879
  this.searchForm.currentPage = 1;
122942
122880
  this.$refs.mailTable.$refs.xTable.clearSelection();
122943
122881
  this.selectData = [];
122882
+ },
122883
+ rightClick(row, column, event) {
122884
+ event.preventDefault();
122885
+ this.$contextmenu({
122886
+ items: [{
122887
+ label: "在新标签页中打开邮件",
122888
+ icon: "el-icon-plus",
122889
+ onClick: () => {
122890
+ const routeData = this.$router.resolve({
122891
+ path: "/outboxDetail",
122892
+ query: {
122893
+ id: row.id,
122894
+ enterType: 1
122895
+ }
122896
+ });
122897
+ window.open(routeData.href, "_blank");
122898
+ }
122899
+ }, {
122900
+ label: "刷新列表数据",
122901
+ icon: "el-icon-refresh",
122902
+ onClick: () => {
122903
+ this.init();
122904
+ }
122905
+ }, {
122906
+ label: "复制邮件主题",
122907
+ icon: "el-icon-document-copy",
122908
+ disabled: !row.subject,
122909
+ onClick: () => {
122910
+ this.copyText(row.subject);
122911
+ }
122912
+ }],
122913
+ event,
122914
+ customClass: "contextmenu-container",
122915
+ zIndex: 3,
122916
+ minWidth: 230
122917
+ });
122918
+ return false;
122919
+ },
122920
+ copyText(text) {
122921
+ const input = document.createElement("input");
122922
+ input.value = text;
122923
+ document.body.appendChild(input);
122924
+ input.select();
122925
+ document.execCommand("copy");
122926
+ document.body.removeChild(input);
122927
+ this.$message({
122928
+ type: "success",
122929
+ message: "已复制到剪贴板"
122930
+ });
122944
122931
  }
122945
122932
  }
122946
122933
  });
122947
122934
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
122948
122935
  /* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
122949
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=44d9ca7e&prod&lang=scss&scoped=true
122936
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
122950
122937
  // extracted by mini-css-extract-plugin
122951
122938
 
122952
- ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=44d9ca7e&prod&lang=scss&scoped=true
122939
+ ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
122953
122940
 
122954
122941
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue
122955
122942
 
@@ -122962,18 +122949,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
122962
122949
 
122963
122950
  var singleSendMail_component = normalizeComponent(
122964
122951
  components_singleSendMailvue_type_script_lang_js,
122965
- singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render,
122966
- singleSendMailvue_type_template_id_44d9ca7e_scoped_true_staticRenderFns,
122952
+ singleSendMailvue_type_template_id_1f01a884_scoped_true_render,
122953
+ singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns,
122967
122954
  false,
122968
122955
  null,
122969
- "44d9ca7e",
122956
+ "1f01a884",
122970
122957
  null
122971
122958
 
122972
122959
  )
122973
122960
 
122974
122961
  /* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
122975
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=0cdffb56&scoped=true
122976
- var replySendMailvue_type_template_id_0cdffb56_scoped_true_render = function render() {
122962
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=9bfe54da&scoped=true
122963
+ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function render() {
122977
122964
  var _vm = this,
122978
122965
  _c = _vm._self._c;
122979
122966
  return _c('div', {
@@ -123193,7 +123180,8 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_render = function ren
123193
123180
  return _vm.init();
123194
123181
  },
123195
123182
  "row-click": _vm.skipDetail,
123196
- "selection-change": _vm.selectTableRow
123183
+ "selection-change": _vm.selectTableRow,
123184
+ "row-contextmenu": _vm.rightClick
123197
123185
  },
123198
123186
  scopedSlots: _vm._u([{
123199
123187
  key: "isStar",
@@ -123288,7 +123276,7 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_render = function ren
123288
123276
  staticClass: "dss-iconfont icon-delete-2"
123289
123277
  })])])])], 1)]);
123290
123278
  };
123291
- var replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns = [];
123279
+ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
123292
123280
 
123293
123281
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
123294
123282
 
@@ -123561,15 +123549,71 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns = [];
123561
123549
  }
123562
123550
  });
123563
123551
  }
123552
+ },
123553
+ rightClick(row, column, event) {
123554
+ event.preventDefault();
123555
+ this.$contextmenu({
123556
+ items: [{
123557
+ label: "在新标签页中打开邮件",
123558
+ icon: "el-icon-plus",
123559
+ onClick: () => {
123560
+ const routeData = this.$router.resolve({
123561
+ path: "/outboxDetail",
123562
+ query: {
123563
+ id: row.id,
123564
+ enterType: 2
123565
+ }
123566
+ });
123567
+ window.open(routeData.href, "_blank");
123568
+ }
123569
+ }, {
123570
+ label: "刷新列表数据",
123571
+ icon: "el-icon-refresh",
123572
+ onClick: () => {
123573
+ this.init();
123574
+ }
123575
+ }, {
123576
+ label: "复制邮件主题",
123577
+ icon: "el-icon-document-copy",
123578
+ disabled: !row.subject,
123579
+ onClick: () => {
123580
+ this.copyText(row.subject);
123581
+ }
123582
+ }, {
123583
+ label: "复制推广计划名",
123584
+ icon: "el-icon-document-copy",
123585
+ disabled: !row.popularizePlanName,
123586
+ onClick: () => {
123587
+ this.copyText(row.popularizePlanName);
123588
+ }
123589
+ }],
123590
+ event,
123591
+ customClass: "contextmenu-container",
123592
+ zIndex: 3,
123593
+ minWidth: 230
123594
+ });
123595
+ return false;
123596
+ },
123597
+ copyText(text) {
123598
+ const input = document.createElement("input");
123599
+ input.value = text;
123600
+ document.body.appendChild(input);
123601
+ input.select();
123602
+ document.execCommand("copy");
123603
+ document.body.removeChild(input);
123604
+ this.$message({
123605
+ type: "success",
123606
+ message: "已复制到剪贴板"
123607
+ });
123564
123608
  }
123565
123609
  }
123566
123610
  });
123567
123611
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
123568
123612
  /* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
123569
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=0cdffb56&prod&lang=scss&scoped=true
123613
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
123570
123614
  // extracted by mini-css-extract-plugin
123571
123615
 
123572
- ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=0cdffb56&prod&lang=scss&scoped=true
123616
+ ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
123573
123617
 
123574
123618
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue
123575
123619
 
@@ -123582,11 +123626,11 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns = [];
123582
123626
 
123583
123627
  var replySendMail_component = normalizeComponent(
123584
123628
  components_replySendMailvue_type_script_lang_js,
123585
- replySendMailvue_type_template_id_0cdffb56_scoped_true_render,
123586
- replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns,
123629
+ replySendMailvue_type_template_id_9bfe54da_scoped_true_render,
123630
+ replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns,
123587
123631
  false,
123588
123632
  null,
123589
- "0cdffb56",
123633
+ "9bfe54da",
123590
123634
  null
123591
123635
 
123592
123636
  )