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.
@@ -88566,7 +88566,7 @@ const request_sin_get = (url, data) => {
88566
88566
  });
88567
88567
  });
88568
88568
  };
88569
- const del = (url, data) => {
88569
+ const request_sin_del = (url, data) => {
88570
88570
  return new Promise((resolve, reject) => {
88571
88571
  instance.delete(url, {
88572
88572
  params: data
@@ -90300,8 +90300,8 @@ var component = normalizeComponent(
90300
90300
  )
90301
90301
 
90302
90302
  /* harmony default export */ var edm_button = (component.exports);
90303
- ;// CONCATENATED MODULE: ./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/index.vue?vue&type=template&id=2eb0a98a&scoped=true
90304
- var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render = function render() {
90303
+ ;// CONCATENATED MODULE: ./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/index.vue?vue&type=template&id=18de8074&scoped=true
90304
+ var edm_inboxvue_type_template_id_18de8074_scoped_true_render = function render() {
90305
90305
  var _vm = this,
90306
90306
  _c = _vm._self._c;
90307
90307
  return _c('div', {
@@ -90676,7 +90676,8 @@ var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render = function render(
90676
90676
  "row-key": _vm.getRowKeys
90677
90677
  },
90678
90678
  on: {
90679
- "selection-change": _vm.switchMail
90679
+ "selection-change": _vm.switchMail,
90680
+ "row-contextmenu": _vm.rightClick
90680
90681
  }
90681
90682
  }, [_c('el-table-column', {
90682
90683
  attrs: {
@@ -90917,27 +90918,20 @@ var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render = function render(
90917
90918
  "current-change": _vm.changePage,
90918
90919
  "size-change": _vm.changeSize
90919
90920
  }
90920
- }) : _vm._e()], 1)]), _c('SetTag', {
90921
- ref: "refTag",
90921
+ }) : _vm._e()], 1)]), _vm.isShowSettag ? _c('AddTagsDialog', {
90922
90922
  attrs: {
90923
- "is-show": _vm.isShowSettag,
90924
- "id": _vm.mailId,
90925
- "tagList": _vm.tagList,
90926
- "mailTags": _vm.mailTags,
90927
- "defaultTop": _vm.defaultTop
90923
+ "isShowDialog": _vm.isShowSettag,
90924
+ "defaultTag": _vm.selectedTags
90928
90925
  },
90929
90926
  on: {
90930
- "changeTagsHeight": _vm.changeTagsHeight,
90931
- "addTag": _vm.handleAddTag,
90932
- "initTag": _vm.initTagList,
90933
- "initInbox": _vm.initInbox,
90934
- "close": function ($event) {
90927
+ "updateTag": _vm.updateTag,
90928
+ "closeAddTagsDialog": function ($event) {
90935
90929
  _vm.isShowSettag = false;
90936
90930
  }
90937
90931
  }
90938
- })], 1);
90932
+ }) : _vm._e()], 1);
90939
90933
  };
90940
- var edm_inboxvue_type_template_id_2eb0a98a_scoped_true_staticRenderFns = [];
90934
+ var edm_inboxvue_type_template_id_18de8074_scoped_true_staticRenderFns = [];
90941
90935
 
90942
90936
  ;// CONCATENATED MODULE: ./node_modules/jsencrypt/lib/lib/jsbn/util.js
90943
90937
  var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz";
