massMessage.a9a602da.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["massMessage"],{"018c":function(t,e,n){"use strict";n("e9f4")},"0682":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"massMessage"},[n("van-sticky",{attrs:{"offset-top":"0"}},[n("Header",{attrs:{appHide:!0,isFixed:!1}},[n("template",{slot:"right"},[n("div",{on:{click:t.onCreate}},[t._v("新建")])])],2),n("van-tabs",{attrs:{color:"#01C1B5"},on:{change:t.onChange},model:{value:t.params.sendFlag,callback:function(e){t.$set(t.params,"sendFlag",e)},expression:"params.sendFlag"}},[n("van-tab",{attrs:{name:0,title:"待发送"}}),n("van-tab",{attrs:{name:1,title:"已发送"}})],1)],1),t.dataShow?n("van-list",{attrs:{finished:t.finished,"finished-text":"- 没有更多了 -","immediate-check":!1},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e,r){return n("Item",{key:r,attrs:{item:e},on:{onDetail:t.onDetail}})})),1):n("m-empty",{attrs:{msg:"暂无数据"}})],1)},i=[],o=n("71c2"),a=n("d678"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("van-cell-group",{staticClass:"cellGroup",on:{click:t.onDetail}},[r("van-cell",{attrs:{center:"","title-class":"titleClass"},scopedSlots:t._u([{key:"icon",fn:function(){return[r("img",{staticClass:"icon_timer",attrs:{src:n("efa8")}})]},proxy:!0},{key:"title",fn:function(){return[t._v("\n "+t._s(t.sendTime)+"\n ")]},proxy:!0}])},[r("div",{staticClass:"class"},[t._v("\n "+t._s(t.groupIds.length)+"个群组\n "),r("img",{attrs:{src:n("dd77")}})])]),r("van-cell",[r("div",{staticClass:"message_content van-multi-ellipsis--l3"},[t._v("\n 发送内容:"+t._s(t.item.messageContent)+"\n ")]),t.item.fileUrl?r("div",{staticClass:"access"},[r("p",{staticClass:"title"},[t._v("附件")]),"FILE"==t.item.messageType?r("div",{staticClass:"file"},[r("img",{attrs:{src:n("0901")}}),r("span",{staticClass:"van-ellipsis",staticStyle:{width:"80%"}},[t._v(t._s(t.item.fileName))])]):t._e(),"IMG"==t.item.messageType?r("div",{staticClass:"file"},[r("van-image",{staticClass:"img",attrs:{src:t.item.fileUrl}}),r("span",{staticClass:"van-ellipsis",staticStyle:{width:"80%"}},[t._v(t._s(t.item.fileName))])],1):t._e()]):t._e()])],1)},c=[],u=n("5a0c"),l=n.n(u),h={name:"item",props:["item"],computed:{groupIds:function(){var t=this.item.targetIds?this.item.targetIds.split(","):[];return t},sendTime:function(){return l()(this.item.sendTime).format("YYYY-MM-DD HH:mm")}},methods:{onDetail:function(){this.$listeners.onDetail(this.item)}}},f=h,p=(n("018c"),n("2877")),d=Object(p["a"])(f,s,c,!1,null,"75fd5378",null),g=d.exports,m=n("4efa");function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(S){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return F()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=L(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(S){return{type:"throw",arg:S}}}t.wrap=c;var l={};function h(){}function f(){}function p(){}var d={};s(d,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==e&&n.call(m,i)&&(d=m);var w=p.prototype=h.prototype=Object.create(d);function A(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,a,s){var c=u(t[i],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==v(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function L(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:F}}function F(){return{value:void 0,done:!0}}return f.prototype=p,s(w,"constructor",p),s(p,"constructor",f),f.displayName=s(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},A(x.prototype),s(x.prototype,o,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(w),s(w,a,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function w(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function A(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){w(o,r,i,a,s,"next",t)}function s(t){w(o,r,i,a,s,"throw",t)}a(void 0)}))}}var x={name:"massMessage",components:{Header:o["a"],Item:g,MEmpty:a["a"]},data:function(){return{list:[],loading:!1,finished:!1,params:{sendFlag:0,page:1,rows:20},dataShow:!0}},mounted:function(){this.getList()},methods:{onCreate:function(){this.$router.push({path:"/massOperation",query:{type:"create"}})},onDetail:function(t){console.log("onDetail",t),t.sendFlag||this.$router.push({path:"/massOperation",query:{type:"update",id:t.id,messageContent:t.messageContent,messageType:t.messageType,fileName:t.fileName,fileUrl:t.fileUrl,sendTime:t.sendTime,sendType:t.sendType,targetIds:t.targetIds}})},onChange:function(){this.list=[],this.params.page=1,this.dataShow=!0,this.loading=!0,this.finished=!1,this.getList()},getList:function(){var t=A(y().mark((function t(){var e,n,r;return y().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.params,t.next=4,Object(m["a"])(this.params);case 4:if(n=t.sent,r=n.data,this.loading=!1,!(e.page>r.pageNo)){t.next=9;break}return t.abrupt("return");case 9:e.page=r.pageNo,this.list=this.list.concat(r.rows),e.page>=r.totalPage&&(this.finished=!0),this.params.page++,this.list.length<=0&&(this.dataShow=!1),t.next=20;break;case 16:t.prev=16,t.t0=t["catch"](0),this.finished=!0,this.dataShow=!1;case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));function e(){return t.apply(this,arguments)}return e}()}},L=x,b=(n("63b3"),Object(p["a"])(L,r,i,!1,null,"1ecfa1c4",null));e["default"]=b.exports},"0901":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAA0CAYAAADxAdr3AAAAAXNSR0IArs4c6QAABB9JREFUaEPtmk9oJEUUxr/XPa6GYdHERIIOAVn/HLyIgsKCggoaBF1QETxswKSqAwYVBdHLYvCyoCAorjJTNcnGg2hAUBFBD4IXD6LuHkRh0QWX9eS6h41mxzhdT0qmQ2WYnu6u6dnNsNZpoF69+vU3r15V12uC0+r1+r4gCJ4F8ACAGQBXuP0pv89IKaeSPqXURwAOZI2bmJg4Xa1W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X8ewF8BuDy3MMvrOHfAB6UUn65XVhYWVnZH8exvS3fd2FZMmf7JQzDufn5+a+t5Y5KiC0GEtGjnYuQvF+kZM7oYdACcIqZv7BfDrjXutmlG4/ZhjnkX2lJn4dX9BwPAAAAAElFTkSuQmCC"},"63b3":function(t,e,n){"use strict";n("a7bc")},a7bc:function(t,e,n){},e9f4:function(t,e,n){},efa8:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAi5JREFUWEfFl79LHEEUxz/DYXAVsVDRQkQFbQKmVdBGiUVqtdXCJqAg5O8IChHSpPBa7S2Us/AE60isBBVRUNRGi5PoMfJus3qeOz/2TrOvW+bNe5+Zed/ZN4oK0ysrH4FZlPoMdAFNlT4Jv2+BE7TeBH6pmZn98vkq+tCrqx8oFL4DX4FMwiS+7kXgJ0HwTU1N/ZVJJYB/ydeBMd9INfrlCIIvAhECZLM/gLkagyadvqymp+dV6cyV+v2O224CK6L1JwFYRKmFpPhv4q/1ktLZ7B9AKt/f6uuhtRWCIJxTKMDVFdzd+ccIPfcF4MZbah0dMDAA7e2gngQUhtIaLi5gbw/Oz31BbgVAO70zGRgagt5ep2vJ4fAQdnehKKqzmxtAko+PQ1ubK9bL8ctL2NhwQrgBhofjV35/D0dH0NMDdXXxcLITOztWcDuAnLmsPs6Oj2F7G0ZGQgiTyS5YasIOIMkFIs5k9fk8mHYomiPJBcJgZgCR2uTk62qPAvkCiDrW1owSNQN0dsLoqHlrfQEkwtYWnJ7GxjID9PWF0jNZBNDdDS0toVdzMwh4pYkkDw4SAvT3w+CgGeDsDHK5l+MNDTAx8UYAriOQs72+hoeH54SNjdAU079UdQSuIrSqu2yw6iKUGDYZ+gJULUNJYLuIfAFquogkieuisYHUfBVL8NR/RhHEO/6OU29IUm7JUm9K027LpcZSfZiUAMJ3YXpPszKIdB6n5ZfZ/36ePwLYOicwM1ahjgAAAABJRU5ErkJggg=="}}]);