webpackJsonp([14],{"7Zj+":function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=t("mvHQ"),o=t.n(a),n=t("woOf"),i=t.n(n),u=t("//Fk"),d=t.n(u),s=t("NUeu"),r=t("8obM"),c={name:"test",components:{SearchTableTemplate:s.a},methods:{search:function(e,l){var t=this;return new d.a(function(l,a){Object(r.c)(e).then(function(e){console.log(e),t.tableData=e.data.data,l()}).catch(function(){return l()})})},add:function(){this.tableConfig={pagination:!1}},edit:function(){},del:function(){}},data:function(){var e=this;return{formInputList:[{label:"日期",value:"",module:"date",name:"date",placeholder:"日期",format:"yyyy-MM-dd"},{label:"姓名",value:"",module:"input",type:"text",name:"name",placeholder:"姓名"},{label:"地址",value:"",module:"input",type:"text",name:"address",placeholder:"地址"},{label:"中文名",value:"",module:"input",type:"text",name:"cname",placeholder:"中文名"},{label:"成人人数",value:2,module:"select",name:"adultNum",placeholder:"成人人数",optionList:[{value:1,label:1},{value:2,label:2},{value:3,label:3},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:9,label:9}],rules:[{required:!0,message:"请选择成人人数",trigger:"change"}]}],formButtonlist:[{module:"button",title:"搜索",type:"primary",icon:"el-icon-search",loading:!1,handle:function(){console.log(arguments),e.search(arguments[0],this)}},{module:"button",title:"新增",type:"success",icon:"el-icon-plus",handle:function(){console.log(arguments),e.add()}},{module:"reset",title:"重置",type:"text",icon:"el-icon-close"}],tableColumn:[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{label:"中文名",prop:"cname"},{label:"编辑",prop:"edit",custom:!0,fixed:"right",button:{title:"编辑",prop:"edit",handle:function(){console.log(arguments),e.edit(arguments[0])}}},{label:"删除",prop:"del",code:"删除",custom:!0,fixed:"right",button:{title:"删除",type:"danger",prop:"del",handle:function(){console.log(arguments),e.del(arguments[0])}}}],tableData:[],tableConfig:{},dialogInputList:[{label:"日期",value:"2018-06-22",module:"date",name:"date",placeholder:"日期",format:"yyyy-MM-dd"},{label:"姓名",value:"",module:"input",type:"text",name:"name",placeholder:"姓名"},{label:"地址",value:"",module:"input",type:"text",name:"address",placeholder:"地址"},{label:"中文名",value:"",module:"input",type:"text",name:"cname",placeholder:"中文名"},{label:"成人人数",value:2,module:"select",name:"adultNum",placeholder:"成人人数",optionList:[{value:1,label:1},{value:2,label:2},{value:3,label:3},{value:4,label:4},{value:5,label:5},{value:6,label:6},{value:7,label:7},{value:8,label:8},{value:9,label:9}],rules:[{required:!0,message:"请选择成人人数",trigger:"change"}]},{label:"url",value:"",module:"input",type:"text",name:"url",hidden:!0}],dialogButtonlist:[{module:"reset",title:"重置",type:"text",icon:"el-icon-close",class:"float-left"},{module:"button",title:"保存",type:"primary",width:!1,loading:!1,handle:function(){console.log(arguments),e.dialogConfig=i()({},e.dialogConfig,{visible:!1})}},{module:"button",title:"取消",width:!1,handle:function(){console.log(arguments),e.dialogConfig=i()({},e.dialogConfig,{visible:!1})}}],dialogConfig:{title:"新增",visible:!1}}},created:function(){this.ADDdialogInputList=JSON.parse(o()(this.dialogInputList)),this.EDITdialogInputList=JSON.parse(o()(this.dialogInputList))}},p={render:function(){var e=this,l=e.$createElement;return(e._self._c||l)("search-table-template",{ref:"searchTable",attrs:{formInputList:e.formInputList,formButtonlist:e.formButtonlist,tableColumn:e.tableColumn,tableData:e.tableData,tableConfig:e.tableConfig,dialogInputList:e.dialogInputList,dialogButtonlist:e.dialogButtonlist,dialogConfig:e.dialogConfig}})},staticRenderFns:[]},b=t("VU/8")(c,p,!1,null,null,null);l.default=b.exports}});