{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/ad.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/ad.vue","mtime":1739760944312},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/babel.config.js","mtime":1739760943855},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport API from \"@/api.js\";\nimport Constant from \"@/Constant.js\";\nexport default {\n props: [\"openParams\"],\n data: function data() {\n return {\n domainAdmin: localStorage.getItem(\"domainAdmin\") == \"true\" ? true : false,\n param: {\n currpage: 1,\n pagesize: 10\n },\n announcementList: [],\n //公告列表数组\n noDataLength: false,\n addetailobj: {},\n //公告详情\n ADContainershow: true,\n ADContainerDetailshow: false,\n loading: false,\n Constant: Constant,\n showEmotion: false,\n imag: 'gddd',\n emotionList: [{\n type: \"[去旅行]\",\n path: '',\n url: \"/obpm/message/img/face/qlx_thumb.gif\"\n }, {\n type: \"[广告]\",\n path: '',\n url: \"/obpm/message/img/face/ad_new0902_thumb.gif\"\n }, {\n type: \"[doge]\",\n path: '',\n url: \"/obpm/message/img/face/doge_thumb.gif\"\n }, {\n type: \"[喵喵]\",\n path: '',\n url: \"/obpm/message/img/face/mm_thumb.gif\"\n }, {\n type: \"[二哈]\",\n path: '',\n url: \"/obpm/message/img/face/moren_hashiqi_thumb.png\"\n }, {\n type: \"[哆啦A梦吃惊]\",\n path: '',\n url: \"/obpm/message/img/face/dorachijing_thumb.gif\"\n }, {\n type: \"[哆啦A梦花心]\",\n path: '',\n url: \"/obpm/message/img/face/dorachijing_thumb.gif\"\n }, {\n type: \"[哆啦A梦微笑]\",\n path: '',\n url: \"/obpm/message/img/face/jqmweixiao_thumb.gif\"\n }, {\n type: \"[笑cry]\",\n path: '< src=\"/obpm/message/img/face/xiaoku_thumb.gif\" />',\n url: \"/obpm/message/img/face/xiaoku_thumb.gif\"\n }, {\n type: \"[摊手]\",\n path: '',\n url: \"/obpm/message/img/face/pcmoren_tanshou_thumb.png\"\n }, {\n type: \"[抱手]\",\n path: '',\n url: \"/obpm/message/img/face/pcmoren_baobao_thumb.png\"\n }, {\n type: \"[群体围观]\",\n path: '',\n url: \"/obpm/message/img/face/lxhweiguan_thumb.gif\"\n },\n //12\n {\n type: \"[坏笑]\",\n path: '',\n url: \"/obpm/message/img/face/pcmoren_huaixiao_thumb.png\"\n }, {\n type: \"[舔屏]\",\n path: '',\n url: \"/obpm/message/img/face/pcmoren_tian_thumb.png\"\n }, {\n type: \"[污]\",\n path: '',\n url: \"/obpm/message/img/face/pcmoren_wu_thumb.png\"\n }, {\n type: \"[微笑]\",\n path: '',\n url: \"/obpm/message/img/face/huanglianwx_thumb.gif\"\n }, {\n type: \"[嘻嘻]\",\n path: '',\n url: \"/obpm/message/img/face/tootha_thumb.gif\"\n }, {\n type: \"[哈哈]\",\n path: '',\n url: \"/obpm/message/img/face/laugh.gif\"\n }, {\n type: \"[挖鼻]\",\n path: '',\n url: \"/obpm/message/img/face/wabi_thumb.gif\"\n }, {\n type: \"[可爱]\",\n path: '',\n url: \"/obpm/message/img/face/tza_thumb.gif\"\n }, {\n type: \"[可怜]\",\n path: '',\n url: \"/obpm/message/img/face/kl_thumb.gif\"\n }, {\n type: \"[吃惊]\",\n path: '',\n url: \"/obpm/message/img/face/cj_thumb.gif\"\n }, {\n type: \"[害羞]\",\n path: '',\n url: \"/obpm/message/img/face/shamea_thumb.gif\"\n }, {\n type: \"[挤眼]\",\n path: '',\n url: \"/obpm/message/img/face/zy_thumb.gif\"\n },\n //24\n {\n type: \"[闭嘴]\",\n path: '',\n url: \"/obpm/message/img/face/bz_thumb.gif\"\n }, {\n type: \"[鄙视]\",\n path: '',\n url: \"/obpm/message/img/face/bs2_thumb.gif\"\n }, {\n type: \"[爱你]\",\n path: '',\n url: \"/obpm/message/img/face/lovea_thumb.gif\"\n }, {\n type: \"[泪]\",\n path: '',\n url: \"/obpm/message/img/face/sada_thumb.gif\"\n }, {\n type: \"[偷笑]\",\n path: '',\n url: \"/obpm/message/img/face/heia_thumb.gif\"\n }, {\n type: \"[亲亲]\",\n path: '',\n url: \"/obpm/message/img/face/qq_thumb.gif\"\n }, {\n type: \"[生病]\",\n path: '',\n url: \"/obpm/message/img/face/sb_thumb.gif\"\n }, {\n type: \"[太开心]\",\n path: '',\n url: \"/obpm/message/img/face/mb_thumb.gif\"\n }, {\n type: \"[白眼]\",\n path: '',\n url: \"/obpm/message/img/face/landeln_thumb.gif\"\n }, {\n type: \"[右哼哼]\",\n path: '',\n url: \"/obpm/message/img/face/yhh_thumb.gif\"\n }, {\n type: \"[左哼哼]\",\n path: '',\n url: \"/obpm/message/img/face/zhh_thumb.gif\"\n }, {\n type: \"[嘘]\",\n path: '',\n url: \"/obpm/message/img/face/x_thumb.gif\"\n },\n //36\n {\n type: \"[哀]\",\n path: '',\n url: \"/obpm/message/img/face/cry.gif\"\n }, {\n type: \"[委屈]\",\n path: '',\n url: \"/obpm/message/img/face/wq_thumb.gif\"\n }, {\n type: \"[吐]\",\n path: '',\n url: \"/obpm/message/img/face/t_thumb.gif\"\n }, {\n type: \"[哈欠]\",\n path: '',\n url: \"/obpm/message/img/face/haqianv2_thumb.gif\"\n }, {\n type: \"[抱抱_旧]\",\n path: '',\n url: \"/obpm/message/img/face/bba_thumb.gif\"\n }, {\n type: \"[怒]\",\n path: '',\n url: \"/obpm/message/img/face/angrya_thumb.gif\"\n }, {\n type: \"[疑问]\",\n path: '',\n url: \"/obpm/message/img/face/yw_thumb.gif\"\n }, {\n type: \"[馋嘴]\",\n path: '',\n url: \"/obpm/message/img/face/cza_thumb.gif\"\n }, {\n type: \"[拜拜]\",\n path: '',\n url: \"/obpm/message/img/face/88_thumb.gif\"\n }, {\n type: \"[思考]\",\n path: '',\n url: \"/obpm/message/img/face/sk_thumb.gif\"\n }, {\n type: \"[汗]\",\n path: '',\n url: \"/obpm/message/img/face/sweata_thumb.gif\"\n }, {\n type: \"[困]\",\n path: '',\n url: \"/obpm/message/img/face/kunv2_thumb.gif\"\n },\n //48\n {\n type: \"[睡]\",\n path: '',\n url: \"/obpm/message/img/face/huangliansj_thumb.gif\"\n }, {\n type: \"[钱]\",\n path: '',\n url: \"/obpm/message/img/face/money_thumb.gif\"\n }, {\n type: \"[失望]\",\n path: '',\n url: \"/obpm/message/img/face/sw_thumb.gif\"\n }, {\n type: \"[酷]\",\n path: '',\n url: \"/obpm/message/img/face/cool_thumb.gif\"\n }, {\n type: \"[色]\",\n path: '',\n url: \"/obpm/message/img/face/huanglianse_thumb.gif\"\n }, {\n type: \"[哼]\",\n path: '',\n url: \"/obpm/message/img/face/hatea_thumb.gif\"\n }, {\n type: \"[鼓掌]\",\n path: '',\n url: \"/obpm/message/img/face/gza_thumb.gif\"\n }, {\n type: \"[晕]\",\n path: '',\n url: \"/obpm/message/img/face/dizzya_thumb.gif\"\n }, {\n type: \"[悲伤]\",\n path: '',\n url: \"/obpm/message/img/face/bs_thumb.gif\"\n }, {\n type: \"[抓狂]\",\n path: '',\n url: \"/obpm/message/img/face/crazya_thumb.gif\"\n }, {\n type: \"[黑线]\",\n path: '',\n url: \"/obpm/message/img/face/h_thumb.gif\"\n }, {\n type: \"[阴险]\",\n path: '',\n url: \"/obpm/message/img/face/yx_thumb.gif\"\n },\n //60\n {\n type: \"[怒骂]\",\n path: '',\n url: \"/obpm/message/img/face/numav2_thumb.gif\"\n }, {\n type: \"[互粉]\",\n path: '',\n url: \"/obpm/message/img/face/hufen_thumb.gif\"\n }, {\n type: \"[心]\",\n path: '',\n url: \"/obpm/message/img/face/hearta_thumb.gif\"\n }, {\n type: \"[伤心]\",\n path: '',\n url: \"/obpm/message/img/face/unheart.gif\"\n }, {\n type: \"[猪头]\",\n path: '',\n url: \"/obpm/message/img/face/pig.gif\"\n }, {\n type: \"[熊猫]\",\n path: '',\n url: \"/obpm/message/img/face/panda_thumb.gif\"\n }, {\n type: \"[兔子]\",\n path: '',\n url: \"/obpm/message/img/face/rabbit_thumb.gif\"\n }, {\n type: \"[ok]\",\n path: '',\n url: \"/obpm/message/img/face/ok_thumb.gif\"\n }, {\n type: \"[耶]\",\n path: '',\n url: \"/obpm/message/img/face/ye_thumb.gif\"\n }, {\n type: \"[good]\",\n path: '',\n url: \"/obpm/message/img/face/good_thumb.gif\"\n }, {\n type: \"[NO]\",\n path: '',\n url: \"/obpm/message/img/face/buyao_org.gif\"\n }, {\n type: \"[赞]\",\n path: '',\n url: \"/obpm/message/img/face/z2_thumb.gif\"\n },\n //72\n {\n type: \"[来]\",\n path: '',\n url: \"/obpm/message/img/face/come_thumb.gif\"\n }, {\n type: \"[弱]\",\n path: '',\n url: \"/obpm/message/img/face/sad_thumb.gif\"\n }, {\n type: \"[草泥马]\",\n path: '',\n url: \"/obpm/message/img/face/shenshou_thumb.gif\"\n }, {\n type: \"[神马]\",\n path: '',\n url: \"/obpm/message/img/face/horse2_thumb.gif\"\n }, {\n type: \"[囧]\",\n path: '',\n url: \"/obpm/message/img/face/j_thumb.gif\"\n }, {\n type: \"[浮云]\",\n path: '',\n url: \"/obpm/message/img/face/fuyun_thumb.gif\"\n }, {\n type: \"[给力]\",\n path: '',\n url: \"/obpm/message/img/face/geiliv2_thumb.gif\"\n }, {\n type: \"[围观]\",\n path: '',\n url: \"/obpm/message/img/face/wg_thumb.gif\"\n }, {\n type: \"[威武]\",\n path: '',\n url: \"/obpm/message/img/face/vw_thumb.gif\"\n }, {\n type: \"[话筒]\",\n path: '',\n url: \"/obpm/message/img/face/huatongv2_thumb.gif\"\n }, {\n type: \"[蜡烛]\",\n path: '',\n url: \"/obpm/message/img/face/lazhuv2_thumb.gif\"\n }, {\n type: \"[蛋糕]\",\n path: '',\n url: \"/obpm/message/img/face/cakev2_thumb.gif\"\n }],\n readStatus: \"\",\n currentActiveName: \"first\",\n currentWordCount: 0,\n wordsRemaining: 10000,\n isEmptyPage: false,\n noReply: false,\n noReplyMy: false,\n allIsEmptyPage: false,\n messagesListNum: \"\",\n //企业动态信息列表数量\n messagesList: [],\n //企业动态信息列表\n currentArray: [],\n currentIndex: \"\",\n //点击回复时的index值\n isSendRange: \"\",\n sendRangeList: [],\n //发送范围部门列表\n sendRangeName: \"\",\n //发送范围部门名字\n deptList: [],\n otherSettings: false,\n labelPosition: \"right\",\n fileList: [],\n tabPosition: \"left\",\n information: \"\",\n msgsubmit: \"\",\n headline: \"\",\n recipient: \"\",\n selectDeptList: \"\",\n //发公告窗口选择的部门数据\n Howmanywords: 140,\n tabpanelComment: \"\",\n textarea: \"\",\n workslide: \"first\",\n activekeep: \"first\",\n activeName: \"first\",\n dialogVisible: false,\n Receivedby: false,\n //发公告里面的加号弹框\n centerDialogVisible: false,\n remnant: 140,\n eduiPlus: 0,\n eduisubtract: 10000,\n props: {\n label: \"name\",\n children: \"zones\",\n isLeaf: \"leaf\"\n },\n propsPull: {\n label: \"name\",\n children: \"zones\",\n isLeaf: \"leaf\"\n },\n //评论回复接口所需的参数缓存\n replyToUser: \"\",\n replyToUserId: \"\",\n replyMessageId: \"\",\n replyCommentId: \"\",\n replyTocontent: \"\",\n labelSwitchVal: \"first\",\n unreadWorkItems: [],\n //未读工作事项\n unreadWorkNum: 0,\n allNotice: [],\n //全部工作事项\n allNoticeNum: 0,\n myReplyData: [],\n myReplyNum: 0,\n receiveNum: 0,\n receiveData: [],\n currentFlowType: \"\",\n currentFlowTypeNum: \"\",\n flowType: \"first\",\n defaultCheckedKeys: []\n };\n },\n created: function created() {\n var _this = this;\n //查询公告列表\n this.getMessagesAdList();\n\n //this.notices();\n this.getMessagesList();\n // console.log(\"this.openParams----->\",this.openParams);\n\n //点击消息提醒通过传入自定义参数,判断参数再定义currentActiveName的值即可\n if (this.openParams.remind) {\n this.currentActiveName = \"second\";\n this.labelSwitch(\"first\");\n }\n if (this.openParams.isWorkMatters) {\n this.currentActiveName = \"second\";\n var readStatus = 0;\n var type = 0;\n var data = {\n readStatus: 0,\n type: 0\n };\n this.$api.getNotice(data, {\n onSucess: function onSucess(res) {\n if (res.data.data.datas.length == 0) {\n _this.isEmptyPage = true;\n } else {\n _this.unreadWorkNum = res.data.data.rowCount;\n _this.unreadWorkItems = res.data.data.datas;\n }\n }\n });\n }\n },\n methods: {\n getMessagesAdList: function getMessagesAdList() {\n var _this2 = this;\n //公告列表分页\n this.$api.getAnnouncementPage(this.param.currpage, this.param.pagesize, {\n onSucess: function onSucess(res) {\n if (res.data.data.datas.length) {\n if (res.data.data.datas.length < _this2.param.pagesize) _this2.noDataLength = true;\n var datas = res.data.data.datas;\n datas.forEach(function (item) {\n _this2.announcementList.push(item);\n });\n } else {\n _this2.noDataLength = true;\n }\n }\n });\n },\n deleteMessage: function deleteMessage(item, type) {\n var _this3 = this;\n var messageId = item.id;\n this.$confirm(\"删除后无法恢复,确定删除吗?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this3.$api.deleteMessage(messageId, {\n onSucess: function onSucess(response) {\n if (response.data.status == 1) {\n _this3.param.currpage = 1; //重置第一页\n _this3.announcementList = []; //重置列表\n if (type == \"1\") {\n _this3.$api.getMessagesList({\n onSucess: function onSucess(res) {\n _this3.messagesListNum = res.data.data.rowCount;\n _this3.messagesList = res.data.data.datas;\n }\n });\n } else if (type == \"2\") {\n _this3.getMessagesAdList(); //分页公告列表\n }\n }\n }\n });\n }).catch(function () {});\n },\n adlidetail: function adlidetail(item) {\n //公告详情\n this.addetailobj = item;\n this.ADContainerDetailshow = true;\n this.ADContainershow = false;\n },\n backGoAD: function backGoAD() {\n //公告返回\n this.ADContainerDetailshow = false;\n this.ADContainershow = true;\n },\n viewmore: function viewmore() {\n this.param.currpage++;\n this.getMessagesAdList();\n },\n showEmotionDialog: function showEmotionDialog(val) {\n if (val) {\n this.showEmotion = false;\n } else {\n this.showEmotion = !this.showEmotion;\n }\n },\n getEmoticons: function getEmoticons(item) {\n this.information += item.type;\n },\n deleteReplyMessage: function deleteReplyMessage(el, index, parentIndex) {\n var _this4 = this;\n var commentId = el.id,\n messageId = el.messageId;\n this.$confirm(\"删除后无法恢复,确定删除吗?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this4.$api.deleteReply(commentId, messageId, {\n onSucess: function onSucess(res) {\n if (res.data.status == 1) {\n _this4.$notify({\n title: \"删除成功!\",\n message: \"\",\n type: \"sucess\"\n });\n _this4.messagesList[parentIndex].replayData.splice(index, 1);\n _this4.$forceUpdate();\n }\n }\n });\n }).catch(function () {});\n },\n hiddenBulletinDialog: function hiddenBulletinDialog() {\n this.headline = \"\";\n this.recipient = \"\";\n this.textarea = \"\";\n this.centerDialogVisible = false;\n },\n //我回复的(删除)\n deleteReply: function deleteReply(item, index, num) {\n var _this5 = this;\n var commentId = item.id,\n messageId = item.messageId;\n this.$confirm(\"删除后无法恢复,确定删除吗?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this5.$api.deleteReply(commentId, messageId, {\n onSucess: function onSucess(res) {\n if (res.data.status == 1) {\n _this5.$notify({\n title: \"删除成功!\",\n message: \"\",\n type: \"sucess\"\n });\n if (num == \"1\") {\n _this5.myReplyData.splice(index, 1);\n } else if (num == \"2\") {\n _this5.receiveData.splice(index, 1);\n }\n _this5.$forceUpdate();\n }\n }\n });\n }).catch(function () {});\n },\n doJump: function doJump(item, index) {\n var obj = JSON.parse(item.linkParams);\n var params = {\n appId: this.$root.appid,\n linkType: \"00\",\n actionContent: obj._formid,\n name: \"流程\",\n docId: obj._docid,\n _select: obj._docid\n };\n this.$emit(\"add-tab\", params);\n if (index >= 0) {\n this.$api.noticeRead(item.id, {\n onSucess: function onSucess() {}\n });\n this.unreadWorkItems.splice(index, 1);\n if (this.unreadWorkItems.length == 0) {\n this.isEmptyPage = true;\n }\n }\n },\n announcementClick: function announcementClick(tab) {\n var _this6 = this;\n if (tab.index == 1) {\n this.$api.getAnnouncement({\n onSucess: function onSucess(res) {\n _this6.announcementList = res.data.data.datas;\n }\n });\n }\n },\n paging: function paging() {},\n workHandleClick: function workHandleClick(val, currentType) {\n var _this7 = this;\n // console.log(\"----------->menu\", val)\n this.currentFlowType = currentType;\n this.currentFlowTypeNum = val;\n var readStatus = \"\";\n var type = val;\n var data;\n if (this.flowType == \"first\") {\n data = {\n readStatus: 0,\n type: val\n };\n this.$api.getNotice(data, {\n onSucess: function onSucess(res) {\n if (res.data.data.datas.length == 0) {\n _this7.isEmptyPage = true;\n } else {\n _this7.isEmptyPage = false;\n _this7.unreadWorkNum = res.data.data.rowCount;\n _this7.unreadWorkItems = res.data.data.datas;\n }\n }\n });\n } else if (this.flowType == \"second\") {\n data = {\n readStatus: \"\",\n type: val\n };\n this.$api.getNotice(data, {\n onSucess: function onSucess(res) {\n _this7.allNoticeNum = res.data.data.rowCount;\n _this7.allNotice = res.data.data.datas;\n if (res.data.data.datas.length <= 0) {\n _this7.allIsEmptyPage = true;\n } else {\n _this7.allIsEmptyPage = false;\n }\n }\n });\n }\n },\n replyClick: function replyClick(tab) {\n var _this8 = this;\n if (tab.index == 1) {\n var currpage = 1;\n var _rowcount = 30;\n this.$api.getReceive(currpage, _rowcount, {\n onSucess: function onSucess(res) {\n if (res.data.data.rowCount <= 0) {\n _this8.noReplyMy = true;\n }\n _this8.receiveNum = res.data.data.rowCount;\n _this8.receiveData = res.data.data.datas;\n }\n });\n }\n },\n handleClick: function handleClick(tab) {\n var _this9 = this;\n if (tab.index == 1) {\n var readStatus = 0;\n var type = 0;\n var data = {\n readStatus: 0,\n type: 0\n };\n this.$api.getNotice(data, {\n onSucess: function onSucess(res) {\n if (res.data.data.datas.length == 0) {\n _this9.isEmptyPage = true;\n } else {\n _this9.unreadWorkNum = res.data.data.rowCount;\n _this9.unreadWorkItems = res.data.data.datas;\n }\n }\n });\n } else if (tab.index == 2) {\n var currpage = 1;\n var _rowcount = 30;\n this.$api.getMyreply(currpage, _rowcount, {\n onSucess: function onSucess(res) {\n if (res.data.data.rowCount <= 0) {\n _this9.noReply = true;\n }\n _this9.myReplyNum = res.data.data.rowCount;\n _this9.myReplyData = res.data.data.datas;\n }\n });\n }\n },\n //全部标记已读\n setAllRead: function setAllRead() {\n var _this10 = this;\n this.$api.setAllRead({\n onSucess: function onSucess(res) {\n // console.log(\"res-->\",res);\n if (res.data.status) {\n _this10.readStatus = 0;\n var type = 0;\n var data = {\n readStatus: 0,\n type: _this10.currentFlowTypeNum ? _this10.currentFlowTypeNum : 0\n };\n _this10.$api.getNotice(data, {\n onSucess: function onSucess(res) {\n if (res.data.data.datas.length == 0) {\n _this10.isEmptyPage = true;\n } else {\n _this10.unreadWorkNum = res.data.data.rowCount;\n _this10.unreadWorkItems = res.data.data.datas;\n }\n }\n });\n }\n }\n });\n },\n //删除工作事项\n deleteWorkItem: function deleteWorkItem(id, index, val) {\n var _this11 = this;\n this.$confirm(\"删除后无法恢复,确定删除吗?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n _this11.$api.deleteNotice(id, {\n onSucess: function onSucess(res) {\n if (res.data.status == 1) {\n _this11.$notify({\n title: \"删除成功!\",\n message: \"\",\n type: \"sucess\"\n });\n if (val == \"isUnread\") {\n _this11.$api.getNotice({\n readStatus: 0,\n type: 0\n }, {\n onSucess: function onSucess(res) {\n if (res.data.data.datas.length == 0) {\n _this11.isEmptyPage = true;\n } else {\n _this11.unreadWorkNum = res.data.data.rowCount;\n _this11.unreadWorkItems = res.data.data.datas;\n }\n }\n });\n } else if (val == \"isHaveRead\") {\n _this11.allNotice.splice(index, 1);\n if (_this11.allNotice.length <= 0) {\n _this11.allIsEmptyPage = true;\n }\n }\n }\n }\n });\n }).catch(function () {});\n },\n //工作事项\n labelSwitch: function labelSwitch(val) {\n var _this12 = this;\n this.labelSwitchVal = val;\n //this.currentFlowType = '';\n if (val == \"first\") {\n this.flowType = \"first\";\n this.readStatus = 0;\n var type = 0;\n var data = {\n readStatus: 0,\n type: this.currentFlowTypeNum ? this.currentFlowTypeNum : 0\n };\n this.$api.getNotice(data, {\n onSucess: function onSucess(res) {\n if (res.data.data.datas.length == 0) {\n _this12.isEmptyPage = true;\n } else {\n _this12.isEmptyPage = false;\n _this12.unreadWorkNum = res.data.data.rowCount;\n _this12.unreadWorkItems = res.data.data.datas;\n }\n }\n });\n } else if (val == \"second\") {\n this.flowType = \"second\";\n var readStatus = \"\";\n var _type = 0;\n var _data = {\n readStatus: \"\",\n type: this.currentFlowTypeNum ? this.currentFlowTypeNum : 0\n };\n this.$api.getNotice(_data, {\n onSucess: function onSucess(res) {\n _this12.allNoticeNum = res.data.data.rowCount;\n _this12.allNotice = res.data.data.datas;\n if (res.data.data.datas.length <= 0) {\n _this12.allIsEmptyPage = true;\n } else {\n _this12.allIsEmptyPage = false;\n }\n _this12.$forceUpdate();\n }\n });\n }\n },\n //回复\n doComment: function doComment(toUser, toUserId, messageId, toContent, index) {\n var _this13 = this;\n var newData = encodeURIComponent(\"content.toUser\") + \"=\" + encodeURIComponent(this.replyToUser ? this.replyToUser : toUser) + \"&\" + encodeURIComponent(\"content.toUserId\") + \"=\" + encodeURIComponent(this.replyToUserId ? this.replyToUserId : toUserId) + \"&\" + encodeURIComponent(\"content.messageId\") + \"=\" + encodeURIComponent(this.replyMessageId ? this.replyMessageId : messageId) + \"&\" + encodeURIComponent(\"content.commentId\") + \"=\" + encodeURIComponent(this.replyCommentId) + \"&\" + encodeURIComponent(\"toContent\") + \"=\" + encodeURIComponent(this.replyTocontent ? this.replyTocontent : toContent) + \"&\" + encodeURIComponent(\"content.content\") + \"=\" + encodeURIComponent(this.tabpanelComment) + \"&\" + encodeURIComponent(\"content.attachment\") + \"=\" + encodeURIComponent(\"\");\n this.$api.doComment(newData, {\n onSucess: function onSucess(res) {\n if (res.data.status == 1) {\n _this13.messagesList[_this13.currentIndex ? _this13.currentIndex : index].replayData.unshift(res.data.data);\n _this13.$forceUpdate();\n _this13.replyToUser = \"\";\n _this13.replyToUserId = \"\";\n _this13.replyMessageId = \"\";\n _this13.replyCommentId = \"\";\n _this13.replyTocontent = \"\";\n _this13.tabpanelComment = \"\";\n }\n }\n });\n },\n //评论回复\n replyToComment: function replyToComment(toUser, toUserId, messageId, id, content, index) {\n this.tabpanelComment = \"回复 @\" + toUser + \" \";\n this.replyToUser = toUser;\n this.replyToUserId = toUserId;\n this.replyMessageId = messageId;\n this.replyCommentId = id;\n this.replyTocontent = content;\n this.currentIndex = index;\n },\n //展示评论区\n showComments: function showComments(index, id) {\n var _this14 = this;\n if (this.currentArray.indexOf(index) > -1) {\n for (var i = 0; i < this.currentArray.length; i++) {\n if (index == this.currentArray[i]) {\n this.currentArray.splice(i, 1);\n return;\n }\n }\n } else {\n this.currentArray.push(index);\n this.$api.getMessagesReplay(id, {\n onSucess: function onSucess(res) {\n _this14.messagesList[index].replayData = res.data.data.datas;\n _this14.$forceUpdate();\n }\n });\n }\n },\n //上传文件\n uploadFile: function uploadFile(e) {\n var _this15 = this;\n var fileArray = e.file;\n var file = fileArray;\n var that = this;\n var form = new FormData();\n var id = \"WU_FILE_0\",\n name = e.file.name,\n type = e.file.type,\n lastModifiedDate = e.file.lastModifiedDate,\n size = e.file.size;\n form.append(\"id\", id);\n form.append(\"name\", name);\n form.append(\"type\", type);\n form.append(\"lastModifiedDate\", lastModifiedDate);\n form.append(\"size\", size);\n form.append(\"file\", file);\n this.$api.messageUploadFile(form, {\n onSucess: function onSucess(res) {\n var obj = {\n extName: res.data.extName,\n id: res.data.id,\n size: res.data.size,\n type: res.data.type,\n name: res.data.name,\n url: res.data.url\n };\n _this15.fileList.push(obj);\n }\n });\n },\n getDeptData: function getDeptData() {\n var nodes = this.$refs.deptTree.getCheckedNodes();\n var dept = [];\n var name = [];\n var deptIdArray = [];\n if (nodes && nodes.length > 0) {\n for (var i = 0; i < nodes.length; i++) {\n var obj = {};\n obj.deptId = nodes[i].id;\n obj.deptName = nodes[i].name;\n name += nodes[i].name + \";\";\n dept.push(obj);\n deptIdArray.push(nodes[i].id);\n }\n this.defaultCheckedKeys = deptIdArray;\n // this.$refs.deptTree.setCheckedKeys(deptIdArray);\n if (this.isSendRange) {\n this.sendRangeName = name;\n this.sendRangeList = dept;\n } else {\n this.recipient = name;\n this.selectDeptList = dept;\n }\n }\n this.Receivedby = false;\n },\n loadNodeDept: function loadNodeDept(node, resolve) {\n var appid = this.$root.appid;\n if (node.level === 0) {\n API.getDepartmentsByParentId(appid, \"\", {\n onSucess: function onSucess(response) {\n resolve(response.data.data);\n }\n });\n } else {\n API.getDepartmentsByParentId(appid, node.key, {\n onSucess: function onSucess(response) {\n resolve(response.data.data);\n }\n });\n }\n },\n //发送公告里面的加号弹框\n PlusSign: function PlusSign(val) {\n var _this16 = this;\n if (val) {\n this.isSendRange = true;\n } else {\n this.isSendRange = \"\";\n }\n this.$api.getAllDeptList({\n onSucess: function onSucess(res) {\n _this16.deptList = res.data.data;\n }\n });\n this.Receivedby = true;\n },\n //把获取到的数据放到接受人里面去\n Receivethetitle: function Receivethetitle(event) {\n this.recipient = event.name;\n },\n Sendthescope: function Sendthescope(event) {\n this.msgsubmit = event.name;\n },\n updateData: function updateData(event) {\n this.textarea = event;\n // console.log(\"event--->\",event);\n this.currentWordCount = event.length;\n this.wordsRemaining = 10000 - event.length;\n },\n eduirelease: function eduirelease() {\n var _this17 = this;\n var that = this;\n if (this.headline.length == 0) {\n this.$message({\n message: \"标题不能为空!\",\n type: \"warning\"\n });\n } else if (this.recipient.length == 0) {\n this.$message({\n message: \"接收人不能为空!\",\n type: \"warning\"\n });\n } else if (this.textarea.length == 0) {\n this.$message({\n message: \"内容不能为空!\",\n type: \"warning\"\n });\n } else {\n var userData = {\n user: [],\n dept: this.selectDeptList\n };\n var newData = encodeURIComponent(\"content.title\") + \"=\" + encodeURIComponent(this.headline) + \"&\" + encodeURIComponent(\"content.content\") + \"=\" + encodeURIComponent(this.textarea) + \"&\" + encodeURIComponent(\"content.attachment\") + \"=\" + encodeURIComponent(\"\") + \"&\" + encodeURIComponent(\"content.scope\") + \"=\" + encodeURIComponent(2) + \"&\" + encodeURIComponent(\"receiverInfo\") + \"=\" + encodeURIComponent(JSON.stringify(userData)) + \"&\" + encodeURIComponent(\"content.type\") + \"=\" + encodeURIComponent(1) + \"&\" + encodeURIComponent(\"content.sticky\") + \"=\" + encodeURIComponent(this.otherSettings);\n this.loading = true;\n this.$api.makeAnnouncement(newData, {\n onSucess: function onSucess(res) {\n if (res.data.status == 1) {\n _this17.otherSettings = false;\n that.getMessagesList();\n that.centerDialogVisible = false;\n that.$notify({\n title: res.data.message,\n message: \"\",\n type: \"success\"\n });\n _this17.$api.getAnnouncement({\n onSucess: function onSucess(res) {\n _this17.announcementList = res.data.data.datas;\n }\n });\n } else {\n that.centerDialogVisible = false;\n that.$notify({\n title: \"发布失败\",\n message: \"\",\n type: \"error\"\n });\n }\n _this17.loading = false;\n }\n });\n this.headline = \"\";\n this.recipient = \"\";\n this.textarea = \"\";\n }\n },\n tabpanelInput: function tabpanelInput() {\n var txtVal = this.tabpanelComment.length;\n this.Howmanywords = 140 - txtVal;\n },\n eduiInput: function eduiInput() {\n var txtVal = this.textarea.length;\n this.eduisubtract = 10000 - txtVal;\n this.eduiPlus = 0 + txtVal;\n },\n descInput: function descInput() {\n var txtVal = this.information.length;\n this.remnant = 140 - txtVal;\n },\n handleRemove: function handleRemove(file, fileList) {\n var fl = this.fileList;\n if (fl && fl.length > 0) {\n for (var i = 0; i < fl.length; i++) {\n if (file.id == fl[i].id) {\n fl.splice(i, 1);\n break;\n }\n }\n }\n this.fileList = fl;\n },\n handlePreview: function handlePreview(file) {\n var _this18 = this;\n var params = {\n id: file.id,\n extName: file.extName,\n url: file.url,\n _: new Date().getTime()\n };\n this.$api.getPreview(params, {\n onSucess: function onSucess(res) {\n if (res.data.status === 1) {\n // console.log(\"file--->\",file);\n var fileName = file.id + file.extName;\n var url = _this18.obpmConfig.obpmFilePath + \"/message/pdfviewer.html?fileName=\" + fileName + \"&path=\" + file.url + \"&showName=\" + encodeURI(file.name) + \"&fileType=\" + file.extName;\n var URL = encodeURI(url);\n window.open(URL);\n }\n }\n });\n },\n handleExceed: function handleExceed(files) {\n this.$message.warning(\"\\u5F53\\u524D\\u9650\\u5236\\u9009\\u62E9 3 \\u4E2A\\u6587\\u4EF6\\uFF0C\\u672C\\u6B21\\u9009\\u62E9\\u4E86 \".concat(files.length, \" \\u4E2A\\u6587\\u4EF6\\uFF0C\\u5171\\u9009\\u62E9\\u4E86 \").concat(files.length, \" \\u4E2A\\u6587\\u4EF6\"));\n },\n beforeRemove: function beforeRemove(file) {\n return this.$confirm(\"\\u786E\\u5B9A\\u79FB\\u9664 \".concat(file.name, \"\\uFF1F\"));\n },\n //重置发送范围的输入框\n minus: function minus() {\n this.sendRangeName = \"\";\n },\n eduiminus: function eduiminus() {\n // console.log(\"this.recipient-->\",this.recipient);\n // console.log(\"this.selectDeptList-->\",this.selectDeptList);\n this.recipient = \"\";\n this.selectDeptList = \"\";\n },\n adhibition: function adhibition() {\n var _this19 = this;\n var that = this;\n if (!this.information) {\n this.$message({\n message: \"内容不能为空!\",\n type: \"warning\"\n });\n } else if (!this.sendRangeName) {\n this.$message({\n message: \"发送范围不能为空!\",\n type: \"warning\"\n });\n } else {\n var userData = {\n user: [],\n dept: this.sendRangeList\n };\n var newData = encodeURIComponent(\"content.content\") + \"=\" + encodeURIComponent(this.information) + \"&\" + encodeURIComponent(\"content.attachment\") + \"=\" + encodeURIComponent(JSON.stringify(this.fileList)) + \"&\" + encodeURIComponent(\"content.scope\") + \"=\" + encodeURIComponent(2) + \"&\" + encodeURIComponent(\"receiverInfo\") + \"=\" + encodeURIComponent(JSON.stringify(userData)) + \"&\" + encodeURIComponent(\"content.type\") + \"=\" + encodeURIComponent(0);\n // console.log('fileList==>',this.fileList)\n // console.log('newData==>',newData)\n this.$api.annouce(newData, {\n onSucess: function onSucess(res) {\n if (res.data.status == 1) {\n _this19.information = \"\";\n _this19.sendRangeName = \"\";\n _this19.sendRangeList = [];\n _this19.getMessagesList();\n that.$notify({\n title: res.data.message,\n message: \"\",\n type: \"success\"\n });\n }\n }\n });\n }\n },\n //获取企业动态公告和评论\n getMessagesList: function getMessagesList() {\n var _this20 = this;\n this.$api.getMessagesList({\n onSucess: function onSucess(res) {\n _this20.messagesListNum = res.data.data.rowCount;\n //this.messagesList = res.data.data.datas;\n var newData = res.data.data.datas.map(function (item) {\n return {\n attachment: item.attachment,\n comment: item.comment,\n commentCount: item.commentCount,\n content: _this20.getEmot(item.content),\n createTime: item.createTime,\n id: item.id,\n module: item.module,\n receiverDeptId: item.receiverDeptId,\n receiverId: item.receiverId,\n receiverInfo: item.receiverInfo,\n scope: item.scope,\n sender: item.sender,\n senderDept: item.senderDept,\n senderDeptId: item.senderDeptId,\n senderId: item.senderId,\n sticky: item.sticky,\n title: item.title,\n type: item.type\n };\n });\n _this20.messagesList = newData;\n }\n });\n },\n getEmot: function getEmot(val) {\n // eplaceFace : function(str){\n //     if(str && str != undefined){\n //       let re = /\\[.[^[]*\\]/g;\n //       let faceArr = str.match(re);\n //       if(faceArr != null && faceArr.length > 0){\n //         for(let i = 0; i < faceArr.length; i++){\n //           let fileName = Message.Util.cache.mapping[\"face_\"+faceArr[i]];\n //           str = str.replace(faceArr[i],'');\n //         }\n //       }\n //       return str;\n //     }\n //   },\n var value = val;\n var emo = \"\";\n for (var i = 0; i < this.emotionList.length; i++) {\n //value = value.replace(this.emotionList[i].type,'');\n\n value = value.replace(this.emotionList[i].type, this.emotionList[i].path);\n // console.log(\"value.--->\",value)\n }\n return value;\n },\n timeAgo: function timeAgo(dateTimeStamp) {\n var minute = 1000 * 60;\n var hour = minute * 60;\n var day = hour * 24;\n var halfamonth = day * 15;\n var month = day * 30;\n var time = \"\";\n if (dateTimeStamp == undefined) {\n return false;\n } else {\n dateTimeStamp = dateTimeStamp.replace(/\\-/g, \"/\");\n var sTime = new Date(dateTimeStamp).getTime(); //把时间pretime的值转为时间戳\n var now = new Date().getTime(); //获取当前时间的时间戳\n var diffValue = now - sTime;\n if (diffValue < 0) {}\n var monthC = diffValue / month;\n var weekC = diffValue / (7 * day);\n var dayC = diffValue / day;\n var hourC = diffValue / hour;\n var minC = diffValue / minute;\n if (monthC >= 1) {\n time = parseInt(monthC) + \"个月前\";\n } else if (weekC >= 1) {\n time = parseInt(weekC) + \"周前\";\n } else if (dayC >= 1) {\n time = parseInt(dayC) + \"天前\";\n } else if (hourC >= 1) {\n time = parseInt(hourC) + \"个小时前\";\n } else if (minC >= 1) {\n time = parseInt(minC) + \"分钟前\";\n } else {\n time = \"刚刚\";\n }\n }\n return time;\n }\n }\n};",null]}