resource-edit.91f57fc4c7c845cd964a.js 2.95 KB
webpackJsonp([0],{10:function(t,e){t.exports=Vue},100:function(t,e,i){t.exports=i.p+"img/apptitle.74e80a1.png"},239:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(240),r=i(15);Object(r.a)(n.a)},240:function(t,e,i){"use strict";function n(t){a||i(241)}var r=i(97),s=i(335),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},241:function(t,e){},242:function(t,e,i){"use strict";function n(t){a||i(243)}var r=i(98),s=i(334),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},243:function(t,e){},244:function(t,e,i){"use strict";function n(t){a||i(245)}var r=i(99),s=i(246),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},245:function(t,e){},246: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},333:function(t,e,i){t.exports=i.p+"img/sort_title.ba4687f.png"},334: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},335: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},5:function(t,e){t.exports=iview},97:function(t,e,i){"use strict";var n=i(242);e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{},components:{"home-page":n.a}}},98:function(t,e,i){"use strict";var n=i(244),r=i(101),s=i(130),a=i(4),o=i(11),u={1:i(100),2:i(333)};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}}},99:function(t,e,i){"use strict";e.a={name:"miniapp",props:{title:{type:String,default:function(){return""}},bg:{type:String,default:function(){return i(100)}}}}}},[239]);