resource-edit.33624c86cbfacf37b58d.js 2.96 KB
webpackJsonp([0],{1:function(t,e){t.exports=iview},112:function(t,e,i){"use strict";var n=i(283);e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{},components:{"home-page":n.a}}},113:function(t,e,i){"use strict";var n=i(285),r=i(116),s=i(143),a=i(3),o=i(17),u={1:i(115),2:i(368)};e.a={data:function(){return{list:[],resId:null,bg:"",title:""}},mounted:function(){var t=this;this.resId=a.a.getQueryString("id")||1,this.title=a.a.getQueryString("name")||"资源位管理",this.resourceService=new o.a,this.init(),this.$bus.$on("updated",function(){console.log("updated"),t.init()}),this.bg=this.getBg()},methods:{init:function(){var t=this;this.resourceService.info(this.resId).then(function(e){console.log(e),t.list=e})},getBg:function(){return u[this.resId]}},components:{miniapp:n.a,smartfloor:r.a,divide:s.a}}},114:function(t,e,i){"use strict";e.a={name:"miniapp",props:{title:{type:String,default:function(){return""}},bg:{type:String,default:function(){return i(115)}}}}},115:function(t,e,i){t.exports=i.p+"img/apptitle.74e80a1.png"},280:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(281),r=i(12);Object(r.a)(n.a)},281:function(t,e,i){"use strict";function n(t){a||i(282)}var r=i(112),s=i(370),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,null,null);c.options.__file="src/views/resource-edit/index.vue",e.a=c.exports},282:function(t,e){},283:function(t,e,i){"use strict";function n(t){a||i(284)}var r=i(113),s=i(369),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,"data-v-724c5842",null);c.options.__file="src/views/resource-edit/home.vue",e.a=c.exports},284:function(t,e){},285:function(t,e,i){"use strict";function n(t){a||i(286)}var r=i(114),s=i(287),a=!1,o=i(0),u=n,c=o(r.a,s.a,!1,u,null,null);c.options.__file="src/components/miniapp.vue",e.a=c.exports},286:function(t,e){},287:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-frame"},[i("div",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),i("div",{staticClass:"app-title"},[i("img",{attrs:{src:t.bg,alt:"",srcset:"",width:"100%"}})]),t._v(" "),i("div",[t._t("default")],2)])},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s},368:function(t,e,i){t.exports=i.p+"img/sort_title.ba4687f.png"},369:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"index"},[t.resId<4?i("miniapp",{attrs:{title:t.title,bg:t.bg}},[[t._l(t.list,function(e){return[i("smartfloor",{key:e.resContentId,attrs:{item:e}}),t._v(" "),i("divide")]})]],2):t._e()],1)},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s},370:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LayoutContent",{attrs:{breads:[{url:"resource-list.html",title:"资源位列表"},{title:"资源位编辑"}]}},[i("home-page")],1)},r=[];n._withStripped=!0;var s={render:n,staticRenderFns:r};e.a=s},8:function(t,e){t.exports=Vue}},[280]);