@@ -97395,7 +97389,7 @@ async function tags() {
97395
97389
 
97396
97390
  // 删除
97397
97391
  async function delTag(id) {
97398
- let res = await request_del(`/edm/tag/delTag/${id}`);
97392
+ let res = await del(`/edm/tag/delTag/${id}`);
97399
97393
  if (res.code === "0") {
97400
97394
  return true;
97401
97395
  }
@@ -97404,7 +97398,7 @@ async function delTag(id) {
97404
97398
 
97405
97399
  // 添加标签
97406
97400
  async function addTag(params) {
97407
- let res = await request_post(`/edm/tag/addSign`, params);
97401
+ let res = await post(`/edm/tag/addSign`, params);
97408
97402
  if (res) {
97409
97403
  return res;
97410
97404
  }
@@ -97580,6 +97574,21 @@ function checkEmailOwner(params) {
97580
97574
  function addBlogRel(data) {
97581
97575
  return request_post(`/woto-crm/planBlog/addBlogRel`, data);
97582
97576
  }
97577
+
97578
+ // 获取标签
97579
+ function getTags(params) {
97580
+ return request_get(`/edm/tag/searchTags`, params);
97581
+ }
97582
+
97583
+ // 删除标签
97584
+ function delTags(id) {
97585
+ return request_del(`/edm/tag/delTag/${id}`);
97586
+ }
97587
+
97588
+ // 增加标签
97589
+ function addTags(data) {
97590
+ return request_post(`/edm/tag/addSign`, data);
97591
+ }
97583
97592
  ;// CONCATENATED MODULE: ./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
97584
97593
  var edm_searchvue_type_template_id_4d651f22_scoped_true_render = function render() {
97585
97594
  var _vm = this,
@@ -97781,541 +97790,6 @@ var edm_search_component = normalizeComponent(
97781
97790
  )
97782
97791
 
97783
97792
  /* harmony default export */ var edm_search = (edm_search_component.exports);
97784
- ;// CONCATENATED MODULE: ./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/SetTag/index.vue?vue&type=template&id=7f750814&scoped=true
97785
- var SetTagvue_type_template_id_7f750814_scoped_true_render = function render() {
97786
- var _vm = this,
97787
- _c = _vm._self._c;
97788
- return _c('div', [_c('el-dialog', {
97789
- ref: "tagDialog",
97790
- staticClass: "edm-tag-dialog",
97791
- attrs: {
97792
- "visible": _vm.isShow,
97793
- "rendered": "",
97794
- "close-on-click-modal": false,
97795
- "before-close": _vm.close,
97796
- "title": _vm.$t('inboxTagDialog.title'),
97797
- "width": "440px"
97798
- },
97799
- on: {
97800
- "update:visible": function ($event) {
97801
- _vm.isShow = $event;
97802
- },
97803
- "closed": _vm.handleClose,
97804
- "opened": function ($event) {
97805
- return _vm.opened(true);
97806
- }
97807
- }
97808
- }, [_c('div', {
97809
- staticClass: "popup"
97810
- }, [_c('div', {
97811
- directives: [{
97812
- name: "loading",
97813
- rawName: "v-loading",
97814
- value: _vm.loading,
97815
- expression: "loading"
97816
- }],
97817
- ref: "tagList",
97818
- staticClass: "tag-list outTag"
97819
- }, [_vm._l(_vm.tagList, function (t, i) {
97820
- return _c('div', {
97821
- key: i,
97822
- staticClass: "tag-item cursor-pointer mb12 mr12",
97823
- class: t.tagType === 1 && 'defaultTag',
97824
- style: {
97825
- 'background-color': t.tagColor,
97826
- color: '#ffffff',
97827
- 'border-radius': '4px'
97828
- },
97829
- on: {
97830
- "click": function ($event) {
97831
- return _vm.useTag(t);
97832
- }
97833
- }
97834
- }, [_c('span', {
97835
- ref: "tagTxt",
97836
- refInFor: true,
97837
- staticClass: "tagText"
97838
- }, [_vm._v(_vm._s(t.tag))]), t.tagType === 2 ? _c('button', {
97839
- staticClass: "tagbg",
97840
- on: {
97841
- "click": function ($event) {
97842
- $event.stopPropagation();
97843
- return _vm.del(t.id);
97844
- }
97845
- }
97846
- }, [_c('i', {
97847
- staticClass: "dss-iconfont icon-close"
97848
- })]) : _vm._e()]);
97849
- }), _vm.showAddButton ? _c('div', {
97850
- staticClass: "tag-item-add cursor-pointer addTagBlock"
97851
- }, [_vm.showAddButton ? _c('span', {
97852
- staticClass: "popup-span",
97853
- on: {
97854
- "click": _vm.handlePlus
97855
- }
97856
- }, [_c('i', {
97857
- staticClass: "el-icon-plus"
97858
- })]) : _vm._e()]) : _vm._e()], 2), _vm.showAddTag ? _c('div', {
97859
- staticClass: "popup-form pad5"
97860
- }, [_c('el-input', {
97861
- staticStyle: {
97862
- "width": "80px"
97863
- },
97864
- attrs: {
97865
- "placeholder": _vm.$t('inboxTagDialog.default')
97866
- },
97867
- model: {
97868
- value: _vm.form.tag,
97869
- callback: function ($$v) {
97870
- _vm.$set(_vm.form, "tag", $$v);
97871
- },
97872
- expression: "form.tag"
97873
- }
97874
- }), _c('div', {
97875
- staticClass: "popup-colorPicker"
97876
- }, [_c('div', {
97877
- staticClass: "custom-picker-icon"
97878
- }, [_c('i', {
97879
- staticClass: "dss-iconfont icon-tianse",
97880
- style: {
97881
- color: _vm.iconColor
97882
- }
97883
- })]), _c('el-color-picker', {
97884
- attrs: {
97885
- "predefine": _vm.predefineColors,
97886
- "size": "mini",
97887
- "color-format": "hex"
97888
- },
97889
- on: {
97890
- "change": _vm.pickerChange
97891
- },
97892
- model: {
97893
- value: _vm.form.tag_color,
97894
- callback: function ($$v) {
97895
- _vm.$set(_vm.form, "tag_color", $$v);
97896
- },
97897
- expression: "form.tag_color"
97898
- }
97899
- })], 1), _c('div', [_c('button', {
97900
- staticClass: "btn-check",
97901
- on: {
97902
- "click": _vm.addTag
97903
- }
97904
- }, [_c('i', {
97905
- staticClass: "el-icon-check"
97906
- })])]), _c('div', [_c('button', {
97907
- staticClass: "btn-close",
97908
- on: {
97909
- "click": function ($event) {
97910
- _vm.showAddTag = false;
97911
- _vm.showAddButton = true;
97912
- }
97913
- }
97914
- }, [_c('i', {
97915
- staticClass: "el-icon-close"
97916
- })])])], 1) : _vm._e(), _c('div', {
97917
- staticClass: "tagtxt"
97918
- }, [_vm._v(_vm._s(_vm.$t("inboxTagDialog.selectTag")))]), _c('div', {
97919
- staticClass: "tag-list selectTagList"
97920
- }, _vm._l(_vm.tagSelectData, function (t, i) {
97921
- return _c('div', {
97922
- key: i,
97923
- staticClass: "tag-item cursor-pointer mb12 mr12",
97924
- class: t.tagType === 1 && 'defaultTag',
97925
- style: {
97926
- 'background-color': t.tagColor,
97927
- color: '#ffffff',
97928
- 'border-radius': '4px'
97929
- }
97930
- }, [_c('span', {
97931
- staticClass: "tagText"
97932
- }, [_vm._v(_vm._s(t.tag))]), _c('button', {
97933
- staticClass: "tagbg",
97934
- on: {
97935
- "click": function ($event) {
97936
- $event.stopPropagation();
97937
- return _vm.handleSelectTag(t.id);
97938
- }
97939
- }
97940
- }, [_c('i', {
97941
- staticClass: "dss-iconfont icon-close"
97942
- })])]);
97943
- }), 0)]), _c('div', {
97944
- staticClass: "popup-foot"
97945
- }, [_c('button', {
97946
- staticClass: "dialog-btn dialog-btn-linear mr24",
97947
- on: {
97948
- "click": function ($event) {
97949
- return _vm.close();
97950
- }
97951
- }
97952
- }, [_vm._v(" " + _vm._s(_vm.$t("inboxTagDialog.cancel")) + " ")]), _c('button', {
97953
- staticClass: "dialog-btn dialog-btn-face",
97954
- on: {
97955
- "click": function ($event) {
97956
- return _vm.affirm();
97957
- }
97958
- }
97959
- }, [_vm._v(" " + _vm._s(_vm.$t("inboxTagDialog.confirm")) + " ")])])])], 1);
97960
- };
97961
- var SetTagvue_type_template_id_7f750814_scoped_true_staticRenderFns = [];
97962
-
97963
- ;// CONCATENATED MODULE: ./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/SetTag/index.vue?vue&type=script&lang=js
97964
-
97965
-
97966
-
97967
- /* harmony default export */ var SetTagvue_type_script_lang_js = ({
97968
- name: "edm_tag",
97969
- props: {
97970
- // 是否显示
97971
- isShow: {
97972
- default: false,
97973
- type: Boolean
97974
- },
97975
- // 邮件id
97976
- id: {
97977
- default: "",
97978
- type: String
97979
- },
97980
- // 已选标签
97981
- mailTags: {
97982
- default: () => [],
97983
- type: Array
97984
- },
97985
- // 邮件详情
97986
- tagList: {
97987
- default: () => [],
97988
- type: Array
97989
- },
97990
- // 标签列表默认距离顶部4行高度
97991
- defaultTop: {
97992
- type: Number,
97993
- default: 118
97994
- }
97995
- },
97996
- data() {
97997
- return {
97998
- iconColor: "#1990FF",
97999
- findTagName: "",
98000
- // 标签名称用于生成新的标签列表
98001
- loading: false,
98002
- isExpand: true,
98003
- // 是否展开
98004
- uuid: uuid.v4(),
98005
- showUnfold: false,
98006
- showAddButton: true,
98007
- showAddTag: false,
98008
- tagData: [],
98009
- // 标签数据
98010
- tagSelectData: [],
98011
- mailId: "",
98012
- form: {
98013
- // 表单
98014
- tag: "",
98015
- tag_color: "gray"
98016
- },
98017
- predefineColors: ["#FF5277", "#FF9EC3", "#BF9EFF", "#4BB792", "#FFAA36", "#52BAFF", "#5F52FF", "#27C9B6"] // 预定义颜色
98018
- };
98019
- },
98020
- mounted() {
98021
- this.mailId = this.id;
98022
- },
98023
- watch: {
98024
- id(id) {
98025
- // 监控 mailId
98026
- this.form.tag = "";
98027
- this.showAddTag = false;
98028
- if (id) {
98029
- this.mailId = id;
98030
- }
98031
- },
98032
- mailTags(value) {
98033
- this.tagSelectData = value;
98034
- }
98035
- },
98036
- methods: {
98037
- opened(defaultTagList_status, status) {
98038
- this.$nextTick(() => {
98039
- this.loading = false;
98040
- this.showAddTag = false;
98041
- this.showAddButton = true;
98042
- this.form.tag = "";
98043
- this.setTagDistanceTop(defaultTagList_status, status);
98044
- if (status) {
98045
- //this.$emit('changeTagsHeight', false, this.findTagName)
98046
- // this.isExpand = false
98047
- } else {
98048
- // this.loading = true
98049
- // this.showAddTag = false
98050
- // this.showAddButton = true
98051
- // this.form.tag = ''
98052
- // this.setTagDistanceTop(defaultTagList_status, status)
98053
- }
98054
- });
98055
- },
98056
- // 换行计算(判断标签列表高度是否大于4行)
98057
- setTagDistanceTop(defaultTagList_status, status) {
98058
- //换行计算
98059
- let arr_tagTxt = this.$refs.tagTxt;
98060
- if (!arr_tagTxt) {
98061
- this.loading = false;
98062
- }
98063
- let tag_temp = [];
98064
- //console.log('arrtxt', arr_tagTxt)
98065
- if (arr_tagTxt) {
98066
- arr_tagTxt.forEach((item, i) => {
98067
- item.parentNode.parentNode.scrollTop = 0;
98068
- item.scrollTop = 0;
98069
- let pnode = item.parentNode.parentNode.getBoundingClientRect().top;
98070
- let cnode = item.getBoundingClientRect().top;
98071
- let distance = parseInt(cnode - pnode);
98072
- tag_temp.push({
98073
- name: item.innerText,
98074
- top: distance
98075
- });
98076
- });
98077
- console.log("tag_temp", tag_temp);
98078
- let find = tag_temp.filter(f => f.top > this.defaultTop);
98079
-
98080
- // 是否大于4行的高度
98081
- this.showUnfold = false;
98082
- // 判断是否大于4行的高度
98083
- if (find.length > 0) {
98084
- this.showUnfold = true;
98085
- let findTag = tag_temp.filter(f => f.top > this.defaultTop);
98086
- if (findTag.length > 0) {
98087
- let find_defaultTop = tag_temp.filter(f => f.top === this.defaultTop);
98088
- console.log("f", find_defaultTop);
98089
- this.findTagName = find_defaultTop[find_defaultTop.length - 2].name;
98090
- if (defaultTagList_status) {
98091
- setTimeout(() => {
98092
- if (status) {
98093
- this.$emit("changeTagsHeight", status.val, this.findTagName);
98094
- } else {
98095
- // 第一次加载 显示全部
98096
- this.$emit("changeTagsHeight", false, this.findTagName);
98097
- }
98098
-
98099
- // 显示展示状态
98100
- if (status) {
98101
- this.isExpand = status.val;
98102
- } else {
98103
- this.isExpand = false;
98104
- }
98105
- // 关闭loading 效果
98106
- this.loading = false;
98107
- }, 500);
98108
- } else {
98109
- // 显示默认数据
98110
- this.$emit("changeTagsHeight", null);
98111
- // 显示收缩状态
98112
- //this.isExpand = false
98113
- }
98114
- }
98115
- } else {
98116
- // 显示收缩状态
98117
- this.isExpand = false;
98118
- // 关闭loading 效果
98119
- this.loading = false;
98120
- }
98121
- }
98122
- },
98123
- handleClose() {
98124
- // 显示默认数据
98125
- this.$emit("changeTagsHeight", null);
98126
- // 显示展示状态
98127
- this.isExpand = true;
98128
- },
98129
- // 确认
98130
- affirm() {
98131
- if (this.tagSelectData.length === 0) {
98132
- this.$message({
98133
- type: "warning",
98134
- message: this.$t("inboxTagDialog.bindTagTip")
98135
- });
98136
- return;
98137
- } else {
98138
- let arr = [];
98139
- this.tagSelectData.map(item => {
98140
- arr.push({
98141
- tag: item.tag,
98142
- tagColor: item.tagColor
98143
- });
98144
- });
98145
- let params = {
98146
- mailId: this.mailId,
98147
- tags: arr
98148
- };
98149
- bindTag(params).then(res => {
98150
- if (res) {
98151
- this.$message({
98152
- type: "success",
98153
- message: this.$t("inboxTagDialog.bindSuccess")
98154
- });
98155
- this.$emit("initInbox");
98156
- }
98157
- });
98158
- }
98159
- },
98160
- // 添加输入框
98161
- handlePlus() {
98162
- this.showAddTag = true;
98163
- this.showAddButton = false;
98164
- this.form.tag = "";
98165
- },
98166
- // 添加标签
98167
- addTag() {
98168
- if (this.validateTag()) {
98169
- addTag({
98170
- tag: this.form.tag,
98171
- tagColor: this.form.tag_color
98172
- }).then(res => {
98173
- this.form.tag = "";
98174
- if (res && res.code === "0") {
98175
- this.$message({
98176
- type: "success",
98177
- message: this.$t("inboxTagDialog.addTagSuccess")
98178
- });
98179
- this.$emit("addTag", {
98180
- val: this.isExpand
98181
- });
98182
- } else if (res && res.code === "-1") {
98183
- this.$message({
98184
- type: "warning",
98185
- message: this.$t("inboxTagDialog.addTagFail")
98186
- });
98187
- } else if (res && res.code === "1") {
98188
- this.$message({
98189
- type: "warning",
98190
- message: this.$t("inboxTagDialog.addTagFail")
98191
- });
98192
- }
98193
- });
98194
- }
98195
- },
98196
- // 校验标签
98197
- validateTag() {
98198
- // 添加校验
98199
- let result = true;
98200
- let tagName = this.form.tag;
98201
- if (tagName === "") {
98202
- this.$message({
98203
- type: "warning",
98204
- message: this.$t("inboxTagDialog.default")
98205
- });
98206
- result = !result;
98207
- }
98208
- // 中文校验
98209
- let pattern_zh = new RegExp("[\u4E00-\u9FA5]+");
98210
- if (pattern_zh.test(tagName)) {
98211
- if (tagName.length > 15) {
98212
- this.$message({
98213
- type: "warning",
98214
- message: this.$t("inboxTagDialog.tagMaxLen")
98215
- });
98216
- result = !result;
98217
- }
98218
- } else {
98219
- if (tagName.length > 12) {
98220
- this.$message({
98221
- type: "warning",
98222
- message: this.$t("inboxTagDialog.tagMaxLen")
98223
- });
98224
- result = !result;
98225
- }
98226
- }
98227
- return result;
98228
- },
98229
- // 删除已选择标签
98230
- handleSelectTag(id) {
98231
- let findTag = this.tagSelectData.filter(f => f.id !== id);
98232
- this.tagSelectData = findTag;
98233
- },
98234
- // 显示添加标签
98235
- handleShowAddTag() {
98236
- this.showAddTag = true;
98237
- },
98238
- // 使用标签
98239
- useTag(obj) {
98240
- let isExist = this.tagSelectData.find(f => f.id === obj.id);
98241
- if (!isExist) {
98242
- this.tagSelectData.push({
98243
- id: obj.id,
98244
- tag: obj.tag,
98245
- tagColor: obj.tagColor,
98246
- tagType: obj.tagType
98247
- });
98248
- }
98249
- },
98250
- // 删除标签
98251
- del(id) {
98252
- delTag(id).then(res => {
98253
- if (res) {
98254
- this.$emit("init");
98255
- this.$message({
98256
- type: "success",
98257
- message: this.$t("inboxTagDialog.delTagSuccess")
98258
- });
98259
- }
98260
- this.$emit("initTag", {
98261
- val: this.isExpand
98262
- });
98263
- });
98264
- },
98265
- // 颜色改变
98266
- pickerChange(v) {
98267
- this.iconColor = v;
98268
- },
98269
- // 关闭弹窗
98270
- close() {
98271
- this.$emit("close");
98272
- },
98273
- // 标题展开/收缩
98274
- onUnfold() {
98275
- this.isExpand = !this.isExpand;
98276
- if (this.isExpand) {
98277
- this.$emit("changeTagsHeight", this.isExpand, this.findTagName);
98278
- } else {
98279
- // 展开
98280
- this.$emit("changeTagsHeight", this.isExpand, this.findTagName);
98281
- }
98282
- }
98283
- }
98284
- });
98285
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue?vue&type=script&lang=js
98286
- /* harmony default export */ var EdmElement_SetTagvue_type_script_lang_js = (SetTagvue_type_script_lang_js);
98287
- ;// CONCATENATED MODULE: ./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/SetTag/index.vue?vue&type=style&index=0&id=7f750814&prod&lang=scss&scoped=true
98288
- // extracted by mini-css-extract-plugin
98289
-
98290
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue?vue&type=style&index=0&id=7f750814&prod&lang=scss&scoped=true
98291
-
98292
- ;// CONCATENATED MODULE: ./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/SetTag/index.vue?vue&type=style&index=1&id=7f750814&prod&lang=scss&scoped=true
98293
- // extracted by mini-css-extract-plugin
98294
-
98295
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue?vue&type=style&index=1&id=7f750814&prod&lang=scss&scoped=true
98296
-
98297
- ;// CONCATENATED MODULE: ./src/components/EdmElement/SetTag/index.vue
98298
-
98299
-
98300
-
98301
- ;
98302
-
98303
-
98304
-
98305
- /* normalize component */
98306
-
98307
- var SetTag_component = normalizeComponent(
98308
- EdmElement_SetTagvue_type_script_lang_js,
98309
- SetTagvue_type_template_id_7f750814_scoped_true_render,
98310
- SetTagvue_type_template_id_7f750814_scoped_true_staticRenderFns,
98311
- false,
98312
- null,
98313
- "7f750814",
98314
- null
98315
-
98316
- )
98317
-
98318
- /* harmony default export */ var SetTag = (SetTag_component.exports);
98319
97793
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
98320
97794
  var web_url_search_params_delete = __webpack_require__(4603);
98321
97795
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
@@ -99050,6 +98524,410 @@ function getMoneySymbolEvt(val) {
99050
98524
  });
99051
98525
  return symbol;
99052
98526
  }
98527
+ ;// CONCATENATED MODULE: ./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/AddTag/addTagsDialog.vue?vue&type=template&id=0ee37952&scoped=true
98528
+ var addTagsDialogvue_type_template_id_0ee37952_scoped_true_render = function render() {
98529
+ var _vm = this,
98530
+ _c = _vm._self._c;
98531
+ return _c('el-dialog', {
98532
+ attrs: {
98533
+ "visible": _vm.isShowDialog,
98534
+ "title": _vm.$t('NP.np65'),
98535
+ "close-on-click-modal": false,
98536
+ "width": "600px",
98537
+ "custom-class": "add-tags-dialog",
98538
+ "append-to-body": _vm.appendBody
98539
+ },
98540
+ on: {
98541
+ "update:visible": function ($event) {
98542
+ _vm.isShowDialog = $event;
98543
+ },
98544
+ "close": _vm.closeAddTagsDialog
98545
+ }
98546
+ }, [_c('div', {
98547
+ directives: [{
98548
+ name: "loading",
98549
+ rawName: "v-loading",
98550
+ value: _vm.loading,
98551
+ expression: "loading"
98552
+ }]
98553
+ }, [_c('div', {
98554
+ staticClass: "operate-box"
98555
+ }, [_vm.optType === 'search' ? _c('div', {
98556
+ staticClass: "search-tag"
98557
+ }, [_c('el-input', {
98558
+ staticClass: "search-input",
98559
+ attrs: {
98560
+ "placeholder": _vm.$t('NP.np178'),
98561
+ "clearable": ""
98562
+ },
98563
+ on: {
98564
+ "clear": _vm.getPublishTags
98565
+ },
98566
+ nativeOn: {
98567
+ "keyup": function ($event) {
98568
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
98569
+ return _vm.getPublishTags.apply(null, arguments);
98570
+ }
98571
+ },
98572
+ model: {
98573
+ value: _vm.searchKeywords,
98574
+ callback: function ($$v) {
98575
+ _vm.searchKeywords = $$v;
98576
+ },
98577
+ expression: "searchKeywords"
98578
+ }
98579
+ }, [_c('i', {
98580
+ staticClass: "iconfont icon-a-sousuoxiao15x",
98581
+ attrs: {
98582
+ "slot": "suffix"
98583
+ },
98584
+ on: {
98585
+ "click": _vm.getPublishTags
98586
+ },
98587
+ slot: "suffix"
98588
+ })]), _c('el-button', {
98589
+ attrs: {
98590
+ "type": "primary",
98591
+ "size": "small"
98592
+ },
98593
+ on: {
98594
+ "click": _vm.handleAddTag
98595
+ }
98596
+ }, [_c('i', {
98597
+ staticClass: "el-icon-plus"
98598
+ }), _vm._v(_vm._s(_vm.$t("NP.np179")))])], 1) : _c('div', {
98599
+ staticClass: "add-tag"
98600
+ }, [_c('el-input', {
98601
+ attrs: {
98602
+ "placeholder": _vm.$t('inboxTagDialog.default')
98603
+ },
98604
+ model: {
98605
+ value: _vm.tagInputValue,
98606
+ callback: function ($$v) {
98607
+ _vm.tagInputValue = $$v;
98608
+ },
98609
+ expression: "tagInputValue"
98610
+ }
98611
+ }, [_c('div', {
98612
+ staticClass: "popup-colorPicker",
98613
+ attrs: {
98614
+ "slot": "suffix"
98615
+ },
98616
+ slot: "suffix"
98617
+ }, [_c('div', {
98618
+ staticClass: "custom-picker-icon"
98619
+ }, [_c('i', {
98620
+ staticClass: "dss-iconfont icon-tianse",
98621
+ style: {
98622
+ color: _vm.iconColor
98623
+ }
98624
+ }), _c('el-color-picker', {
98625
+ attrs: {
98626
+ "predefine": _vm.predefineColors,
98627
+ "size": "mini",
98628
+ "color-format": "hex"
98629
+ },
98630
+ on: {
98631
+ "change": _vm.pickerChange
98632
+ },
98633
+ model: {
98634
+ value: _vm.tagColor,
98635
+ callback: function ($$v) {
98636
+ _vm.tagColor = $$v;
98637
+ },
98638
+ expression: "tagColor"
98639
+ }
98640
+ })], 1)])]), _c('div', {
98641
+ staticClass: "add",
98642
+ on: {
98643
+ "click": _vm.addPublishTag
98644
+ }
98645
+ }, [_c('i', {
98646
+ staticClass: "el-icon-check"
98647
+ })]), _c('div', {
98648
+ staticClass: "cancel",
98649
+ on: {
98650
+ "click": _vm.handleCancelAdd
98651
+ }
98652
+ }, [_c('i', {
98653
+ staticClass: "el-icon-close"
98654
+ })])], 1)]), _c('div', {
98655
+ staticClass: "all-tag"
98656
+ }, _vm._l(_vm.allTagsArr, function (tag) {
98657
+ return _c('el-tag', {
98658
+ key: tag.id,
98659
+ staticClass: "tag-item",
98660
+ style: {
98661
+ 'background-color': tag.tagColor
98662
+ },
98663
+ on: {
98664
+ "click": function ($event) {
98665
+ return _vm.selectTag(tag);
98666
+ }
98667
+ }
98668
+ }, [_vm._v(_vm._s(tag.tag)), tag.tagType === 2 ? _c('i', {
98669
+ staticClass: "dss-iconfont icon-close",
98670
+ on: {
98671
+ "click": function ($event) {
98672
+ $event.stopPropagation();
98673
+ return _vm.deletePublishTag(tag.id);
98674
+ }
98675
+ }
98676
+ }) : _vm._e()]);
98677
+ }), 1), _c('div', {
98678
+ staticClass: "title"
98679
+ }, [_vm._v(_vm._s(_vm.$t("inboxTagDialog.selectTag")) + ":")]), _c('div', {
98680
+ staticClass: "selected-tags"
98681
+ }, _vm._l(_vm.selectedTagsArr, function (tag) {
98682
+ return _c('el-tag', {
98683
+ key: tag.tag,
98684
+ staticClass: "tag-item",
98685
+ style: {
98686
+ 'background-color': tag.tagColor
98687
+ }
98688
+ }, [_vm._v(_vm._s(tag.tag)), _c('i', {
98689
+ staticClass: "dss-iconfont icon-close",
98690
+ on: {
98691
+ "click": function ($event) {
98692
+ return _vm.clearTag(tag.tag);
98693
+ }
98694
+ }
98695
+ })]);
98696
+ }), 1)]), _c('span', {
98697
+ staticClass: "dialog-footer",
98698
+ attrs: {
98699
+ "slot": "footer"
98700
+ },
98701
+ slot: "footer"
98702
+ }, [_c('el-button', {
98703
+ on: {
98704
+ "click": _vm.cancelAddTags
98705
+ }
98706
+ }, [_vm._v(_vm._s(_vm.$t("common.cancle")))]), _c('el-button', {
98707
+ attrs: {
98708
+ "type": "primary"
98709
+ },
98710
+ on: {
98711
+ "click": _vm.confirmAddTags
98712
+ }
98713
+ }, [_vm._v(" " + _vm._s(_vm.$t("common.confirm")) + " ")])], 1)]);
98714
+ };
98715
+ var addTagsDialogvue_type_template_id_0ee37952_scoped_true_staticRenderFns = [];
98716
+
98717
+ ;// CONCATENATED MODULE: ./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/AddTag/addTagsDialog.vue?vue&type=script&lang=js
98718
+
98719
+
98720
+ /* harmony default export */ var addTagsDialogvue_type_script_lang_js = ({
98721
+ props: {
98722
+ isShowDialog: {
98723
+ type: Boolean,
98724
+ default: false
98725
+ },
98726
+ defaultTag: {
98727
+ type: Array,
98728
+ default: () => []
98729
+ },
98730
+ appendBody: {
98731
+ type: Boolean,
98732
+ default: false
98733
+ },
98734
+ isOnlyTagName: {
98735
+ type: Boolean,
98736
+ default: false
98737
+ }
98738
+ },
98739
+ data() {
98740
+ return {
98741
+ loading: false,
98742
+ searchKeywords: "",
98743
+ tagInputValue: "",
98744
+ tagColor: "#808080",
98745
+ iconColor: "#808080",
98746
+ predefineColors: ["#FF5277", "#FF9EC3", "#BF9EFF", "#4BB792", "#FFAA36", "#52BAFF", "#5F52FF", "#27C9B6"],
98747
+ // 预定义颜色
98748
+ allTagsArr: [],
98749
+ selectedTagsArr: [],
98750
+ optType: "search"
98751
+ };
98752
+ },
98753
+ async created() {
98754
+ await this.getPublishTags();
98755
+ this.initDefaultTag();
98756
+ },
98757
+ methods: {
98758
+ // 回显默认值
98759
+ initDefaultTag() {
98760
+ const defaultTag = [];
98761
+ this.defaultTag.forEach(tag => {
98762
+ const tagObj = this.allTagsArr.find(val => val.tag === tag);
98763
+ if (tagObj) {
98764
+ defaultTag.push({
98765
+ ...tagObj
98766
+ });
98767
+ } else {
98768
+ defaultTag.push({
98769
+ tag,
98770
+ tagColor: "#808080",
98771
+ tagType: 2
98772
+ });
98773
+ }
98774
+ });
98775
+ this.selectedTagsArr = defaultTag;
98776
+ },
98777
+ // 关闭
98778
+ closeAddTagsDialog() {
98779
+ this.$emit("closeAddTagsDialog");
98780
+ },
98781
+ // 取消
98782
+ cancelAddTags() {
98783
+ this.closeAddTagsDialog();
98784
+ },
98785
+ // 确定
98786
+ confirmAddTags() {
98787
+ const tags = this.selectedTagsArr.map(item => this.isOnlyTagName ? item.tag : item);
98788
+ console.log(this.selectedTagsArr);
98789
+ this.$emit("updateTag", tags);
98790
+ this.closeAddTagsDialog();
98791
+ },
98792
+ // 颜色改变
98793
+ pickerChange(v) {
98794
+ this.iconColor = v;
98795
+ },
98796
+ handleAddTag() {
98797
+ this.optType = "add";
98798
+ this.searchKeywords = "";
98799
+ },
98800
+ handleCancelAdd() {
98801
+ this.optType = "search";
98802
+ },
98803
+ // 获取标签池
98804
+ async getPublishTags() {
98805
+ try {
98806
+ this.loading = true;
98807
+ const res = await getTags({
98808
+ tagValue: this.searchKeywords
98809
+ });
98810
+ if (res.code === "0") {
98811
+ this.allTagsArr = res.data || [];
98812
+ }
98813
+ } catch (error) {
98814
+ console.log(error);
98815
+ } finally {
98816
+ this.loading = false;
98817
+ }
98818
+ },
98819
+ // 增加标签池
98820
+ async addPublishTag() {
98821
+ try {
98822
+ if (!this.validateTag()) return false;
98823
+ const res = await addTags({
98824
+ tag: this.tagInputValue,
98825
+ tagColor: this.tagColor
98826
+ });
98827
+ if (res.code === "0") {
98828
+ this.selectedTagsArr.push({
98829
+ tag: this.tagInputValue,
98830
+ tagColor: this.tagColor
98831
+ });
98832
+ this.tagInputValue = "";
98833
+ this.getPublishTags();
98834
+ } else {
98835
+ this.$message.error(res.message);
98836
+ }
98837
+ } catch (error) {
98838
+ console.log(error);
98839
+ }
98840
+ },
98841
+ // 删除标签池
98842
+ async deletePublishTag(id) {
98843
+ try {
98844
+ const res = await delTags(id);
98845
+ if (res.code === "0") {
98846
+ setTimeout(() => {
98847
+ this.getPublishTags();
98848
+ }, 500);
98849
+ }
98850
+ } catch (error) {
98851
+ console.log(error);
98852
+ }
98853
+ },
98854
+ // 校验标签
98855
+ validateTag() {
98856
+ const tagName = this.tagInputValue;
98857
+ if (tagName === "") {
98858
+ this.$message({
98859
+ type: "warning",
98860
+ message: this.$t("inboxTagDialog.default")
98861
+ });
98862
+ return false;
98863
+ }
98864
+ // 中文校验
98865
+ const pattern_zh = new RegExp("[\u4E00-\u9FA5]+");
98866
+ if (pattern_zh.test(tagName)) {
98867
+ if (tagName.length > 15) {
98868
+ this.$message({
98869
+ type: "warning",
98870
+ message: this.$t("inboxTagDialog.tagMaxLen")
98871
+ });
98872
+ return false;
98873
+ }
98874
+ } else {
98875
+ if (tagName.length > 12) {
98876
+ this.$message({
98877
+ type: "warning",
98878
+ message: this.$t("inboxTagDialog.tagMaxLen")
98879
+ });
98880
+ return false;
98881
+ }
98882
+ }
98883
+ return true;
98884
+ },
98885
+ // 选择标签
98886
+ selectTag(tag) {
98887
+ const idx = this.selectedTagsArr.findIndex(v => v.tag === tag.tag);
98888
+ if (idx > -1) return false;
98889
+ this.selectedTagsArr.push(tag);
98890
+ },
98891
+ // 删除已经选择的标签
98892
+ clearTag(tag) {
98893
+ this.selectedTagsArr = this.selectedTagsArr.filter(v => v.tag !== tag);
98894
+ }
98895
+ }
98896
+ });
98897
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue?vue&type=script&lang=js
98898
+ /* harmony default export */ var AddTag_addTagsDialogvue_type_script_lang_js = (addTagsDialogvue_type_script_lang_js);
98899
+ ;// CONCATENATED MODULE: ./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/AddTag/addTagsDialog.vue?vue&type=style&index=0&id=0ee37952&prod&lang=scss&scoped=true
98900
+ // extracted by mini-css-extract-plugin
98901
+
98902
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue?vue&type=style&index=0&id=0ee37952&prod&lang=scss&scoped=true
98903
+
98904
+ ;// CONCATENATED MODULE: ./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/AddTag/addTagsDialog.vue?vue&type=style&index=1&id=0ee37952&prod&lang=scss
98905
+ // extracted by mini-css-extract-plugin
98906
+
98907
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue?vue&type=style&index=1&id=0ee37952&prod&lang=scss
98908
+
98909
+ ;// CONCATENATED MODULE: ./src/components/AddTag/addTagsDialog.vue
98910
+
98911
+
98912
+
98913
+ ;
98914
+
98915
+
98916
+
98917
+ /* normalize component */
98918
+
98919
+ var addTagsDialog_component = normalizeComponent(
98920
+ AddTag_addTagsDialogvue_type_script_lang_js,
98921
+ addTagsDialogvue_type_template_id_0ee37952_scoped_true_render,
98922
+ addTagsDialogvue_type_template_id_0ee37952_scoped_true_staticRenderFns,
98923
+ false,
98924
+ null,
98925
+ "0ee37952",
98926
+ null
98927
+
98928
+ )
98929
+
98930
+ /* harmony default export */ var addTagsDialog = (addTagsDialog_component.exports);
99053
98931
  ;// CONCATENATED MODULE: ./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/edm-inbox/index.vue?vue&type=script&lang=js
99054
98932
 
99055
98933
 
@@ -99062,7 +98940,7 @@ function getMoneySymbolEvt(val) {
99062
98940
  name: "edm-inbox",
99063
98941
  components: {
99064
98942
  Search: edm_search,
99065
- SetTag: SetTag
98943
+ AddTagsDialog: addTagsDialog
99066
98944
  },
99067
98945
  props: {
99068
98946
  sourceApp: {
@@ -99127,7 +99005,9 @@ function getMoneySymbolEvt(val) {
99127
99005
  // 第一次加载缓存所有的标签
99128
99006
  bloggerArr: [],
99129
99007
  //选中项红人
99130
- selectedReplyIds: [] //选中红人回复id
99008
+ selectedReplyIds: [],
99009
+ //选中红人回复id
99010
+ selectedTags: []
99131
99011
  };
99132
99012
  },
99133
99013
  computed: {
@@ -99155,7 +99035,6 @@ function getMoneySymbolEvt(val) {
99155
99035
  this.searchForm = JSON.parse(localStorage.getItem("searchFormInbox"));
99156
99036
  }
99157
99037
  this.$nextTick(() => {
99158
- this.initTags();
99159
99038
  this.init();
99160
99039
  this.tableHeight = window.innerHeight - this.$refs["table"].$el.getBoundingClientRect().top - 66;
99161
99040
  });
@@ -99280,32 +99159,6 @@ function getMoneySymbolEvt(val) {
99280
99159
  }
99281
99160
  });
99282
99161
  },
99283
- // 初始化标签 ,val表示是否展开
99284
- initTags(val) {
99285
- this.tags = [];
99286
- tags().then(res => {
99287
- if (res) {
99288
- this.tagList = res;
99289
- this.defaultTagList = res;
99290
- res.map(item => {
99291
- this.tags.push({
99292
- id: item.id,
99293
- value: item.id.toString(),
99294
- label: item.tag
99295
- });
99296
- });
99297
- // 调用子组件的方法判断是否显示 (收缩/展开)按钮
99298
- let com_tag = this.$refs.refTag;
99299
- com_tag.opened(true, val);
99300
- }
99301
- });
99302
- },
99303
- // 绑定邮件标签刷新列表
99304
- initInbox() {
99305
- this.init();
99306
- this.isShowSettag = false;
99307
- this.mailId = "";
99308
- },
99309
99162
  // 绑定邮件标签
99310
99163
  handleBindTag(row, tag) {
99311
99164
  if (tag && !tag.tagColor && !tag.tagName) return false;
@@ -99315,49 +99168,19 @@ function getMoneySymbolEvt(val) {
99315
99168
  customClass: "del-model",
99316
99169
  type: "warning"
99317
99170
  }).then(() => {
99318
- let arr_temp = [];
99319
- if (row.tagList) {
99320
- let tagList = row.tagList;
99321
- if (tagList.length > 1) {
99322
- tagList.forEach(item => {
99323
- if (item.tagName !== tag.tagName) {
99324
- arr_temp.push({
99325
- tag: item.tagName,
99326
- tagColor: item.tagColor
99327
- });
99328
- }
99329
- });
99330
- }
99171
+ this.mailId = row.id + "";
99172
+ const tagList = row.tagList.filter(item => !!item.tagName) || [];
99173
+ let restTagList = [];
99174
+ if (tagList.length > 1) {
99175
+ restTagList = tagList.filter(item => item.tagName !== tag.tagName).map(item => {
99176
+ return {
99177
+ tag: item.tagName,
99178
+ tagColor: item.tagColor
99179
+ };
99180
+ });
99331
99181
  }
99332
- // 查询参数
99333
- let params = {
99334
- mailId: row.id,
99335
- tags: arr_temp
99336
- };
99337
- bindTag(params).then(res => {
99338
- if (res) {
99339
- this.$message({
99340
- type: "success",
99341
- message: this.$t("inboxTable.successTagDel")
99342
- });
99343
- this.initTags();
99344
- this.init();
99345
- }
99346
- });
99347
- }).catch(() => {
99348
- this.$message({
99349
- type: "info",
99350
- message: this.$t("inboxTable.cancelTagDel")
99351
- });
99352
- });
99353
- },
99354
- // 标签添加成功之后 显示为展开
99355
- handleAddTag(val) {
99356
- this.initTags(val);
99357
- },
99358
- // 删除成功之后 显示为展开
99359
- initTagList(val) {
99360
- this.initTags(val);
99182
+ this.updateTag(restTagList, true);
99183
+ }).catch(() => {});
99361
99184
  },
99362
99185
  // 标签选择
99363
99186
  handleTagChange(ids) {
@@ -99506,20 +99329,36 @@ function getMoneySymbolEvt(val) {
99506
99329
  this.searchForm.bloggerName = "";
99507
99330
  this.searchForm.subject = "";
99508
99331
  },
99509
- // 添加标签
99332
+ // 添加标签-start
99510
99333
  addMailTag(row) {
99511
- this.mailTags = [];
99512
- if (this.tagList) {
99513
- row.tagList.forEach(item => {
99514
- let findTag = this.tagList.find(f => f.tag === item.tagName);
99515
- if (findTag) {
99516
- this.mailTags.push(findTag);
99517
- }
99518
- });
99519
- }
99520
99334
  this.mailId = row.id.toString();
99335
+ console.log(row);
99336
+ this.selectedTags = row.tagList ? row.tagList.filter(val => !!val.tagName).map(item => item.tagName) : [];
99521
99337
  this.isShowSettag = true;
99522
99338
  },
99339
+ // 更新标签-end
99340
+ async updateTag(tags = [], isDelete = false) {
99341
+ try {
99342
+ const res = await bindTag({
99343
+ mailId: this.mailId,
99344
+ tags
99345
+ });
99346
+ if (res) {
99347
+ if (isDelete) {
99348
+ this.$message({
99349
+ type: "success",
99350
+ message: this.$t("inboxTagDialog.delTagSuccess")
99351
+ });
99352
+ } else {
99353
+ this.$message({
99354
+ type: "success",
99355
+ message: this.$t("inboxTagDialog.bindSuccess")
99356
+ });
99357
+ }
99358
+ this.init();
99359
+ }
99360
+ } catch (error) {}
99361
+ },
99523
99362
  // 跳转详情
99524
99363
  skipDetail(row) {
99525
99364
  localStorage.setItem("searchFormInbox", JSON.stringify(this.searchForm));
@@ -99626,26 +99465,91 @@ function getMoneySymbolEvt(val) {
99626
99465
  // 全部
99627
99466
  this.tagList = this.defaultTagList;
99628
99467
  }
99468
+ },
99469
+ rightClick(row, column, event) {
99470
+ event.preventDefault();
99471
+ this.$contextmenu({
99472
+ items: [{
99473
+ label: "在新标签页中打开邮件",
99474
+ icon: "el-icon-plus",
99475
+ onClick: () => {
99476
+ const routeData = this.$router.resolve({
99477
+ path: "/inboxDetail",
99478
+ query: {
99479
+ id: row.id,
99480
+ chatId: row.chatId,
99481
+ popularizePlanId: row.popularizePlanId,
99482
+ popularizePlanName: row.popularizePlanName,
99483
+ maxId: row.maxId
99484
+ }
99485
+ });
99486
+ window.open(routeData.href, "_blank");
99487
+ }
99488
+ }, {
99489
+ label: "刷新列表数据",
99490
+ icon: "el-icon-refresh",
99491
+ onClick: () => {
99492
+ this.init();
99493
+ }
99494
+ }, {
99495
+ label: "复制邮件主题",
99496
+ icon: "el-icon-document-copy",
99497
+ disabled: !row.subject,
99498
+ onClick: () => {
99499
+ this.copyText(row.subject);
99500
+ }
99501
+ }, {
99502
+ label: "复制推广计划名",
99503
+ icon: "el-icon-document-copy",
99504
+ disabled: !row.popularizePlanName,
99505
+ onClick: () => {
99506
+ this.copyText(row.popularizePlanName);
99507
+ }
99508
+ }, {
99509
+ label: "添加标签",
99510
+ icon: "el-icon-edit-outline",
99511
+ onClick: () => {
99512
+ this.addMailTag(row);
99513
+ }
99514
+ }],
99515
+ event,
99516
+ customClass: "contextmenu-container",
99517
+ zIndex: 3,
99518
+ minWidth: 230
99519
+ });
99520
+ return false;
99521
+ },
99522
+ copyText(text) {
99523
+ const input = document.createElement("input");
99524
+ input.value = text;
99525
+ document.body.appendChild(input);
99526
+ input.select();
99527
+ document.execCommand("copy");
99528
+ document.body.removeChild(input);
99529
+ this.$message({
99530
+ type: "success",
99531
+ message: "已复制到剪贴板"
99532
+ });
99629
99533
  }
99630
99534
  },
99631
99535
  destroyed() {}
99632
99536
  });
