Commit dd1da041 authored by Davve's avatar Davve

run build

parent 1a2c27c2
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>更美社区后台</title><link rel="shortcut icon" href=/favicon.ico><link href=/static/css/chunk-elementUI.e8091cad.css rel=stylesheet><link href=/static/css/chunk-libs.825f9043.css rel=stylesheet><link href=/static/css/app.1aeb4577.css rel=stylesheet></head><body><script src=/static/tinymce4.7.5/tinymce.min.js></script><script src=/static/jquery.min.js></script><script src=/static/webuploader.min.js></script><div id=app></div><script>!function(e){function n(n){for(var u,t,o=n[0],h=n[1],f=n[2],d=0,b=[];d<o.length;d++)t=o[d],r[t]&&b.push(r[t][0]),r[t]=0;for(u in h)Object.prototype.hasOwnProperty.call(h,u)&&(e[u]=h[u]);for(k&&k(n);b.length;)b.shift()();return a.push.apply(a,f||[]),c()}function c(){for(var e,n=0;n<a.length;n++){for(var c=a[n],u=!0,t=1;t<c.length;t++){var h=c[t];0!==r[h]&&(u=!1)}u&&(a.splice(n--,1),e=o(o.s=c[0]))}return e}var u={},t={runtime:0},r={runtime:0},a=[];function o(n){if(u[n])return u[n].exports;var c=u[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,o),c.l=!0,c.exports}o.e=function(e){var n=[];t[e]?n.push(t[e]):0!==t[e]&&{"chunk-11a3":1,"chunk-5ee7":1,"chunk-93d2":1,"chunk-b3a9":1,"chunk-commons":1,"chunk-08bc":1,"chunk-1f33":1,"chunk-2301":1,"chunk-2407":1,"chunk-28ba":1,"chunk-2b93":1,"chunk-2b9c":1,"chunk-35eb":1,"chunk-42c8":1,"chunk-487d":1,"chunk-4daa":1,"chunk-5332":1,"chunk-570c":1,"chunk-5ae3":1,"chunk-6e60":1,"chunk-7121":1,"chunk-9e04":1,"chunk-a437":1,"chunk-bc2a":1,"chunk-bc2b":1,"chunk-d3e2":1}[e]&&n.push(t[e]=new Promise(function(n,c){for(var u="static/css/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"31d6cfe0",JEtC:"31d6cfe0","chunk-11a3":"985b1424","chunk-5ee7":"0d13629a","chunk-93d2":"12515bbe","chunk-b3a9":"66fca14e","chunk-commons":"f5305ad7","chunk-08bc":"f8811db7","chunk-1f33":"c77fe721","chunk-2301":"15c8db86","00Qp":"31d6cfe0",x10K:"31d6cfe0","chunk-2407":"0d8f2d67","chunk-28ba":"a6ffd0c5","chunk-2b93":"4f2debcc","chunk-2b9c":"4f2debcc","chunk-35eb":"c95fdf1d","chunk-42c8":"961bb2d2","chunk-487d":"da50c556",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-4daa":"f7255857","chunk-5332":"16c2a629","chunk-570c":"07aff359",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-5ae3":"4b6e2bd4","chunk-6e60":"f2f81116","chunk-7121":"748763fd","chunk-9e04":"5f2d5129","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-a437":"f2f81116","chunk-bc2a":"32735a21","chunk-bc2b":"32735a21","chunk-d3e2":"0d8f2d67"}[e]+".css",t=o.p+u,r=document.getElementsByTagName("link"),a=0;a<r.length;a++){var h=(d=r[a]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(h===u||h===t))return n()}var f=document.getElementsByTagName("style");for(a=0;a<f.length;a++){var d;if((h=(d=f[a]).getAttribute("data-href"))===u||h===t)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var u=n&&n.target&&n.target.src||t,r=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");r.request=u,c(r)},k.href=t,document.getElementsByTagName("head")[0].appendChild(k)}).then(function(){t[e]=0}));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise(function(n,u){c=r[e]=[n,u]});n.push(c[2]=u);var a,h=document.getElementsByTagName("head")[0],f=document.createElement("script");f.charset="utf-8",f.timeout=120,o.nc&&f.setAttribute("nonce",o.nc),f.src=function(e){return o.p+"static/js/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"acd9b7e4",JEtC:"d582661d","chunk-11a3":"0550dd47","chunk-5ee7":"f07e3c68","chunk-93d2":"093c634c","chunk-b3a9":"4da6a2b6","chunk-commons":"5cca9b47","chunk-08bc":"75d5e9a2","chunk-1f33":"487348bb","chunk-2301":"716ff23b","00Qp":"805ee71d",x10K:"cf7e5bba","chunk-2407":"7d753408","chunk-28ba":"54dbf286","chunk-2b93":"6ccfa9b8","chunk-2b9c":"7de75cb3","chunk-35eb":"bcd66a61","chunk-42c8":"d921bceb","chunk-487d":"a2033648",SoCV:"49bd7f8a",VwWe:"37520311","chunk-4daa":"db907712","chunk-5332":"8d22ba39","chunk-570c":"8d79a4c8",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-5ae3":"8aab3341","chunk-6e60":"7790d972","chunk-7121":"ff31279d","chunk-9e04":"65c83460","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-a437":"ae104760","chunk-bc2a":"250e391a","chunk-bc2b":"0134d652","chunk-d3e2":"e408c971"}[e]+".js"}(e),a=function(n){f.onerror=f.onload=null,clearTimeout(d);var c=r[e];if(0!==c){if(c){var u=n&&("load"===n.type?"missing":n.type),t=n&&n.target&&n.target.src,a=new Error("Loading chunk "+e+" failed.\n("+u+": "+t+")");a.type=u,a.request=t,c[1](a)}r[e]=void 0}};var d=setTimeout(function(){a({type:"timeout",target:f})},12e4);f.onerror=f.onload=a,h.appendChild(f)}return Promise.all(n)},o.m=e,o.c=u,o.d=function(e,n,c){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)o.d(c,u,function(n){return e[n]}.bind(null,u));return c},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/",o.oe=function(e){throw console.error(e),e};var h=window.webpackJsonp=window.webpackJsonp||[],f=h.push.bind(h);h.push=n,h=h.slice();for(var d=0;d<h.length;d++)n(h[d]);var k=f;c()}([]);</script><script src=/static/js/chunk-elementUI.9e82bb46.js></script><script src=/static/js/chunk-libs.726e3331.js></script><script src=/static/js/app.049b0640.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>更美社区后台</title><link rel="shortcut icon" href=/favicon.ico><link href=/static/css/chunk-elementUI.e8091cad.css rel=stylesheet><link href=/static/css/chunk-libs.825f9043.css rel=stylesheet><link href=/static/css/app.1aeb4577.css rel=stylesheet></head><body><script src=/static/tinymce4.7.5/tinymce.min.js></script><script src=/static/jquery.min.js></script><script src=/static/webuploader.min.js></script><div id=app></div><script>!function(e){function n(n){for(var u,t,o=n[0],h=n[1],d=n[2],f=0,b=[];f<o.length;f++)t=o[f],r[t]&&b.push(r[t][0]),r[t]=0;for(u in h)Object.prototype.hasOwnProperty.call(h,u)&&(e[u]=h[u]);for(k&&k(n);b.length;)b.shift()();return a.push.apply(a,d||[]),c()}function c(){for(var e,n=0;n<a.length;n++){for(var c=a[n],u=!0,t=1;t<c.length;t++){var h=c[t];0!==r[h]&&(u=!1)}u&&(a.splice(n--,1),e=o(o.s=c[0]))}return e}var u={},t={runtime:0},r={runtime:0},a=[];function o(n){if(u[n])return u[n].exports;var c=u[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,o),c.l=!0,c.exports}o.e=function(e){var n=[];t[e]?n.push(t[e]):0!==t[e]&&{"chunk-11a3":1,"chunk-5ee7":1,"chunk-93d2":1,"chunk-b3a9":1,"chunk-commons":1,"chunk-08bc":1,"chunk-1ca7":1,"chunk-1cb0":1,"chunk-1f33":1,"chunk-2301":1,"chunk-2407":1,"chunk-28ba":1,"chunk-35eb":1,"chunk-42c8":1,"chunk-487d":1,"chunk-4daa":1,"chunk-5332":1,"chunk-570c":1,"chunk-5ae3":1,"chunk-6e60":1,"chunk-7121":1,"chunk-9e04":1,"chunk-a437":1,"chunk-bc2a":1,"chunk-bc2b":1,"chunk-d3e2":1}[e]&&n.push(t[e]=new Promise(function(n,c){for(var u="static/css/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"31d6cfe0",JEtC:"31d6cfe0","chunk-11a3":"985b1424","chunk-5ee7":"0d13629a","chunk-93d2":"12515bbe","chunk-b3a9":"66fca14e","chunk-commons":"f5305ad7","chunk-08bc":"f8811db7","chunk-1ca7":"877d5d6d","chunk-1cb0":"877d5d6d","chunk-1f33":"c77fe721","chunk-2301":"15c8db86","00Qp":"31d6cfe0",x10K:"31d6cfe0","chunk-2407":"0d8f2d67","chunk-28ba":"a6ffd0c5","chunk-35eb":"c95fdf1d","chunk-42c8":"961bb2d2","chunk-487d":"da50c556",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-4daa":"f7255857","chunk-5332":"16c2a629","chunk-570c":"07aff359",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-5ae3":"4b6e2bd4","chunk-6e60":"f2f81116","chunk-7121":"748763fd","chunk-9e04":"5f2d5129","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-a437":"f2f81116","chunk-bc2a":"32735a21","chunk-bc2b":"32735a21","chunk-d3e2":"0d8f2d67"}[e]+".css",t=o.p+u,r=document.getElementsByTagName("link"),a=0;a<r.length;a++){var h=(f=r[a]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(h===u||h===t))return n()}var d=document.getElementsByTagName("style");for(a=0;a<d.length;a++){var f;if((h=(f=d[a]).getAttribute("data-href"))===u||h===t)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var u=n&&n.target&&n.target.src||t,r=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");r.request=u,c(r)},k.href=t,document.getElementsByTagName("head")[0].appendChild(k)}).then(function(){t[e]=0}));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise(function(n,u){c=r[e]=[n,u]});n.push(c[2]=u);var a,h=document.getElementsByTagName("head")[0],d=document.createElement("script");d.charset="utf-8",d.timeout=120,o.nc&&d.setAttribute("nonce",o.nc),d.src=function(e){return o.p+"static/js/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"acd9b7e4",JEtC:"d582661d","chunk-11a3":"0550dd47","chunk-5ee7":"f07e3c68","chunk-93d2":"093c634c","chunk-b3a9":"4da6a2b6","chunk-commons":"5cca9b47","chunk-08bc":"75d5e9a2","chunk-1ca7":"de9873b5","chunk-1cb0":"f0a821f5","chunk-1f33":"487348bb","chunk-2301":"716ff23b","00Qp":"805ee71d",x10K:"cf7e5bba","chunk-2407":"7d753408","chunk-28ba":"54dbf286","chunk-35eb":"bcd66a61","chunk-42c8":"d921bceb","chunk-487d":"a2033648",SoCV:"49bd7f8a",VwWe:"37520311","chunk-4daa":"db907712","chunk-5332":"8d22ba39","chunk-570c":"8d79a4c8",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-5ae3":"8aab3341","chunk-6e60":"7790d972","chunk-7121":"ff31279d","chunk-9e04":"65c83460","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-a437":"ae104760","chunk-bc2a":"250e391a","chunk-bc2b":"0134d652","chunk-d3e2":"e408c971"}[e]+".js"}(e),a=function(n){d.onerror=d.onload=null,clearTimeout(f);var c=r[e];if(0!==c){if(c){var u=n&&("load"===n.type?"missing":n.type),t=n&&n.target&&n.target.src,a=new Error("Loading chunk "+e+" failed.\n("+u+": "+t+")");a.type=u,a.request=t,c[1](a)}r[e]=void 0}};var f=setTimeout(function(){a({type:"timeout",target:d})},12e4);d.onerror=d.onload=a,h.appendChild(d)}return Promise.all(n)},o.m=e,o.c=u,o.d=function(e,n,c){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)o.d(c,u,function(n){return e[n]}.bind(null,u));return c},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/",o.oe=function(e){throw console.error(e),e};var h=window.webpackJsonp=window.webpackJsonp||[],d=h.push.bind(h);h.push=n,h=h.slice();for(var f=0;f<h.length;f++)n(h[f]);var k=d;c()}([]);</script><script src=/static/js/chunk-elementUI.9e82bb46.js></script><script src=/static/js/chunk-libs.726e3331.js></script><script src=/static/js/app.0a31eb91.js></script></body></html>
\ No newline at end of file
.createPost-container[data-v-61de98ac]{position:relative}.createPost-container .createPost-main-container[data-v-61de98ac]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-61de98ac]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-61de98ac]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-61de98ac]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-61de98ac]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-61de98ac]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-61de98ac]{display:inline-block}.createPost-container .word-counter[data-v-61de98ac]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-2463032a]{position:relative}.createPost-container .createPost-main-container[data-v-2463032a]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-2463032a]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-2463032a]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-2463032a]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-2463032a]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-2463032a]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-2463032a]{display:inline-block}.createPost-container .word-counter[data-v-2463032a]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-61de98ac]{position:relative}.createPost-container .createPost-main-container[data-v-61de98ac]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-61de98ac]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-61de98ac]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-61de98ac]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-61de98ac]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-61de98ac]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-61de98ac]{display:inline-block}.createPost-container .word-counter[data-v-61de98ac]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.createPost-container[data-v-2463032a]{position:relative}.createPost-container .createPost-main-container[data-v-2463032a]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-2463032a]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-2463032a]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-2463032a]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-2463032a]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-2463032a]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-2463032a]{display:inline-block}.createPost-container .word-counter[data-v-2463032a]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2b9c"],{"6cK7":function(t,e,a){"use strict";var o=a("P2sY"),i=a.n(o),s=a("fL+G"),r=a("Grqa"),n=a("uARZ"),l=a("KHd+"),c=Object(l.a)({},function(){var t=this.$createElement;return(this._self._c||t)("p",{staticClass:"warn-content",staticStyle:{"text-align":"center"}},[this._v("\n 点击生效以后,页面所有内容不可进行编辑,请谨慎操作!!\n")])},[],!1,null,null,null);c.options.__file="Warning.vue";var p=c.exports,u=(a("Yfch"),a("giwc")),m={status:"draft",title:"",content:"",icon:"",push_time:"",url:"",creator_name:"",group_topic_id:""},d=[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}].reduce(function(t,e){return t[e.key]=e.display_name,t},{}),f={name:"PushDetail",components:{MDinput:r.a,Upload:s.a,Sticky:n.a,Warning:p},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:i()({},m),loading:!1,userListOptions:[],URLOptions:[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}],expireTimeOption:{disabledDate:function(t){return t.getTime()<=Date.now()-864e5}},rules:{title:[{validator:e,trigger:"blur"}],content:[{validator:e,trigger:"blur"}],url:[{validator:e,trigger:"blur"}],icon:[{validator:e,trigger:"blur"}],push_time:[{validator:e,trigger:"blur"}],group_topic_id:[{validator:e,trigger:"blur"}]},tempRoute:{},uploadType:1,is_effect:!1}},computed:{contentShortLength:function(){return this.postForm.content.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=i()({},m);this.tempRoute=i()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(u.d)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.url=d[t.data.data.data.url_prefix],e.is_effect=Boolean(t.data.data.data.is_effect)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.postForm.creator_id=t.$store.getters.id,Object(u.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/push/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},effectPush:function(){var t=this;if(this.postForm.push_time<Date.now())return this.$message.error("推送时间已过期, 请重新设置!!"),!1;this.is_effect=Boolean(1);var e=this.$route.params&&this.$route.params.id;Object(u.b)(e).then(function(e){console.log(e.data.data.message),t.$message({message:e.data.data.message,type:"success"}),t.$router.go(0)}).catch(function(t){})}}},h=(a("l4mX"),Object(l.a)(f,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[t.isEdit&&!t.is_effect?a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.effectPush}},[t._v("生效")]):t._e(),t._v(" "),t.is_effect?t._e():a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[t.isEdit?a("Warning"):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"title"}},[a("MDinput",{attrs:{maxlength:100,name:"title",required:""},model:{value:t.postForm.title,callback:function(e){t.$set(t.postForm,"title",e)},expression:"postForm.title"}},[t._v("\n 推送标题\n ")])],1),t._v(" "),a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送ID:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"create_time"}},[t.isEdit?a("el-input",{staticClass:"article-textarea",staticStyle:{width:"199px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}}):t._e()],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建用户:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.creator_name,callback:function(e){t.$set(t.postForm,"creator_name",e)},expression:"postForm.creator_name"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送落地:",prop:"url"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"协议:",clearable:""},model:{value:t.postForm.url,callback:function(e){t.$set(t.postForm,"url",e)},expression:"postForm.url"}},t._l(t.URLOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"80px",label:"推送时间:",prop:"push_time"}},[a("el-date-picker",{staticStyle:{width:"199px"},attrs:{type:"datetime",placeholder:"选择日期时间","picker-options":t.expireTimeOption},model:{value:t.postForm.push_time,callback:function(e){t.$set(t.postForm,"push_time",e)},expression:"postForm.push_time"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"135px",label:"推送(帖子/小组)ID):",prop:"group_topic_id"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text"},model:{value:t.postForm.group_topic_id,callback:function(e){t.$set(t.postForm,"group_topic_id",e)},expression:"postForm.group_topic_id"}})],1)],1)],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送内容:",prop:"content"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.content,callback:function(e){t.$set(t.postForm,"content",e)},expression:"postForm.content"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送头像:",prop:"icon",disabled:t.is_effect}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("Upload",{attrs:{uploadType:t.uploadType},model:{value:t.postForm.icon,callback:function(e){t.$set(t.postForm,"icon",e)},expression:"postForm.icon"}})],1)],1)],1)],1)],1)},[],!1,null,"61de98ac",null));h.options.__file="PushDetail.vue";e.a=h.exports},Bx1I:function(t,e,a){},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return i});var o=a("t3Un");function i(){return Object(o.a)({url:"/api/get_token",method:"get"})}},Yfch:function(t,e,a){"use strict"},giwc:function(t,e,a){"use strict";a.d(e,"c",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"d",function(){return r}),a.d(e,"b",function(){return n});var o=a("t3Un");function i(t){return Object(o.a)({url:"/api/push/list",method:"get",params:t})}function s(t){return Object(o.a)({url:"/api/push/create",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/push/detail",method:"get",params:{id:t}})}function n(t){return Object(o.a)({url:"/api/push/effect_push",method:"get",params:{id:t}})}},l4mX:function(t,e,a){"use strict";var o=a("Bx1I");a.n(o).a},zhOR:function(t,e,a){"use strict";a.r(e);var o={name:"CreatePush",components:{PushDetail:a("6cK7").a}},i=a("KHd+"),s=Object(i.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("push-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);s.options.__file="create.vue";e.default=s.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1ca7"],{"6cK7":function(t,e,a){"use strict";var o=a("P2sY"),i=a.n(o),s=a("fL+G"),r=a("Grqa"),n=a("uARZ"),l=a("KHd+"),c=Object(l.a)({},function(){var t=this.$createElement;return(this._self._c||t)("p",{staticClass:"warn-content",staticStyle:{"text-align":"center"}},[this._v("\n 点击生效以后,页面所有内容不可进行编辑,请谨慎操作!!\n")])},[],!1,null,null,null);c.options.__file="Warning.vue";var p=c.exports,u=(a("Yfch"),a("giwc")),m={status:"draft",title:"",content:"",icon:"",push_time:"",url:"",creator_name:"",group_topic_id:""},d=[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}].reduce(function(t,e){return t[e.key]=e.display_name,t},{}),f={name:"PushDetail",components:{MDinput:r.a,Upload:s.a,Sticky:n.a,Warning:p},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:i()({},m),loading:!1,userListOptions:[],URLOptions:[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}],expireTimeOption:{disabledDate:function(t){return t.getTime()<=Date.now()-864e5}},rules:{title:[{validator:e,trigger:"blur"}],content:[{validator:e,trigger:"blur"}],url:[{validator:e,trigger:"blur"}],icon:[{validator:e,trigger:"blur"}],push_time:[{validator:e,trigger:"blur"}],group_topic_id:[{validator:e,trigger:"blur"}]},tempRoute:{},uploadType:1,is_effect:!1}},computed:{contentShortLength:function(){return this.postForm.content.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=i()({},m);this.tempRoute=i()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(u.d)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.url=d[t.data.data.data.url_prefix],e.is_effect=Boolean(t.data.data.data.is_effect)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.postForm.creator_id=t.$store.getters.id,Object(u.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/push/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},effectPush:function(){var t=this;if(this.postForm.push_time<Date.now())return this.$message.error("推送时间已过期, 请重新设置!!"),!1;this.is_effect=Boolean(1);var e=this.$route.params&&this.$route.params.id;Object(u.b)(e).then(function(e){console.log(e.data.data.message),t.$message({message:e.data.data.message,type:"success"}),t.$router.go(0)}).catch(function(t){})}}},h=(a("o1L4"),Object(l.a)(f,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[t.isEdit&&!t.is_effect?a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.effectPush}},[t._v("生效")]):t._e(),t._v(" "),t.is_effect?t._e():a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[t.isEdit?a("Warning"):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"title"}},[a("MDinput",{attrs:{maxlength:100,name:"title",required:""},model:{value:t.postForm.title,callback:function(e){t.$set(t.postForm,"title",e)},expression:"postForm.title"}},[t._v("\n 推送标题\n ")])],1),t._v(" "),a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送ID:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"create_time"}},[t.isEdit?a("el-input",{staticClass:"article-textarea",staticStyle:{width:"199px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}}):t._e()],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建用户:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.creator_name,callback:function(e){t.$set(t.postForm,"creator_name",e)},expression:"postForm.creator_name"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送落地:",prop:"url"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"协议:",clearable:""},model:{value:t.postForm.url,callback:function(e){t.$set(t.postForm,"url",e)},expression:"postForm.url"}},t._l(t.URLOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"80px",label:"推送时间:",prop:"push_time"}},[a("el-date-picker",{staticStyle:{width:"199px"},attrs:{type:"datetime",placeholder:"选择日期时间","picker-options":t.expireTimeOption,"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.postForm.push_time,callback:function(e){t.$set(t.postForm,"push_time",e)},expression:"postForm.push_time"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"135px",label:"推送(帖子/小组)ID):",prop:"group_topic_id"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text"},model:{value:t.postForm.group_topic_id,callback:function(e){t.$set(t.postForm,"group_topic_id",e)},expression:"postForm.group_topic_id"}})],1)],1)],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送内容:",prop:"content"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.content,callback:function(e){t.$set(t.postForm,"content",e)},expression:"postForm.content"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送头像:",prop:"icon",disabled:t.is_effect}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("Upload",{attrs:{uploadType:t.uploadType},model:{value:t.postForm.icon,callback:function(e){t.$set(t.postForm,"icon",e)},expression:"postForm.icon"}})],1)],1)],1)],1)],1)},[],!1,null,"2463032a",null));h.options.__file="PushDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return i});var o=a("t3Un");function i(){return Object(o.a)({url:"/api/get_token",method:"get"})}},Yfch:function(t,e,a){"use strict"},gB7W:function(t,e,a){"use strict";a.r(e);var o={name:"EditPush",components:{PushDetail:a("6cK7").a}},i=a("KHd+"),s=Object(i.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("push-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);s.options.__file="edit.vue";e.default=s.exports},giwc:function(t,e,a){"use strict";a.d(e,"c",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"d",function(){return r}),a.d(e,"b",function(){return n});var o=a("t3Un");function i(t){return Object(o.a)({url:"/api/push/list",method:"get",params:t})}function s(t){return Object(o.a)({url:"/api/push/create",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/push/detail",method:"get",params:{id:t}})}function n(t){return Object(o.a)({url:"/api/push/effect_push",method:"get",params:{id:t}})}},isuU:function(t,e,a){},o1L4:function(t,e,a){"use strict";var o=a("isuU");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2b93"],{"6cK7":function(t,e,a){"use strict";var o=a("P2sY"),i=a.n(o),s=a("fL+G"),r=a("Grqa"),n=a("uARZ"),l=a("KHd+"),c=Object(l.a)({},function(){var t=this.$createElement;return(this._self._c||t)("p",{staticClass:"warn-content",staticStyle:{"text-align":"center"}},[this._v("\n 点击生效以后,页面所有内容不可进行编辑,请谨慎操作!!\n")])},[],!1,null,null,null);c.options.__file="Warning.vue";var p=c.exports,u=(a("Yfch"),a("giwc")),m={status:"draft",title:"",content:"",icon:"",push_time:"",url:"",creator_name:"",group_topic_id:""},d=[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}].reduce(function(t,e){return t[e.key]=e.display_name,t},{}),f={name:"PushDetail",components:{MDinput:r.a,Upload:s.a,Sticky:n.a,Warning:p},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:i()({},m),loading:!1,userListOptions:[],URLOptions:[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}],expireTimeOption:{disabledDate:function(t){return t.getTime()<=Date.now()-864e5}},rules:{title:[{validator:e,trigger:"blur"}],content:[{validator:e,trigger:"blur"}],url:[{validator:e,trigger:"blur"}],icon:[{validator:e,trigger:"blur"}],push_time:[{validator:e,trigger:"blur"}],group_topic_id:[{validator:e,trigger:"blur"}]},tempRoute:{},uploadType:1,is_effect:!1}},computed:{contentShortLength:function(){return this.postForm.content.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=i()({},m);this.tempRoute=i()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(u.d)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.url=d[t.data.data.data.url_prefix],e.is_effect=Boolean(t.data.data.data.is_effect)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.postForm.creator_id=t.$store.getters.id,Object(u.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/push/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},effectPush:function(){var t=this;if(this.postForm.push_time<Date.now())return this.$message.error("推送时间已过期, 请重新设置!!"),!1;this.is_effect=Boolean(1);var e=this.$route.params&&this.$route.params.id;Object(u.b)(e).then(function(e){console.log(e.data.data.message),t.$message({message:e.data.data.message,type:"success"}),t.$router.go(0)}).catch(function(t){})}}},h=(a("l4mX"),Object(l.a)(f,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[t.isEdit&&!t.is_effect?a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.effectPush}},[t._v("生效")]):t._e(),t._v(" "),t.is_effect?t._e():a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[t.isEdit?a("Warning"):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"title"}},[a("MDinput",{attrs:{maxlength:100,name:"title",required:""},model:{value:t.postForm.title,callback:function(e){t.$set(t.postForm,"title",e)},expression:"postForm.title"}},[t._v("\n 推送标题\n ")])],1),t._v(" "),a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送ID:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"create_time"}},[t.isEdit?a("el-input",{staticClass:"article-textarea",staticStyle:{width:"199px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}}):t._e()],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建用户:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.creator_name,callback:function(e){t.$set(t.postForm,"creator_name",e)},expression:"postForm.creator_name"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送落地:",prop:"url"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"协议:",clearable:""},model:{value:t.postForm.url,callback:function(e){t.$set(t.postForm,"url",e)},expression:"postForm.url"}},t._l(t.URLOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"80px",label:"推送时间:",prop:"push_time"}},[a("el-date-picker",{staticStyle:{width:"199px"},attrs:{type:"datetime",placeholder:"选择日期时间","picker-options":t.expireTimeOption},model:{value:t.postForm.push_time,callback:function(e){t.$set(t.postForm,"push_time",e)},expression:"postForm.push_time"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"135px",label:"推送(帖子/小组)ID):",prop:"group_topic_id"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text"},model:{value:t.postForm.group_topic_id,callback:function(e){t.$set(t.postForm,"group_topic_id",e)},expression:"postForm.group_topic_id"}})],1)],1)],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送内容:",prop:"content"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.content,callback:function(e){t.$set(t.postForm,"content",e)},expression:"postForm.content"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送头像:",prop:"icon",disabled:t.is_effect}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("Upload",{attrs:{uploadType:t.uploadType},model:{value:t.postForm.icon,callback:function(e){t.$set(t.postForm,"icon",e)},expression:"postForm.icon"}})],1)],1)],1)],1)],1)},[],!1,null,"61de98ac",null));h.options.__file="PushDetail.vue";e.a=h.exports},Bx1I:function(t,e,a){},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return i});var o=a("t3Un");function i(){return Object(o.a)({url:"/api/get_token",method:"get"})}},Yfch:function(t,e,a){"use strict"},gB7W:function(t,e,a){"use strict";a.r(e);var o={name:"EditPush",components:{PushDetail:a("6cK7").a}},i=a("KHd+"),s=Object(i.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("push-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);s.options.__file="edit.vue";e.default=s.exports},giwc:function(t,e,a){"use strict";a.d(e,"c",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"d",function(){return r}),a.d(e,"b",function(){return n});var o=a("t3Un");function i(t){return Object(o.a)({url:"/api/push/list",method:"get",params:t})}function s(t){return Object(o.a)({url:"/api/push/create",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/push/detail",method:"get",params:{id:t}})}function n(t){return Object(o.a)({url:"/api/push/effect_push",method:"get",params:{id:t}})}},l4mX:function(t,e,a){"use strict";var o=a("Bx1I");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1cb0"],{"6cK7":function(t,e,a){"use strict";var o=a("P2sY"),i=a.n(o),s=a("fL+G"),r=a("Grqa"),n=a("uARZ"),l=a("KHd+"),c=Object(l.a)({},function(){var t=this.$createElement;return(this._self._c||t)("p",{staticClass:"warn-content",staticStyle:{"text-align":"center"}},[this._v("\n 点击生效以后,页面所有内容不可进行编辑,请谨慎操作!!\n")])},[],!1,null,null,null);c.options.__file="Warning.vue";var p=c.exports,u=(a("Yfch"),a("giwc")),m={status:"draft",title:"",content:"",icon:"",push_time:"",url:"",creator_name:"",group_topic_id:""},d=[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}].reduce(function(t,e){return t[e.key]=e.display_name,t},{}),f={name:"PushDetail",components:{MDinput:r.a,Upload:s.a,Sticky:n.a,Warning:p},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:i()({},m),loading:!1,userListOptions:[],URLOptions:[{key:"alpha://topic_detail?topic_id=",display_name:"推送帖子"},{key:"alpha://group_detail?group_id=",display_name:"推送小组"}],expireTimeOption:{disabledDate:function(t){return t.getTime()<=Date.now()-864e5}},rules:{title:[{validator:e,trigger:"blur"}],content:[{validator:e,trigger:"blur"}],url:[{validator:e,trigger:"blur"}],icon:[{validator:e,trigger:"blur"}],push_time:[{validator:e,trigger:"blur"}],group_topic_id:[{validator:e,trigger:"blur"}]},tempRoute:{},uploadType:1,is_effect:!1}},computed:{contentShortLength:function(){return this.postForm.content.length}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=i()({},m);this.tempRoute=i()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(u.d)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.url=d[t.data.data.data.url_prefix],e.is_effect=Boolean(t.data.data.data.is_effect)}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.postForm.creator_id=t.$store.getters.id,Object(u.a)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),setTimeout(function(){t.$router.push("/push/list")},1e3)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},effectPush:function(){var t=this;if(this.postForm.push_time<Date.now())return this.$message.error("推送时间已过期, 请重新设置!!"),!1;this.is_effect=Boolean(1);var e=this.$route.params&&this.$route.params.id;Object(u.b)(e).then(function(e){console.log(e.data.data.message),t.$message({message:e.data.data.message,type:"success"}),t.$router.go(0)}).catch(function(t){})}}},h=(a("o1L4"),Object(l.a)(f,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[t.isEdit&&!t.is_effect?a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.effectPush}},[t._v("生效")]):t._e(),t._v(" "),t.is_effect?t._e():a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success"},on:{click:t.submitForm}},[t._v("保存")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",[t.isEdit?a("Warning"):t._e(),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{prop:"title"}},[a("MDinput",{attrs:{maxlength:100,name:"title",required:""},model:{value:t.postForm.title,callback:function(e){t.$set(t.postForm,"title",e)},expression:"postForm.title"}},[t._v("\n 推送标题\n ")])],1),t._v(" "),a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送ID:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.id,callback:function(e){t.$set(t.postForm,"id",e)},expression:"postForm.id"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建时间:",prop:"create_time"}},[t.isEdit?a("el-input",{staticClass:"article-textarea",staticStyle:{width:"199px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.create_time,callback:function(e){t.$set(t.postForm,"create_time",e)},expression:"postForm.create_time"}}):t._e()],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:8}},[t.isEdit?a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"创建用户:"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text",disabled:""},model:{value:t.postForm.creator_name,callback:function(e){t.$set(t.postForm,"creator_name",e)},expression:"postForm.creator_name"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送落地:",prop:"url"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"协议:",clearable:""},model:{value:t.postForm.url,callback:function(e){t.$set(t.postForm,"url",e)},expression:"postForm.url"}},t._l(t.URLOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"postInfo-container-item",attrs:{"label-width":"80px",label:"推送时间:",prop:"push_time"}},[a("el-date-picker",{staticStyle:{width:"199px"},attrs:{type:"datetime",placeholder:"选择日期时间","picker-options":t.expireTimeOption,"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.postForm.push_time,callback:function(e){t.$set(t.postForm,"push_time",e)},expression:"postForm.push_time"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"135px",label:"推送(帖子/小组)ID):",prop:"group_topic_id"}},[a("el-input",{staticClass:"article-textarea",staticStyle:{width:"180px"},attrs:{rows:1,type:"text"},model:{value:t.postForm.group_topic_id,callback:function(e){t.$set(t.postForm,"group_topic_id",e)},expression:"postForm.group_topic_id"}})],1)],1)],1)],1)],1)],1),t._v(" "),a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送内容:",prop:"content"}},[a("el-input",{staticClass:"article-textarea",attrs:{rows:1,type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:t.postForm.content,callback:function(e){t.$set(t.postForm,"content",e)},expression:"postForm.content"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.contentShortLength,expression:"contentShortLength"}],staticClass:"word-counter"},[t._v(t._s(t.contentShortLength)+"字")])],1),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px"}},[a("el-form-item",{staticStyle:{"margin-bottom":"40px"},attrs:{"label-width":"75px",label:"推送头像:",prop:"icon",disabled:t.is_effect}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("Upload",{attrs:{uploadType:t.uploadType},model:{value:t.postForm.icon,callback:function(e){t.$set(t.postForm,"icon",e)},expression:"postForm.icon"}})],1)],1)],1)],1)],1)},[],!1,null,"2463032a",null));h.options.__file="PushDetail.vue";e.a=h.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return i});var o=a("t3Un");function i(){return Object(o.a)({url:"/api/get_token",method:"get"})}},Yfch:function(t,e,a){"use strict"},giwc:function(t,e,a){"use strict";a.d(e,"c",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"d",function(){return r}),a.d(e,"b",function(){return n});var o=a("t3Un");function i(t){return Object(o.a)({url:"/api/push/list",method:"get",params:t})}function s(t){return Object(o.a)({url:"/api/push/create",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/push/detail",method:"get",params:{id:t}})}function n(t){return Object(o.a)({url:"/api/push/effect_push",method:"get",params:{id:t}})}},isuU:function(t,e,a){},o1L4:function(t,e,a){"use strict";var o=a("isuU");a.n(o).a},zhOR:function(t,e,a){"use strict";a.r(e);var o={name:"CreatePush",components:{PushDetail:a("6cK7").a}},i=a("KHd+"),s=Object(i.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("push-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);s.options.__file="create.vue";e.default=s.exports}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment