(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c22148ca"],{"2bed":function(t,a,i){},"415e":function(t,a,i){"use strict";var n=i("71f6"),o={getAuthAppDetail:"/business/authorize/get-application-info",getAppAuthInfo:"/business/authorize/right-list",postAuthRights:"/oauth/authorize"};a["a"]=Object(n["a"])(o,"/hb-application-web")},"71f6":function(t,a,i){"use strict";i.d(a,"a",(function(){return o}));i("ac6a"),i("456d");var n=i("b775");function o(t,a){t=t||{};var i=Object.keys(t);return i.forEach((function(i){var o=t[i];"string"===typeof o&&(o={url:o}),o.url="".concat(a).concat(o.url),t[i]=function(t,a){return Object(n["a"])(o,t,a)}})),t}},ad21:function(t,a,i){"use strict";i("2bed")},c686:function(t,a,i){"use strict";i.r(a);var n=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"app-auth-body"},[n("div",{staticClass:"app-auth-head cursor-pointer",on:{click:t.toHome}},[n("img",{attrs:{src:i("cf05"),alt:"logo"}}),n("span",{staticClass:"web-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"app-auth-info"},[n("div",{staticClass:"app-info-body"},[n("div",{staticClass:"app-info-title"},[t._v("应用授权")]),n("div",{staticClass:"app-info-detail"},[n("div",{staticClass:"flex app-top"},[n("div",{staticClass:"app-img"},[n("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),n("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[n("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.name||"--"))]),n("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction||"--"))])])]),n("div",{staticClass:"auth-rights"},[n("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.name||"")+"应用进行以下权限操作")]),n("div",[n("ul",t._l(t.rightsList,(function(a,i){return n("li",{key:i+"right",staticClass:"font-14 color-303133"},[t._v(t._s(i+1)+". "+t._s(a.rightsName))])})),0)])])]),n("form",{attrs:{action:"/hb-application-auth/oauth/authorize",method:"post"}},[n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"appId"},domProps:{value:t.appInfo.appId}}),n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"authorize"},domProps:{value:t.appInfo.authorize}}),n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"user_oauth_approval"},domProps:{value:t.appInfo.user_oauth_approval}}),n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"rights"},domProps:{value:t.appInfo.rights}}),n("div",{staticClass:"app-info-btn"},[n("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),n("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),n("button",{ref:"submitBtn",class:["el-button el-button--primary",t.checkAuth?"":"is-disabled"],attrs:{id:"btn",disabled:!t.checkAuth,type:"submit"}},[t._v("\n            授权\n          ")])],1)])])])])},o=[],s=i("415e"),e=s["a"].getAuthAppDetail,p=s["a"].getAppAuthInfo,c={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",authorize:"authorize",user_oauth_approval:!0,name:"",introduction:"",iconUrl:"",rights:"[]"},checkAuth:!1,rightsList:[]}},mounted:function(){var t=this;t.getAppData()},methods:{toHome:function(){var t=this;t.$router.push("/app-list")},toProtocol:function(){window.open("/haoban-4/gic-protocol","_blank","noopener")},toAuthRights:function(){var t=this;t.$router.push("/")},getAppData:function(){var t=this,a={appId:t.$route.query.client_id};e(a).then((function(a){t.appInfo=Object.assign(t.appInfo,a.result||{}),t.getAuthInfo()})).catch((function(t){}))},getAuthInfo:function(){var t=this,a={appId:t.$route.query.client_id};p(a).then((function(a){t.rightsList=a.result||[],t.appInfo.rights=JSON.stringify(a.result)||"[]"})).catch((function(t){}))}},watch:{}},u=c,r=(i("ad21"),i("2877")),l=Object(r["a"])(u,n,o,!1,null,"1e78000e",null);a["default"]=l.exports},cf05:function(t,a,i){t.exports=i.p+"img/logo.861ef5c7.png"}}]);