99633
99537
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=script&lang=js
99634
99538
  /* harmony default export */ var package_edm_inboxvue_type_script_lang_js = (edm_inboxvue_type_script_lang_js);
99635
- ;// CONCATENATED MODULE: ./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/index.vue?vue&type=style&index=0&id=2eb0a98a&prod&lang=scss&scoped=true
99539
+ ;// CONCATENATED MODULE: ./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/index.vue?vue&type=style&index=0&id=18de8074&prod&lang=scss&scoped=true
99636
99540
  // extracted by mini-css-extract-plugin
99637
99541
 
99638
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=0&id=2eb0a98a&prod&lang=scss&scoped=true
99542
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=0&id=18de8074&prod&lang=scss&scoped=true
99639
99543
 
99640
- ;// CONCATENATED MODULE: ./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/package/edm-inbox/index.vue?vue&type=style&index=1&id=2eb0a98a&prod&scoped=true&lang=css
99544
+ ;// CONCATENATED MODULE: ./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/package/edm-inbox/index.vue?vue&type=style&index=1&id=18de8074&prod&scoped=true&lang=css
99641
99545
  // extracted by mini-css-extract-plugin
99642
99546
 
99643
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=1&id=2eb0a98a&prod&scoped=true&lang=css
99547
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=1&id=18de8074&prod&scoped=true&lang=css
99644
99548
 
