1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["massOperation"],{"0781":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAk1BMVEUAAAAAwbQBwbUBwrUCwrYBwbUAwrYAzbMBwrUBwbUBwrUCwbUCwrUAwbUAwrYAwrYBwbYBwrUBwbUBwrYBwbUAwrYAwrUAwbYAwLQAvrgAv68BwrYBwrUCwrUAwrUAwrYAw7cAw7cAw7gAwbUAw7kBwrYBwbUCwrcAwbUAw7cAwbYAwbUAwLMAxbcBwbYCwbQBwbVBksG5AAAAMHRSTlMAEfvtmdluBPbp4Z+SfGhP9PDPzckvKR4bCgixrad1Yl1LRSMYwLqJgnFXPjo20aSMH9xxAAABIklEQVQoz3WS13KDMBQFhSimOQEbbOMa957s/39dhC0GEZF90RntiFsG0TC7LuJQukW6HQiLaSJpiL/+2iDEpJiacuChGA3v+0N5+8mB6GHo2vpboXFSCfmk/TKwrETLLgffaVoOlRUdniGkOifgV6LLBuT+/ViCrmtQgNdUHguLT3BfYQFDW88zKOvgw0PYnOC1vAymPTqBdX1KcHp0qmvmMOnRKwjqcwSfPXqsrz3wbHsAZnrCqLL0Gr7fE0Y9gzsuXN/xA7LSbiye65/BV7k7+oV6KZoyg+huLDQBXKfdvwRWevpqE1Mzav3OReF7w/V5EaI4dv3+hIEb1P0yNpa9O0oto7O6trw43C5ekgbPgcraFyrbtH4i/mfjLruvbX4BnUcqUEVerZEAAAAASUVORK5CYII="},"211a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAMAAAArteDzAAAAilBMVEUAAAD/mID/mID/pG7/loD/mIH/mIH/mID/mID/moH/lYP/lYH/mID/mYH/mYD/mYH/mID/mID/mYH/mYD/moH/mYH/mIL/m3r/mID/1cv/x7r/yr3/uKj/sZ//0sj/o47/noj/xbf/ppH/moL/va3/qZX/tKP/rZr/zMD/nIX/oIr/z8T/wLH/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Hqzo8AogCuLM3RzEulgAPCJ98xnzGYnQBMLc0LaZy3tDJpXGTpRRbMWXrcih6PQAFYqJaKZJSaFigjVXqFIwpQ5sU3/dyOaD0kj7oSs0qlj4YSsaMI8FtNmIilt0uByNKvupiIXXFvraaKKYQwlM/WRirQ1j6GP1qUPU0KtCalZIuit0l53qKRaNLytGjOmrSRLRreJq15g58IP2OhxXAHLQZm6DSERPlgF32G5SgfQKTPUCflg7L0HD5G5C1SB7q56TIkT/nkAQ2mOQZ+QoaYqaPBM8lF/nQcABrTHWmPH+OiAAAAAElFTkSuQmCC"},"4d67":function(t,e,r){"use strict";r("7def")},"675c":function(t,e,r){},"7def":function(t,e,r){},"8a2e":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"operation"},[n("Header",{attrs:{appHide:!0}},[n("template",{slot:"right"},["update"==t.type?n("div",{on:{click:t.onDel}},[t._v("删除")]):t._e()])],2),n("van-cell-group",{staticClass:"cellGroup"},[n("van-field",{attrs:{label:"发送群组",required:"","input-align":"right","label-class":"labelClass",readonly:"",placeholder:"请选择发送群组","is-link":""},on:{click:function(e){t.groupStatus=!0}},scopedSlots:t._u([{key:"input",fn:function(){return[t.selectIds.length>0?n("div",{staticClass:"class"},[t._v("\n "+t._s(t.selectIds.length)+"个群组\n "),n("img",{attrs:{src:r("dd77")}})]):t._e()]},proxy:!0}])}),n("van-field",{attrs:{label:"发送方式","input-align":"right",required:""},scopedSlots:t._u([{key:"input",fn:function(){return[n("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.form.sendType,callback:function(e){t.$set(t.form,"sendType",e)},expression:"form.sendType"}},[n("van-radio",{attrs:{name:"NOW"}},[t._v("即时发送")]),n("van-radio",{attrs:{name:"TIMING"}},[t._v("定时发送")])],1)]},proxy:!0}])}),"TIMING"==t.form.sendType?n("van-field",{attrs:{label:"发送时间",required:"","input-align":"right",readonly:"","is-link":"",placeholder:"请选择发送时间"},on:{click:function(e){t.timerStatus=!0}},model:{value:t.form.sendTime,callback:function(e){t.$set(t.form,"sendTime",e)},expression:"form.sendTime"}}):t._e()],1),n("van-cell-group",{staticClass:"cellGroup"},[n("div",{staticClass:"van-cell--required",staticStyle:{padding:"10px 16px 0",color:"#646566","font-size":"14px"}},[t._v("\n 发送内容\n ")]),n("van-field",{attrs:{type:"textarea",row:"2",placeholder:"请输入发送内容",border:!1,maxlength:"200","show-word-limit":""},model:{value:t.form.messageContent,callback:function(e){t.$set(t.form,"messageContent",e)},expression:"form.messageContent"}}),n("div",{staticClass:"access"},[n("p",{staticClass:"title"},[t._v("附件")]),n("van-field",{staticStyle:{padding:"0"},attrs:{border:!1},scopedSlots:t._u([{key:"input",fn:function(){return[n("van-uploader",{attrs:{"before-read":t.beforeRead,"before-delete":t.beforDelete,"after-read":t.afterRead,"max-count":1,accept:"*.*"},model:{value:t.uploader,callback:function(e){t.uploader=e},expression:"uploader"}})]},proxy:!0}])}),n("p",{staticClass:"tips"},[t._v("仅支持图片、PDF。最大上传5M。")])],1)],1),n("div",{staticClass:"btn-group"},[n("van-button",{attrs:{type:"primary",round:"",block:""},on:{click:t.onSubmit}},[t._v("确定")])],1),n("van-popup",{attrs:{position:"bottom"},model:{value:t.timerStatus,callback:function(e){t.timerStatus=e},expression:"timerStatus"}},[n("van-datetime-picker",{attrs:{formatter:t.formatter,"min-date":t.minDate},on:{cancel:function(e){t.timerStatus=!1},confirm:t.onConfirm},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1),n("van-popup",{attrs:{position:"bottom",round:""},model:{value:t.groupStatus,callback:function(e){t.groupStatus=e},expression:"groupStatus"}},[n("select-group",{attrs:{selectIds:t.selectIds},on:{onSubmit:t.onChoise}})],1)],1)},o=[],i=r("5a0c"),a=r.n(i),c=r("71c2"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"selectGroup"},[n("m-search",{on:{onSearch:t.onSearch}}),n("div",{staticClass:"group_section"},[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"}},[n("van-checkbox-group",{model:{value:t.groupIds,callback:function(e){t.groupIds=e},expression:"groupIds"}},t._l(t.list,(function(e,o){return n("van-cell",{key:o,on:{click:function(r){return t.onCheckbox(e)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("van-checkbox",{attrs:{name:e.id}}),"MUSIC"===e.type?n("img",{staticClass:"group_icon",attrs:{src:r("9dfc")}}):t._e(),"TRAINING"===e.type?n("img",{staticClass:"group_icon",attrs:{src:r("211a")}}):t._e(),"VIP"===e.type||"COMM"===e.type?n("img",{staticClass:"group_icon",attrs:{src:r("9157")}}):t._e()]},proxy:!0}],null,!0)},[n("div",{staticClass:"group_content"},[n("div",{staticClass:"group_title van-ellipsis"},[t._v(t._s(e.name))]),n("div",{staticClass:"group_desc van-ellipsis"},[t._v("\n "+t._s(e.memo)+"(共"+t._s(e.memberNum||0)+"人)\n ")])])])})),1)],1):n("m-empty",{attrs:{msg:"暂无数据"}})],1),n("div",{staticClass:"btn-group"},[n("van-button",{attrs:{type:"primary",round:"",block:""},on:{click:t.onSubmit}},[t._v("\n 确认\n ")])],1)],1)},u=[],l=r("d678"),f=r("4efa"),p=r("c106");function h(t){return h="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},h(t)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(C){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return I()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}t.wrap=s;var l={};function f(){}function p(){}function m(){}var v={};c(v,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(E([])));g&&g!==e&&r.call(g,o)&&(v=g);var w=m.prototype=f.prototype=Object.create(v);function A(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,c){var s=u(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==h(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(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 n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function x(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=m,c(w,"constructor",m),c(m,"constructor",p),p.displayName=c(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,a,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},A(b.prototype),c(b.prototype,i,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(w),c(w,a,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,L.prototype={constructor:L,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(k),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function m(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){m(i,n,o,a,c,"next",t)}function c(t){m(i,n,o,a,c,"throw",t)}a(void 0)}))}}function y(t){return b(t)||A(t)||w(t)||g()}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(t,e){if(t){if("string"===typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}function A(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function b(t){if(Array.isArray(t))return S(t)}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var x={name:"selectGroup",props:{selectIds:{type:Array,default:function(){return[]}}},components:{MSearch:p["a"],MEmpty:l["a"]},data:function(){return{list:[],groupIds:[],loading:!1,finished:!1,params:{search:"",active:0,page:1,rows:20},dataShow:!0}},mounted:function(){this.groupIds=y(this.selectIds),this.getList()},methods:{onSearch:function(t){this.dataShow=!0,this.loading=!1,this.finished=!1,this.params.search=t,this.params.page=1,this.list=[],this.getList()},onSubmit:function(){console.log(this.groupIds),this.$emit("onSubmit",this.groupIds)},onCheckbox:function(t){var e=this.groupIds.indexOf(t.id);e>-1?this.groupIds.splice(e,1):this.groupIds.push(t.id)},getList:function(){var t=v(d().mark((function t(){var e,r,n;return d().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.params,t.next=4,Object(f["f"])(e);case 4:if(r=t.sent,n=r.data,this.loading=!1,!(e.page>n.pageNo)){t.next=9;break}return t.abrupt("return");case 9:e.page=n.pageNo,this.list=this.list.concat(n.rows),e.page>=n.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}()}},k=x,L=(r("4d67"),r("2877")),E=Object(L["a"])(k,s,u,!1,null,"6006c1aa",null),I=E.exports,C=(r("4328"),r("b562"),r("bc3a")),U=r.n(C);function O(t){return O="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},O(t)}function K(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */K=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===l)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}t.wrap=s;var l={};function f(){}function p(){}function h(){}var d={};c(d,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&r.call(v,o)&&(d=v);var y=h.prototype=f.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(o,i,a,c){var s=u(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==O(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function A(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,A(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 n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,c(y,"constructor",h),c(h,"constructor",p),p.displayName=c(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),c(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(y),c(y,a,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,x.prototype={constructor:x,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(S),!t)for(var e in this)"t"===e.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function M(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function G(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){M(i,n,o,a,c,"next",t)}function c(t){M(i,n,o,a,c,"throw",t)}a(void 0)}))}}var B={name:"operation",components:{Header:c["a"],SelectGroup:I},data:function(){var t=this.$route.query,e=t.targetIds;return{type:t.type||"create",groupStatus:!1,timerStatus:!1,selectIds:e?e.split(","):[],uploader:t.fileUrl?[{url:t.fileUrl,file:{name:t.fileName}}]:[],date:null,minDate:new Date,id:t.id,form:{fileName:t.fileName||"",fileUrl:t.fileUrl||"",messageContent:t.messageContent||"",messageType:t.messageType||"",sendType:t.sendType||"NOW",sendTime:t.sendTime||"",targetIds:e||""},ossUploadUrl:"https://ks3-cn-beijing.ksyuncs.com/daya",dataObj:{policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""}}},methods:{checkFileType:function(t){return-1!=t.indexOf("pdf")||-1!=t.indexOf("image")},beforeRead:function(t){var e=t.size/1e3/1e3<5;return e?!!this.checkFileType(t.type)||(this.$toast("上传文件类型不支持"),!1):(this.$toast("上传文件大小不能超过 5MB"),!1)},beforDelete:function(){return this.form.fileName="",this.form.fileUrl="",!0},afterRead:function(){var t=G(K().mark((function t(e){var r,n,o,i,a,c,s,u,l,p;return K().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=this.form,t.prev=1,e.status="uploading",e.message="上传中...",n=e.file.name||"",o=n&&n.replace(/ /gi,"_"),i=(new Date).getTime()+o,a={filename:o,bucketName:this.bucket_name,postData:{filename:o,acl:"public-read",key:i,unknowValueField:[]}},t.next=10,Object(f["e"])(a);case 10:for(l in c=t.sent,s={policy:c.data.policy,signature:c.data.signature,key:i,KSSAccessKeyId:c.data.kssAccessKeyId,acl:"public-read",name:o},u=new FormData,s)u.append(l,s[l]);return u.append("file",e.file),t.next=17,U()({method:"post",url:this.ossUploadUrl,data:u});case 17:p=this.ossUploadUrl+"/"+i,e.status="done",r.fileName=e.file.name,r.fileUrl=p,r.messageType=this.onCheckFileType(e.file.type),t.next=31;break;case 24:return t.prev=24,t.t0=t["catch"](1),e.status="failed",e.message="上传失败",r.fileName="",r.fileUrl="",t.abrupt("return",!1);case 31:case"end":return t.stop()}}),t,this,[[1,24]])})));function e(e){return t.apply(this,arguments)}return e}(),onCheckFileType:function(t){return-1!=t.indexOf("image")?"IMG":-1!=t.indexOf("pdf")?"FILE":""},onDel:function(){var t=this;this.$dialog.confirm({title:"提示",message:"确定删除吗?",confirmButtonColor:"#01C1B5"}).then(G(K().mark((function e(){return K().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["b"])({id:t.id});case 3:t.$toast.success("删除成功"),setTimeout((function(){t.$router.back()}),1e3),e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))))},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):"hour"===t?"".concat(e,"时"):"minute"===t?"".concat(e,"分"):e},onChoise:function(t){this.groupStatus=!1,this.selectIds=t},onConfirm:function(t){this.form.sendTime=a()(t).format("YYYY-MM-DD HH:mm:ss"),this.timerStatus=!1},onSubmit:function(){var t=G(K().mark((function t(){var e,r=this;return K().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.form,!(this.selectIds&&this.selectIds.length<=0)){t.next=5;break}return this.$toast("请选择发送群组"),t.abrupt("return");case 5:if("TIMING"!=e.sendType||e.sendTime){t.next=8;break}return this.$toast("请选择发送时间"),t.abrupt("return");case 8:if(e.messageContent){t.next=11;break}return this.$toast("请输入消息内容"),t.abrupt("return");case 11:if(e.targetIds=this.selectIds.join(","),"create"!=this.type){t.next=18;break}return t.next=15,Object(f["c"])(e);case 15:this.$toast.success("创建成功"),t.next=22;break;case 18:return e.id=this.id,t.next=21,Object(f["d"])(e);case 21:this.$toast.success("修改成功");case 22:setTimeout((function(){r.$router.back()}),1e3),t.next=27;break;case 25:t.prev=25,t.t0=t["catch"](0);case 27:case"end":return t.stop()}}),t,this,[[0,25]])})));function e(){return t.apply(this,arguments)}return e}()}},j=B,Y=(r("cb08"),Object(L["a"])(j,n,o,!1,null,"547fefd1",null));e["default"]=Y.exports},9157:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF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iZ+MRjpUpDywQ+ggvTIyWRGKglTyNghFHcineYyKkDoUkV6Mu58I0KA39mMVBVEuOOnmX/HI7dTjoATqHOAf8ALlCg8CvQJlWA+S/UIoZgb/QGV2vWkOvYFPl9Ku3/Z5QjwNc6OEhelPhnQEzj87qvAUDH5XVJsE+BLVWHK/IojvXGkR+/+jiudkuSnXCOrILUi71aUug7CGPBKKglLoPgmvoaRkkTfsdL0u1T+SrpklmY2uZiR6gGJByuNSUInpQVlxTbUO1NpVmUiVno20T78GX/d5Je+ERtyoxioiISZkcLR0NNumXvsRDGnSNOccj3S0KI0JLe3zkjZOzDhTCd04vumDaXStHihC0fqo5QYilI5N0VfyN14fpaG5HP9WQoWnsesGzxJNbqYCEk+H3l3FMlKmyOlsNL1Y9njB0yYSXhuucEz/Uxq7rmY7LJH0LK/8ty0t16wD7IFR5YAnlV5haLll5JhcMkm6pSIzoiecYaq0onCLHp9mgQYM4QH+VWfY3NxMqnMXZ4fDMw18eEZ3XGcBLgk+CudLs87fpDo5ZGnj4ezXh4j+3jg7eXRvI9NhD63OyhbaMm2ty2k/je72m/L9bWB2P9WJ2W8gQZsxr1tH/e/0d1+S77/w4P2xxz//kCmytHR/3PI1fw47i98mkSz8R+MYwAAAABJRU5ErkJggg=="},ab06:function(t,e,r){"use strict";r("675c")},c106:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"search"},[t._t("left"),r("van-search",{attrs:{placeholder:t.placeholder,"left-icon":t.leftIcon,"show-action":""},on:{search:t.onSearch},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[r("template",{slot:"action"},[r("span",{staticClass:"search_btn",on:{click:t.onSearch}},[t._v("搜索")])])],2)],2)},o=[],i={props:{placeholder:{type:String,default:"请输入搜索关键词"}},data:function(){return{leftIcon:r("0781"),searchValue:""}},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},a=i,c=(r("ab06"),r("2877")),s=Object(c["a"])(a,n,o,!1,null,"50731f0e",null);e["a"]=s.exports},cb08:function(t,e,r){"use strict";r("f2a2")},f2a2:function(t,e,r){}}]);
|