(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06698712","chunk-2d0d61b2","chunk-2d0c9557"],{"2fcf":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("template",{slot:"header"},[e._v("测试页面1")]),t("d2-crud-x",e._g(e._b({ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],2)},c=[],s=n("70ad"),a=n("5963"),o=n("1fbf"),l={name:"page1",mixins:[o["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(a["crudOptions"])(this)},pageRequest:function(e){return s["GetList"](e)},addRequest:function(e){return console.log("api",s),s["AddObj"](e)},updateRequest:function(e){return console.log("----",e),s["UpdateObj"](e)},delRequest:function(e){return s["DelObj"](e.id)}}},i=l,u=n("2877"),d=Object(u["a"])(i,r,c,!1,null,null,null);t["default"]=d.exports},5963:function(e,t,n){"use strict";n.r(t),n.d(t,"crudOptions",(function(){return c}));var r=n("22ce"),c=function(e){return{pageOptions:{compact:!0},options:{height:"100%"},viewOptions:{componentType:"row"},formOptions:{defaultSpan:12},columns:[{title:"编码",key:"id",width:90,form:{disabled:!0}},{title:"单选本地",key:"select1",sortable:!0,search:{disabled:!0},type:"table-selector",dict:{url:"/api/system/user/",value:"id",label:"name",getData:function(e,t,n){n.form;var c=n.component;return Object(r["c"])({url:e,params:{page:1,limit:1}}).then((function(e){return c._elProps.page=e.data.page,c._elProps.limit=e.data.limit,c._elProps.total=e.data.total,e.data.data}))}},form:{component:{span:12,props:{multiple:!0},elProps:{pagination:!0,columns:[{field:"name",title:"名称"},{field:"username",title:"账号"},{field:"role",title:"角色Id"},{field:"dept",title:"部门Id"}]}}}},{title:"头像",key:"image",type:"avatar-uploader",width:150,align:"left",form:{component:{props:{elProps:{multiple:!1,limit:5},sizeLimit:51200},span:24},helper:"限制文件大小不能超过50k"}},{title:"图片",key:"files",type:"image-uploader",width:150,align:"left",form:{component:{props:{elProps:{multiple:!1,limit:5},sizeLimit:51200},span:24},helper:"限制文件大小不能超过50k"}},{title:"多选,本地,自动染色",key:"select2",sortable:!0,width:180,search:{disabled:!1,title:"多选"},type:"select",form:{title:"多选本地",component:{props:{filterable:!0,multiple:!0,clearable:!0}}},dict:{data:[{value:"sz",label:"深圳"},{value:"gz",label:"广州"},{value:"wh",label:"武汉"},{value:"sh",label:"上海"}]},component:{props:{color:"auto"}}}]}}},"70ad":function(e,t,n){"use strict";n.r(t),n.d(t,"GetList",(function(){return c})),n.d(t,"AddObj",(function(){return s})),n.d(t,"UpdateObj",(function(){return a})),n.d(t,"DelObj",(function(){return o})),n.d(t,"GetCascadeData",(function(){return l}));n("d3b7");var r=n("22ce");function c(e){return new Promise((function(t){setTimeout((function(){t({code:0,msg:"success",data:{total:99,current:e.current,size:20,records:[{id:1,select1:"1",select2:"sz,wh"},{id:2,select1:"1",select2:"sz,sh"},{id:3,select1:"0",select2:"sz,gz"},{id:4,select1:"1",select2:"sz"},{id:5,select1:"1",select2:"sz,sh"},{id:6,select1:"1",select2:"sz"}]}})}))}))}function s(e){return Object(r["c"])({url:"/select/add",method:"post",data:e})}function a(e){return Object(r["c"])({url:"/select/update",method:"post",data:e})}function o(e){return Object(r["c"])({url:"/select/delete",method:"post",data:{id:e}})}function l(){return Object(r["c"])({url:"/select/cascadeData",method:"get"})}}}]);