99645
- ;// CONCATENATED MODULE: ./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/index.vue?vue&type=style&index=2&id=2eb0a98a&prod&lang=scss
99549
+ ;// CONCATENATED MODULE: ./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/index.vue?vue&type=style&index=2&id=18de8074&prod&lang=scss
99646
99550
  // extracted by mini-css-extract-plugin
99647
99551
 
99648
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=2&id=2eb0a98a&prod&lang=scss
99552
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue?vue&type=style&index=2&id=18de8074&prod&lang=scss
99649
99553
 
99650
99554
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/index.vue
99651
99555
 
@@ -99660,18 +99564,18 @@ function getMoneySymbolEvt(val) {
99660
99564
 
99661
99565
  var edm_inbox_component = normalizeComponent(
99662
99566
  package_edm_inboxvue_type_script_lang_js,
99663
- edm_inboxvue_type_template_id_2eb0a98a_scoped_true_render,
99664
- edm_inboxvue_type_template_id_2eb0a98a_scoped_true_staticRenderFns,
99567
+ edm_inboxvue_type_template_id_18de8074_scoped_true_render,
99568
+ edm_inboxvue_type_template_id_18de8074_scoped_true_staticRenderFns,
99665
99569
  false,
99666
99570
  null,
99667
- "2eb0a98a",
99571
+ "18de8074",
99668
99572
  null
99669
99573
 
99670
99574
  )
99671
99575
 
99672
99576
  /* harmony default export */ var edm_inbox = (edm_inbox_component.exports);
99673
- ;// CONCATENATED MODULE: ./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=33b0a398&scoped=true
99674
- var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
99577
+ ;// CONCATENATED MODULE: ./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=725f3f30&scoped=true
99578
+ var detailvue_type_template_id_725f3f30_scoped_true_render = function render() {
99675
99579
  var _vm = this,
99676
99580
  _c = _vm._self._c;
99677
99581
  return _c('div', {
@@ -99720,12 +99624,10 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
99720
99624
  }), _c('div', {
99721
99625
  staticClass: "tag-btn cursor-pointer mr12 mb8",
99722
99626
  on: {
99723
- "click": function ($event) {
99724
- _vm.isShowSettag = true;
99725
- }
99627
+ "click": _vm.addTagsStart
99726
99628
  }
99727
99629
  }, [_c('i', {
99728
- staticClass: "dss-iconfont icon-add1"
99630
+ staticClass: "dss-iconfont icon-add2"
99729
99631
  }), _vm._v(" " + _vm._s(_vm.$t("inboxDetail.addTag")) + " ")])], 2), _c('div', {
99730
99632
  staticClass: "send-email"
99731
99633
  }, [_vm._v(_vm._s(_vm.$t("edm5.v4")) + _vm._s(_vm.mailData.receiver))])]), _c('div', {
@@ -99946,6 +99848,19 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
99946
99848
  }, [_vm._v(" " + _vm._s(mail.userName) + " ")])] : _vm._e()], 2), _c('div', {
99947
99849
  staticClass: "time"
99948
99850
  }, [_c('span', {
99851
+ directives: [{
99852
+ name: "show",
99853
+ rawName: "v-show",
99854
+ value: mail.isExpand,
99855
+ expression: "mail.isExpand"
99856
+ }],
99857
+ staticClass: "show-full",
99858
+ on: {
99859
+ "click": function ($event) {
99860
+ return _vm.toggleFullContent(mail);
99861
+ }
99862
+ }
99863
+ }, [_vm._v(_vm._s(mail.isShowFull ? "隐藏原始邮件" : "查看原始邮件"))]), _c('span', {
99949
99864
  staticClass: "date"
99950
99865
  }, [_vm._v(_vm._s(mail.createTime))]), mail.type === 1 && _vm.isHasAi ? _c('span', {
99951
99866
  class: {
@@ -100007,7 +99922,7 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
100007
99922
  staticClass: "txt-content"
100008
99923
  }, [_c('EmailBox', {
100009
99924
  attrs: {
100010
- "content": mail.content
99925
+ "content": mail.isShowFull ? mail.cleanContent : mail.content
100011
99926
  }
100012
99927
  })], 1)]), _c('div', {
100013
99928
  staticClass: "box-toggle",
@@ -100042,22 +99957,18 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
100042
99957
  staticClass: "dss-iconfont icon-download"
100043
99958
  })]);
