(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d238672"],{feda:function(e,a,t){"use strict";t.r(a);var l=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 - 310px)"}}}),t("Dialog",{ref:"dialog"},[t("template",{slot:"content"},[t("TableEditor",{ref:"tableEditor",attrs:{"edit-form":e.editForm,"edit-data":e.selectRow,config:e.editConfig,apis:e.apiParams,"opt-type":e.optType},on:{onValueChange:e.editValueChange,callback:e.handleTableEditorCallback},model:{value:e.tableEditorDrawerVisible,callback:function(a){e.tableEditorDrawerVisible=a},expression:"tableEditorDrawerVisible"}})],1)],2)],1)},o=[],r=(t("d3b7"),t("3ca3"),t("ddb0"),t("9039")),i=function(){return t.e("chunk-3fc62434").then(t.bind(null,"40d8"))},n={components:{Dialog:r["a"],TableEditor:i},data:function(){var e=this;return{loading:!1,visibleBasicDrawer:!1,renderContent:"",paneTabs:[{title:"Tab 1",name:1},{title:"Tab 2",name:2}],searchForm:[{text:"按钮",type:"button",method:function(){console.log("按钮")}},{text:"自定义弹窗",type:"button",method:function(){e.$refs.dialog.open()}},{label:"模板模板",type:"input",prop:"xxxx",clearable:!1},{label:"模板模板",type:"input",prop:"xxxx",clearable:!1},{label:"勿删",type:"select",prop:"xxxx",clearable:!1,options:[{value:0,label:"否"},{value:1,label:"是"}]}],columns:[{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"},{label:"xxxx",prop:"xxxx"}],rowsActions:[{key:"edit",label:"编辑"},{key:"delete",label:"删除"}],apis:{list:{url:"user/user",dataParam:"data.list",resultParam:"data",init:!1},add:{url:"",cover:!0,coverMethod:function(e,a){return e.year+"、"+a[0].label}},edit:{url:"",cover:!0,coverMethod:function(e,a){return e.year+"、"+a[0].label}},preview:{url:"",dataParam:"datas",keyParam:"cache_key"},import:{url:"",params:"cache_key"},batchDelete:{url:"",params:"ids"},delete:{url:"",params:"ids"}},tableOptions:{add:{show:!1,initData:function(){return{test:"test"}}},import:{show:!1,tip:"注：备注",columns:[{label:"严控",prop:0,required:!0}]},export:{show:!1,dataName:"xxx.xlsx",baseApi:Object({NODE_ENV:"production",VUE_APP_BASE_API:"",BASE_URL:""}).VUE_APP_BASE_IMG+"/",theadMap:[{xxxx:{}}],theadProps:{xxxx:{}}},download:{show:!1,url:"/static/template.xlsx"},batchDelete:{show:!1}},editForm:[{body:[{label:"年度",type:"year",prop:"year",clearable:!1,rules:[{required:!0,message:"请选择年度",trigger:"change"}]}]}],editConfig:{addTip:"注：备注",editTip:"注：备注"},countData:{},showForm:!1,formFields:[{prop:"name",label:"商品名称",type:"input",rules:[{required:!0,message:"请输入商品名称"}]},{prop:"category",label:"商品分类",type:"select",options:[{value:1,label:"电子产品"},{value:2,label:"服装服饰"}]},{prop:"price",label:"商品价格",type:"input",rules:[{required:!0,message:"请输入价格"},{pattern:/^\d+(\.\d{1,2})?$/,message:"请输入有效金额"}]},{prop:"releaseDate",label:"发布日期",type:"date"},{prop:"images",label:"商品图片",type:"upload",action:"/api/upload",multiple:!0}]}},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)}}},x=n,s=t("2877"),p=Object(s["a"])(x,l,o,!1,null,null,null);a["default"]=p.exports}}]);