(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67e7f631"],{1063:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return c}));var a=n("66df"),i=function(t){return a["a"].request({method:"post",url:"api/admin.php?s=Admin.Config.AddConfig",data:t})},s=function(t){return a["a"].request({method:"post",url:"api/admin.php?s=Admin.Config.GetList",data:t})},o=function(t){return a["a"].request({method:"post",url:"api/admin.php?s=Admin.Config.GetConfig",data:t})},r=function(t){return a["a"].request({method:"post",url:"api/admin.php?s=Admin.Config.EditConfig",data:t})},c=function(t){return a["a"].request({method:"post",url:"api/admin.php?s=Admin.Config.RemoveConfig",data:t})}},"48db":function(t,e,n){"use strict";var a=n("a2da"),i=n.n(a);i.a},"8c66":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("div",{staticClass:"queryKeyWord"},[n("p",[t._v(t._s(t.$t("config_name"))+"：")]),n("Input",{staticClass:"queryKeyWord__input",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:""},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),n("p",[t._v(t._s(t.$t("config_desc"))+"：")]),n("Input",{staticClass:"queryKeyWord__input",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:""},model:{value:t.desc,callback:function(e){t.desc=e},expression:"desc"}}),n("i-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v(t._s(t.$t("search")))])],1),n("Table",{staticClass:"queryKeyWord__tab",attrs:{border:"",loading:t.disabledTab,columns:t.columnsList,data:t.dataList},scopedSlots:t._u([{key:"config_name",fn:function(e){var a=e.row;return[n("p",[t._v(" "+t._s(a.config_name)+" ")])]}},{key:"config_value",fn:function(e){var a=e.row;return[n("p",[t._v(" "+t._s(a.config_value)+" ")])]}},{key:"operation",fn:function(e){var a=e.row;return[n("router-link",{attrs:{to:{name:"editmanagement",query:{name:a.config_name}}}},[n("Button",{staticClass:"operation__btn",attrs:{type:"primary",size:"small"}},[t._v(t._s(t.$t("edit")))])],1),n("Button",{staticClass:"operation__btn",attrs:{type:"error",size:"small"},on:{click:function(e){return t.remove(a.config_name)}}},[t._v(t._s(t.$t("delete")))])]}}])}),n("div",{staticClass:"pagination"},[n("Page",{attrs:{total:t.total,"show-elevator":"","show-sizer":""},on:{"on-page-size-change":t.changeSize,"on-change":t.changePage}})],1)],1)},i=[],s=n("1063"),o=n("c276"),r={data:function(){return{disabledTab:!1,token:Object(o["h"])(),disaStatus:!0,keyword:"",desc:"",total:0,page:1,perpage:10,columnsList:[{title:this.$t("ID"),key:"id",align:"center"},{title:this.$t("config_name"),key:"config_name",slot:"config_name",align:"center"},{title:this.$t("config_value"),key:"config_value",slot:"config_value",align:"center"},{title:this.$t("config_desc"),key:"config_desc",align:"center"},{title:this.$t("operation"),slot:"operation",align:"center"}],dataList:[]}},created:function(){this.queryList()},methods:{search:function(){this.page=1,this.queryList()},queryList:function(){var t=this;this.disabledTab=!0;var e=new FormData;this.keyword&&e.append("config_name",this.keyword),this.desc&&e.append("config_desc",this.desc),e.append("page",this.page),e.append("perpage",this.perpage),e.append("access_token",this.token),Object(s["d"])(e).then((function(e){t.dataList=e.data.items,t.total=e.data.total,t.disabledTab=!1}))},changeSize:function(t){this.perpage=t,this.queryList()},changePage:function(t){this.page=t,this.queryList()},remove:function(t){var e=this;this.$Modal.confirm({title:this.$t("operation_confirm"),content:this.$t("are_u_sure_to_delete_config"),onOk:function(){var n=new FormData;n.append("access_token",e.token),n.append("config_name",t),Object(s["e"])(n).then((function(t){200===t.ret&&t.data.is_remove&&(e.$Message.success(e.$t("successfully_deleted")),e.queryList())}))},onCancel:function(){e.$Message.info(e.$t("cancel"))}})}}},c=r,d=(n("48db"),n("2877")),u=Object(d["a"])(c,a,i,!1,null,"11806f75",null);e["default"]=u.exports},a2da:function(t,e,n){}}]);