100044
99959
  }), 0) : _vm._e()], 1);
100045
- }), 0)])]), _c('SetTag', {
99960
+ }), 0)])]), _vm.isShowSettag ? _c('AddTagsDialog', {
100046
99961
  attrs: {
100047
- "is-show": _vm.isShowSettag,
100048
- "id": _vm.mailId,
100049
- "tagList": _vm.mailTaglist,
100050
- "mailTags": _vm.mailTags
99962
+ "isShowDialog": _vm.isShowSettag,
99963
+ "defaultTag": _vm.selectedTags
100051
99964
  },
100052
99965
  on: {
100053
- "addTag": _vm.handleAddTag,
100054
- "initTag": _vm.initTagList,
100055
- "initInbox": _vm.initDetail,
100056
- "close": function ($event) {
99966
+ "updateTag": _vm.updateTag,
99967
+ "closeAddTagsDialog": function ($event) {
100057
99968
  _vm.isShowSettag = false;
100058
99969
  }
100059
99970
  }
100060
- }), _vm.showSimpleReplay ? _c('SimpleReplay', {
99971
+ }) : _vm._e(), _vm.showSimpleReplay ? _c('SimpleReplay', {
100061
99972
  attrs: {
100062
99973
  "maxId": _vm.maxId
100063
99974
  },
@@ -100142,9 +100053,9 @@ var detailvue_type_template_id_33b0a398_scoped_true_render = function render() {
100142
100053
  }
100143
100054
  }) : _vm._e()], 1);
