(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-565fc338","chunk-2d22c672","chunk-2d0df458"],{"51f2":function(e,t,c){"use strict";c.r(t);var n=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("测试页面3")]),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)},r=[],s=c("f2a1"),u=c("88ce"),o=c("1fbf"),a={name:"formSelect",mixins:[o["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(u["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)}}},l=a,d=c("2877"),i=Object(d["a"])(l,n,r,!1,null,null,null);t["default"]=i.exports},"88ce":function(e,t,c){"use strict";c.r(t),c.d(t,"crudOptions",(function(){return n}));var n=function(e){return{pageOptions:{compact:!0},options:{height:"100%"},viewOptions:{componentType:"row"},formOptions:{defaultSpan:12},columns:[{title:"ID",key:"id",width:90,form:{disabled:!0}},{title:"单选本地",key:"select1",sortable:!0,search:{disabled:!0},type:"select",dict:{data:[{value:"1",label:"开启"},{value:"0",label:"关闭"},{value:"2",label:"停止"}]}},{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"}}}]}}},f2a1:function(e,t,c){"use strict";c.r(t),c.d(t,"GetList",(function(){return r})),c.d(t,"AddObj",(function(){return s})),c.d(t,"UpdateObj",(function(){return u})),c.d(t,"DelObj",(function(){return o})),c.d(t,"GetCascadeData",(function(){return a}));c("d3b7");var n=c("22ce");function r(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(n["c"])({url:"/select/add",method:"post",data:e})}function u(e){return Object(n["c"])({url:"/select/update",method:"post",data:e})}function o(e){return Object(n["c"])({url:"/select/delete",method:"post",data:{id:e}})}function a(){return Object(n["c"])({url:"/select/cascadeData",method:"get"})}}}]);