resource-edit.8524b4def48ec2734281.js 2.89 KB
webpackJsonp([1],{101:function(t,e,i){"use strict";var n=i(255);e.a={data:function(){return{}},mounted:function(){},beforeDestroy:function(){},methods:{},components:{"home-page":n.a}}},102:function(t,e,i){"use strict";var n=i(257),r=i(105),s=i(134),a=i(4),o=i(8),u={1:i(104),2:i(346)};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}}},103:function(t,e,i){"use strict";e.a={name:"miniapp",props:{title:{type:String,default:function(){return""}},bg:{type:String,default:function(){return i(104)}}}}},104:function(t,e,i){t.exports=i.p+"img/apptitle.74e80a1.png"},252:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(253),r=i(13);Object(r.a)(n.a)},253:function(t,e,i){"use strict";function n(t){a||i(254)}var r=i(101),s=i(348),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},254:function(t,e){},255:function(t,e,i){"use strict";function n(t){a||i(256)}var r=i(102),s=i(347),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},256:function(t,e){},257:function(t,e,i){"use strict";function n(t){a||i(258)}var r=i(103),s=i(259),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},258:function(t,e){},259: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},346:function(t,e,i){t.exports=i.p+"img/sort_title.ba4687f.png"},347: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},348: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}},[252]);