| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[71],{522:function(t,e,n){},658:function(t,e,n){"use strict";n(522)},775:function(t,e,n){"use strict";n.r(e);var r=n(6),o=(n(30),{data:function(){return{pageList:[]}},computed:{},mounted:function(){this.getPageList()},methods:{handleImgSuccess:function(t,e){this.form.logo_img=t.data.url},handleBannerSuccess:function(t,e){this.form.banner_img=t.data.url},handleIntroSuccess:function(t,e){this.form.intro_lc_img=t.data.url},getPageList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/pageManage/getList");case 2:(n=e.sent)&&1===n.status?t.pageList=n.data||[]:t.$message.error("获取列表失败");case 4:case"end":return e.stop()}}),e)})))()},changeStatus:function(t,e){var n=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.$post("/api/admin/pageManage/changeStatus",{id:e.id,status:t});case 2:(o=r.sent)&&1!==o.status&&n.$message.error("设置失败");case 4:case"end":return r.stop()}}),r)})))()}}}),c=(n(658),n(4)),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mainContainer"},[t._m(0),t._v(" "),e("div",{staticClass:"pform-body"},[e("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{size:"small",type:"primary"},on:{click:function(e){return t.$router.push("/main/page_item")}}},[t._v("添加")]),t._v(" "),e("el-table",{staticStyle:{width:"40%"},attrs:{data:t.pageList,border:""}},[e("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":"1","inactive-value":"2"},on:{change:function(e){return t.changeStatus(e,n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}}),t._v(" "),e("el-button",{staticStyle:{"margin-left":"20px"},attrs:{size:"mini",round:""},on:{click:function(e){return t.$router.push({path:"/main/page_item",query:{id:n.row.id}})}}},[t._v("修改")])]}}])})],1)],1)])}),[function(){var t=this._self._c;return t("div",{staticClass:"pform-head"},[t("h3",[this._v("页面配置")])])}],!1,null,null,null);e.default=component.exports}}]);
|