(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77302f1d"],{dce7d:function(e,t,a){"use strict";a.r(t),a.d(t,"crudOptions",(function(){return r}));a("7db0"),a("14d9"),a("b0c0"),a("e9f5"),a("f665"),a("b64b"),a("d3b7");var l=a("22ce"),r=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!1,width:"100%",height:"100%"},rowHandle:{width:180,edit:{thin:!0,text:"编辑"},remove:{thin:!0,text:"删除"}},indexRow:{title:"序号",align:"center",width:100},viewOptions:{disabled:!0,componentType:"form"},formOptions:{defaultSpan:24},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1,component:{props:{clearable:!0},placeholder:"请输入关键词"}},form:{disabled:!0},view:{disabled:!0}},{title:"ID",key:"id",show:!1,width:90,form:{disabled:!0}},{title:"权限名称",key:"name",sortable:!0,width:150,search:{disabled:!1},type:"select",dict:{data:e.dictionary("system_button")},form:{rules:[{required:!0,message:"必填项"}],component:{span:12,props:{clearable:!0,elProps:{allowCreate:!0,filterable:!0,clearable:!0}}},itemProps:{class:{yxtInput:!0}},valueChange:function(e,t,a,l){l.getColumn,l.mode;var r=l.component;l.immediate,l.getComponent;if(null!=t){var n=r.dictOptions.find((function(e){return e.value===t}));n&&n.value&&(a.name=n.label,a.value=n.value)}},helper:{render:function(e){return e("el-alert",{attrs:{title:"可手动输入不在列表中的新值",type:"warning",description:"比较常用的建议放在字典管理中"}})}}}},{title:"权限值",key:"value",sortable:!0,width:200,search:{disabled:!1},type:"input",form:{rules:[{required:!0,message:"必填项"}],component:{span:12,placeholder:"请输入权限值",props:{elProps:{clearable:!0}}},itemProps:{class:{yxtInput:!0}},helper:{render:function(e){return e("el-alert",{attrs:{title:"用于前端按钮权限的判断展示",type:"warning",description:"使用方法：vm.hasPermissions(权限值)"}})}}}},{title:"请求方式",key:"method",sortable:!0,width:150,search:{disabled:!1},type:"select",dict:{data:[{label:"GET",value:0},{label:"POST",value:1},{label:"PUT",value:2},{label:"DELETE",value:3}]},form:{rules:[{required:!0,message:"必填项"}],component:{span:12},itemProps:{class:{yxtInput:!0}}}},{title:"接口地址",key:"api",sortable:!0,search:{disabled:!0},type:"select",dict:{url:"/swagger.json",label:"label",value:"value",getData:function(e,t){return Object(l["c"])({url:e}).then((function(e){for(var t=Object.keys(e.paths),a=[],l=0,r=t;l<r.length;l++){var n=r[l],s={};s.label=n,s.value=n,a.push(s)}return a}))}},form:{rules:[{required:!0,message:"必填项"}],component:{span:24,props:{elProps:{allowCreate:!0,filterable:!0,clearable:!0}}},itemProps:{class:{yxtInput:!0}},helper:{render:function(e){return e("el-alert",{attrs:{title:"请正确填写，以免请求时被拦截。匹配单例使用正则,例如:/api/xx/.*?/",type:"warning"}})}}}}]}}}}]);