(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34e8d56f","chunk-2d0c4a95","chunk-2d0d6ae6"],{"3c7f":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return o})),r.d(t,"GetList",(function(){return c})),r.d(t,"createObj",(function(){return u})),r.d(t,"UpdateObj",(function(){return i})),r.d(t,"DelObj",(function(){return s}));var n=r("5530"),a=r("22ce"),o="/api/system/api_white_list/";function c(e){return Object(a["c"])({url:o,method:"get",params:e})}function u(e,t){var r=Object(n["a"])(Object(n["a"])({},e),{},{menu:t});return Object(a["c"])({url:o,method:"post",data:r})}function i(e){return Object(a["c"])({url:o+e.id+"/",method:"put",data:e})}function s(e){return Object(a["c"])({url:o+e+"/",method:"delete",data:{id:e}})}},"6fa4":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",scopedSlots:e._u([{key:"createBtnFormSlot",fn:function(r){return[t("el-button",{attrs:{disabled:"view"===r.mode,icon:"el-icon-plus",type:"primary",circle:""},on:{click:e.onLinkBtn}})]}}])},"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)])],1)},a=[],o=r("5530"),c=(r("14d9"),r("3c7f")),u=r("741d"),i=r("1fbf"),s={name:"whiteList",mixins:[i["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(u["crudOptions"])(this)},pageRequest:function(e){var t=this.$route.params.id;return c["GetList"](Object(o["a"])(Object(o["a"])({},e),{},{menu:t}))},addRequest:function(e){var t=this.$route.params.id;return c["createObj"](e,t)},updateRequest:function(e){return c["UpdateObj"](e)},delRequest:function(e){return c["DelObj"](e.id)},onLinkBtn:function(){this.$router.push({path:"/button"})}}},d=s,l=(r("e367"),r("2877")),p=Object(l["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"741d":function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));r("14d9"),r("b64b");var n=r("22ce"),a=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},form:{disabled:!0,component:{placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",show:!1,width:90,form:{disabled:!0}},{title:"请求方式",key:"method",sortable:!0,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:"url",sortable:!0,search:{disabled:!0},type:"select",dict:{url:"/swagger.json",label:"label",value:"value",getData:function(e,t){return Object(n["c"])({url:e}).then((function(e){for(var t=Object.keys(e.paths),r=[],n=0,a=t;n<a.length;n++){var o=a[n],c={};c.label=o,c.value=o,r.push(c)}return r}))}},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"}})}}}},{title:"数据权限认证",key:"enable_datasource",search:{disabled:!1},width:150,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,component:{span:12}}},{title:"备注",key:"description",search:{disabled:!0},type:"textarea",form:{component:{placeholder:"请输入内容",showWordLimit:!0,maxlength:"200",props:{type:"textarea"}}}}]}}},a7e8:function(e,t,r){},e367:function(e,t,r){"use strict";r("a7e8")}}]);