100144
100055
  };
100145
- var detailvue_type_template_id_33b0a398_scoped_true_staticRenderFns = [];
100056
+ var detailvue_type_template_id_725f3f30_scoped_true_staticRenderFns = [];
100146
100057
 
100147
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=template&id=33b0a398&scoped=true
100058
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=template&id=725f3f30&scoped=true
100148
100059
 
100149
100060
  ;// CONCATENATED MODULE: ./node_modules/vue-i18n/dist/vue-i18n.esm.js
100150
100061
  /*!
@@ -107448,7 +107359,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107448
107359
  /* harmony default export */ var detailvue_type_script_lang_js = ({
107449
107360
  name: "edm-inboxDetail",
107450
107361
  components: {
107451
- SetTag: SetTag,
107362
+ AddTagsDialog: addTagsDialog,
107452
107363
  Tooltip: Tooltip,
107453
107364
  EmailBox: box,
107454
107365
  SimpleReplay: SimpleReplay,
@@ -107510,6 +107421,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107510
107421
  // 邮件组数据
107511
107422
  isShowSettag: false,
107512
107423
  // 是否显示设置标签
107424
+ selectedTags: [],
107513
107425
  tagList: [],
107514
107426
  // 标签数据
107515
107427
  isShowReply: false,
@@ -107704,6 +107616,7 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107704
107616
  if (!item.attachment) {
107705
107617
  item.attachment = [];
107706
107618
  }
107619
+ item.isShowFull = false;
107707
107620
  item.isOut = false; // 默认不是库外
107708
107621
  // 头像设置
107709
107622
  if (item.type === 2) {
@@ -107816,31 +107729,17 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107816
107729
  },
107817
107730
  // 删除标签
107818
107731
  delTag(row) {
107819
- let tags = [];
107820
- this.tagList.forEach(item => {
107821
- if (item.tag !== row.tag) {
107822
- tags.push({
107732
+ const tagList = this.tagList.filter(item => !!item.tag) || [];
107733
+ let restTagList = [];
107734
+ if (tagList.length > 1) {
107735
+ restTagList = tagList.filter(item => item.tag !== row.tag).map(item => {
107736
+ return {
107823
107737
  tag: item.tag,
107824
107738
  tagColor: item.tag_color
107825
- });
107826
- }
107827
- });
107828
- let params = {
107829
- mailId: this.id,
107830
- tags
107831
- };
107832
- bindTag(params).then(data => {
107833
- if (data) {
107834
- this.$message({
107835
- type: "success",
107836
- message: this.$t("inboxDetail.delSuccess"),
107837
- duration: 1500
107838
- });
107839
- }
107840
- }).finally(() => {
107841
- this.getMailDetailById();
107842
- this.getMailGroup();
107843
- });
107739
+ };
107740
+ });
107741
+ }
107742
+ this.updateTag(restTagList, true);
107844
107743
  },
107845
107744
  // 设置已读
107846
107745
  setReadstatus() {
@@ -107943,7 +107842,17 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
107943
107842
  this.mailList = this.mailList.map(val => {
107944
107843
  return {
107945
107844
  ...val,
107946
- isExpand: mail.id === val.id ? !val.isExpand : false
107845
+ isExpand: mail.id === val.id ? !val.isExpand : false,
107846
+ isShowFull: false
107847
+ };
107848
+ });
107849
+ },
107850
+ // 切换显示/隐藏全文
107851
+ toggleFullContent(mail) {
107852
+ this.mailList = this.mailList.map(val => {
107853
+ return {
107854
+ ...val,
107855
+ isShowFull: mail.id === val.id ? !val.isShowFull : false
107947
107856
  };
107948
107857
  });
107949
107858
  },
@@ -108092,20 +108001,48 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
108092
108001
  })
108093
108002
  });
