(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{544:function(e,t,r){},683:function(e,t,r){"use strict";r(544)},809:function(e,t,r){"use strict";r.r(t);var o=r(6),n=(r(18),r(30),{data:function(){return{form:{id:0,status:"1",img_list:[]},positionType:[],options:[],value:""}},mounted:function(){var e=this.$route.query.id?this.$route.query.id:0;this.form.id=e,0!=e&&this.getDetail(e),this.getCpsCategories()},methods:{getDetail:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.$post("/uapi/news/special_info",{id:e});case 2:(o=r.sent)&&1===o.status&&(t.form=o.data);case 4:case"end":return r.stop()}}),r)})))()},save:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$post("/uapi/news/special_add",e.form);case 2:(r=t.sent)&&1===r.status&&(e.$message({type:"success",message:"添加成功!"}),e.$router.push("/main/special_list"));case 4:case"end":return t.stop()}}),t)})))()},getCpsCategories:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var r,data,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$post("/uapi/pub/getCpsCategories");case 2:if((r=t.sent)&&1===r.status){for(data=r.data||[],o=[],i=0;i