(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c7b00"],{"524a":function(e,t,i){"use strict";i.r(t),i.d(t,"crudOptions",(function(){return s}));i("99af"),i("d81d"),i("e9f5"),i("ab43"),i("d3b7");var o=i("22ce"),s=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!1,height:"100%",rowId:"code",highlightCurrentRow:!0,treeConfig:{lazy:!0,children:"children",hasChild:"hasChildren",loadMethod:function(e){var t=e.row;return Object(o["c"])({url:"/api/system/area/",method:"get",params:{pcode:t.code,limit:999}}).then((function(e){return e.data.data.map((function(e){e.hasChildren=0!==e.pcode_count})),t.hasChildren=!1,e.data.data}))},iconLoaded:"el-icon-loading"}},rowHandle:{show:!1,width:140,view:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Delete")}}},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"30%"},indexRow:{title:"序号",align:"center",width:100},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",width:90,disabled:!0,form:{disabled:!0}},{title:"父级地区",key:"pcode",show:!1,search:{disabled:!1},type:"area-selector",form:{component:{showAllLevels:!1,props:{elProps:{clearable:!0,showAllLevels:!1,props:{checkStrictly:!0,emitPath:!1,clearable:!0}}}}}},{title:"名称",key:"name",search:{disabled:!1},treeNode:!0,width:160,type:"input",form:{rules:[{required:!0,message:"名称必填项"}],component:{placeholder:"请输入名称"},itemProps:{class:{yxtInput:!0}}}},{title:"地区编码",key:"code",search:{disabled:!1},type:"input",form:{rules:[{required:!0,message:"地区编码必填项"}],component:{placeholder:"请输入地区编码"},itemProps:{class:{yxtInput:!0}}}},{title:"拼音",key:"pinyin",search:{disabled:!0},type:"input",form:{rules:[{required:!0,message:"拼音必填项"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入拼音"}}},{title:"地区层级",key:"level",search:{disabled:!0},type:"input",form:{disabled:!1,rules:[{required:!0,message:"拼音必填项"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入拼音"}}},{title:"首字母",key:"initials",form:{rules:[{required:!0,message:"首字母必填项"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入首字母"}}},{title:"是否启用",key:"enable",search:{disabled:!1},width:90,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,itemProps:{class:{yxtInput:!0}}}}].concat(e.commonEndColumns())}}}}]);