108094
108003
  this.getCrmInfo();
108004
+ },
108005
+ // 更新标签-start
108006
+ addTagsStart() {
108007
+ this.selectedTags = this.tagList && Array.isArray(this.tagList) ? this.tagList.filter(val => !!val.tag).map(item => item.tag) : [];
108008
+ this.isShowSettag = true;
108009
+ },
108010
+ // 更新标签-end
108011
+ async updateTag(tags = [], isDelete = false) {
108012
+ try {
108013
+ const res = await bindTag({
108014
+ mailId: this.id,
108015
+ tags
108016
+ });
108017
+ if (res) {
108018
+ if (isDelete) {
108019
+ this.$message({
108020
+ type: "success",
108021
+ message: this.$t("inboxTagDialog.delTagSuccess")
108022
+ });
108023
+ } else {
108024
+ this.$message({
108025
+ type: "success",
108026
+ message: this.$t("inboxTagDialog.bindSuccess")
108027
+ });
108028
+ }
108029
+ this.getMailDetailById();
108030
+ }
108031
+ } catch (error) {}
108095
108032
  }
108096
108033
  }
108097
108034
  });
108098
108035
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=script&lang=js
108099
108036
  /* harmony default export */ var edm_inbox_detailvue_type_script_lang_js = (detailvue_type_script_lang_js);
108100
- ;// CONCATENATED MODULE: ./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=33b0a398&prod&lang=scss&scoped=true
108037
+ ;// CONCATENATED MODULE: ./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=725f3f30&prod&lang=scss&scoped=true
108101
108038
  // extracted by mini-css-extract-plugin
108102
108039
 
108103
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=0&id=33b0a398&prod&lang=scss&scoped=true
108040
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=0&id=725f3f30&prod&lang=scss&scoped=true
108104
108041
 
108105
- ;// CONCATENATED MODULE: ./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=33b0a398&prod&lang=scss
108042
+ ;// CONCATENATED MODULE: ./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=725f3f30&prod&lang=scss
108106
108043
  // extracted by mini-css-extract-plugin
108107
108044
 
108108
- ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=1&id=33b0a398&prod&lang=scss
108045
+ ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue?vue&type=style&index=1&id=725f3f30&prod&lang=scss
108109
108046
 
108110
108047
  ;// CONCATENATED MODULE: ./src/package/edm-inbox/detail.vue
108111
108048
 
@@ -108119,11 +108056,11 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
108119
108056
 
108120
108057
  var detail_component = normalizeComponent(
108121
108058
  edm_inbox_detailvue_type_script_lang_js,
108122
- detailvue_type_template_id_33b0a398_scoped_true_render,
108123
- detailvue_type_template_id_33b0a398_scoped_true_staticRenderFns,
108059
+ detailvue_type_template_id_725f3f30_scoped_true_render,
108060
+ detailvue_type_template_id_725f3f30_scoped_true_staticRenderFns,
108124
108061
  false,
108125
108062
  null,
108126
- "33b0a398",
108063
+ "725f3f30",
108127
108064
  null
108128
108065
 
108129
108066
  )
@@ -122315,8 +122252,8 @@ var outbox_emailvue_type_template_id_1d113158_scoped_true_render = function rend
122315
122252
  };
122316
122253
  var outbox_emailvue_type_template_id_1d113158_scoped_true_staticRenderFns = [];
122317
122254
 
