(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21a994"],{bbca:function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"new-app-container layout-vertical"},[t("YMTableSearch",{attrs:{loading:e.loading,"search-form":e.searchForm},on:{onValueChange:e.onValueChange,submit:e.onSubmit}}),t("YMTable",{ref:"table",attrs:{"table-key":1,index:!0,selection:!1,"table-options":e.tableOptions,"edit-form":e.editForm,"edit-config":e.editConfig,columns:e.columns,"rows-actions":e.rowsActions,"show-summary":!1,apis:e.apis,"custom-style":{height:"calc(100vh - 170px)"}}}),t("Dialog",{ref:"dialog"},[t("template",{slot:"content"})],2)],1)},o=[],i=t("9039");t("14d9"),t("e9c4"),t("ac1f"),t("00b4"),t("498a");function l(e){var a=/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;return a.test(e)}var r={components:{Dialog:i["a"]},data:function(){return{loading:!1,visibleBasicDrawer:!1,renderContent:"",searchForm:[{label:"游戏名称",type:"input",prop:"game_name",clearable:!1}],columns:[{label:"ID",prop:"id"},{label:"游戏名称",prop:"game_name"}],rowsActions:[{key:"delete",label:"删除"}],apis:{list:{url:"game",dataParam:"data.data",resultParam:"data",init:!1},add:{url:"game/update"},edit:{url:"game/update"},delete:{url:"game/delete",params:"id",method:"post"}},tableOptions:{add:{show:!0,initData:function(){return{id:0}}}},editForm:[{body:[{label:"游戏名称",type:"input",prop:"game_name",required:!0},{label:"跳转地址",type:"input",prop:"game_url",required:[{validator:l,trigger:["blur","change"]}]}]}],editConfig:{size:"small"}}},created:function(){},mounted:function(){this.onSubmit()},methods:{handleSubmit:function(e){console.log("提交数据:",e)},handleClickDrawer:function(e){},onValueChange:function(e){},onSubmit:function(e){this.$refs.table.getList(e)}}},s=r,u=t("2877"),c=Object(u["a"])(s,n,o,!1,null,null,null);a["default"]=c.exports}}]);