(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d07ade0"],{"0d35":function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));s("ac6a");function n(e,t){return e.length<1?null:e.filter((function(e){return e.keys===t}))[0]}},7259:function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"app-container"},[s("div",[s("div",{staticClass:"set-item"},[s("span",{staticClass:"label"},[e._v("月销量显示:")]),e._v(" "),s("el-switch",{attrs:{"active-text":"是","inactive-text":"否"},on:{change:e.setSetting},model:{value:e.saleShow,callback:function(t){e.saleShow=t},expression:"saleShow"}})],1),e._v(" "),e._m(0)]),e._v(" "),e.loading?s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"loadingShade"}):e._e()])},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"set-item-info"},[s("i",{staticClass:"el-icon-info"},[e._v("是否在app中显示商品月销量")])])}],i=(s("ac6a"),s("96cf"),s("1da1")),r=s("0d35"),c={data:function(){return{saleShow:!1,saleShow_keys:"sales_month",loading:!1,loadingTime:1}},methods:{getSetting:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$store.dispatch("system/get");case 3:t=e.sent,s=Object(r["a"])(t,"sales_month").values,s="1"===s,this.saleShow=s,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),this.$message.error(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),setSetting:function(){var e=this;this.$store.dispatch("system/set",this.saleShow_keys).then((function(t){e.$message.success(t)})).catch((function(t){e.$message.error(t)}))}}},o=c,l=s("2877"),u=Object(l["a"])(o,n,a,!1,null,"19f65826",null);t["default"]=u.exports}}]);