122318
- ;// CONCATENATED MODULE: ./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=44d9ca7e&scoped=true
122319
- var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render = function render() {
122255
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=template&id=1f01a884&scoped=true
122256
+ var singleSendMailvue_type_template_id_1f01a884_scoped_true_render = function render() {
122320
122257
  var _vm = this,
122321
122258
  _c = _vm._self._c;
122322
122259
  return _c('div', {
@@ -122536,7 +122473,8 @@ var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render = function re
122536
122473
  return _vm.init();
122537
122474
  },
122538
122475
  "row-click": _vm.skipDetail,
122539
- "selection-change": _vm.selectTableRow
122476
+ "selection-change": _vm.selectTableRow,
122477
+ "row-contextmenu": _vm.rightClick
122540
122478
  },
122541
122479
  scopedSlots: _vm._u([{
122542
122480
  key: "isStar",
@@ -122677,7 +122615,7 @@ var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render = function re
122677
122615
  staticClass: "dss-iconfont"
122678
122616
  }, [_vm._v("")]) : _vm._e()])], 1)])])], 1)]);
122679
122617
  };
122680
- var singleSendMailvue_type_template_id_44d9ca7e_scoped_true_staticRenderFns = [];
122618
+ var singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns = [];
122681
122619
 
122682
122620
  // EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
122683
122621
  var dayjs_min = __webpack_require__(4353);
@@ -122951,15 +122889,64 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
122951
122889
  this.searchForm.currentPage = 1;
122952
122890
  this.$refs.mailTable.$refs.xTable.clearSelection();
122953
122891
  this.selectData = [];
122892
+ },
122893
+ rightClick(row, column, event) {
122894
+ event.preventDefault();
122895
+ this.$contextmenu({
122896
+ items: [{
122897
+ label: "在新标签页中打开邮件",
122898
+ icon: "el-icon-plus",
122899
+ onClick: () => {
122900
+ const routeData = this.$router.resolve({
122901
+ path: "/outboxDetail",
122902
+ query: {
122903
+ id: row.id,
122904
+ enterType: 1
122905
+ }
122906
+ });
122907
+ window.open(routeData.href, "_blank");
122908
+ }
122909
+ }, {
122910
+ label: "刷新列表数据",
122911
+ icon: "el-icon-refresh",
122912
+ onClick: () => {
122913
+ this.init();
122914
+ }
122915
+ }, {
122916
+ label: "复制邮件主题",
122917
+ icon: "el-icon-document-copy",
122918
+ disabled: !row.subject,
122919
+ onClick: () => {
122920
+ this.copyText(row.subject);
122921
+ }
122922
+ }],
122923
+ event,
122924
+ customClass: "contextmenu-container",
122925
+ zIndex: 3,
122926
+ minWidth: 230
122927
+ });
122928
+ return false;
122929
+ },
122930
+ copyText(text) {
122931
+ const input = document.createElement("input");
122932
+ input.value = text;
122933
+ document.body.appendChild(input);
122934
+ input.select();
122935
+ document.execCommand("copy");
122936
+ document.body.removeChild(input);
122937
+ this.$message({
122938
+ type: "success",
122939
+ message: "已复制到剪贴板"
122940
+ });
122954
122941
  }
122955
122942
  }
122956
122943
  });
122957
122944
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue?vue&type=script&lang=js
122958
122945
  /* harmony default export */ var components_singleSendMailvue_type_script_lang_js = (singleSendMailvue_type_script_lang_js);
122959
- ;// CONCATENATED MODULE: ./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=44d9ca7e&prod&lang=scss&scoped=true
122946
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
122960
122947
  // extracted by mini-css-extract-plugin
122961
122948
 
122962
- ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=44d9ca7e&prod&lang=scss&scoped=true
122949
+ ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue?vue&type=style&index=0&id=1f01a884&prod&lang=scss&scoped=true
122963
122950
 
122964
122951
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/singleSendMail.vue
122965
122952
 
@@ -122972,18 +122959,18 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
122972
122959
 
122973
122960
  var singleSendMail_component = normalizeComponent(
122974
122961
  components_singleSendMailvue_type_script_lang_js,
122975
- singleSendMailvue_type_template_id_44d9ca7e_scoped_true_render,
122976
- singleSendMailvue_type_template_id_44d9ca7e_scoped_true_staticRenderFns,
122962
+ singleSendMailvue_type_template_id_1f01a884_scoped_true_render,
122963
+ singleSendMailvue_type_template_id_1f01a884_scoped_true_staticRenderFns,
122977
122964
  false,
122978
122965
  null,
122979
- "44d9ca7e",
122966
+ "1f01a884",
122980
122967
  null
122981
122968
 
122982
122969
  )
122983
122970
 
122984
122971
  /* harmony default export */ var singleSendMail = (singleSendMail_component.exports);
122985
- ;// CONCATENATED MODULE: ./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=0cdffb56&scoped=true
122986
- var replySendMailvue_type_template_id_0cdffb56_scoped_true_render = function render() {
122972
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=template&id=9bfe54da&scoped=true
122973
+ var replySendMailvue_type_template_id_9bfe54da_scoped_true_render = function render() {
122987
122974
  var _vm = this,
122988
122975
  _c = _vm._self._c;
122989
122976
  return _c('div', {
@@ -123203,7 +123190,8 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_render = function ren
123203
123190
  return _vm.init();
123204
123191
  },
123205
123192
  "row-click": _vm.skipDetail,
123206
- "selection-change": _vm.selectTableRow
123193
+ "selection-change": _vm.selectTableRow,
123194
+ "row-contextmenu": _vm.rightClick
123207
123195
  },
123208
123196
  scopedSlots: _vm._u([{
123209
123197
  key: "isStar",
@@ -123298,7 +123286,7 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_render = function ren
123298
123286
  staticClass: "dss-iconfont icon-delete-2"
123299
123287
  })])])])], 1)]);
123300
123288
  };
123301
- var replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns = [];
123289
+ var replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns = [];
123302
123290
 
123303
123291
  ;// CONCATENATED MODULE: ./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
123304
123292
 
@@ -123571,15 +123559,71 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns = [];
123571
123559
  }
123572
123560
  });
123573
123561
  }
123562
+ },
123563
+ rightClick(row, column, event) {
123564
+ event.preventDefault();
123565
+ this.$contextmenu({
123566
+ items: [{
123567
+ label: "在新标签页中打开邮件",
123568
+ icon: "el-icon-plus",
123569
+ onClick: () => {
123570
+ const routeData = this.$router.resolve({
123571
+ path: "/outboxDetail",
123572
+ query: {
123573
+ id: row.id,
123574
+ enterType: 2
123575
+ }
123576
+ });
123577
+ window.open(routeData.href, "_blank");
123578
+ }
123579
+ }, {
123580
+ label: "刷新列表数据",
123581
+ icon: "el-icon-refresh",
123582
+ onClick: () => {
123583
+ this.init();
123584
+ }
123585
+ }, {
123586
+ label: "复制邮件主题",
123587
+ icon: "el-icon-document-copy",
123588
+ disabled: !row.subject,
123589
+ onClick: () => {
123590
+ this.copyText(row.subject);
123591
+ }
123592
+ }, {
123593
+ label: "复制推广计划名",
123594
+ icon: "el-icon-document-copy",
123595
+ disabled: !row.popularizePlanName,
123596
+ onClick: () => {
123597
+ this.copyText(row.popularizePlanName);
123598
+ }
123599
+ }],
123600
+ event,
123601
+ customClass: "contextmenu-container",
123602
+ zIndex: 3,
123603
+ minWidth: 230
123604
+ });
123605
+ return false;
123606
+ },
123607
+ copyText(text) {
123608
+ const input = document.createElement("input");
123609
+ input.value = text;
123610
+ document.body.appendChild(input);
123611
+ input.select();
123612
+ document.execCommand("copy");
123613
+ document.body.removeChild(input);
123614
+ this.$message({
123615
+ type: "success",
123616
+ message: "已复制到剪贴板"
123617
+ });
123574
123618
  }
123575
123619
  }
123576
123620
  });
123577
123621
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue?vue&type=script&lang=js
123578
123622
  /* harmony default export */ var components_replySendMailvue_type_script_lang_js = (replySendMailvue_type_script_lang_js);
123579
- ;// CONCATENATED MODULE: ./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=0cdffb56&prod&lang=scss&scoped=true
123623
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
123580
123624
  // extracted by mini-css-extract-plugin
123581
123625
 
123582
- ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=0cdffb56&prod&lang=scss&scoped=true
123626
+ ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue?vue&type=style&index=0&id=9bfe54da&prod&lang=scss&scoped=true
123583
123627
 
123584
123628
  ;// CONCATENATED MODULE: ./src/package/outbox-email/components/replySendMail.vue
123585
123629
 
@@ -123592,11 +123636,11 @@ var replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns = [];
123592
123636
 
123593
123637
  var replySendMail_component = normalizeComponent(
123594
123638
  components_replySendMailvue_type_script_lang_js,
123595
- replySendMailvue_type_template_id_0cdffb56_scoped_true_render,
123596
- replySendMailvue_type_template_id_0cdffb56_scoped_true_staticRenderFns,
123639
+ replySendMailvue_type_template_id_9bfe54da_scoped_true_render,
123640
+ replySendMailvue_type_template_id_9bfe54da_scoped_true_staticRenderFns,
123597
123641
  false,
123598
123642
  null,
123599
- "0cdffb56",
123643
+ "9bfe54da",
123600
123644
  null
123601
123645
 
123602
123646
  )