(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7aff9deb"],{4731:function(t,e,n){"use strict";n.d(e,"h",(function(){return s})),n.d(e,"g",(function(){return a})),n.d(e,"j",(function(){return r})),n.d(e,"i",(function(){return o})),n.d(e,"d",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return h}));var i=n("66df"),s=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.ListAllRightsService",data:t})},a=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.ListAllRightsForDeveloperType",data:t})},r=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.SearchRightsList",data:t})},o=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.RemoveRightsService",data:t})},u=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.CreateNewRightsRule",data:t})},c=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.DelelteRightsRule",data:t})},p=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.AssignRightsOrNot",data:t})},d=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.AddRightsService",data:t})},l=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.AssignRightsForDevTypeOrNot",data:t})},h=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Rights.GetDevAppApis",data:t})}},8394:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"assignment"},[n("div",{staticClass:"assignment__h"},[n("p",{staticClass:"assignment__h--p"},[t._v(t._s(t.$t("Interface_permission_assignment")))]),n("div",{staticStyle:{"margin-left":"30px"}},[t._v(t._s(t.$t("for_the"))+"\n      "),n("router-link",{attrs:{to:{path:"/techzones/apis-mangement/apisList"},target:"_blank"}},[t._v(t._s(t.$t("interface_service_operation")))]),t._v("，\n      "+t._s(t.$t("grant_permissions"))+"、\n      "),n("router-link",{attrs:{to:{path:"/user/list"},target:"_blank"}},[t._v(t._s(t.$t("developer_account")))]),t._v("、\n      "),n("router-link",{attrs:{to:{path:"/application/list"},target:"_blank"}},[t._v(t._s(t.$t("developer_app")))]),t._v("。\n      "+t._s(t.$t("priority"))+"。\n    ")],1)]),n("Table",{staticClass:"assignment__form",attrs:{border:"",loading:t.tabDis,columns:t.columnsList,data:t.dataList},scopedSlots:t._u([t._l(t.arr,(function(e){return{key:e,fn:function(i){var s=i.row;return[n("div",{key:e},[!1===s[e]?n("Button",{staticStyle:{color:"blue"},attrs:{type:"text",size:"small"},on:{click:function(n){return t.operation(s,e)}}},[t._v(t._s(t.$t("designate")))]):!0===s[e]?n("Button",{staticStyle:{color:"red"},attrs:{type:"text",size:"small"},on:{click:function(n){return t.operation(s,e)}}},[t._v(t._s(t.$t("repeal")))]):n("a",{attrs:{target:"_blank",href:"/docs.php?service="+s[e]+"&detail=1&type=fold"}},[t._v(t._s(s[e]))])],1)]}}}))],null,!0)})],1)},s=[],a=(n("7f7f"),n("c5f6"),n("ac6a"),n("4731")),r=n("c276"),o={data:function(){return{token:Object(r["h"])(),tabDis:!1,columnsList:[{}],dataList:[],titleArr:[],arr:[]}},created:function(){this.getApiList()},methods:{operation:function(t,e){var n=this;this.tabDis=!0;var i=new FormData;i.append("access_token",this.token),i.append("rights_service",t.s),i.append("member_type",e),Object(a["b"])(i).then((function(t){200===t.ret&&(n.$Message.success("操作成功"),n.getApiList(),n.tabDis=!1)}))},getApiList:function(){var t=this;this.tabDis=!0;var e=new FormData;e.append("access_token",this.token),Object(a["g"])(e).then((function(e){200===e.ret&&function(){t.dataList=e.data.items,e.data.dev_types.forEach((function(e,n){t.titleArr.push(e)}));var n=[];for(var i in t.dataList[0]){t.arr.push(i);var s={key:i,slot:i,align:"center"};n.push(s)}var a=function(e){"s"===n[e].key?n[e].title=t.$t("service"):t.titleArr.forEach((function(t){t.level===Number(n[e].key)&&(n[e].title=t.name)}))};for(var r in n)a(r);var o=n.splice(n.length-1,1);n.unshift(o[0]),t.columnsList=n,t.tabDis=!1}()}))}}},u=o,c=(n("8ba5"),n("2877")),p=Object(c["a"])(u,i,s,!1,null,"a2e5af1e",null);e["default"]=p.exports},"8ba5":function(t,e,n){"use strict";var i=n("badc"),s=n.n(i);s.a},badc:function(t,e,n){}}]);