text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59d0b4f7"],{"0ba1":function(t,e,n){"use strict";var a=9;e["a"]={consoleLimit:a}},"36a4":function(t,e,n){},"9a83":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",[n("div",{staticStyle:{height:"auto"}},[n("div",{staticStyle:{"margin-bottom":"20px"}},[n("router-link",{attrs:{to:"create"}},[n("Button",{attrs:{type:"info",ghost:""}},[t._v("创建")])],1)],1),n("span",{attrs:{data9:t.data9}}),n("Table",{attrs:{stripe:"","highlight-row":!0,columns:t.columns10,data:t.data9}}),n("div",{staticStyle:{"margin-top":"40px","text-align":"center"}},[n("Page",{attrs:{current:t.current,total:t.total,"page-size":t.pageSize},on:{"on-change":t.changePage}})],1)],1)])],1)},r=[],i=n("a7a9"),o=n("0ba1"),c={data:function(){var t=this;return{columns10:[{title:"#",key:"id",render:function(t,e){return t("div",{props:{}},e.row.Id)}},{title:"Name",key:"name",render:function(t,e){return t("div",{props:{}},e.row.Name)}},{title:"Link",key:"link",render:function(t,e){return t("div",{props:{}},e.row.Link)}},{title:"Order",key:"order",render:function(t,e){return t("div",{props:{}},e.row.Order)}},{title:"CreatedAt",key:"createdAt",render:function(t,e){return t("div",{props:{}},e.row.CreatedAt)}},{title:"Action",key:"action",width:150,align:"center",render:function(e,n){return e("div",[e("Button",{props:{type:"primary",size:"small"},style:{marginRight:"5px"},on:{click:function(){t.edit(n.row.Id)}}},"修改"),e("Button",{props:{type:"error",size:"small"},on:{click:function(){t.remove(n.row.Id)}}},"删除")])}}],data9:[],total:1,pageSize:10,current:1}},mounted:function(){this.myPage()},methods:{myPage:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n={page:e,limit:o["a"].consoleLimit};Object(i["c"])(n).then(function(e){e.data.data.list&&e.data.data.list.length>0?(t.data9=e.data.data.list,t.total=e.data.data.page.count,t.pageSize=e.data.data.page.limit,t.current=e.data.data.page.current):(t.data9=[],t.total=0,t.pageSize=10,t.current=1)}).catch(function(e){t.$Message.error("操作失败"+e)})},changePage:function(t){this.myPage(t)},remove:function(t){var e=this;Object(i["a"])(t).then(function(t){0===t.data.code?(e.$Message.success(t.data.message),setTimeout(function(){e.myPage(1)},2e3)):e.$Message.error(t.data.message)}).catch(function(t){e.$Message.error("操作失败"+t)})},edit:function(t){this.$router.push("/backend/link/update?id="+t)}}},u=c,s=(n("c17b"),n("620d")),d=Object(s["a"])(u,a,r,!1,null,"03b364da",null);e["default"]=d.exports},a7a9:function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"d",function(){return c}),n.d(e,"b",function(){return u}),n.d(e,"e",function(){return s}),n.d(e,"a",function(){return d});var a=n("0d5e"),r=Object(a["a"])(),i={headers:{"Content-Type":"multipart/form-data"}};function o(t){return r.get("/console/link",{params:t})}function c(t,e,n){return r.post("/console/link",{name:t,link:e,order:n},i)}function u(t,e){return r.get("/console/link/edit/"+t,{params:e})}function s(t,e,n,a){return r.put("/console/link/"+t,{name:e,link:n,order:a},i)}function d(t,e){return r.delete("/console/link/"+t,{params:e})}},c17b:function(t,e,n){"use strict";var a=n("36a4"),r=n.n(a);r.a}}]);