(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cc453"],{"4ce3":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e._self._c;return t("div",[t("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("首页")]),t("el-breadcrumb-item",[e._v("api接口管理")])],1),t("el-card",{staticClass:"box-card"},[t("alltitle",{attrs:{msg:"api接口详情"}}),t("el-form",{attrs:{model:e.form,"label-width":"120px"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-button",{staticStyle:{float:"right",margin:"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.addData}},[e._v("新增api")])],1),t("el-col",{attrs:{span:24}},[t("el-table",{staticStyle:{width:"100%"},attrs:{stripe:!0,border:"",data:e.tableData}},[e._l(e.colums,(function(a,l){return[a.template?e._e():t("el-table-column",{key:a.k,attrs:{align:"center",label:a.label,prop:a.prop,width:a.width,"column-key":a.columnKey,filters:a.filters,formatter:a.format,type:a.type,"filter-method":a.filterMethod}}),"actionBar"==a.prop?t("el-table-column",{key:l,attrs:{align:"center",label:a.label,prop:a.prop,width:a.width},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.toEdit(a.row)}}},[e._v("编辑")]),t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.toRemove(a.row)}}},[e._v("删除")])]}}],null,!0)}):e._e()]}))],2),t("el-pagination",{staticClass:"postop",staticStyle:{float:"right"},attrs:{"current-page":e.currentPage4,"page-sizes":[10,30,50,100],"page-size":1,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.length},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),t("add-post",{ref:"show"})],1)},r=[],o=function(){var e=this,t=e._self._c;return t("div",[t("alldialog",{ref:"alldialog",attrs:{title:"api接口",showTest:!0}},[t("el-form",{attrs:{model:e.form,"label-width":"120px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"名称:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入api名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"api地址:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入api地址"},model:{value:e.form.purchase,callback:function(t){e.$set(e.form,"purchase",t)},expression:"form.purchase"}})],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"周期:"}},[t("el-select",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请选择"},model:{value:e.form.frequency,callback:function(t){e.$set(e.form,"frequency",t)},expression:"form.frequency"}},e._l(e.frequencys,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"备注:"}},[t("el-input",{attrs:{type:"textarea",row:2,placeholder:"请输入备注"},model:{value:e.form.expend,callback:function(t){e.$set(e.form,"expend",t)},expression:"form.expend"}})],1)],1)],1)],1)],1)],1)},n=[],s={data(){return{form:{},frequencys:[{value:"1次/时"},{value:"1次/天"},{value:"1次/周"},{value:"1次/月"}]}},methods:{show(){this.$refs["alldialog"].showDialog()},dnowLine(){}}},i=s,c=a("1805"),p=Object(c["a"])(i,o,n,!1,null,"68d77560",null),u=p.exports,m={components:{addPost:u},data(){return{form:{},currentPage4:1,colums:[{type:"index",label:"序号"},{prop:"name",label:"名称"},{prop:"purchase",label:"api地址"},{prop:"frequency",label:"周期"},{prop:"expend",label:"备注"},{prop:"actionBar",label:"操作",template:!0,width:100}],tableData:[{name:"财务",purchase:"http://shanmeiApi/finance",frequency:"--"},{name:"采购",purchase:"http://shanmeiApi/purchase",frequency:"--"}]}},methods:{addData(){this.$refs["show"].show()},toEdit(e){this.$refs["show"].show(e)},toRemove(){},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},d=m,f=Object(c["a"])(d,l,r,!1,null,"6767952e",null);t["default"]=f.exports}}]);